@font-face {
    font-family: "Circa Light";
    src: url("../fonts/circa-light.otf")
}

@font-face {
    font-family: "Merriweather Light";
    src: url("../fonts/merriweather-light.ttf")
}
@font-face {
    font-family: "lato-Black";
    src: url("../fonts/lato/Lato-Black.ttf")
}
@font-face {
    font-family: "Lato-Bold";
    src: url("../fonts/lato/Lato-Bold.ttf")
}
@font-face {
    font-family: "Lato-Light";
    src: url("../fonts/lato/Lato-Light.ttf")
}
@font-face {
    font-family: "Lato-Medium";
    src: url("../fonts/lato/Lato-Medium.ttf")
}
@font-face {
    font-family: "Lato-Regular";
    src: url("../fonts/lato/Lato-Regular.ttf")
}
@font-face {
    font-family: "Lato-Thin";
    src: url("../fonts/lato/Lato-Thin.ttf")
}

body, html
{
    /*background-color: #020c33;*/
    background:rgb(2,12,48);
    color: #fff;
    font-family: Lato-Thin;
}

body.lock{
    overflow: hidden !important;
}

h2
{
    font-family: "Circa Light";
    font-size: 35px;
    text-transform: uppercase;
}

.section:last-child{
    padding-top: 50px;
}

#header
{
    display: none;
}

#burger
{
    position: fixed;
    right:50px;
    top:50px;
    width:50px;
    height: 50px;
    z-index: 4;
}

#burger .line
{
    height: 2px;
    background-color: #fff;
    margin-bottom: 10px;
    float:right;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#burger .line:nth-child(1)
{
    width: 50%;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#burger .line:nth-child(2)
{
    width: 100%;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#burger .line:nth-child(3)
{
    width: 75%;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#burger:hover
{
    cursor: pointer;
}

#burger:hover .line,#burger.active .line
{
    width:100%;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#burger.active
{
    -webkit-transition: all 1s;
    -moz-transition: all 1s;
    -ms-transition: all 1s;
    -o-transition: all 1s;
    transition: all 1s;
    -webkit-transform: rotate(15deg);
    -moz-transform: rotate(15deg);
    -ms-transform: rotate(15deg);
    -o-transform: rotate(15deg);
    transform: rotate(15deg);
}

#burger.active:hover
{
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
}

#burger.active .line:nth-child(1)
{
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotate(-135deg) translate(-8px, -9px);
    -moz-transform: rotate(-135deg) translate(-8px, -9px);
    -ms-transform: rotate(-135deg) translate(-8px, -9px);
    -o-transform: rotate(-135deg) translate(-8px, -9px);
    transform: rotate(-135deg) translate(-8px, -9px);
}


#burger.active .line:nth-child(2)
{
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    opacity: 0;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}


#burger.active .line:nth-child(3)
{
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotate(135deg) translate(-8px, 8px);
    -moz-transform: rotate(135deg) translate(-8px, 8px);
    -ms-transform: rotate(135deg) translate(-8px, 8px);
    -o-transform: rotate(135deg) translate(-8px, 8px);
    transform: rotate(135deg) translate(-8px, 8px);
}

#menu
{
    position: fixed;
    left:0;
    top:0;
    background-color: #020c33;
    text-align: center;
    z-index: 3;
    height: 100vh;
    width: 100vw;
}

#menu a
{
    color: #fff;
    font-family: Lato-Thin;
    font-weight: 100;
    font-size: 2.5em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    transition: .3s;
    position: relative;
}
#menu a:after{
    content: '';
    position: absolute;
    width: 0px;
    height: 2px;
    background: #7eb0ad;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
}
#menu a:before{
    content: '';
    position: absolute;
    width: 0px;
    height: 2px;
    background: #7eb0ad;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    transition: .3s;
}

#menu a:hover::after {
    width: 40px;
    right: -50px;
}
#menu a:hover::before {
    width: 40px;
    left: -50px;
}

#menu a:active
{
    color:#fff;
    text-decoration: underline;
}

#menu .links
{
    width:100%;
    top:50%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    transform: translateY(-50%);
    position: absolute;
}

#logo
{
    position: fixed;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    top:50%;
    left:50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 180px; /* Need a specific value to work */
}

#logo:before
{
    content: '';
    position: absolute;
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -ms-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
    width: 120%;
    height: 100%;
    left: -12%;
    right: -10%;
    top: 5px;
    border: 6px #fff solid;
    border-radius: 35px;
    opacity: 1;
}

#logo.minimize:before
{
    -webkit-transition: opacity 1s;
    -moz-transition: opacity 1s;
    -ms-transition: opacity 1s;
    -o-transition: opacity 1s;
    transition: opacity 1s;
    opacity:0 !important;
}

#logo.minimize
{
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: translate(0%, 0%) scale(0.5);
    -moz-transform: translate(0%, 0%) scale(0.5);
    -ms-transform: translate(0%, 0%) scale(0.5);
    -o-transform: translate(0%, 0%) scale(0.5);
    transform: translate(0%, 0%) scale(0.5);
    left:15px !important;
    top:15px !important;
}

.next
{
    position: absolute;
    bottom:45px;
    width:100%;
    text-align: center;
    text-transform: lowercase;
    opacity: 0;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition: opacity 0.5s;
    transition: opacity 0.5s;
}
.prev{
    position: absolute;
    top:45px;
    width:100%;
    text-align: center;
    text-transform: lowercase;
    opacity: 0;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition: opacity 0.5s;
    transition: opacity 0.5s;
}
.next a{
    color: #fff;
    text-decoration: none;
}
.prev a{
    color: #fff;
    text-decoration: none;
}
.prev:after
{
    content: '';
    position: absolute;
    background-color: #fff;
    width: 1px;
    top: -45px;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 30px;
}
.next:after
{
    content: '';
    position: absolute;
    background-color: #fff;
    width: 1px;
    bottom: -45px;
    left: 0;
    right: 0;
    margin: 0 auto;
    height: 30px;
}
#main-section .next::before{
    content: '';
    position: absolute;
    bottom: -44px;
    left: 0;
    right: 0;
    margin: auto;
    border: solid #FFFFFF;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
    width: 0;
    transform: rotate(45deg);
}

