html{ 
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

::selection{
    color: #181818;
    background-color: #4fc4cf;
}

header{
    position: absolute;
    display: flex;
    justify-content: center;
    width: 100%;
    height: 80px;
    background-color: transparent;
    z-index: 10;
    user-select: none;
    transition: color .5s ease;
}

header.fixed{
    position: fixed;
    background-color: rgba(0, 0, 0, 0.5);
    transition: color .5s ease;
}

a { text-decoration: none; }

.header-row{
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.header-row h2{ color: #4fc4cf; }

.header-nav{
    margin: 0 10px;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background-color: transparent;
    border: 2px solid #4fc4cf;
    border-radius: 12px;
    cursor: pointer;
    transition: all .8s ease;
}

.header-nav:hover{
    color: #000;
    background-color: #4fc4cf;
    transition: all .5s ease;
}

.header-video {
    position: relative;
    width: 100%;
    height: 100vh;
    user-select: none;
}

.header-video video{
    display: inline-block;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    filter: brightness(50%);
}

.video-caption{
    position: absolute; 
    top: 15%; 
    left: 0;
    text-align: center; 
    width: 100%;
    z-index: 5;
}

.video-caption h2{
    font-size: 68px;
    font-weight: 500;
    color: #4fc4cf;
    animation-name: slideFromTop;
    animation-timing-function: ease;
    animation-duration: 2.5s;
}

.video-caption p {
    font-size: 30px;
    letter-spacing: .15rem;
    color: #fff;
}

.video-caption p{
    animation-name: slideFromRight;
    animation-timing-function: ease;
    animation-duration: 3s;
}

.video-caption p:last-child{
    animation-name: slideFromLeft;
    animation-timing-function: ease;
    animation-duration: 3s;
}

@keyframes slideFromTop{
    0%{
        opacity: 0;
        transform: translateY(-20%);
    }
    100%{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFromLeft{
    0%{
        opacity: 0;
        transform: translateX(-20%);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromRight{
    0%{
        opacity: 0;
        transform: translateX(50%);
    }
    100%{
        opacity: 1;
        transform: translateX(0);
    }
}

.main{ overflow: hidden; }

.main-h3{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.main-h3 h3{
    position: relative;
    text-align: center;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 52px;
    color: #4fc4cf;
}

.main-h3 h3::after{
    content: "";
    position: absolute;
    display: block;
    height: 5px;
    width: 100%;
    border-radius: 300px;
    background-color: #181818;
}

.container{
    display: flex;
    flex-direction: column;
    padding: 10px 90px;
}

.main-row{
    display: flex;
    width: 100%;
    max-height: 600px;
    margin: 30px;
}

.main-row:nth-child(odd){
    opacity: 0;
    transform: translateX(-10%);
    transition: all 1s ease;
}

.main-row:nth-child(even){
    opacity: 0;
    transform: translateX(10%);
    transition: all 1s ease;
}

.main-row.active{
    opacity: 1;
    transform: translateX(0);
}

.row-image{
    width: 50%;
    max-height: 600px;
}

.row-image:nth-child(odd){
    margin-right: 50px;
}

.row-image:nth-child(even){
    margin-left: 50px;
}

.row-image img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.row-caption{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 50%;
}

.row-caption h3 {
    margin-top: 70px;
    font-size: 50px;
    font-weight: 500;
}

.row-caption p {
    margin-top: 70px;
    font-size: 20px;
    letter-spacing: .15em;
    font-weight: 500;
}

.pb50 { padding-bottom: 50px;}

.footer{
    background-color: #181818;
    width: 100%;
    height: auto;
    padding-top: 90px;
    opacity: 0;
    transform: translateY(-10%);
    transition: all 1s ease;
}

.footer.active{
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

.footer-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: start;
    padding: 10px 90px;
}

.footer-adress{
    width: 25%;
}

.footer-adress h3,
.footer-adress p {
    color: #fff;
}

.footer-map{
    width: 50%;
}

.map{
    border: 0;
    width: 100%;
    height: 250px;
}

.footer-contacts{
    width: 25%;
    text-align: end;
}

.footer-contacts a{
    text-decoration: none;
    color: #fff;
}

.footer-container-mobile{

    display: none;
}

@media (max-width: 1900px){

    .video-caption p { font-size: 24px; }

    .row-caption h3 { margin-top: 35px; }

    .row-caption p {
        margin-top: 10px;
        font-size: 16px;
    }
}

@media (max-width: 1500px) {

    .video-caption p { font-size: 20px; }

    .row-caption h3 { font-size: 40px; }

    .row-caption p { font-size: 14px; }

    .footer-container { padding: 10px 55px; }

}

@media (max-width: 1300px) {
    .main-h3 h3 {
        font-size: 44px;
        margin: 0;
    }

    .container { padding: 10px 10px;}

    .main-row { max-height: 100%; }

    .main-row:nth-child(odd){
        flex-direction: column-reverse;
        align-items: center;
        margin: 0;
    }

    .main-row:nth-child(even){
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    .main-row .row-image {
        margin: 20px 0 20px 0;
    }

    .footer-container { padding: 10px 35px; }

    .footer-adress { padding: 0 10px; }

    .footer-contacts { padding: 0 10px; }

}

@media (max-width: 1000px) {
    .video-caption h2{ font-size: 64px;}

    .video-caption p { font-size: 22px; }

    .main-h3 h3 { font-size: 36px; }

    .row-caption h3 { font-size: 34px; }

    .row-caption { width: 100%;}

    .row-image { width: 100%; }

    .row-caption p { font-size: 14px; }

    .footer-container { padding: 10px 25px; }

    .footer-adress { padding: 0 10px; }

    .footer-contacts { padding: 0 10px; }

    .footer-mail,
    .footer-tel { font-size: 14px; }
}

@media (max-width: 850px) {

    .header-nav { font-size: 14px; }

    .video-caption h2 { font-size: 60px; }

    .video-caption p { font-size: 20px; }

    .footer-container { display: none; }

    .footer-container-mobile {

        display: flex;
        flex-direction: column;
    }

    .footer-links {
        display: flex;
        align-items: center;
        justify-content: space-around;
        padding-bottom: 20px;
    }

    .footer-container-mobile .footer-map {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 670px) {

    header { height: 60px; }

    .header-row h2 { font-size: 20px; }

    .header-nav { font-size: 12px;}

    .video-caption h2 { font-size: 50px; }

    .video-caption p { font-size: 16px;}

    .footer-container-mobile .footer-links { justify-content: flex-start; }

    .footer-container-mobile .footer-adress { width: 50%; }

    .footer-container-mobile .footer-contacts { width: 50%; }
}

@media (max-width: 585px) {

    .main-h3 h3 { font-size: 32px; }
}

@media (max-width: 525px) {

    .video-caption h2 { font-size: 44px; }

    .video-caption p { font-size: 14px; }

    .footer-map { padding-bottom: 20px; }
}

@media (max-width:380px) {

    .header-row h2 { font-size: 16px; }

    .footer-container-mobile .footer-adress h3,
    .footer-adress p,
    .footer-tel,
    .footer-mail { font-size: 12px; }

}

@media (max-width: 350px) {

    .video-caption h2 { font-size: 36px; }

    .header-nav { margin: 0 5px; }

    .row-caption p { font-size: 13px; }
}

@media (max-width: 325px) {
    .header-row h2 { font-size: 15px; }

    .header-nav {
        font-size: 10px;
        padding: 8px;
    }

    .footer-container-mobile .footer-tel,
    .footer-mail { font-size: 11px; }
}

@media (max-width: 280px) {

    .header-nav { margin: 0 3px;}
}