/****************************************
ROOT
****************************************/
html, body {
    height: 100%;
}

.root {
    position: relative;
    height: 100%;
    padding: 30px 35px;
    box-sizing: border-box;
    color: white;
}

/****************************************
HEADER
****************************************/

.header-index {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.header-logo {
    font-size: 38px;
    line-height: 0.9;
    width: 200px;
    white-space: nowrap;
}

.header-nav-index {
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 500;
    width: 550px;
    display: flex;
    justify-content: space-between;
}

/****************************************
COVER + VIDEO
****************************************/

.coverTitleBlock {
    width: 90%;
    max-width: 1400px;
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    color: white;
    text-align: center;
    top: 50%;
    left: 50%;
    z-index: 10;
    opacity: 0;
}
  
.coverTitleBlock .title {
    font-size: 180px;
    margin-top: 30px;
    line-height: 0.9;
    position: relative;
}

.rightCornerCoverTitle .title {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 38px;
    line-height: 0.9;
    width: 200px;
    text-align: right;
}

.bg {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 600px;
    width: auto;
    height: 100%;
    overflow: hidden;
    z-index: -99;
}

.video {
    position: absolute;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    overflow: hidden;
    zoom: 0.4;
    z-index: 2;
}

.video-index {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
}

.videoCover-index {
    position: relative;
    color: white;
    width: 100%;
    min-height: 600px;
    height: 100vh;
    /*z-index: 0;*/
}

.video-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url(../images/bg/cover.jpg);
    z-index: -101;
    top: 0;
}

.video-colorLayer {
    width: 100%;
    height: 100%;
    top: 0;
    -webkit-animation: fromWhite 3s;
    animation: fromWhite 3s;
    /*background-color: rgba(0, 0, 0, .4);*/
    z-index: 4;
    background: -moz-linear-gradient(top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.4) 100%);
    background: -webkit-linear-gradient(top, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 80%,rgba(0,0,0,0.4) 100%);
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 80%,rgba(0,0,0,0.4) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66000000', endColorstr='#66000000',GradientType=0 );
}

/****************************************
FOOTER
****************************************/

.c {
    position: absolute;
    z-index: 1;
    bottom: 30px;
    line-height: 1.3;
    max-width: 300px;
    font-family: 'Helvetica Neue', 'Arial', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

.kruzhokLink {
    border-bottom: 1px solid white;
}

.white {
    color: white;
    border-color: white;
}

.black {
    color: black;
    border-color: black;
}

/****************************************
MEDIA QUIRIES
****************************************/

@media (max-width: 1490px) {

}

@media (max-width: 1200px) {
    .coverTitleBlock .title {
        font-size: 120px;
        margin-top: 30px;
    }
}

@media (max-width: 1024px) {
    .video-index {
        display: none;
    }

    .video-layer {
        background-image: url(../images/bg/mobile-index-bg.jpg);
    }
}

@media (max-width: 801px) {
    .header-nav-index {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .header-index {
        flex-direction: column-reverse;
        justify-content: flex-start;
        width: 100%;
    }

    .header-nav-index {
        font-size: 12px;
        width: 100%;
    }

    .header-logo {
        font-size: 36px;
        line-height: 0.9;
        width: 200px;
        margin-top: 30px;
    }

    .coverTitleBlock .title {
        font-size: 84px;
        margin-top: 30px;
    }

    .rightCornerCoverTitle .title {
        font-size: 36px;
        line-height: 0.9;
        width: 200px;
    }

    .c {
        font-size: 10px;
        line-height: 1.4;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header-nav-index {
        font-size: 10px;
    }

    .root {
        padding: 15px 25px;
        box-sizing: border-box;
        color: white;
    }

    .header-logo {
        font-size: 24px;
        width: 100px;
        line-height: 1;
        margin-top: 20px;
    }

    .rightCornerCoverTitle .title {
        font-size: 24px;
        width: 100px;
        line-height: 1;
        bottom: 20px;
    }

    .c {
        bottom: 20px;
    }
}

@media (max-width: 360px) {
    .coverTitleBlock .title {
        font-size: 60px;
        margin-top: 20px;
    }

    .header-nav-index {
        font-size: 8px;
    }

    .bg {
        left: 0;
        min-width: 320px;
    }
}

/****************************************
ANIMATION
****************************************/

.videoCover, .bg {
    background-image: none !important;
    background-color: #DADADA;;
}

.video, .video-index, .overlay {
    -webkit-animation: fadeIn 3s;
    animation: fadeIn 3s;
}

.coverTitleBlock {
    -webkit-animation: fadeOut 3s;
    animation: fadeOut 3s;
}

.rightCornerCoverTitle {
    -webkit-animation: fadeIn 3s;
    animation: fadeIn 3s;
}

@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

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

    70% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@-webkit-keyframes fadeOut {
    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    99% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;
    }

    99% {
        opacity: 0;
        visibility: hidden;
    }
}

@-webkit-keyframes fromWhite {
    1% {
        background-color: #dadada;
    }

    70% {
        background-color: #dadada;
    }

    99% {
        background-color: rgba(0, 0, 0, .4);
        background: -moz-linear-gradient(top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.4) 100%);
        background: -webkit-linear-gradient(top, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 80%,rgba(0,0,0,0.4) 100%);
        background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 80%,rgba(0,0,0,0.4) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66000000', endColorstr='#66000000',GradientType=0 );
    }
}

@keyframes fromWhite {
    0% {
        background-color: #dadada;
    }

    70% {
        background-color: #dadada;
    }

    99% {
        background-color: rgba(0, 0, 0, .4);
        background: -moz-linear-gradient(top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.4) 100%);
        background: -webkit-linear-gradient(top, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 80%,rgba(0,0,0,0.4) 100%);
        background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%,rgba(0,0,0,0) 20%,rgba(0,0,0,0) 50%,rgba(0,0,0,0) 80%,rgba(0,0,0,0.4) 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#66000000', endColorstr='#66000000',GradientType=0 );
    }
}