.section.active .next
{
    opacity: 1;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition: opacity 0.5s;
    transition: opacity 0.5s;
}
.section.active .prev
{
    opacity: 1;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

#main-section
{

}

#about-section
{
    text-align: center;
}

#about-section .about-text
{
    width: 75%;
    margin: 30px auto 30px auto;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-evenly;
}
#about-section .about-text > div{
    width: 25%;
}
@media (max-width: 768px){
    #about-section .about-text{
        flex-flow: column nowrap;
    }
    #about-section .about-text > div{
        width: 100%;
        margin-top: 30px;
    }
}
#specs-section
{
    text-align: center;
}

#specs-section .row
{
    width:100%;
    float:left;
    text-align: center;
    margin: 15px auto;
}

#specs-section .item
{
    width:200px;
    display: inline-block;
}

#specs-section .item .icon
{
    width:70px;
    height: 70px;
    background: no-repeat center center;
    background-size: contain;
    margin: 15px auto;
}

#cases-section .owl-carousel .owl-item
{
    height: 500px;
}

#cases-section .item {
    perspective: 1000px;
    width: 800px;
    height: 100%;
    margin: 0 auto;
    cursor: pointer;
}

#cases-section .item .front-card
{
    background: no-repeat center center;
    background-size: cover;
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    transition-delay: 0.5s;
}

#cases-section .item .back-card
{
    background-repeat: no-repeat!important;
    background-size: cover!important;
    background-color: #020c33;
    width: 100%;
    height: 100%;
    text-align: center;
    position: absolute;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    -webkit-transform: rotateX(-90deg);
    -moz-transform: rotateX(-90deg);
    -ms-transform: rotateX(-90deg);
    -o-transform: rotateX(-90deg);
    transform: rotateX(-90deg);
}
.item.hover_no{
    pointer-events: none;
}
#cases-section .item .back-card p
{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 100px;
}

#cases-section .item .back-card .title
{
    font-family: "Circa Light";
    font-size: 35px;
    text-transform: uppercase;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width:100%;
}

