@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;
}

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

}

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

/* main {
    height: 75vh;
} */

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;
}

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*/

.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%;
}


.center {
    text-align: center;
}


@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;
    }

    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);
    }

}


/* MAIN*/

.postHeader {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 80px;
}

.postHeader p {
    max-width: 600px;
    margin: 20px auto;
    /* font-weight: 600; */
}

.postHeader a {
    margin-top: 20px;
}

.postHeader h1 {
    font-size: 42px;
    margin-top: 40px;
    margin-bottom: 20px;
    text-align: center;
}

.postHeader img {
    max-width: 100%;
}

article {
    max-width: 850px;
    margin: 50px auto;
    /* text-align: justify; */
    padding-top: 100px;
}

ol {
    font-family: "Karla";
    font-weight: 500;
    margin-left: 50px;
    font-size: 18px;
}

ol li {
    margin-top: 10px;
    
}

article img {
    max-width: 100%;
    display: block;
    margin: 40px auto;
    height: auto;
}

article p {
    margin-bottom: 20px;
    line-height: 170%;
}

article h3 {
    font-family: "Playfair Display", sans-serif;
    font-size: 28px;
    margin-bottom: 10px;
    margin-top: 5px;
}


.ghost {
    padding: 14px 40px;
    background-color: #FAFAFA;
    color: black;
    border: 2px solid gray;
    font-size: 14px;
    font-weight: 700;
    font-family: "Karla";
    cursor: pointer;
    margin-left: 10px;
    text-decoration: none;
}

.ghost:hover {
    background-color: rgba(0, 0, 0, 0.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;
}
/*STOPKA*/


footer {
    background-color: rgba(248, 235, 227, 1);
    text-align: center;
    height: 5vh;
    margin: 150px -999rem;
    padding: 20px 999rem;
    margin-bottom: 0;
}



/*resposywnosc POST*/

@media only screen and (max-height: 1000px){
    .postHeader img {
    max-width: 80%;
    }
}

@media only screen and (max-height: 920px){
    .postHeader img {
    max-width: 100%;
    }
}

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

    footer {
        background-color: rgba(248, 235, 227, 1);
        text-align: center;
        height: 100px;
        margin: 100px -999rem;
        padding: 20px 999rem;
        margin-bottom: 0;
    }
    
     .toTop{
     display:none;
    }

    .ghost{
        display: none;
    }
    
    article{
        padding-top: 20px;
    }
    
    .postHeader{
        text-align: left;
        margin-bottom: 50px;
    }
    
    .postHeader h1{
        text-align: left;
        font-size: 36px;
        margin-top: 15px;
    }
    
    .postHeader p {
   margin-top: 10px;
   }
    
    .postHeader a {
    margin-top: 15px;
    }
}

@media only screen and (orientation:landscape) and (max-device-width: 950px) {
 .postHeader{
      margin-bottom: 200px;
  }
    
}

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

    footer {
        background-color: rgba(248, 235, 227, 1);
        text-align: center;
        height: 75px;
        margin: 75px -999rem;
        padding: 20px 999rem;
        margin-bottom: 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 Responsywnosc*/

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

    header nav {
        padding-right: 30px;
    }

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


    article {
        padding-left: 30px;
        padding-right: 30px;
    }

}