header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    z-index: 99;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 1px 18px -3px rgba(0, 0, 0, 0.1);
}

.header-placeholder {
    height: 56px;
    width: 100%;
}

@media (min-width: 1024px) {
    .header-placeholder {
        height: 72px;
    }
}

header .container {
    position: relative;
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
}

header .container,
header .header-action {
    display: flex;
    align-items: center;
    top: 0;
    right: 0;
    height: 56px;
}

header .header-action {
    justify-content: center;
    position: absolute;
    width: 82px;
}

header .header-action.nh-burger:focus,
header .header-action.nh-burger:hover {
    background: #E5E5E5;
    cursor: pointer;
}

header .header-action.nh-burger > div {
    position: absolute;
    top: 50%;
    left: 30px;
    width: 22px;
    height: 2px;
    background: #888F9B;
    transition: background 175ms ease;
}

header .header-action.nh-burger > div:after,
header .header-action.nh-burger > div:before {
    content: "";
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    background: #888F9B;
    transition: transform 175ms ease;
    transform-origin: center
}

header .header-action.nh-burger > div:before {
    top: -8px;
}

header .header-action.nh-burger > div:after {
    bottom: -8px;
}

header.active .header-action.nh-burger > div {
    background: transparent;
}

header.active .header-action.nh-burger > div:before {
    top: 0;
}

header.active .header-action.nh-burger > div:after {
    bottom: 0;
}

header.active .header-action.nh-burger > div:before {
    transform: rotate(45deg);
}

header.active .header-action.nh-burger > div:after {
    transform: rotate(-45deg);
}

header .header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    padding-left: 30px;
}

header .header-logo img {
    display: block;
    width: 112px;
    height: 24px;
}

header nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 100vh;
    background: #fff;
    box-shadow: 0 9px 8px -8px rgba(0, 0, 0, .1) inset;
    transform: translateY(-200%);
    transition: transform .8s ease;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 80px 0 0;
}

header.active nav {
    transform: translateY(0);
}

header nav a,
header .list {
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    padding-bottom: 20px;
    font-size: 20px;
    font-weight: 500;
    color: #141F34;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    transition: all .3s ease;
}

header .btn {
    font-weight: 600;
    font-size: 14px;
    line-height: 16px;
    padding: 15px 25px;
    border-radius: 4px;
    width: fit-content;
    height: 50px;
    box-sizing: border-box;
    cursor: pointer;
    outline: none;
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    margin: 0 auto;
    text-align: center;
    text-decoration: none;
    transition: background 250ms ease, color 250ms ease;
}

header ul {
    list-style: none;
}

header .nav-actions {
    display: grid;
    gap: 15px 10px;
    padding: 60px 30px;
    max-width: 100%;
    height: auto;
    width: fit-content;
    margin: 0 auto;
}

header .list:hover,
header .back:hover {
    color: #1766FF;
}

header .list {
    margin-left: 15px;
}

header .list svg {
    margin-left: 15px;
}

header .list svg:first-child,
header .innerList {
    display: none;
}

header .nav-right {
    box-shadow: 0 9px 8px -8px rgba(0, 0, 0, .1) inset;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .5s ease;
    transform: translateX(100%);
    background: #fff;
    padding: 120px 0;
}

header .nav-right.secondary {
    transform: translateX(0);
}

header .nav-right ul {
    display: block;
    padding-left: 0;
}

header .back {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 80px;
    margin-left: -35px;
}

header .back svg {
    margin-right: 15px;
}

header .hover-icon {
    position: relative;
    cursor: pointer;
}

header .hover-text {
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background-color: #333;
    font-size: 12px;
    color: #fff;
    border-radius: 5px;
    white-space: nowrap;
    transition: .3s;
}

header .hover-icon:hover .hover-text {
    opacity: .8;
    transition-delay: .5s;
}

@media (min-width: 668px) {
    header .btn {
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    header {
        height: 72px;
        width: 100%;
    }

    header .container {
        padding: 0 20px;
        height: 100%;
    }

    header .header-action {
        display: none;
    }

    header .header-logo {
        padding-left: 0;
    }

    header .nav-right, .more {
        display: none;
    }

    header nav {
        position: relative;
        flex-direction: row;
        justify-content: flex-end;
        top: 0;
        left: auto;
        max-height: 100%;
        overflow: visible;
        z-index: 1;
        align-items: center;
        transform: translateY(0);
        min-height: 0;
        height: 100%;
        padding: 0;
        box-shadow: none;
    }

    header nav a,
    header .list {
        position: relative;
        padding: 0;
        margin-left: 36px;
        width: auto;
        min-height: 100%;
        height: 100%;
        font-size: 14px;
        transition: color 175ms ease;
    }

    header nav > a:first-of-type {
        margin-top: 0;
    }

    header nav a.active:not(.btn),
    header nav a:not(.btn):hover {
        color: #1766FF;
    }

    header .nav-actions {
        padding: 0;
        width: auto;
        min-height: auto;
        height: auto;
        flex-direction: row;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        margin: 0 0 0 44px;
    }

    header .nav-actions:before {
        display: none;
    }

    header .btn {
        max-width: fit-content;
        width: fit-content;
    }

    header .btn.btn--blue {
        margin-bottom: 0;
    }

    header .innerList {
        display: block;
        position: relative;
    }

    header .header-extra {
        position: relative;
        height: 72px;
        padding-right: 12px;
    }

    header .innerList a:hover:after {
        width: 0;
    }

    header .header-extra:hover .list:after {
        width: 100%;
    }

    header .list {
        margin-left: 36px;
    }

    header .list svg:last-child {
        display: none;
    }

    header .list svg:first-child {
        display: block;
        position: absolute;
        width: 6px;
        top: calc(50% - 2px);
        left: 116%;
        transition: all .3s;
        margin-left: 0;
    }

    header .header-extra:hover .list svg {
        transform: rotate(-180deg);
        fill: #22aae2;
    }

    header .header-extra:hover .innerList {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    header .header-extra:hover .innerList li {
        transform: none;
        opacity: 1;
    }

    header .innerList {
        position: absolute;
        top: 60px;
        left: 0;
        width: 160px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 11px 26px 8px rgba(0, 0, 0, 0.1);
        padding: 24px 36px 24px 0;
        box-sizing: content-box;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s, visibility 0s .3s;
    }

    header .innerList li {
        height: 42px;
        transform: translateY(10px);
        transition: transform .3s;
        opacity: 0;
    }

    header .innerList li:nth-of-type(2) {
        transition-delay: .07s;
    }

    header .innerList li:nth-of-type(3) {
        transition-delay: .14s;
    }

    header .innerList li:nth-of-type(4) {
        transition-delay: .21s;
    }

    header .innerList li:nth-of-type(5) {
        transition-delay: .28s;
    }

    header .innerList li:nth-of-type(6) {
        transition-delay: .35s;
    }

    header.active {
        width: 100%;
    }
}

@media (min-width: 1230px) {
    header .container {
        max-width: 1170px;
        padding: 0;
    }
}
