@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;300;700&display=swap');
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif; 
}

html {
    font-size: 14px;
    /*font-size: calc(15px + 0.390625vw);*/
    color: #686C73;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

.container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#header {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100vw;
    height: auto;
}

#header .header {
    min-height: 8vh;
}

#header .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    padding: 0 10px;
}

#header .nav-list ul {
    list-style: none;
    position: absolute;
    background-color: rgb(31, 30, 30);
    width: 100vw;
    height: 100vh;
    left: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    overflow-x: hidden;
    transition: .5s ease left;
}

#header .nav-list ul.active {
    left: 0;
}

#header .nav-list ul a {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: .2rem;
    color: white;
    text-transform: uppercase;
    padding: 10px;
    display: block;
}

#header .nav-list ul a::after {
    content: attr(data-after);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: rgba(240, 248, 255, .021);
    font-size: 7rem;
    letter-spacing: 50px;
    z-index: -1;
    transition: .3s ease letter-spacing;
}

#header .nav-list ul li:hover a::after {
    transform: translate(-50%, -50%) scale(1);
    letter-spacing: initial;
}

#header .hamburger {
    z-index: 10;
    height: 60px;
    width: 60px;
    display: inline-block;
    border: 3px solid white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    display: flex;
    position: relative;
    cursor: pointer;
}

#header .hamburger .bar {
    height: 2px;
    width: 30px;
    position: relative;
    background-color: white;
    z-index: -1;
}

#header .hamburger .bar::after,
#header .hamburger .bar::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    background-color: white;
    transition: .3s ease;
    transition-property: top, bottom;
}

#header .hamburger .bar::after {
    top: 8px;
}

#header .hamburger .bar::before {
    bottom: 8px
}

#header .hamburger.active .bar::before {
    bottom: 0;
}

#header .hamburger.active .bar::after {
    top: 0;
}

#start{
    background-image: url(picture/nadzory-slask.webp);
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}
#start::after{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: .5;
    z-index: -1;
}
.brand{
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}
.brand a{
    font-size: 3.5rem;
    color: #f2f2f2;
}
strong{
    color: #d9923b;
}
.tyt-nazw h1{
    font-size: 5.4rem;
    color: #f2f2f2;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.tyt-nazw h3{
    font-size: 2rem;
    color: #d9923b;
    text-align: center;
    padding: 3%;
    text-transform: uppercase;
    letter-spacing: .5rem;
}

