#theader { z-index: 995; position: absolute; top: 0; left: 0; width: 100%; height: 140px; }

#theader .top { height: 40px; background-color: #181d62; }
#theader .top .contwrap { height: 100%; }
#theader .top .topnav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: right; font-weight: 500; font-size: 16px; color: #fff; height: 100%; }
#theader .top .topnav * { font-weight: inherit; font-size: inherit; color: inherit; }
#theader .top .topnav a { display: inline-flex; flex-wrap: nowrap; align-items: center; margin-left: 18px; }
#theader .top .topnav a img { display: inline-block; margin-right: 5px; width: 14px; }

#theader .bottom { height: calc(100% - 40px); border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
#theader .bottom .contwrap { height: 100%; }

#theader .bottom .logo { display: block; height: 100%; float: left; writing-mode: vertical-lr; text-align: center; }
#theader .bottom .logo img { display: inline-block; width: 320px; }

#theader .bottom nav { position: relative; left: 23px; display: block; float: right; height: 100%; }
#theader .bottom nav .menu1 { display: flex; flex-wrap: nowrap; height: 100%; }
#theader .bottom nav .menu1 > li { position: relative; height: 100%; }
#theader .bottom nav .menu1 > li > a { position: relative; display: block; padding: 0 23px; height: 100%; text-align: center; }
#theader .bottom nav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: inline-block; font-weight: 600; font-size: 20px; color: #fff; }

#theader .bottom nav .menu1 > li > a::after { display: block; content: ''; z-index: 1; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px; width: 0; height: 2px; background-color: #181d62; transition: width 0.3s; }
#theader .bottom nav .menu1 > li:hover > a::after { width: 100%; }

#theader.scrollh .bottom { background-color: rgba(0, 0, 0, 0.8); }

.headerblock { height: 40px; }

#theader nav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; background-color: rgba(0, 0, 0, 0.7); border-radius: 0 0 10px 10px; }
#theader nav .menu1 .menu2 a { display: block; padding: 15px 5px; text-align: center; }
#theader nav .menu1 .menu2 a span { position: relative; display: inline-block; font-size: 15px; color: #fff; line-height: 1.35; }
#theader nav .menu1 .menu2 a span::after { display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; width: 0; height: 2px; background-color: #225ca6; transition: width 0.3s; }
#theader nav .menu1 .menu2 a:hover span::after { width: 100%; }


