
:root{
    --primary:red !important;
}

.navbar{
  position: sticky;
  top:0;
  background: white;
  z-index: 99;
  box-shadow: 1px 5px 5px rgba(0,0,0,0.1);
 
     justify-content: space-between;
  

          font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font: weight 700;
  color:#000;
}

section{
    scroll-margin: 80px;
}


h1,h2,h3,h4,h5,h6,h7,.h1,.h2,.h4,.h3,.h5{
   font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
color:#000;
}

.display-4{
    font-weight: 700;
}

body,p{
  font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font: weight 300;
  font-style: normal;
  color:#5C727D;
}

b,strong{
     font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font: weight 700px;
  font-style: normal;
}

/*footer*/

footer{
    background: #171B2A;
    color:#fff;
    padding: 6rem 15px;
    line-height: 1.7;
    font-size: 1rem;;
}

footer h3{
        font-size: 22px;
        color:#fff;
        margin-bottom: 20px;
}


.footer-content{
    display:flex;
    flex-wrap: wrap;
    width:100%;
}

.footer-bottom{
    padding: 10px 15px;
    background: #171B2A ;
    color:#fff;
}

.footer-bottom a{
    color:#fff;
}

footer .offer{
    width:100%;
}

footer .offer ul{
    display:inline-flex;

margin: 0;

padding:10px 20px;
}

footer .fas{
    margin-right:10px;
}

.footer-menu ul{
    color:#fff;
    text-decoration: none;
    list-style: none;
 
    margin:0 10px;
    margin-left: 0;
    position: relative;
    height:45px
}
 
.footer-menu ul a{
    color:#fff;
    text-decoration: none;

}

footer ul a:hover{
    text-decoration: none;
    opacity: 0.8;
    color:red;
}

.footer-menu ul li{
    margin:0 10px;
}

.offer-header{
    background: #1967be;
    margin: 0;
    padding: 6px 15px;
    text-transform: uppercase;
    letter-spacing: 2;
}

.footer-menu{
    display:flex;
    align-items: center;
width:100%;
   background: #000;
}

.footer-menu ul{
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-menu ul a:hover{
    color:red;
}

/*scroll */

.scroll-to-top{
    position: fixed;
    bottom:10px;
    right:10px;
  
    background: var(--primary);
    color:#fff;
    width:50px;
    height:50px;
 
    display:flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition:all 250ms linear;
    z-index: 9999;
}

.scroll-to-top:hover{
   filter:brightness(80%);
}

.scroll-to-top span{
    font-size: 1.3rem;
    text-decoration: none;
    margin-bottom:5px;
}


#udogodnienia{
    position: relative;
    padding: 7rem 15px;
    background: var(--primary);
}

#udogodnienia h3::after{
content:'';

}


.udo-bg{
position: absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit: cover;
opacity: 0.2;
filter:grayscale(100%);
z-index: 1;
}

#udogodnienia .container{
    position: relative;
    z-index: 2;
}

.udoitem{
    width:100%;
    padding:60px 15px;
    box-shadow: 1px 10px 10px rgba(0,0,0,0.2);
    margin: 20px;
border-bottom: solid 3px var(--primary);
    background: white;
    color: black;
    z-index: 3;
    position: relative;
   
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
   
}

@media(max-width:968px){
    .udoitem{
        margin:20px 0;
    }
}



#okolica{
    background: var(--primary);
    padding: 5rem 15px;
    position: relative;
}

.okolica-bg{
    position: absolute;
top:0;
left:0;
width:100%;
height:100%;
object-fit: cover;
opacity: 0.2;
filter:grayscale(100%);
z-index: 1;
}

.okolica-grid{
    display:flex;
    color:#fff;
    flex-wrap:wrap;
    gap:2rem;
    position: relative;
    z-index: 2;
}

@media(max-width:968px){
    .okolica-grid{
        gap:0;
    }
}

.okolica-grid .item{
    flex:1 0 25%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
position: relative;
margin:2rem 0;
background:#fff;
min-height: 300px;
 font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
  color:#000 !important
}

@media(max-width:968px){

.okolica-grid .item{
    flex: 1 0 100%;
}

.form-group{
    margin:0 10px;
}

.pagination{
--bs-pagination-padding-x: 0.45rem;
}

#totalResults{
    text-align: center;
}

#paginationInfo{
    text-align: center;
}

}

.okolica-grid .item p{
        font-size:1.3rem;
        color: #000;
        margin-top: 20px;
        position: relative;
        margin-bottom: 20px;
    
}


.okolica-grid .item p::after{
    content:'';
    width:50px;
    height:4px;
   position: absolute;
    background: red;
    display: block;
margin-top: 15px;
  left: 50%;
  transform: translate(-50%, 0);
}

.okolica-grid .item::after{
    content:'';
    width:50px;
    height:2px;
    display: block;
    margin:0 auto;
    background: white;
box-shadow: 1px 10px 10px rgba(0,0,0,0.1);
}



