:root {
  --shared-header-blue: #274a7a;
  --shared-header-gold: #f6b21d;
}

.quickbar {
  height: 32px;
  color: rgba(255,255,255,.86);
  background: #1e3f6f;
}

.quickbar > .wrap,
.site-head > .wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.quick-inner {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.quick-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
}

.quick-links a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}

.quick-links a:hover { color: var(--shared-header-gold); }

.hotline {
  display: block;
  margin-left: auto;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.hotline b {
  color: var(--shared-header-gold);
  font-size: 18px;
  letter-spacing: .5px;
}

.site-head {
  position: relative;
  z-index: 30;
  background:
    linear-gradient(90deg, rgba(241,243,248,.78) 0 16%, rgba(255,255,255,.98) 24% 76%, rgba(241,243,248,.78) 84% 100%),
    repeating-linear-gradient(135deg, rgba(39,74,122,.07) 0 2px, transparent 2px 70px);
  box-shadow: 0 1px 7px rgba(0,0,0,.15);
}

.head-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr) auto;
  align-items: stretch;
  gap: clamp(36px, 4vw, 72px);
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-width: 0;
  color: var(--shared-header-blue);
  text-decoration: none;
}

.brand-logo {
  width: auto;
  max-width: min(290px, 100%);
  max-height: 64px;
  object-fit: contain;
}

.brand-text { display: grid; gap: 5px; }