#cases-section .item .black-light
{
    width: 100%;
    height: 100%;
   /* background-color: rgba(0,0,0,0.7);*/
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#cases-section .item:hover .black-light
{
   /* background-color: rgba(0,0,0,0.5);*/
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#cases-section .active .item:hover .black-light
{
   /* background-color: rgba(0,0,0,0.4);*/
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#cases-section .active .item.active .front-card
{
    -webkit-transform: rotateX(90deg);
    -moz-transform: rotateX(90deg);
    -ms-transform: rotateX(90deg);
    -o-transform: rotateX(90deg);
    transform: rotateX(90deg);
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}


#cases-section .active .item.active .back-card
{
    -webkit-transform: rotateX(0deg);
    -moz-transform: rotateX(0deg);
    -ms-transform: rotateX(0deg);
    -o-transform: rotateX(0deg);
    transform: rotateX(0deg);
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    transition-delay: 0.5s;

}


#cases-section .active .item:hover .black-light
{
    background-color: rgba(0,0,0,0.9);
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}
#cases-section .active .item:hover .title
{
    opacity: 1;
}
#cases-section .item .title
{
    font-family: "Circa Light";
    font-size: 35px;
    text-transform: uppercase;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width:100%;
    transition: .5s;
    /*background: #323233;*/
    opacity: 0;
}

#cases-section .owl-dots
{
    text-align: center;
}

#cases-section .owl-dots .owl-dot
{
    background-color: #787878;
    height: 8px;
    width: 8px;
    border-radius: 100%;
    margin: 0 15px 0 15px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}


#cases-section .owl-dots .owl-dot:hover
{
    height: 12px;
    width: 12px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#cases-section .owl-dots .owl-dot.active
{
    background-color: #ffffff;
    height: 12px;
    width: 12px;
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

#cases-section .owl-arrow
{
    width: 64px;
    height: 9px;
    position: relative;
    background: url('../i/slider-arrow.png') center center no-repeat;
    background-size: contain;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition: opacity 0.5s;
    transition: opacity 0.5s;
    opacity: 1;
}

#cases-section .owl-arrow.owl-left
{
    
}

#cases-section .owl-arrow.owl-left:after
{
    content:'Назад';
    font-family: "Merriweather Light";
    text-transform: lowercase;
    position: absolute;
    left:75px;
    top: -7px;
}

#cases-section .owl-arrow.owl-right
{
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

#cases-section .owl-arrow.owl-right:after
{
    content:'Вперед';
    font-family: "Merriweather Light";
    text-transform: lowercase;
    position: absolute;
    left:75px;
    top: -4px;
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

#cases-section .owl-next,#cases-section .owl-prev
{
    position: absolute;
}

#cases-section .owl-next
{
    right: 25px;
}

#cases-section .owl-prev
{
    left: 25px;
}

#cases-section .owl-nav, #cases-section .owl-dots
{
    margin-top: 25px;
}

#cases-section .disabled .owl-arrow
{
    opacity: 0.3;
    -webkit-transition: opacity 0.5s;
    -moz-transition: opacity 0.5s;
    -ms-transition: opacity 0.5s;
    -o-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

#contacts-section .container
{
    max-width: 1100px;
    margin: 0 auto;
}

#contacts-section .row
{
    width:100%;
    margin-bottom: 25px;
    float:left;
    text-align: left;
}

#contacts-section .item
{
    width: calc(50% - 50px);
    text-align: left;
    display: inline-block;
}

#contacts-section form
{
    width:100%;
}

#contacts-section .textarea-wrapper
{
    width:100%;
    position: relative;
}

#contacts-section textarea
{
    font-size: 15px;
    padding: 25px;
    width:calc(100% - 50px);
    border:none;
}

#contacts-section .textarea-wrapper:after
{
    content: '';
    position: absolute;
    left: -25px;
    top: -25px;
    width: 50px;
    height: 50px;
    background-color: #020c33;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#contacts-section textarea::placeholder
{
    color:#242c4e;
}

#contacts-section button
{
    z-index: 2;
    position: absolute;
    background-color: #020c33;
    color:#fff;
    text-transform: uppercase;
    padding: 15px;
    right:-2px;
    bottom:0;
    font-family: "Circa Light";
    font-size: 15px;
    border:none;
    cursor: pointer;
    outline: none;
}


#contacts-section button:after
{
    content: '';
    position: absolute;
    left: -15px;
    top: -15px;
    width: 30px;
    height: 30px;
    background-color: #fff;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

#contacts-section a
{
    color:#fff;
    text-decoration: none;
}

#contacts-section a:hover
{
    color:#fff;
    text-decoration: underline;
}

#contacts-section a:active
{
    color:#fff;
    text-decoration: underline;
}

#contacts-section .row .item:nth-child(even)
{
    padding-left: 50px;
}
.modal {
    width: 300px;
    position: fixed;
    top: 50%;
    box-sizing: border-box;
    left: 50%;
    display: flex;
    flex-direction: column;
    height: 150px;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 0;
    background: #fff;
    color: #020c33;
    border-radius: 5px;
    z-index: 100;
    transform: translateX(-50%) translateY(-50%);
}
.modal .text{
    text-align: center;
    font-size: 20px;
}
.modal .cross {
    width:30px;
    height: 30px;
    background: url("../i/cross.png")no-repeat center;
    background-size:cover;
    position: absolute;
    right: 0;
    top: 0;
    cursor: pointer;
}
.modal .button{
    color: #020c33;
    text-decoration: none;
    text-align: center;
    display: block;
    margin: 20px 0 10px;
    font-family:Lato-Medium ;
}
@media (max-width: 1170px) {


    #cases-section .owl-carousel .owl-item {
        height: 400px!important;
    }


    .item{
        width: 600px!important;
    }


}
@media (max-width: 950px) {


    #cases-section .owl-carousel .owl-item {
        height: 300px!important;
    }


    .item {
        width: 400px!important;
    }


}
@media (max-width: 768px) {
    .section{
        padding-top: 120px;
    }
    #menu a {
        font-size: 1.5em;
    }
    #cases-section .item .title {
        font-size: 20px;
    }
    h2
    {
        font-size: 30px;
        text-align: center;
    }

    #logo.minimize
    {
        left:0px !important;
        top:-17px !important;
    }

    #contacts-section .item
    {
        width: calc(100% - 100px);
        padding-left: 50px;
        margin-bottom: 25px;
    }

    #burger {
        top: 25px;
    }
    #main-section .next
    {
        display: none;
    }

    #header
    {
        display: block;
        position: fixed;
        width: 100%;
        height: 70px;
        background:rgb(2,12,48);
        z-index: 3;
    }


    #cases-section .item .back-card p
    {
        padding: 35px;
        font-size: 13px;
        height: auto;
        padding-top: 50px;
    }

    #cases-section .item .back-card .title
    {
        font-family: "Circa Light";
        font-size: 20px;
        text-transform: uppercase;
        position: relative;
        margin-top: 25px;
        width:100%;
    }
}

@media (max-height: 740px) {
    #cases-section .owl-carousel .owl-item {
        height: 400px!important;
    }
    .prev {
        position: absolute;
        top: 25px;
        width: 100%;
        text-align: center;
        text-transform: lowercase;
        opacity: 0;
        -webkit-transition: opacity 0.5s;
        -moz-transition: opacity 0.5s;
        -ms-transition: opacity 0.5s;
        -o-transition: opacity 0.5s;
        transition: opacity 0.5s;
    }
    .prev:after {
        content: '';
        position: absolute;
        background-color: #fff;
        width: 1px;
        top: -20px;
        left: 0;
        right: 0;
        margin: 0 auto;
        height: 17px;
    }
    #cases-section .item {
        perspective: 1000px;
        width: 650px;
        height: 100%;
        margin: 0 auto;

    }

}

@media (max-width: 450px) {

    #cases-section .owl-carousel .owl-item {
        height: 200px!important;
    }


    .item {
        width: 335px!important;
    }

    #contacts-section .item{
        padding-left: 30px;
    }

}
.arrow-down{
    width: 4px;
    height: 35px;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
    background-color: #FFFFFF;
    z-index: 1;
    display: none;
}
.arrow-down::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: -5px;
    right: 0;
    margin: auto;
    border: solid #FFFFFF;
    border-width: 0 5px 5px 0;
    display: inline-block;
    padding: 5px;
    width: 0;
    transform: rotate(45deg);
}
.arrow-link{
    display: none;
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 45px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}
.about-text b{
    font-family: 'LatoBold';
    display: block;
}
@media (max-width: 768px){
    .arrow-down{
        display: block;
    }
    .arrow-link{
        display: block;
    }
}

@media (max-width: 768px){
    .prev, .next{
        display: none;
    }
}

#cases-section{
    padding-top: 0;
}

#cases-section h2{
    margin: 0;
}