/* ====================================
   CONTAINER
==================================== */

.project-page .container{
    max-width:1140px;
}

/* ====================================
   HERO
==================================== */

.projects-hero{
	
    position:relative;
    min-height:500px;
    display:flex;
    align-items:center;
    background:
    linear-gradient(
        rgba(2,18,34,.72),
        rgba(2,18,34,.72)
    ),
    url('../img/projects-hero.jpg');
    background-size:cover;
    background-position:center;
    color:#fff;

    display:flex;

    align-items:center;

    background-size:cover;

    background-position:center;
}

.projects-hero-content{
    max-width:800px;

}

.section-label{
	
    display:inline-block;

    margin-bottom:15px;

    color:#23b5c9;

    font-weight:700;

    letter-spacing:2px;

    text-transform:uppercase;
}

.projects-hero h1{

    font-size:50px;
    line-height:1.05;
    margin-bottom:25px;
    color:#fff;
	max-width:720px;
}

.projects-hero p{

    font-size:20px;
    line-height:1.7;
    color:#d7e2eb;
    margin-bottom:35px;
}

/* ====================================
   INTRO
==================================== */

.projects-intro{
    padding:70px 0 40px;
    text-align:center;
}

.projects-intro p{
    max-width:850px;
    margin:0 auto;
    font-size:20px;
    line-height:1.8;
    color:#444;
}

/* ====================================
   CASE STUDIES
==================================== */

.case-study{

    padding:30px 0;
}

.case-study-card{

    background:#fff;

    border-radius:16px;

    overflow:hidden;

    box-shadow:
    0 15px 40px rgba(0,0,0,.08);

    margin-bottom:60px;
}

.case-header{

    padding:20px;

    background:#071a33;

    color:#fff;
}

.case-number{

    display:block;

    color:#12b5c9;

    font-weight:700;

    letter-spacing:2px;

    margin-bottom:10px;
}

.case-header h2{

    margin:0;
}

.case-info{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:30px;

    padding:40px;
}

.case-item strong{

    display:block;

    margin-bottom:8px;

    color:#071a33;
}

.case-gallery{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:10px;

    padding:0 40px 40px;
}

.case-gallery img{

    width:100%;

    height:260px;

    object-fit:cover;

    border-radius:10px;
}

.case-description{

    padding:0 40px 40px;
}

.case-description p{

    margin:0;

    line-height:1.8;
}





.case-gallery-preview{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:15px;

    padding:0 40px 25px;
}

.case-gallery-preview img{

    width:100%;

    height:320px;

    object-fit:cover;

    border-radius:10px;
}

.case-gallery-actions{

    padding:0 40px 35px;

    text-align:center;
}

.gallery-trigger{

    background:#12b5c9;

    color:#fff;

    border:none;

    padding:14px 28px;

    border-radius:8px;

    cursor:pointer;

    font-weight:600;

    transition:.3s;
}

.gallery-trigger:hover{

    background:#0ea3b5;
}





.gallery-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.9);

    display:none;

    justify-content:center;

    align-items:center;

    z-index:9999;
}

.gallery-modal.active{

    display:flex;
}

.gallery-modal-content{

    position:relative;

    max-width:90%;

    max-height:90%;
}

.gallery-modal-content img{

    max-width:100%;

    max-height:85vh;

    display:block;

    border-radius:10px;
}

.gallery-close{

    position:absolute;

    top:-50px;

    right:0;

    border:none;

    background:none;

    color:#fff;

    font-size:40px;

    cursor:pointer;
}

.gallery-nav{

    display:flex;

    justify-content:space-between;

    margin-top:15px;
}

.gallery-prev,
.gallery-next{

    background:#12b5c9;

    color:#fff;

    border:none;

    padding:12px 18px;

    border-radius:6px;

    cursor:pointer;
}

.gallery-counter{

    color:#fff;

    font-size:18px;

    font-weight:600;

    display:flex;

    align-items:center;

    justify-content:center;

    min-width:80px;
}