.top_text h1{
    font-size: 1.2rem;
    color: #f2f2f2;
    margin-top: 10px;
}
span{
    color: #d9923b;
}
.zawartosc1{
    width: 1000px;
}
.nazwa{
    text-align: center;
    font-size: 2.5rem;
    text-transform: uppercase;
}
.linia{
    margin: 25px 25% 50px 25%;
    height: 1px;
    background: #d9923b;
}
.tekst p{
    font-size: 1.5rem;
    text-align: center;
}
.loga{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}
.loga a{
    margin: 5%;
    filter: grayscale(100%);
}
.loga a:hover{
    filter: grayscale(0%);
    transition: .3s;
}
.loga a img{
    width: 90%;
}
.loga a img:hover{
    transform: scale(1.1);
    transition: .3s ease-in-out;
}
.photo img{
    height: 100vh;
}
.linia2{
    margin: 25px 35% 50px 35%;
    height: 1px;
    background: #d9923b;
}
.zawartosc{
    display: flex;
    align-items: center;
}
.zawartosc-tekst{
    font-size: 1.5rem;
    padding: 10%;
}
.tekst p{
    padding-top: 2%;
}
.box{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.box div{
    min-width: 300px;
    padding: 20px;
}
.box-pic{
    min-height: 300px;
    position: relative;
}
.box-pic:hover .overlay{
    opacity: 1;
}
.box-pic img{
    display: block;
    background-size: cover;
    background-position: center;
    width: 360px;
}
.overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #f2f2f2;
}
.over-text{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.box-kontakt{
    display: flex;
    align-content: space-between;
    align-items: center;
    margin-top: 10%;
}
.formularz{
    max-width: 500px;
    margin: 0 auto;
}
form{
    width: 400px;
    margin: 0 auto;
    text-align: left;
    padding: 20px 0;
}
input,
textarea,
label{
    display: block;
    margin: 0 auto;
    width: 100%;
}
input,
textarea{
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid #686C73;
}
input[type=submit]{
    background-color: #686C73;
    padding: 15px 0;
    color: #f2f2f2;
    font-size: 1rem;
    border-bottom: none;
    margin-top: 30px;
    cursor: pointer;
    transition: all .3s ease;
}
input[type=submit]:hover{
    background: #d9923b;
    color: #686C73;
}
input,
textarea{
    font-size: 1.2rem;
    padding: 5px;
}
textarea{
    height: 180px;
}
input:focus,
textarea:focus{
    outline: 1px solid #686C73;
}

.text-kontakt{
    width: 500px;
    padding-left: 200px;
}
.text-kontakt h2{
    font-size: 3.5rem;
    padding-bottom: 170px;
}
.text-kontakt h3{
    font-size: 2rem;
}
.text-kontakt p{
    margin-top: 10px;
    font-size: 1.3rem;
}
.foot{
    font-size: .9rem;
    margin-top: -50px;
    text-align: center;
}
.foot a{
    text-decoration: none;
    color: #686C73;
}
.thx{
    text-align: center;
}
.thx p{
    font-size: 2rem;
    padding: 50px;
}
.thx a{
    color: #686C73;
    font-style: italic;
}
.thx a:hover{
    color: #d9923b;
}

@media screen and (max-width: 500px){

    #header .hamburger {
        height: 50px;
        width: 50px;
    }
    #header .hamburger .bar {
        width: 25px;
    }
    #header .nav-list ul a {
        font-size: 1.5rem;
    }
    .brand a{
        font-size: 2.5rem;
    }
    .tyt-nazw h1{
        font-size: 3rem;
        text-align: center;
    }
    .tyt-nazw h3{
        font-size: 1rem;
    }
    .top_text h1{
        font-size: .7rem;
    }
    .nazwa{
        font-size: 1.5rem;
        margin-top: 50px;
    }
    .tekst p{
        font-size: 1rem;
        padding: 0 10%;
    }
    .loga{
        flex-direction: column;
    }
    .loga a img{
        height: 30px;
    }
    .photo{
        text-align: center;
    }
    .photo img{
        height: 300px;
        width: 100%;
        object-fit: cover;
        object-position: top;
    }
    .linia2{
        margin: 25px 30% 50px 30%;
    }
    .zawartosc{
        display: block;
        align-items: center;
    }
    .zawartosc-tekst{
        font-size: 1rem;
        padding: 5px 10px 20px ;
    }
    #o_mnie .container{
        display: flex;
        flex-direction: column-reverse;
    }
    .tekst ul{
        padding: 0 14%;
    }
    .box div{
        min-width: 300px;
    }
    .box-pic{
        min-height: 300px;
    }
    .box-pic img{
        width: 300px;
        height: 300px;
        object-fit: cover;
        object-position: center;
    }
    .box-kontakt{
        flex-wrap: wrap;
    }
    .formularz{
        width: 100%;
    }
    form{
        width: 300px;
    }
    .text-kontakt{
        width: 100%;
        margin-top: 50px;
        padding: 0;
        text-align: center;
    }
    .text-kontakt h2{
        font-size: 3rem;
        padding-bottom: 100px;
    }
    .text-kontakt h3{
        font-size: 1.5rem;
    }
    .text-kontakt p{
        margin-top: 10px;
        font-size: 1rem;
    }
    .foot{
        font-size: .9rem;
        margin-top: 50px;
        margin-bottom: 50px;
    }
    
}

@media screen and (max-width: 1366px){
    #header .hamburger {
        height: 50px;
        width: 50px;
    }
    #header .hamburger .bar {
        width: 25px;
    }
    #header .nav-list ul a {
        font-size: 1.5rem;
    }
    .brand a{
        font-size: 2.5rem;
    }
    .tyt-nazw h1{
        font-size: 4rem;
        text-align: center;
    }
    .tyt-nazw h3{
        font-size: 1.5rem;
    }
    .top_text h1{
        font-size: 1rem;
    }
    .loga{
        margin-top: 3%;
    }
    .nazwa{
        font-size: 1.8rem;
    }
    .zawartosc1{
        margin-bottom: 80px;
    }
    .zawartosc1 .tekst p{
        padding: 0 10%;
    }
    .tekst p{
        font-size: 1.2rem;
    }
    .tekst ul{
        font-size: 1.2rem;
    }
    .box-kontakt{
        margin-top: 0;
    }
    form{
        width: 350px;
    }
    textarea{
        height: 80px;
    }
    input[type=submit]{
        padding: 8px 0;
        margin-top: 10px;
    }
    .text-kontakt h2{
        font-size: 2.5rem;
        padding-bottom: 100px;
    }
    .text-kontakt h3{
        font-size: 1.3rem;
    }
    .text-kontakt p{
        margin-top: 7px;
        font-size: 1rem;
    }
 
}