@media (max-width: 1535px) {
    #theader { height: 125px; }
    
    #theader .top { height: 35px; }
    #theader .top .topnav a img { width: 12px; }

    #theader .bottom { height: calc(100% - 35px); }

    #theader .bottom .logo img { width: 288px; }

    #theader .bottom nav { left: 20px; }
    #theader .bottom nav .menu1 > li > a { padding: 0 20px; }
    #theader .bottom nav .menu1 > li > a > span { font-size: 18px; }

    .headerblock { height: 35px; }

    #theader nav .menu1 .menu2 a { padding: 13px 5px; }
    #theader nav .menu1 .menu2 a span { font-size: 14px; }
}
@media (max-width: 1279px) {
    #theader { height: 110px; }

    #theader .top { height: 30px; }
    #theader .top .topnav a img { width: 10px; }

    #theader .bottom { height: calc(100% - 30px); }

    #theader .bottom .logo img { width: 256px; }

    #theader .bottom nav { left: 15px; }
    #theader .bottom nav .menu1 > li > a { padding: 0 15px; }
    #theader .bottom nav .menu1 > li > a > span { font-weight: 500; font-size: 16px; }

    .headerblock { height: 30px; }

    #theader nav .menu1 .menu2 a span { font-size: 13px; }
}
@media (max-width: 1023px) {
    #theader { position: fixed; height: 70px; }

    #theader .top { display: none; }

    #theader .bottom { height: 100%; }
    #theader.active .bottom,
    #theader.active.scrollh .bottom 
    { background-color: rgba(0, 0, 0, 0.8); border-bottom: 1px solid #ddd; }
    #theader .bottom .contwrap { width: 100%; max-width: 100%; }

    #theader .bottom .logo { margin-left: 40px; }

    #theader .bottom .logo img { width: 224px; }

    #theader .bottom nav { display: none; position: absolute; left: 0; top: 70px; width: 100%; float: none; height: initial; background-color: rgba(0, 0, 0, 0.8); border-bottom: 1px solid #ddd; }
    #theader.active .bottom nav { display: block; }
    #theader .bottom nav .menu1 { display: block; height: initial; }
    #theader .bottom nav .menu1 > li { height: initial; }
    #theader .bottom nav .menu1 > li > a { padding: 13px 5px; height: initial; }
    #theader .bottom nav .menu1 > li > a::after { display: none !important; }
    #theader .bottom nav .menu1 > li > a.no_link { pointer-events: none; }
    #theader .bottom nav .menu1 > li > a > span { top: initial; transform: translateY(0); font-weight: normal; font-size: 15px; color: #fff; }
    #theader .bottom nav .menu1 > li:hover > a { background-color: #444; }

    .headerblock { display: none; }

    #theader nav .menu1 .menu2 { position: relative; background-color: #555; border-radius: 0; }
    #theader nav .menu1 .menu2 a { padding: 11px 5px; }
    #theader nav .menu1 .menu2 a span { font-weight: normal; font-size: 11px; color: #fff; }
    #theader nav .menu1 .menu2 a:hover { background-color: #777; }
    #theader nav .menu1 .menu2 a span { font-size: 13px; }
    #theader nav .menu1 .menu2 a span::after { display: none; }
}
@media (max-width: 767px) {
    #theader .bottom .logo { margin-left: 30px; }
}
@media (max-width: 460px) {
    #theader .bottom .logo { margin-left: 20px; }
}

/* theader hambtn */
#theader .ham_btn { display: none; position: absolute; top: 50%; transform: translateY(-50%); right: 40px; width: 27px; height: 20px; cursor: pointer; }
#theader .ham_btn div { position: absolute; width: 100%; height: 3px; background-color: #fff; transform-origin: center; }
#theader.mouseon .ham_btn div, #theader.active .ham_btn div, #theader.scrollh .ham_btn div { background-color: #fff; }
#theader .ham_btn div:first-child { top: 0%; transform: translateY(-50%); animation: mo_bar1 forwards linear 0.4s; }
#theader .ham_btn div:nth-child(2) { top: 40%; transform: translateY(-50%); animation: mo_bar2 forwards linear 0.4s; }
#theader .ham_btn div:last-child { top: 80%; transform: translateY(-50%); animation: mo_bar3 forwards linear 0.4s; }
@keyframes mo_bar1 { 
    0% { top: 50%; transform: translateY(-50%) rotateZ(45deg); }
    50% { top: 50%; transform: translateY(-50%) rotateZ(0deg); }
    100% { top: 0%; transform: translateY(-50%); }
}
@keyframes mo_bar2 {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 1; }
}
@keyframes mo_bar3 {
    0% { top: 50%; transform: translateY(-50%) rotateZ(-45deg); }
    50% { top: 50%; transform: translateY(-50%) rotateZ(0deg); }
    100% { top: 80%; transform: translateY(-50%); }
}

#theader.active .ham_btn div:first-child { top: 0%; transform: translateY(-50%); animation: mo_bar1_on forwards linear 0.4s; }
#theader.active .ham_btn div:nth-child(2) { top: 40%; transform: translateY(-50%); animation: mo_bar2_on forwards linear 0.4s; }
#theader.active .ham_btn div:last-child { top: 80%; transform: translateY(-50%); animation: mo_bar3_on forwards linear 0.4s; }
@keyframes mo_bar1_on {
    0% { top: 0%; transform: translateY(-50%); }
    50% { top: 50%; transform: translateY(-50%); }
    100% { top: 50%; transform: translateY(-50%) rotateZ(45deg); }
}
@keyframes mo_bar2_on {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes mo_bar3_on {
    0% { top: 80%; transform: translateY(-50%); }
    50% { top: 50%; transform: translateY(-50%); }
    100% { top: 50%; transform: translateY(-50%) rotateZ(-45deg); }
}
@media (max-width: 1023px) {
    #theader .ham_btn { display: block; }
}
@media (max-width: 767px) {
    #theader .ham_btn { right: 30px; }
}
@media (max-width: 460px) {
    #theader .ham_btn { right: 20px; }
}

/* quicknav */
.quicknav { z-index: 1050; position: fixed; top: 50%; transform: translateY(-50%); right: 0; }
.quicknav a { display: block; }
.quicknav a img { display: block; width: 100px; }
@media (max-width: 1535px) {
    .quicknav a img { width: 90px; }
}
@media (max-width: 1279px) {
    .quicknav a img { width: 80px; }
}
@media (max-width: 1023px) {
    .quicknav a img { width: 70px; }
}
@media (max-width: 767px) {
    .quicknav a img { width: 60px; }
}
@media (max-width: 460px) {
    .quicknav { top: initial; transform: translateY(0); bottom: 0; }
    .quicknav a img { width: 60px; }
}