/* VARIABLES */
:root {
    /* COLORS */
    --header-footer-color: black;
    --first-color: rgb(35, 35, 35);
    --second-color: rgb(45, 45, 45);
    --third-color: rgb(60, 60, 60);
    --fourth-color: orange;
    --text-color: white;
    --popup-color: white;
    --popup-text-color: black;

    /* PROPORTIONS */
    --section-paddingX: 10%;
    --section-paddingY: 50px;
    --header-height: 65px;
}

* {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

h1, h2, h3, p, label, input, textarea {color: var(--text-color);}
h2 {
    font-size: 1.2rem;
    margin-bottom: 25px;
}
h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
img {user-select: none;}
button, input[type="submit"]{
    color: var(--text-color);
    background-color: var(--fourth-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 15px;
}
label {margin-bottom: 5px;}
input, textarea, input:focus{
    background-color: var(--third-color);
    border: none;
    border-radius: 5px;
    outline: none;
    margin-bottom: 15px;
}
textarea{resize: none;}


/* HEADER - NAV*/
header nav {
    position: fixed;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--header-footer-color);
    z-index: 20;
    padding: 0 var(--section-paddingX);
}
header .logo {height: 45px;}

@media screen and (max-width: 235px) {
    header .logo {
        width: 100%;
        height: none;
        object-fit: contain;
    }
}


/* HEADER - BANNER */
header .banner {
    position: relative;
    height: 650px;
    min-height: max-content;
    overflow: hidden;
    margin-top: var(--header-height);
}
header .banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* INDEX - HEADER - BANNER */
header .banner.index .filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
header .banner.index .content {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translateY(-50%) translateX(-50%);
}
header .banner.index .content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}
header .banner.index .content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
header .banner.index .content button {font-size: 1rem;}

@media screen and (max-width: 450px) {
    header .banner.index .content {width: 100%;}
    header .banner.index .content h1 {font-size: 2rem;}
    header .banner.index .content p {font-size: 1rem;}
}
@media screen and (max-width: 160px) {
    header .banner.index {height: 800px;}
}


/* PAGE - HEADER - BANNER */
header .banner.page {height: 500px;}
header .banner.page .content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 600px;
    background-color: var(--second-color);
    transform: translateY(-100%);
    padding: 25px;
}
header .banner.page .content h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

@media screen and (max-width: 616px) {
    header .banner.page .content {
        width: 100%;
    }
}


/* INFORMATION */
.information {
    background-color: var(--first-color);
    padding: var(--section-paddingY) var(--section-paddingX);
}


/* INDEX - INFORMATION */
.information.index p {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
}
.information.index .author {font-size: 0.9rem;}


/* PAGE - INFORMATION */
.information.page {
    display: flex;
    flex-direction: row;
    gap: 50px;
}
.information.page > div:first-child {width: 30%;}
.information.page > div:first-child div {
    background-color: var(--second-color);
    padding: 25px;
}
.information.page > div:last-child {width: 70%;}
.information.page h3 {
    font-size: 2rem;
    margin-bottom: 35px;
}

@media screen and (max-width: 1000px) {
    .information.page {flex-direction: column-reverse;}
    .information.page > div:first-child {width: 100%;}
    .information.page > div:last-child {width: 100%;}
}


/* SERVICES */
.services {
    background-color: var(--second-color);
    padding: var(--section-paddingY) var(--section-paddingX);
}
.services h2 {font-size: 2rem;}
.services .items-conteiner {
    display: flex;
    flex-direction: row;
    gap: 25px;
}
.services .items-conteiner .item {flex: 1 1 0px;}
.services .items-conteiner .item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.services .items-conteiner .item p {
    font-size: 1rem;
    margin-bottom: 15px;
}

