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

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

p {
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.container {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    padding: 0 100px;
}

/* Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 45px 100px;

    transition: background .2s linear, padding .2s linear;
}

.sticky .header__inner {
    background-color: #fff;
    padding: 15px 100px;

    border-bottom: 2px solid #F07C0A;
    
    animation: header__fixed .2s;
}

@keyframes header__fixed {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__link {
    position: relative;
    margin-left: 25px;

    font-size: 16px;
    font-weight: 400;
    color: rgba(0,0,0,.8)
}

.nav__link::after {
    content: '';
    position: absolute;
    top: 23px;
    display: block;

    width: 100%;
    height: 2px;

    background-color: rgba(253, 118, 0, 0.7);

    transform: scale(0);
    transition: transform .2s linear;
}

.nav__link:hover::after {
    transform: scale(1);
}


.languages {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flag {
    margin-left: 7px;

    transition: transform .1s linear;
}

.flag:hover {
    transform: scale(1.2);
    cursor: pointer;
}

/* Intro */

.intro {
    background: url(../img/intro.jpg) center repeat-x;

    width: 100%;
    min-height: 164px;

    margin-top: 120px;
}

/* Main */

.main {
    padding: 120px 0;
}

.main__inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.main__left {
    width: 700px;
    margin-right: 80px;
}


.main__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.main__content {
    text-align: center;
    margin-top: 30px;
}

.firma__img {
    width: 350px;
    height: 350px;
}

.main__title {
    font-size: 30px;
    font-weight: 400px;
    color: rgba(0,0,0,.8);

    margin-bottom: 10px;
}

.main__text {
    font-size: 17px;
    font-weight: 400px;
    color:#777777;

    line-height: 1.7;

    margin-bottom: 10px;
}

.address {
    font-size: 16px;
    font-style: normal;
    font-weight: 400px;
    color:#777777;
}

/* Park maszynowy */

.machinery__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.machinery__gallery {
    margin-top: 50px;
}

.machinery__block {
    display: flex;
    justify-content: center;
    align-items: center;

    margin-bottom: 40px;
}

.machinery__photo {
    margin-right: 20px;
}

.machinery__photo-r {
    margin-right: 0;
    margin-left: 40px;
}

.machinery__name {
    font-size: 26px;
    font-weight: 400;
    color: #000;

    margin-bottom: 20px;
}

.machinery__content {
    border: 2px solid #F07C0A;
    padding: 20px;

}

.machinery__workspace {
    font-size: 18px;
    font-weight: 300;
    color: #777;

    margin-bottom: 20px;
}

.machinery__year {
    font-size: 22px;
    font-weight: 400;
    color: #000;

    margin-bottom: 20px;
}

.machinery, .realizacje {
    margin-bottom: 100px;
}

.machinery__inner, .realizacje__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.machinery__title,
.realizacje__title,
.kontakt__title 
{
    position: relative;
    
    font-size: 25px;
    font-weight: 400;
    color: rgba(0,0,0,.9);

    margin-bottom: 25px;
}

.machinery__title::after,
.realizacje__title::after,
.kontakt__title::after 
{
    content: '';
    display: block;
    position: absolute;
    top: 60px; left: 50%;

    transform: translateX(-50%);

    width: 115%;
    height: 3px;

    background-color: rgba(253, 118, 0, .7);  
}

.kontakt__title::after {
    width: 115px;
}

.realizacje__gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    margin-top: 50px;
}

.realizacje__photo {
    width: calc(100% / 3 - 2rem);
    height: 300px;
    object-fit: cover;
    margin: 0 30px 30px 0;

    display: flex;
    justify-content: center;
    align-items: center;
    
    overflow: hidden;
    position: relative;
    cursor: pointer;

    transition: transform .2s linear;

    transform: scale(1);

    outline: 2px solid #F07C0A;
}

.realizacje__photo a img {
    object-fit: cover;
}

.realizacje__photo:nth-child(3n) {
    margin-right: 0;
}

.realizacje__photo:hover {
    filter: grayscale(0);
}

.realizacje__photo img {
    transition: transform .2s linear;;
}

.realizacje__photo:hover img {
    transform: scale(1.2);
}

/* Kontakt */

.kontakt__title {
    display: flex;
    justify-content: center;
    align-items: center;
}

.kontakt__inner {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 60px 0;
}

.map__block {
    margin-right: 60px;
}

.map {
    width: 700px;
    height: 400px;
    border: none;
}

.form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form__item {
    width: 400px;
    padding: 10px 20px;
    margin-bottom: 7px;

    outline: none;
    border: 1px solid rgba(0,0,0,.4);
    border-radius: 5px;

    font-size: 14px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    color: rgba(0,0,0,.8);
}

.form__item::placeholder {
    font-size: 12px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;
    color: rgba(0,0,0,.5);
}