.galery{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-template-rows: masonry;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}



 
header{
    position: relative;
    height:80vh;
    background: #000;;
    color:#fff;
}

header h1{
    color:#fff;
}

header .lead{
    color:#fff;
}

header img{
animation:zoo 3000ms linear;
}

@keyframes zoo {
    from{
        opacity:0;
    }

    to{
        opacity: 1;
    }
}

@media(max-width:968px){
    header{
        height:60vh;
    }
}

 

header .lead{
    font-size:1.3rem;

       font-family: "Nunito", sans-serif;
  font-optical-sizing: auto;
  font: weight 300px;
  font-style: normal;
}

header .header-fog{
    position: relative;
    background:rgba(0,0,0,0.4);
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn{
    transition: all 250ms ease-in-out !important;
}

.btn-primary{
    background: var(--primary);
    border:none;

}

.btn-primary:hover{
    background: rgb(136, 2, 2);

}

.btn-danger{
    border:none;
    background:var(--primary)
}

.btn-danger:hover{
    border: none;
    background: rgb(133, 3, 3);
}



header img{
position: absolute;
width: 100%;
height: 100%;
z-index: 1;
object-fit: cover !important;
object-position: center center;
}


.content :is(b,strong){
font-family: inherit;
  font-optical-sizing: auto;
  font-weight: 400 !important;
  font-style: normal;
  text-transform: uppercase;
  color:var(--primary);

}


.carousel-control-prev{
    background: linear-gradient(to right,rgba(0,0,0,0.5),rgba(0,0,0,0));
}

.carousel-control-next{
       background: linear-gradient(to left,rgba(0,0,0,0.5),rgba(0,0,0,0)); 
}


#dostepnemieszkania h2{
    color:var(--primary);
}

.btn{
    border-radius: 0;
}

.btn-success{
    background: #708819;
    border:none;
}

.btn-success:hover{
    border:none;
    background: #566816;
}


#galeria{
    padding: 5rem 15px;
background: #F2F6F7;
}

.galgrid{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap:2rem;
}

 
.galitem{
    width:25%;
    overflow: hidden;
    height:250px;
    cursor: pointer;
}


@media(max-width:968px){
    .galitem {
            width: 100%;
            overflow: hidden;
            height: 300px;
            cursor: pointer;
        }
}

#galeria .h1{
    color:#000;
    position:relative;
    padding-bottom: 20px;
    display:block;

    margin: 0 auto;
}


 
.galitem img{
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    transition: all 250ms ease-in-out;
}

.galitem:hover img{
    transform: scale(1.2);
    filter:brightness(40%)
}



.navbar-brand{
    font-weight: 400;
    line-height: 1.2;
    font-size: 1.4rem;
    padding: 10px;
}

.navbar-brand img{
    max-width: 250px;;
}

.navbar-brand span{
    color:#8AA624;
}

@media(max-width:968px){
    
    .navbar-brand{
        font-size: 1.2rem;
    }
}


@media(max-width:968px) {
    .footer-menu ul {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        height: auto;

    }

    .footer-menu ul li{
        margin:10px 0;
    }
}

.nav-link{
    font-weight: 600;
    color:#000;
}

.nav-link.active{
    color:red !important;
}


.form-select{
    border-radius: 0;
}

.page-item{
    border-radius: 0 !important;
}
.page-item:last-child .page-link{
    border-radius: 0;
}
.page-item:first-child .page-link{
    border-radius: 0;
}

/* Dodatkowe style dla lepszego wyglądu */
.pagination .page-link {
    color: #495057;
    border-color: #dee2e6;
    border-radius: 0;
}

.pagination .page-item.active .page-link {
    background-color: red;
    color:white;
    border-color: white;
        border-radius: 0;
}

.pagination .page-link:hover {
    color: white;
    background-color: red;
    border-color: #dee2e6;
        border-radius: 0;
}


.form-select, .form-label {
    font-size: 0.9rem;
}

#paginationInfo, #totalResults {
    font-size: 0.85rem;
}

/* Responsywność dla kontrolek */
@media (max-width: 768px) {
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination .page-item {
        margin: 2px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
}




.footer-bottom-content{
    font-size: 0.9rem;
}

.content :is(h1,h2,h3,h4,h5,h6){
margin-bottom: 20px;
}

.ltn__top-bar-menu{
    font-size: 0.9rem;
}

.ltn__top-bar-menu ul{
    display: flex;
    gap:1rem;
    margin: 0;
    
}
.ltn__top-bar-menu li{
    display:flex;
    list-style-type: none;
}

.ltn__top-bar-menu .fas{
    margin:0 10px;
}


.ltn__top-bar-menu .fas.red{
    color:red;
}

.ltn__top-bar-menu a{
    color:#fff;
    text-decoration: none;

}

@media(max-width:968px) {

        .okolica-grid .item {
            width: 100%:
        }

    }