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

body {
    font: 20px/1.5 Lato, sans-serif;
}

ul {
    padding-left: 30px;
}

a {
    color: #000;
}

a:hover {
    color: #cc9c16;
}

.hidden {
    display: none;
}

.main-menu {
    width: 100%;
    height: 100px;
    position: fixed;
    top: 0;
    left: 0;
    background-image: linear-gradient(to bottom, #ffffff, rgba(255,255,255,0));
    display: flex;
    justify-content: center;
}

.main-menu a {
    padding: 0 20px 20px 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    height: 80px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    cursor: pointer;
    color: #000;
    text-decoration: none;
}
.main-menu a:hover {
    color: #f6c12b;
}

.main-menu a.active {
    background: #f6c12b;
    color: #fff;
}

#section-1 {
    background: #eee url(assets/1.jpg) center center no-repeat;
    background-size:cover;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 850px;
}
#section-1 img {
    max-width: 690px;
    width: 100%;
}


.container {
    max-width: 1040px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.container.right {
    align-items: flex-end;
}

.container.side-by-side {
    flex-direction: row;
}
.container.side-by-side .side {
    flex: 1;
}


.section {
    padding: 100px 0;
    /* height: 850px; */
}

.section p {
    max-width: 500px;
    font-family: Lato;
	font-size: 20px;
	line-height: 1.65;
	text-align: justify;
	color: #525252;
}

h2 {
    margin-bottom: 50px;
}
h2 span {
    display: none;
}


/* section-3 - edytorstwo */

#section-2 {
    background: #eee url(assets/2.jpg) center center no-repeat;
    background-size:cover;
}

#section-2 h2 {
    width: 413px;
    height: 110px;
    background: transparent url(assets/_edytorstwo.png) 0 0 no-repeat;
    background-size:cover;
}

/* section-3 - grafika */

#section-3 {
    background: #eee url(assets/3.jpg) center center no-repeat;
    background-size:cover;
}

#section-3 h2 {
    width: 313px;
    height: 110px;
    background: transparent url(assets/_grafika.png) 0 0 no-repeat;
    background-size:cover;
}


/* section-4 - kodowanie */

#section-4 {
    background: #eee url(assets/4.jpg) center center no-repeat;
    background-size:cover;
}

#section-4 h2 {
    width: 388px;
	height: 73px;
    background: transparent url(assets/_kodowanie.png) 0 0 no-repeat;
    background-size:cover;
}

/* section-5 - o nas */

#section-5 {
    background: #eee url(assets/5.jpg) center center no-repeat;
    background-size:cover;
}

#section-5 h2 {
    width: 227px;
	height: 54px;
    background: transparent url(assets/_onas.png) 0 0 no-repeat;
    background-size:cover;
}


/* section-6 - kontakt */

#section-6 {
    background: #333333;
    color: #fff;
}


#section-6 h2 {
    width: 326px;
	height: 73px;
    background: transparent url(assets/_kontakt.png) 0 0 no-repeat;
    background-size:cover;
}

#section-6 p {
    color: #ccc;
}

#section-6 hr {
    width: 190px;
	height: 3px;
    background-color: #ffffff;
    margin: 25px 0;
}

#contact-form .field {
    margin-bottom: 20px;
}
#contact-form input {
    display: block;
    width: 100%;       
    height: 38px;
    background-color: #868686;
    font-family: Lato;
	font-size: 16px;
    line-height: 2.5;
    transition: .3s all;
    padding: 0 10px;
}

#contact-form input::placeholder, #contact-form textarea::placeholder {
    color: #eee;
}

#contact-form input:focus, 
#contact-form textarea:focus{
    background-color: rgb(205,205,205);
    outline: none;
}

#contact-form textarea {
    padding: 10px;
    display: block;
    width: 100%;       
    height: 220px;
    background-color: #868686;
    font-family: Lato;
	font-size: 16px;
    line-height: 1.5;
    transition: .3s all;
}

#contact-form button {
    height: 38px;
    line-height: 38px;
    background: #868686;
    padding: 0 10px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

#contact-form button:hover {
    background-color: rgb(205,205,205);
    color: #000;
}

#footer {
    height: 130px;
    background: #2c2c2c;
    padding-top: 25px;
}

#footer .container {
    justify-content: space-between;
    font-family: Lato;
	font-size: 16px;
	line-height: 2.5;
	text-align: left;
	color: rgba(255, 255, 255, 0.3);
}

#footer .container img {
    width: 126px;
	height: 40px;
}

button.menu {
    display: none;
    position: fixed;
    top: 0;
    z-index: 1000;
    margin: 1em;
    padding: 0;
    width: 2.5em;
    height: 2.25em;
    border: none;
    text-indent: 2.5em;
    font-size: 1.5em;
    color: transparent;
    background: transparent;
}

button.menu::before {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    bottom: 0.5em;
    left: 0.5em;
    background: linear-gradient(#373a47 20%, transparent 20%, transparent 40%, #373a47 40%, #373a47 60%, transparent 60%, transparent 80%, #373a47 80%);
    content: '';
}

    .overlay {
        background: rgba(0,0,0,0.7);
        opacity: 0;
        transition: .3s opacity;
    }

    .side-w50 {
        max-width: 50%;
    }

@media all and (max-width: 1000px){
    #section-1 img {
        max-width: 90%;
    }
    .menu-opened .main-menu {
       transform: translateX(0);
    }
    .menu-opened .overlay {
        display: block;
        opacity: 1;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
    .main-menu {
       width: 200px;
       height: 100%;
       background: #fff;
       left: 0;
       transform: translateX(-100%);
       transition: .3s transform;
       flex-direction: column;
       z-index: 1001;
    }
    button.menu {
        display: block;
    }
    .side-w50 {
        max-width: 60%;
    }
}

@media all and (max-width: 650px){
    .side-w50 {
        max-width: 100%;
    }
}
@media all and (max-width: 500px){
    #section-2 h2, #section-3 h2, #section-4 h2, #section-5 h2 {
     width: 90%!important;
     background-position: top center;
     background-size: contain;
     margin-left: auto;
     margin-right: auto;
    }
    #section-6 {
        height: auto;
    }
    #section-6 .side {
        height: auto;
        margin-bottom: 20px;
    }
    #section-6 .container.side-by-side {
        flex-direction: column;
    }
}