.form__item:focus {
    border-color: rgba(253, 118, 0, 0.7); 
}

.textarea {
    resize: vertical;
    min-height: 150px;
    max-height: 250px;
}

.form__button {
    width: 200px;

    vertical-align: middle;
    display: inline-block;
    padding: 10px 20px;

    background-color: rgba(253, 118, 0, .9); 
    color: #fff;

    outline: none;
    border: none;

    cursor: pointer;

    font-size: 14px;
    font-weight: 400;
    font-family: 'Poppins', sans-serif;

    transition: background .3s linear, color .3s linear, outline .3s linear;
}

.form__button:hover {
    background-color: #fff; 
    color: rgba(253, 118, 0, .9);
    outline: 1px solid rgba(253, 118, 0, .9);
}

/* Footer */

.footer {
    background-color: #F07C0A;
}

.footer__inner {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px 0;
}

.copyright {
    font-family: 20px;
    font-weight: 400;
    color: #fff;
}


.overlay {
	position: fixed;
	width: 100%;
	height: 100vh;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, .5);
	display: none;
	z-index: 100;
}

.popup {
	position: absolute;
	width: 400px;
	height: 200px;
	left: 50%;
	top: 50%;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;

	transform: translate(-50%, -50%);
	padding: 20px;
	background-color: #FFF;

}

.close-popup {
	position: absolute;
	top: 15px;
	right: 15px;
	width: 23px;
	height: 23px;
	cursor: pointer;
}

.close-popup:before {
	content: '';
	background-color: #000;
	position: absolute;
	height: 1px;
	width: 31px;
	top: 11px;
	left: -4px;
	transform: rotate(-45deg);
}

.close-popup:after {
	content: '';
	background-color: #000;
	position: absolute;
	height: 1px;
	width: 31px;
	top: 11px;
	transform: rotate(45deg);
	left: -4px;
}

.popup__title {
    font-size: 22px;
    font-weight: 400;
}

.popup__text {
    font-size: 15px;
    font-weight: 400;
    color: rgba(0,0,0,.7);
}

/* MEDIA */

@media screen and (max-width: 1340px)
{
    /* Main */

    .main__left 
    {
        width: 600px;
    }

    .main__title 
    {
        font-size: 26px;
    }

    .main__text 
    {
        font-size: 16px;
    }

    .firma__img 
    {
        width: 300px;
        height: 250px;
    }

    .address 
    {
        font-size: 14px;
    }

    /* Machinery */

    .machinery__name 
    {
        font-size: 21px;
        margin-bottom: 10px;
    }
    .machinery__workspace 
    {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .machinery__year 
    {
        font-size: 17px;
    }

}

@media screen and (max-width: 1240px) 
{
    /* Nav */

    .nav__link 
    {
        font-size: 15px;
        margin-left: 20px;
    }

    .nav__link::after 
    {
        top: 23px;
        height: 1.7px;
    }

    /* Main */

    .main__inner 
    {
        align-items: flex-start;
    }

    .main__left 
    {
        width: 550px;
        margin-right: 80px;
    }

    .main__text 
    {
        margin-bottom: 20px;
    }

    /* Kontakt */

    .kontakt__title {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .kontakt__inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        margin: 60px 0;
    }       

    .map__block {
        width: 100%;

        margin-bottom: 40px;
        margin-right: 0;
    }

    .map {
        width: 100%;
        height: 400px;
        border: none;
    }
    
    .realizacje__photo {
        height: 200px;
    }
}

@media screen and (max-width: 1140px)  
{
    /* Nav */

    .nav, .languages 
    {
        display: none;
    }

    .burger__menu 
    {
        display: block;
    }

    /* Main */

    .main__left 
    {
        margin-right: 40px;
    }

    .main__title 
    {
        font-size: 22px;
    }
    .main__text 
    {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Machinery */

    .machinery__title,
    .realizacje__title,
    .kontakt__title 
    {
        font-size: 21px;
    }

    .machinery__title::after,
    .realizacje__title::after,
    .kontakt__title::after 
    {
        top: 50px; left: 50%;
        height: 2px;
    }

    .machinery__content 
    {
        width: 750px;
    }

    .machinery__name 
    {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .machinery__workspace 
    {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .machinery__year 
    {
        font-size: 14px;
    }
    
    .realizacje__photo {
        height: 250px;
    }
}

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

    /* Main */

    .main {
        padding: 100px 0 80px 0;
    }

    /* Realizacje */

    .realizacje__photo {
        width: calc(100% / 2 - 2rem);
        margin: 0 30px 30px 0;

        outline: 2px solid #F07C0A;
    }

    .realizacje__photo:nth-child(2n) {
        margin-right: 0;
    }

    .realizacje__photo:nth-child(3),
    .realizacje__photo:nth-child(9),
    .realizacje__photo:nth-child(15)  
    {
        margin-right: 30px;
    }

}