header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0
}

header.edit-mode {
    margin-top: 51px
}

header {
    opacity: 1;
    background-color: rgba(255,255,255,.85);
    transition: all .3s ease .3s;
    backdrop-filter: blur(16px);
    border-radius: 0 0 16px 16px
}

header .container {
    flex: 1 1 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative
}

header .container {
    height: 64px;
    padding: 0 16px;
    justify-content: space-between;
    z-index: 2
}

header .logo a {
    display: block
}

header .logo img {
    display: block;
    width: 150px;
    max-width: 100%
}

header .search {
    display: none;
    flex: 1 1 auto;
    position: relative;
    margin: 0 10px 0 22px;
    text-align: right
}

header .search input {
    width: 40px;
    height: 60px;
    font-size: 14px;
    line-height: 24px;
    border: 0 none;
    padding: 12px 0;
    background-color: var(--white);
    display: inline-block;
    position: relative;
    opacity: 0;
    cursor: pointer;
    outline: 0;
    transition: width .5s ease,opacity .2s ease .25s;
    z-index: 3
}

header .search input::placeholder {
    color: transparent
}

header .search>i {
    color: var(--blue-gray);
    font-size: 24px;
    text-align: center;
    height: 40px;
    width: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    left: 100%;
    transform: translateX(-100%);
    transition: left .5s ease,transform .3s linear;
    z-index: 2;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}

header .search>i:hover {
    color: var(--near-black)
}

header .search input:focus,header .search input:valid,header.search-active .search input {
    padding: 14px 32px;
    width: 100%;
    background-color: var(--white);
    cursor: text;
    opacity: 1;
    transition: background-color .3s linear,width .5s ease;
    z-index: 2
}

header .search input:focus::placeholder,header .search input:valid::placeholder,header.search-active .search input::placeholder {
    color: var(--slate-gray)
}

header .search input:focus~i,header .search input:valid~i,header.search-active .search input~i {
    left: 0;
    transform: translateX(-25%);
    cursor: default;
    z-index: 3
}

header .search input:focus~.clear,header .search input:valid~.clear,header.search-active .search input~.clear {
    opacity: 1;
    cursor: pointer;
    z-index: 3
}

header .search .clear {
    position: absolute;
    top: 18px;
    right: 0;
    opacity: 0;
    transition: opacity .3s linear;
    z-index: 1
}

header .search .clear i {
    color: var(--blue-gray);
    background-color: var(--white);
    font-size: 16px;
    padding: 4px;
    margin-right: 10px;
    display: block
}

header nav {
    display: none
}

header nav ul {
    line-height: 1.2;
    text-align: center;
    flex: 1 1 auto;
    display: flex;
    flex-direction: row
}

header nav ul a {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    position: relative
}

header nav li:not(:last-child) {
    margin-right: 24px
}

header nav {
    flex-direction: column;
    justify-content: center;
    z-index: 1
}

header a.ct-link.secondary {
    text-transform: uppercase;
    transition: all .15s ease;
    color: var(--link-color-secondary-default);
    height: 32px;
    line-height: 1.2
}

header nav li a.secondary:hover,header nav li.active a.ct-link.secondary,header nav li.current a.ct-link.secondary {
    color: var(--link-color-secondary-hover);
    box-shadow: 0 2px 0 var(--link-color-secondary-hover)
}

header .tlmenu {
    display: flex;
    flex-direction: row
}

header .tlmenu>i {
    font-size: 24px;
    text-align: center;
    height: 40px;
    width: 40px;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}

header .tlmenu .mobmenu {
    position: relative
}

header .tlmenu .mobmenu:before {
    transform: scale(1);
    transition: all .15s ease
}

header .tlmenu .mobmenu:after {
    content: "\f101";
    opacity: 0;
    position: absolute;
    z-index: -1;
    transform: scale(0);
    transition: all .15s ease
}

header .tlmenu .mobmenu.active:before {
    opacity: 0;
    transform: scale(0)
}

header .tlmenu .mobmenu.active:after {
    opacity: 1;
    transform: scale(1)
}

header .tlmenu .search {
    display: none
}

header .tlmenu a {
    text-decoration: none;
    align-self: center;
    white-space: nowrap;
    outline: 0;
    display: none
}

header .tlmenu a:hover {
    text-decoration: none
}

header .tlmenu .ct-btn+.ct-btn {
    margin-left: 0
}

header .tlmenu .login {
    display: flex
}

header .tlmenu a {
    margin: 0 8px;
    user-select: none;
    -webkit-tap-highlight-color: transparent
}

header .tlmenu a.lang {
    margin-right: 32px;
    height: auto
}

header .tlmenu a.lang.disabled {
    pointer-events: none
}

header .tlmenu a.lang i {
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px
}

header .tlmenu a .ccicon-arrow-down {
    font-size: 16px;
    display: inline-block;
    vertical-align: top;
    margin-top: 3px
}

@media screen and (max-width: 1280px) {
    header {
        order:1
    }
}

@media screen and (min-width: 769px) {
    header {
        max-width:1376px;
        margin: 32px 40px 0
    }

    header.edit-mode {
        margin-top: calc(51px + 32px)
    }

    header .primary .container {
        padding: 0 32px
    }

    header .logo img {
        width: 186px
    }
}

@media screen and (min-width: 1200px) {
    header .primary .logo {
        margin-left:0;
        flex: 0 0 auto;
        transition: transform .15s ease;
        padding-left: 0
    }

    header .logo img {
        width: 186px
    }

    header.search-active nav.topmenu {
        position: absolute;
        opacity: 0
    }

    header nav {
        display: block
    }

    header nav li {
        position: relative;
        display: flex;
        align-items: center;
        transition: all .15s ease
    }

    header nav a {
        opacity: 1;
        transition: opacity .15s ease
    }

    header nav ul a {
        white-space: nowrap
    }

    header .primary nav {
        display: flex
    }

    header .tlmenu {
        margin-right: 0
    }

    header .tlmenu>i {
        margin-right: 16px
    }

    header .tlmenu a:not(.ct-btn) {
        display: block
    }

    header .tlmenu .mobmenu {
        display: none
    }
}

@media screen and (min-width: 1472px) {
    header {
        margin-left:auto;
        margin-right: auto
    }
}