@media screen and (max-width: 1000px) {
    .services .items-conteiner  {
        justify-content: center;
        flex-direction: none;
        flex-wrap: wrap;
    }
    .services .items-conteiner .item {
        width: calc(50% - 12.5px);
        flex: none;
    }
    .services .items-conteiner .item:last-child {width: 100%;}
}
@media screen and (max-width: 700px) {
    .services .items-conteiner  {
        justify-content: none;
        flex-direction: column;
        flex-wrap: none;
    }
    .services .items-conteiner .item {width: 100%;}
}


/* LOCATION */
.location {
    height: 450px;
    overflow: hidden;
    position: relative;
    background-color: var(--first-color);
}
.location iframe {
    width: 100%;
    height: 100%;
    -webkit-filter: grayscale(100%) invert(1);
    -moz-filter: grayscale(100%) invert(1);
    -ms-filter: grayscale(100%) invert(1);
    -o-filter: grayscale(100%) invert(1);
    filter: grayscale(100%) invert(1);
}
.location .content {
    position: absolute;
    top: 50%;
    left: var(--section-paddingX);
    min-width: 350px;
    background-color: var(--first-color);
    transform: translateY(-50%);
    padding: 25px 35px;
}
@media screen and (max-width: 1000px) {
    .location {
        height: 572px;
        display: flex;
        flex-direction: column;
        overflow:visible;
    }
    .location iframe {
        height: 450px;
    }
    .location .content {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        transform: translateY(calc(-100%));
        padding: 25px var(--section-paddingX);
    }
}


/* CONTACT */
.contact {
    display: flex;
    flex-direction: row;
    gap: 50px;
    background-color: var(--second-color);
    padding: var(--section-paddingY) var(--section-paddingX);
}
.contact form {flex: 1 1 0px;}
.contact form .items-conteiner {
    display: flex;
    flex-direction: row;
    gap: 15px;
}
.contact form .item {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.contact form input {padding: 10px 15px;}
.contact form textarea {height: 100px;}
.contact form input[type="submit"] {
    float: right;
    padding: 10px 25px;
}
.contact .content {
    flex: 1 1 0px;
    display: flex;
    align-items: center;
}

@media screen and (max-width: 1000px) {
    .contact {flex-direction: column-reverse}
    .contact form {flex: none;}
    .contact .content {flex: none;}
}
@media screen and (max-width: 700px) {
    .contact form .items-conteiner {
        flex-direction: column;
        gap: 0;
    }
}


/* ABOUT */
.about {
    background-color: var(--first-color);
    padding: var(--section-paddingY) var(--section-paddingX);
}
.about p {
    width: 100%;
    column-count: 2;
    column-gap: 25px;
}

@media screen and (max-width: 1000px) {
    .about p {column-count: 1;}
}


/* POPUP */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    background-color: var(--popup-color);
    border-radius: 5px;
    transform: translateY(-50%) translateX(-50%);    
    z-index: 10;
    padding: 50px 25px;
}
.popup.open-popup {
    display: flex;
    flex-direction: column;
}
.popup h3, .popup p {color: var(--popup-text-color)}
.popup p {margin-bottom: 20px;}

@media screen and (max-width: 700px) {
    .popup {width: 90%;}
}


/* FOOTER */
footer {
    background-color: var(--header-footer-color);
    padding: 75px var(--section-paddingX);
}
footer nav {
    display: flex;
    align-items: center;
    background-color: var(--header-footer-color);
    margin-bottom: 25px;
}
footer .logo {height: 50px;}
footer nav .contacts img{
    height: 25px;
    margin-left: 15px;
}
footer nav .contacts img:first-child{margin-left: 0;}
footer nav .contacts {margin-left: auto;}

@media screen and (max-width: 700px) {
    footer .logo {margin-bottom: 25px;}
    footer nav {display: block;}

}
@media screen and (max-width: 323px) {
    footer .logo {
        width: 100%;
        height: none;
        object-fit: contain;
    }
}
@media screen and (max-width: 178px) {
    footer nav .contacts {
        display: flex;
        flex-direction: column;
    }
    footer nav .contacts img{
        align-self: center;
        margin-left: 0;
        margin-bottom: 15px;
    }
    footer nav .contacts img:last-child{margin-bottom: 0;}
}