@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Karla:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: "Karla";
    overflow-x: hidden;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    font-family: "Playfair Display";
    font-weight: 800;
    font-size: 48px;

}

h2 {
    font-family: "Playfair Display";
}

p {
    line-height: 155%;
    font-size: 18px;
    font-weight: 500;
}

.mark {

    background: linear-gradient(to bottom,
            transparent 65%,
            #CAF0C5 45%);
}

.wrap {
    margin: 0 auto;
    max-width: 1280px;
    flex: 1;
}

/*NAWIGACJA*/


header {
    height: 125px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(248, 235, 227, 1);
    margin: 0 -999rem;
    padding: 0 999rem;
}

/*nawigacja*/

nav {
    display: flex;
    position: relative;
}

header nav ul {
    list-style: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    font-weight: 700;
    transition: 0.3s ease-in-out;
}

nav ul a {
    position: relative;
    margin-right: 20px;
    margin-left: 20px;
    padding-bottom: 8px;
    text-decoration: none;
    color: black;
    cursor: pointer;
}

nav ul a::after {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    height: 3px;
    width: 0;
    left: 0;
    bottom: -2px;
    transition: 0.3s;
}

nav ul a:hover:after {
    width: 100%;
}


nav ul li:last-child a {
    margin-right: 0px;
}


/* aktywna zakładka */
.active::after {
    content: "";
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    height: 3px;
    width: 100%;
    left: 0;
    bottom: -2px;
    transition: 0.3s;

}

/*bureger menu*/
.burger {
    border: none;
    background-color: transparent;
    display: none;
    cursor: pointer;
}

.line {
    width: 30px;
    height: 3px;
    background: rgba(0, 0, 0, 0.9);
    margin: 8px;
    transition: .3s ease-in-out;
}

/*bureger menu*/


/*nawigacja + resposywnosc*/

.CTA {
    padding: 16px 40px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 700;
    font-family: "Karla";
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.CTA:hover {
    opacity: 80%;
}

@media only screen and (max-width: 690px) {
    .burger {
        display: block;
        transition: .3s ease-in-out;
    }

    nav ul {
        position: absolute;
        right: 0;
        top: 50px;
        background: rgb(72, 70, 70);
        height: 55vh;
        flex-direction: column;
        justify-content: space-around;
        width: 100vw;
        text-align: center;
        transform: translate(100%);
        transition: 0.3s ease-in-out;
        z-index: 3;
    }

    ul.open {
        transform: translate(0%);
        transition: 0.3s ease-in-out;
    }

    .burger.open .line:first-child {
        transform: translateY(-300px);
    }

    .burger.open .line:nth-child(2) {
        transform: rotate(45deg) translateY(8px);
    }

    .burger.open .line:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);

    }


    nav ul a {
        color: black;
        background-color: rgba(248, 235, 227, 1);
        display: block;
        width: 200px;
        height: 50px;
        line-height: 50px;
    }



    nav ul li:last-child a {
        margin-right: 20px;
    }

    nav ul a::after {

        background-color: rgba(255, 255, 255, 0.9);
    }

    .active::after {
        background-color: rgba(255, 255, 255, 0.9);
    }

}


@media only screen and (max-width: 430px) {

    nav ul {
        height: 65vh;
    }


}

@media only screen and (max-width: 414px) {

    nav ul {
        height: 65vh;
    }
}


@media only screen and (max-width: 320px) {

    nav ul {
        height: 85vh;
    }

}


@media only screen and (orientation:landscape) and (max-device-width: 533px) {
    nav {
        position: static;
    }

    nav ul {
        right: 0;
        top: 0;
        height: 100vh;
    }
}




/*MAIN*/

/*Filtry*/

