#menu-icon {
    border: 5px solid transparent;
    margin-bottom: -5px;
    right: -5px;
    z-index: 10;
}

#menu-icon span {
    background: #0097ce;
    border-radius: 2px;
    left: 0;
    position: absolute;
    right: 0;
    transition: .3s;
}


#menu-icon span.line-1 {
    top: 0;
}

#menu-icon span.line-4 {
    bottom: 0;
}

.menu-item {
    transition: opacity .3s, top .3s;
    top: 15px;
    opacity: 0;
}

.menu-item>a:hover {
    background-size: 100% 1px;
}

#header-contact {
    transition: opacity .3s, all .3s;
    transform: translateY(15px);
    opacity: 0;
}

.services .sub-menu .menu-item a {
    background-image: linear-gradient(#ffffff, #ffffff);
}


@media (min-width: 768px) {
    .header-container {
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
        padding: 30px 110px;
        transition: padding .3s;
        background: none;
        transition: .6s;
    }

    .logo {
        width: 200px;
        height: 60px;
        margin-right: 40px;
        transition: margin-right .3s;
        z-index: 10;
    }

    #menu-icon {
        height: 37px;
        transition: height .3s, width .3s;
        width: 42px;
    }

    #menu-icon span {
        height: 3px;
    }

    #menu-icon span.line-2,
    #menu-icon span.line-3 {
        top: 12px;
    }

    #nav-wrap {
        padding: 120px 0;
        right: auto;
        width: 100%;
        z-index: 99;
        left: 0;
        top: 0;
        bottom: 0;
        transition: .6s;
    }

    #nav-wrap #nav {
        padding-bottom: 120px;
        top: 160px;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .wrapper {
        margin-left: auto;
        margin-right: auto;
        max-width: 1360px;
        width: calc(100% - 110px * 2);
    }

    .menu-item>a {
        background-image: linear-gradient(#0097ce, #0097ce);
        background-position: 0 100%;
        background-repeat: no-repeat;
        background-size: 0 1px;
        transition: background-size 0.3s ease-in;
        font-family: 'Lato-Thin', sans-serif;

    }

    .services .sub-menu .menu-item li {
        font-family: 'Lato-Thin', sans-serif;
    }

    #main-menu #menu-main-menu .services .sub-menu {
        -webkit-overflow-scrolling: touch;
        background: #061f40;
        bottom: 0;
        left: calc(-768px);
        overflow: auto;
        padding: calc(120px) 110px 98px 110px;
        position: fixed;
        top: 0;
        transition: left .6s;
        width: 768px;
    }

    .sub-nav-open .header-container {
        left: 768px !important;
    }

    .sub-nav-open #nav-wrap {
        left: 768px !important;
    }

}

@media (max-width: 768px) {
    .header-container {
        left: 0;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 100;
        padding: 20px 35px;
        transition: padding .3s;
        background: none;
        transition: .6s;
    }

    .logo {
        width: 150px;
        height: auto;
        margin-right: 10px;
        transition: margin-right .3s;
        z-index: 10;
    }

    #menu-icon {
        height: 37px;
        transition: height .3s, width .3s;
        width: 42px;
    }

    #menu-icon span {
        height: 3px;
    }

    #menu-icon span.line-2,
    #menu-icon span.line-3 {
        top: 12px;
    }

    #nav-wrap {
        padding: 90px 0;
        right: auto;
        width: 100%;
        z-index: 99;
        left: 0;
        top: 0;
        bottom: 0;
        transition: .6s;
    }

    #nav-wrap #nav {
        padding-bottom: 90px;
        top: 90px;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .wrapper {
        margin-left: auto;
        margin-right: auto;
        max-width: 1360px;
        width: calc(100% - 35px * 2);
    }

    .menu-item>a {
        background-image: linear-gradient(#0097ce, #0097ce);
        background-position: 0 100%;
        background-repeat: no-repeat;
        background-size: 0 1px;
        transition: background-size 0.3s ease-in;

    }

    #main-menu #menu-main-menu .services .sub-menu {
        -webkit-overflow-scrolling: touch;
        background: #061f40;
        bottom: 0;
        left: calc(-320px);
        overflow: auto;
        padding: 80px 30px 80px 30px;
        position: fixed;
        top: 0;
        transition: left .6s;
        width: 320px;
    }

    .sub-nav-open .header-container {
        left: 320px !important;
    }

    .sub-nav-open #nav-wrap {
        left: 320px !important;
    }

}

#menu-icon.active span.line-1,
#menu-icon.active span.line-4 {
    opacity: 0;
}

#menu-icon.active span.line-2 {
    transform: rotate(45deg);
}

#menu-icon.active span.line-3 {
    transform: rotate(-45deg);
}

.invis {
    opacity: 0;
    visibility: hidden;
}

.nav-open .menu-item {
    top: 0px;
    opacity: 1;
}

.nav-open #header-contact {
    transform: translateY(0px);
    opacity: 1;
}

.sub-nav-open #main-menu #menu-main-menu .services .sub-menu {
    left: 0;
}


.btn {
    align-items: center;
    border-style: solid;
    border-width: 1px;
    display: inline-flex;
    font-size: 16px;
    font-weight: 400;
    height: 54px;
    justify-content: center;
    letter-spacing: .02em;
    min-width: 250px;
    padding: 0 40px;
    position: relative;
    transition: background-color .2s, color .2s;
    cursor: pointer;
}

.btn::before {
    content: "";
    position: absolute;
    transition: .2s linear;
    height: 1px;
    width: 0px;
    left: -1px;
    top: -1px;
    transition-delay: .4s;
    background-color: #0097ce;
}

.btn::after {
    content: "";
    position: absolute;
    transition: .2s linear;
    height: 0;
    width: 1px;
    right: -1px;
    top: -1px;
    transition-delay: .6s;
    background-color: #0097ce;
}

.btn span::before {
    content: "";
    position: absolute;
    transition: .2s linear;
    height: 1px;
    width: 0;
    bottom: -1px;
    right: -1px;
    transition-delay: .2s;
    background-color: #0097ce;
}

.btn span::after {
    content: "";
    position: absolute;
    transition: .2s linear;
    height: 0;
    width: 1px;
    bottom: -1px;
    left: -1px;
    transition-delay: 0s;
    background-color: #0097ce;
}

.btn:hover {
    transition-delay: .8s;
    background-color: #0097ce;
}

.btn:hover::before {
    transition-delay: 0s;
    width: calc(100% + 2px);

}

.btn:hover::after {
    transition-delay: .2s;
    height: calc(100% + 2px);
}

.btn:hover span::before {
    transition-delay: .4s;
    width: calc(100% + 2px);
}

.btn:hover span::after {
    transition-delay: .6s;
    height: calc(100% + 2px);
}