#theader { z-index: 1995; position: relative; top: 0; left: 0; width: 100%; background-color: #fff; }
#theader::after { display: block; content: ''; z-index: 1; position: absolute; right: 0; bottom: 0; width: 0; height: 1px; background-color: #1d3f86; transform-origin: right; transition: linear width 0.3s; }

/* top */
#theader .top { height: 45px; background-color: #1d3f86; }
#theader .top .contwrap { height: 100%; }
#theader .top .topmenu { display: flex; flex-wrap: nowrap; justify-content: right; height: 100%; font-weight: 500; font-size: 14px; color: #fff; }
#theader .top .topmenu * { font-weight: inherit; font-size: inherit; color: inherit; }
#theader .top .topmenu a { position: relative; display: inline-flex; flex-wrap: nowrap; align-items: center; padding: 0 10px; }
#theader .top .topmenu a:first-of-type { padding-left: initial; }
#theader .top .topmenu a:last-of-type { padding-right: initial; }
#theader .top .topmenu a img { width: 17px; }
#theader .top .topmenu a span { display: inline-block; margin-left: 7px; }
#theader .top .topmenu a.executive::after { display: block; content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 25%; background-color: #fff; }

/* bottom */
#theader .bottom { height: 120px; }
#theader .bottom .contwrap { height: 100%; }
#theader .bottom .logo { display: block; float: left; height: 100%; writing-mode: vertical-lr; text-align: center; }
#theader .bottom .logo img { width: 210px; }

#theader .bottom nav { float: right; height: 100%; position: relative; left: 25px; }
#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; height: 100%; padding: 0 25px; text-align: center; }
#theader .bottom nav .menu1 > li > a::after { z-index: 1; display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px; width: 0; height: 3px; background-color: #1d3f86; transition: width 0.3s; }
#theader .bottom nav .menu1 > li:hover > a::after { width: 100%; }
#theader .bottom nav .menu1 > li > a > span { position: relative; top: 50%; transform: translateY(-50%); display: inline-block; font-weight: 600; font-size: 22px; color: #000; }
#theader .bottom nav .menu1 .menu2 { display: none; position: absolute; left: 0; width: 100%; }
#theader .bottom nav .menu1 .menu2 a { display: block; padding: 13px 5px; text-align: center; }
#theader .bottom nav .menu1 .menu2 a span { position: relative; display: inline-block; font-size: 13px; color: #333; }
#theader .bottom nav .menu1 .menu2 a span::after { display: block; content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -5px; width: 0; height: 2px; background-color: #1d3f86; transition: width 0.3s; }
#theader .bottom nav .menu1 .menu2 a:hover span::after { width: 100%; }

#theader .bottom nav .monav { display: none; }