@media(max-width:768px){

    .case-info{

        grid-template-columns:1fr;
    }

    .case-gallery{

        grid-template-columns:1fr;

        padding:0 20px 20px;
    }

    .case-gallery img{

        height:220px;
    }

    .case-description{

        padding:0 20px 30px;
    }
	
	.case-gallery-preview{

    grid-template-columns:1fr;
	}
	
	.gallery-modal-content img{

		max-height:75vh;
	}
	
	.gallery-prev,
	.gallery-next{

		min-width:55px;
		min-height:55px;
	}

}

/* ====================================
   OBRAZY
==================================== */

.project-card a{
    display:block;
    overflow:hidden;
}

.project-card img{
    width:100%;
    height:260px;
    object-fit:cover;

    transition:transform .5s ease;
}

.project-card:hover img{
    transform:scale(1.06);
}

/* ====================================
   TREŚĆ
==================================== */

.project-content{

    text-align:left;
    max-width:800px;
}


.project-content h3{
    margin:0 0 15px;
    padding:0;
    justify-content:flex-start;
    text-align:left;
    margin-bottom:15px;
    color:#071a33;
	max-width:800px;
}

.project-content h3::after{
	
    content:"";
    display:block;
    width:70px;
    height:4px;
    background:#22c7dd;
    margin-top:12px;
    margin-left:0;
    margin-right:auto;

}

.project-content p{
	margin-top:20px;
    line-height:1.8;
    color:#555;
    text-align:left;
	 
}

/* OBSZAR */

.contact-area{

    padding:80px 0;

    background:#f5f7fa;
}

.countries-grid{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:25px;
}

.country-card{

    background:#fff;

    padding:30px;

    text-align:center;

    border-radius:12px;

    font-weight:600;

    box-shadow:
    0 8px 20px rgba(0,0,0,.05);
}

/* ====================================
   CTA
==================================== */

.projects-cta{
    background:#021426;

    color:#fff;

    text-align:center;

    padding:40px;
}
.projects-cta h2{
	
    font-size:40px;

    margin-bottom:30px;
}

.projects-cta p{
    font-size:20px;
    margin-bottom:35px;
    opacity:.9;
}

/* ====================================
   BUTTONS
==================================== */

.btn-primary{
    display:inline-block;

    background:#22c7dd;
    color:#fff;

    padding:16px 34px;
    border-radius:6px;

    text-decoration:none;
    font-weight:600;

    transition:.3s ease;
}

.btn-primary:hover{
    background:#15b2c7;
    transform:translateY(-2px);
}

/* ====================================
   RESPONSIVE
==================================== */

@media(max-width:992px){

    .projects-grid{
        grid-template-columns:repeat(2,1fr);
        gap:25px;
    }

    .countries-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .projects-hero h1{
        font-size:42px;
    }

    .projects-intro p{
        font-size:18px;
    }

}

@media(max-width:768px){

    .projects-hero{
        min-height:420px;
        padding-bottom:50px;
    }

    .projects-hero h1{
        font-size:34px;
        line-height:1.1;
    }

    .projects-hero p{
        font-size:18px;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:flex-start;
    }

    .projects-grid{
        grid-template-columns:1fr;
        gap:30px;
    }

    .project-card img{
        height:240px;
    }

    .projects-intro{
        padding:50px 0 30px;
    }

    .projects-cta h2{
        font-size:32px;
    }

    .projects-cta p{
        font-size:18px;
    }

}

@media(max-width:480px){

    .projects-hero{
        min-height:280px;
        padding-bottom:40px;
    }

    .projects-hero h1{
        font-size:28px;
    }

    .projects-hero p{
        font-size:16px;
    }

    .projects-grid{
        gap:25px;
    }

    .project-card img{
        height:220px;
    }

    .countries-grid{
        grid-template-columns:1fr;
    }

    .country-card{
        padding:20px;
        font-size:18px;
    }

    .projects-cta{
        padding:30px 20px;
    }

    .projects-cta h2{
        font-size:28px;
    }

    .projects-cta p{
        font-size:16px;
    }

    .btn-primary{
        width:100%;
        text-align:center;
    }

}