.brand-name {
  color: var(--shared-header-blue);
  font-size: 27px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-sub {
  color: #636363;
  font-size: 13px;
  letter-spacing: 8px;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-self: center;
  width: 42px;
  height: 38px;
  border: 1px solid #cbd1dc;
  background: #fff;
  color: var(--shared-header-blue);
  font-size: 24px;
  cursor: pointer;
}

.mainnav {
  min-width: 0;
  width: 100%;
  height: 96px;
  justify-self: stretch;
}

.nav-list {
  height: 96px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
  min-width: 0;
}

.nav-link {
  width: 100%;
  min-width: 0;
  height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(8px, 1.2vw, 16px);
  color: #333;
  border-left: 1px solid #e3e5ea;
  border-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  transform: none;
  transition: color .18s ease, background .18s ease;
}

.nav-item:last-child .nav-link { border-right: 1px solid #e3e5ea; }

.nav-en {
  margin-top: 5px;
  color: #777;
  font-size: 12px;
  line-height: 1;
  font-family: Arial, sans-serif;
}

.nav-link:hover,
.nav-item:hover > .nav-link,
.nav-item:focus-within > .nav-link,
.nav-item.is-active > .nav-link,
.nav-item.has-menu.is-sub-open > .nav-link {
  color: var(--shared-header-blue);
  background: #f7f8fb;
  outline: none;
  transform: none;
}

.nav-link:hover .nav-en,
.nav-item:hover > .nav-link .nav-en,
.nav-item.is-active > .nav-link .nav-en { color: var(--shared-header-gold); }

.nav-drop {
  position: absolute;
  left: 50%;
  top: 96px;
  width: max-content;
  min-width: 100%;
  padding: 7px 0;
  background: rgba(255,255,255,.98);
  border-top: 3px solid var(--shared-header-gold);
  box-shadow: 0 14px 30px rgba(0,0,0,.15);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: .18s ease;
}

.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-drop a {
  display: block;
  padding: 10px 18px;
  color: #555;
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}

.nav-drop a:last-child { border-bottom: 0; }
.nav-drop a:hover { color: var(--shared-header-blue); background: #f5f7fa; }

.site-head .nav-link:hover,
.site-head .nav-item:hover > .nav-link,
.site-head .nav-item:focus-within > .nav-link,
.site-head .nav-item.is-active > .nav-link,
.site-head .nav-item.has-menu.is-sub-open > .nav-link,
.site-head .nav-link:hover > span:first-child,
.site-head .nav-item:hover > .nav-link > span:first-child,
.site-head .nav-item:focus-within > .nav-link > span:first-child,
.site-head .nav-item.is-active > .nav-link > span:first-child,
.site-head .nav-item.has-menu.is-sub-open > .nav-link > span:first-child {
  color: var(--shared-header-blue);
}

.site-head .nav-item.is-active > .nav-link::before,
.site-head .nav-item.has-menu.is-sub-open > .nav-link::before {
  background: var(--shared-header-blue);
}

@media (min-width: 981px) {
  .hotline { margin-right: clamp(36px, 4vw, 72px); }
}

@media (max-width: 1180px) {
  .head-inner {
    grid-template-columns: minmax(210px, 280px) minmax(0, 1fr) auto;
    gap: 12px;
  }

  .brand-logo { max-width: min(250px, 100%); }
  .nav-link { min-width: 0; padding: 0 10px; font-size: 13px; }
}

@media (max-width: 980px) {
  .quickbar { display: none; }
  .quick-inner { padding: 6px 0; flex-wrap: wrap; }
  .quick-links { display: none; }

  .site-head > .wrap.head-inner {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    height: auto;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .site-head .brand {
    flex: 0 1 auto;
    min-width: 0;
    max-width: calc(100% - 58px);
    overflow: visible;
  }

  .site-head .brand-logo {
    width: auto;
    max-width: min(250px, 100%);
    max-height: 58px;
    object-fit: contain;
  }

  .site-head .nav-toggle {
    display: block;
    flex: 0 0 auto;
    align-self: center;
    width: 42px;
    height: 38px;
    min-width: 42px;
    min-height: 38px;
    margin-left: 0;
    padding: 0;
    border: 1px solid #cbd1dc;
    border-radius: 0;
    background: #fff;
    color: var(--shared-header-blue);
    font-size: 24px;
    line-height: 1;
    text-align: center;
    transform: none;
  }

  .site-head.is-open .nav-toggle {
    color: var(--shared-header-blue);
    border-color: #cbd1dc;
    transform: none;
  }

  .site-head .mainnav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    height: auto;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-self: auto;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
  }

  .site-head.is-open .mainnav { display: block; }

  .site-head .nav-list {
    height: auto;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    border-top: 0;
  }

  .site-head .nav-item {
    display: block;
    flex: 0 0 auto;
    border-bottom: 0;
  }

  .site-head .nav-link {
    width: 100%;
    height: 48px;
    min-height: 0;
    padding: 0 42px;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    text-align: center;
    border: 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-weight: 400;
    transform: none;
  }

  .site-head .nav-link:hover,
  .site-head .nav-item:hover > .nav-link,
  .site-head .nav-item:focus-within > .nav-link,
  .site-head .nav-item.is-active > .nav-link,
  .site-head .nav-item.has-menu.is-sub-open > .nav-link {
    color: var(--shared-header-blue);
    background: #f7f8fb;
    font-weight: 400;
    transform: none;
  }

  .site-head .nav-en { display: none; }

  .site-head .nav-item.has-menu > .nav-link::after,
  .site-head .nav-item.is-active > .nav-link::before,
  .site-head .nav-item.has-menu.is-sub-open > .nav-link::before { content: none; }

  .site-head .nav-drop {
    position: static;
    min-width: 0;
    width: 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: 0;
    background: #f8f9fb;
  }

  .site-head .nav-item.is-sub-open .nav-drop { display: block; }
  .site-head .nav-drop a { text-align: center; }
}

@media (max-width: 620px) {
  .site-head > .wrap.head-inner,
  .quickbar > .wrap { width: calc(100% - 28px); }

  .site-head > .wrap.head-inner { min-height: 68px; }
  .site-head .brand-logo { max-width: 230px; max-height: 52px; }
  .site-head .brand-name { font-size: 22px; }
  .site-head .brand-sub { letter-spacing: 4px; }
  .site-head .mainnav { max-height: calc(100vh - 68px); }
}