.header_bg { display: none; z-index: 1993; position: absolute; left: 0; top: 165px; width: 100%; height: 0; background-color: rgba(255, 255, 255, 1); box-shadow: 0 4px 4px -4px #000; }

.header_block { display: none; }

/* mouseover */
#theader.mouseover::after { width: 100%; }

@media (max-width: 1535px) {
    /* top */
    #theader .top { height: 40px; }
    #theader .top .topmenu { font-size: 13px; }
    #theader .top .topmenu a { padding: 0 9px; }
    #theader .top .topmenu a img { width: 15px; }

    #theader .bottom nav { left: 20px; }
    #theader .bottom nav .menu1 > li > a { padding: 0 20px; }
    #theader .bottom nav .menu1 > li > a > span { font-size: 20px; }
    #theader .bottom nav .menu1 .menu2 a { padding: 12px 5px; }
    #theader .bottom nav .menu1 .menu2 a span { font-size: 12px; }

    /* bottom */
    #theader .bottom { height: 100px; }
    #theader .bottom .logo img { width: 175px; }

    .header_bg { top: 140px; }
}
@media (max-width: 1279px) {   
    /* top */
    #theader .top { height: 35px; }
    #theader .top .topmenu a { padding: 0 8px; }
    #theader .top .topmenu a img { width: 14px; }

    #theader .bottom nav { left: 20px; }
    #theader .bottom nav .menu1 > li > a { padding: 0 20px; }
    #theader .bottom nav .menu1 > li > a > span { font-size: 20px; }
    #theader .bottom nav .menu1 .menu2 a { padding: 12px 5px; }
    #theader .bottom nav .menu1 .menu2 a span { font-size: 12px; }

    /* bottom */
    #theader .bottom { height: 80px; }
    #theader .bottom .logo img { width: 140px; }

    .header_bg { top: 115px; }
}
@media (max-width: 1023px) {
    #theader { position: fixed; }
    #theader.scrollh { box-shadow: 0 4px 4px -4px #000; }
    #theader.active { box-shadow: none !important; }

    /* top */
    #theader .top { height: 30px; display: none !important; }
    #theader .top .topmenu { font-size: 12px; }
    #theader .top .topmenu a { padding: 0 7px; }
    #theader .top .topmenu a img { width: 12px; }

    /* bottom */
    #theader .bottom { height: 70px; }
    #theader .bottom .contwrap { width: 100%; max-width: 100%; }
    #theader .bottom .logo { margin-left: 40px; }
    #theader .bottom .logo img { width: 122.5px; }

    #theader .bottom nav { display: none; position: absolute; left: 0; top: 70px; float: none; width: 100%; height: initial; background-color: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 4px -4px #000; border-top: 1px solid #ddd; }
    #theader.active .bottom nav { display: block; }
    #theader .bottom nav .menu1 { display: block; height: initial; text-align: center; }
    #theader .bottom nav .menu1 > li { height: initial; }
    #theader .bottom nav .menu1 > li > a { height: initial; padding: 11px 5px; }
    #theader .bottom nav .menu1 > li:hover > a { background-color: #ddd; }
    #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: 14px; color: #333; }
    #theader .bottom nav .menu1 > li > a::after { display: none; }
    #theader .bottom nav .menu1 .menu2 { position: relative; background-color: #eee; }
    #theader .bottom nav .menu1 .menu2 a { padding: 11px 5px; }
    #theader .bottom nav .menu1 .menu2 a:hover { background-color: #ccc; }
    #theader .bottom nav .menu1 .menu2 a span { font-size: 13px; }
    #theader .bottom nav .menu1 .menu2 a span::after { display: none; }

    #theader .bottom nav .monav { padding: 10px 0; display: flex; justify-content: center; flex-wrap: nowrap; font-size: 14px; color: #333; border-bottom: 1px solid #ddd;  }
    #theader .bottom nav .monav * { font-size: inherit; color: inherit; }
    #theader .bottom nav .monav a { position: relative; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; width: 33.3333%; text-align: center; }
    #theader .bottom nav .monav a img { filter: brightness(0); width: 10px; }
    #theader .bottom nav .monav a span { margin-left: 5px; }

    .header_block { display: block; height: 70px; }

    .header_bg { display: none !important; opacity: 0; z-index: -99; width: 0; height: 0; }
}
@media (max-width: 767px) {
    #theader .bottom .logo { margin-left: 30px; }
}
@media (max-width: 460px) {
    #theader .bottom .logo { margin-left: 20px; }
}


/* hamburgerBtn */
.hamburgerBtn { display: none; z-index: 10; position: absolute; left: 100%; top: 49%; transform: translateY(-50%); width: 25px; height: 20px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hamburgerBtn > div { position: relative; width: 100%; height: 3px; background-color: #1d3f86; transition: all 0.3s ease; border-radius: 100px; }
#theader.active .hamburgerBtn > div:nth-child(1),
#theader.mouseover .hamburgerBtn > div:nth-child(1)
{ transform: rotate(45deg); transform-origin: top left; }
#theader.active .hamburgerBtn > div:nth-child(2),
#theader.mouseover .hamburgerBtn > div:nth-child(2)
 { opacity: 0; }
#theader.active .hamburgerBtn > div:nth-child(3),
#theader.mouseover .hamburgerBtn > div:nth-child(3)
 { top: -1px; transform: rotate(-45deg); transform-origin: bottom left; }
@media (max-width: 1535px) {
    .hamburgerBtn { left: initial; right: 0; }
}
@media (max-width: 1023px) {
    .hamburgerBtn { display: flex; right: 40px; }
}
@media (max-width: 767px) {
    .hamburgerBtn { right: 30px; }
}
@media (max-width: 460px) {
    .hamburgerBtn { right: 20px; }
}