.filter{
    background-color: rgba(248, 235, 227, 1);
    margin: 30px -999rem;
    padding: 25px 999rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.filtrCTA{
    padding: 16px 40px;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid black;
    color: black;
    font-size: 16px;
    font-weight: 700;
    font-family: "Karla";
    cursor: pointer;
    text-decoration: none; 
    margin-right: 20px;
   
    
}


.filtrCTA.current{
    padding: 18px 40px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 500;
    font-family: "Karla";
    cursor: pointer;
    text-decoration: none; 
    margin-right: 20px;
    
}

.filtrCTA:hover{
    padding: 18px 40px;
    background-color: rgba(0, 0,0,0.8);
    border:none;
    color: white; 
    margin-right: 20px;
    transition: 0.3s;
    
}


@media only screen and (max-width: 690px) {

    .filter{
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .filtrCTA{
        padding: 15px 30px;
        margin-top: 10px;
        font-size: 12px;
        margin-right: 10px;
    }

    .filtrCTA.current{
        padding: 17px 30px;
        font-size: 12px;  
        margin-right: 10px;
        
    }

    .filtrCTA:hover{
        padding: 15px 30px;
        margin-right: 10px;
    }

}

/*Filtry*/

.projekty {
    width: 1280px;
    margin-top: 30px;
}

.projekty h1 {
    margin-bottom: 40px;
}

.karta p {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
}


.karta {
    background-color: rgb(248, 235, 227);
    max-width: 339px;
    margin-bottom: 60px;
    position: relative;
    margin-right: 131px;
    display: none;
}


.show{
    display: block;
}


.karta:nth-of-type(3),
.karta:nth-of-type(6),
.karta:nth-of-type(9) {
    margin-right: 0;
}

.karta:hover {
    -webkit-box-shadow: 3px 5px 16px -5px rgba(66, 68, 90, 1);
    -moz-box-shadow: 3px 5px 16px -5px rgba(66, 68, 90, 1);
    box-shadow: 3px 5px 16px -5px rgba(66, 68, 90, 1);
}

.kartyflex1 {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}


.karta a span {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/*OBRAZKI*/

.obrazek1 {
    min-width: 100%;
    padding: 0;
}


.obrazek1 img {
    width: 100%;
    height: 200px;
}

.content {
    padding: 20px;
}

.rodzaj {
    margin-bottom: 20px;
}

.projekty .CTA {
    margin-top: 30px;
    position: relative;
    z-index: 2;
}

/*suwak*/

.fa-caret-square-up {
    font-size: 45px;
}

.toTop {
    position: fixed;
    right: 35px;
    bottom: 55px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    background-color: #0000;
    text-decoration: none;
    color: #000;
}

.toTop:visited {
    color: #000;
}

.toTop.ready {
    bottom: 70px;
    pointer-events: auto;
    opacity: 0.3;
}

a:hover.toTop {
    opacity: 0.8;
}

/*MAIN RESPOSYWNOSC*/

@media only screen and (max-width: 1366px) {
    .logo {
        padding-left: 30px;
    }

    header nav {
        padding-right: 30px;
    }

    .projekty {
        width: auto;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .projekty h1{
        margin-bottom: 10px;
    }
}

@media only screen and (max-width: 1360px) {

    .karta {
        margin-right: 60px;
    }

    .karta:nth-of-type(3),
    .karta:nth-of-type(6),
    .karta:nth-of-type(9) {
        margin-right: 60px;
    }

}



@media only screen and (max-width: 1025px) {

    .karta {
        margin-right: 80px;
    }

    .karta:nth-of-type(3),
    .karta:nth-of-type(6),
    .karta:nth-of-type(9) {
        margin-right: 80px;
        ;
    }
 .toTop{
     display:none;
    }

}


@media only screen and (max-width: 900px) {

    .projekty h1 {
        font-size: 42px;
    }

    .karta {
        margin-right: 15px;
    }

    .karta:nth-of-type(3),
    .karta:nth-of-type(6),
    .karta:nth-of-type(9) {
        margin-right: 15px;
        ;
    }

}


@media only screen and (max-width: 414px) {

    .projekty h1 {
        font-size: 36px;
    }

    .karta {
        margin-right: 0px;
    }

    .karta:nth-of-type(3),
    .karta:nth-of-type(6),
    .karta:nth-of-type(9) {
        margin-right: 0px;
        ;
    }

    .projekty {
        padding-left: 30px;
        padding-right: 30px;
    }
}


@media only screen and (max-width: 414px) {

    .projekty h1 {
        font-size: 32px;
    }
}


@media only screen and (max-width: 320px) {

    .projekty h1 {
        font-size: 28px;
    }

    .projekty {
        padding: 0;
    }
}




.kontakt{
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 80px;
    width: 100%;
    align-items: center;
}

.kontakt h2{
    margin-bottom: 25px;
}




/*STOPKA*/


footer {
    margin-top: 100px;
    background-color: rgba(248, 235, 227, 1);
    text-align: center;

}

footer .wrapfot {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}


/*STOPKA Responsywnosc*/