:root {
  --genos-green: #009992;
  --genos-blue: #012F6D;
  --genos-border: rgba(255, 255, 255, .72);
  --genos-desktop-inset: 24px;
  --genos-logo-width: 200px;
  --genos-tools-width: 277px;
  --genos-header-height: 80px;
  --genos-ease: cubic-bezier(.22, 1, .36, 1);
}

body > #site-header.site-header,
body > header#site-header.site-header { display: none !important; }

.genos-header { position: absolute; z-index: 9999; top: 16px; left: var(--genos-desktop-inset); right: var(--genos-desktop-inset); color: #fff; font-family: inherit; transition: top .35s var(--genos-ease), left .35s var(--genos-ease), right .35s var(--genos-ease); }
.genos-header *, .genos-header *::before, .genos-header *::after { box-sizing: border-box; }
.genos-header a { color: inherit; text-decoration: none; }
.genos-header ul { list-style: none; margin: 0; padding: 0; }
.genos-header button, .genos-header button:hover, .genos-header button:focus { font: inherit; appearance: none; background-color: transparent; background-image: none; box-shadow: none; }

.genos-header__shell { display: grid; grid-template-columns: var(--genos-logo-width) minmax(0, 1fr) 198px 79px; height: var(--genos-header-height); border: 1px solid var(--genos-border); background: transparent; transition: background-color .45s var(--genos-ease), color .35s ease, border-color .35s ease, box-shadow .45s ease; }
.genos-header.is-scrolled { position: fixed; top: 0; }
.genos-header.is-scrolled .genos-header__shell, .genos-header.is-mega-open .genos-header__shell, .genos-header.is-mobile-open .genos-header__shell { color: var(--genos-blue); background: #fff; border-color: #e4e9ec; box-shadow: 0 7px 25px rgba(1, 47, 109, .08); }

.genos-header__logo { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0; border-right: 1px solid var(--genos-border); }
.genos-header__logo-image { display: block; width: auto; max-width: 170px; object-fit: contain; }
.genos-header__nav, .genos-header__main-list, .genos-header__main-item { height: 100%; }
.genos-header__nav { position: relative; }
.genos-header__setup-link { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px 20px; text-align: center; }
.genos-header__main-list { display: grid; grid-template-columns: repeat(var(--genos-menu-count, 5), minmax(110px, 1fr)); }
.genos-header__main-item { position: relative; min-width: 0; transition: background-color .35s ease, color .35s ease; }
.genos-header__main-item > a { display: flex; align-items: center; justify-content: center; height: 100%; padding: 12px 14px; color: inherit; text-align: center; font-size: clamp(14px, 1.2vw, 18px); font-weight: 500; line-height: 1.25; }

.genos-header__languages { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0 12px; border-left: 1px solid var(--genos-border); font-size: 14px; }
.genos-header__languages .gtranslate_wrapper { width: 100%; text-align: center; }
.genos-header__languages select { max-width: 100%; border: 0; color: var(--genos-blue); background: transparent; box-shadow: none; outline: 0; }
.genos-header__languages a { color: inherit; }

.genos-header__search-button { display: grid; place-items: center; padding: 0 !important; border: 0 !important; border-left: 1px solid var(--genos-border) !important; border-radius: 0 !important; color: inherit !important; background: transparent !important; cursor: pointer; }
.genos-header__search-icon { display: block; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.genos-header__search-icon::after { content: ""; position: absolute; width: 9px; height: 2px; right: -7px; bottom: -4px; background: currentColor; transform: rotate(48deg); transform-origin: left center; }
.genos-header__accordion, .genos-header__mobile-submenu, .genos-header__toggle { display: none; }

.genos-header__mega { display: grid; grid-template-columns: var(--genos-logo-width) minmax(0, 1fr) var(--genos-tools-width); position: absolute; top: var(--genos-header-height); left: 0; right: 0; min-height: 448px; overflow: hidden; visibility: hidden; pointer-events: none; color: var(--genos-blue); background: #fff; opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-18px); transform-origin: top; transition: clip-path .62s var(--genos-ease), transform .62s var(--genos-ease), opacity .4s ease, visibility 0s linear .62s; }
.genos-header__mega-spacer { grid-column: 1; }
.genos-header__mega-tools { grid-column: -2 / -1; }
.genos-header__mega-column { grid-row: 1; min-width: 0; padding: 47px 4px 70px; text-align: center; transition: background-color .35s ease, color .35s ease; }
.genos-header__mega-spacer, .genos-header__mega-tools { grid-row: 1; }
.genos-header__mega-column > ul { display: flex; flex-direction: column; align-items: stretch; gap: 11px; }
.genos-header__subitem > a { display: block; padding: 0 3px; color: inherit; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.25; }
.genos-header__subitem > a:hover, .genos-header__subitem.is-current > a { text-decoration: underline; text-underline-offset: 4px; }
.genos-header__level-three { margin-top: 8px !important; opacity: .8; }
.genos-header__level-three .genos-header__subitem + .genos-header__subitem { margin-top: 6px; }
.genos-header.is-mega-open .genos-header__mega { visibility: visible; pointer-events: auto; opacity: 1; clip-path: inset(0); transform: translateY(0); box-shadow: 0 20px 45px rgba(1,47,109,.1); transition-delay: 0s; }
.genos-header .is-highlighted { color: #fff !important; background: var(--genos-green) !important; }
.genos-header .is-highlighted > a { color: #fff !important; }

.genos-header__search-panel { position: fixed; z-index: 10002; top: 0; left: 0; width: 100vw; min-height: 198px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); color: var(--genos-blue); background: #fff; box-shadow: 0 18px 42px rgba(1,47,109,.12); visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(-105%); transition: transform .65s var(--genos-ease), opacity .4s ease, visibility 0s linear .65s; }
.genos-header.is-search-open .genos-header__search-panel { visibility: visible; pointer-events: auto; opacity: 1; transform: translateY(0); transition-delay: 0s; }
.genos-header__search-inner { display: grid; grid-template-columns: 175px minmax(0, 1fr) 72px; align-items: start; gap: 34px; max-width: 1180px; min-height: 198px; margin: 0 auto; padding-top: 48px; }
.genos-header__search-logo { display: flex; align-items: flex-start; justify-content: flex-start; padding-top: 5px; }
.genos-header__search-panel form { min-width: 0; }
.genos-header__search-panel label { display: block; margin-bottom: 28px; color: #65717d; font-size: 16px; }
.genos-header__search-field { display: flex; align-items: center; border-bottom: 2px solid #d5d9db; }
.genos-header__search-field input { flex: 1; min-width: 0; height: 48px; padding: 0 12px 0 0; border: 0 !important; color: var(--genos-blue); background: transparent !important; box-shadow: none !important; outline: 0; }
.genos-header__search-field button { display: grid; place-items: center; width: 54px; height: 48px; padding: 0 !important; border: 0 !important; color: #aeb6bb !important; background: transparent !important; cursor: pointer; }
.genos-header__search-close { position: relative; width: 48px; height: 48px; padding: 0 !important; border: 0 !important; color: #66717a !important; background: transparent !important; cursor: pointer; }
.genos-header__search-close span { position: absolute; top: 23px; left: 10px; width: 29px; height: 1px; background: currentColor; }
.genos-header__search-close span:first-child { transform: rotate(45deg); }
.genos-header__search-close span:last-child { transform: rotate(-45deg); }

@media (min-width: 1025px) {
  .genos-header__mega { grid-template-columns: var(--genos-logo-width) repeat(var(--genos-menu-count, 5), minmax(110px, 1fr)) var(--genos-tools-width); }
  .genos-header__mega-spacer { grid-column: 1; }
  .genos-header__mega-column:nth-of-type(2) { grid-column: 2; }
  .genos-header__mega-tools { grid-column: calc(var(--genos-menu-count, 5) + 2); }
}

@media (max-width: 1180px) and (min-width: 1025px) {
  :root { --genos-logo-width: 150px; --genos-tools-width: 215px; }
  .genos-header__shell { grid-template-columns: var(--genos-logo-width) minmax(0, 1fr) 145px 70px; }
  .genos-header__main-item > a, .genos-header__subitem > a { font-size: 14px; }
  .genos-header__languages { font-size: 14px; }
}

@media (max-width: 1024px) {
  :root { --genos-header-height: 64px; }
  .genos-header { top: 10px; left: 12px; right: 12px; }
  .genos-header.is-scrolled { top: 0; }
  .genos-header__shell { display: flex; height: var(--genos-header-height); }
  .genos-header__logo { width: 145px; padding: 0; }
  .genos-header__languages { margin-left: auto; max-width: 145px; border-left: 0; }
  .genos-header__search-button { display: grid; width: 44px; min-width: 44px; border-left: 1px solid var(--genos-border) !important; }
  .genos-header__search-button .genos-header__search-icon { width: 18px; height: 18px; }
  .genos-header__toggle { display: flex; width: 40px; min-width: 40px; height: 40px; align-self: center; margin: 0 4px; padding: 0 9px !important; border: 0 !important; border-radius: 0 !important; color: inherit !important; background: transparent !important; flex-direction: column; justify-content: center; gap: 4px; cursor: pointer; }
  .genos-header__toggle > span:not(.screen-reader-text) { display: block; width: 20px; height: 1.5px; background: currentColor; transition: transform .28s ease, opacity .2s ease; }
  .genos-header__nav { position: absolute; top: var(--genos-header-height); left: 0; right: 0; height: auto; max-height: 0; overflow: hidden; visibility: hidden; color: var(--genos-blue); background: #fff; opacity: 0; transform: translateY(-12px); transition: max-height .5s var(--genos-ease), transform .45s var(--genos-ease), opacity .3s ease, visibility 0s linear .5s; }
  .genos-header.is-mobile-open .genos-header__nav { max-height: calc(100vh - 82px); overflow-y: auto; visibility: visible; opacity: 1; transform: translateY(0); transition-delay: 0s; }
  .genos-header.is-mobile-open .genos-header__toggle > span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .genos-header.is-mobile-open .genos-header__toggle > span:nth-child(2) { opacity: 0; }
  .genos-header.is-mobile-open .genos-header__toggle > span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
  .genos-header__main-list { display: block; height: auto; }
  .genos-header__main-item { height: auto; border-bottom: 1px solid #e8ecef; }
  .genos-header__main-item > a { justify-content: flex-start; height: 58px; padding: 0 54px 0 22px; font-size: 16px; }
  .genos-header__accordion { display: grid; place-items: center; position: absolute; top: 0; right: 0; width: 54px; height: 58px; padding: 0 !important; border: 0 !important; color: var(--genos-blue) !important; background: transparent !important; cursor: pointer; }
  .genos-header__accordion::before, .genos-header__accordion::after { content: ""; position: absolute; width: 14px; height: 1px; background: currentColor; transition: transform .25s ease; }
  .genos-header__accordion::after { transform: rotate(90deg); }
  .genos-header__main-item.is-submenu-open .genos-header__accordion::after { transform: rotate(0); }
  .genos-header__mobile-submenu { display: none; padding: 4px 22px 18px 36px !important; background: #f3f8f8; }
  .genos-header__main-item.is-submenu-open .genos-header__mobile-submenu { display: block; }
  .genos-header__mobile-submenu .genos-header__subitem > a { padding: 9px 0; font-size: 15px; }
  .genos-header__mega { display: none; }
  .genos-header__search-panel { min-height: 190px; padding: 0 20px; }
  .genos-header__search-inner { grid-template-columns: 105px minmax(0, 1fr) 42px; gap: 16px; min-height: 190px; padding-top: 36px; }
  .genos-header__search-panel label { margin-bottom: 20px; font-size: 14px; }
}

@media (min-width: 783px) {
  body.admin-bar .genos-header { top: 48px; }
  body.admin-bar .genos-header.is-scrolled { top: 32px; }
  body.admin-bar .genos-header__search-panel { top: 32px; }
}
@media (max-width: 782px) {
  body.admin-bar .genos-header { top: 56px; }
  body.admin-bar .genos-header.is-scrolled { top: 46px; }
  body.admin-bar .genos-header__search-panel { top: 46px; }
}
@media (max-width: 600px) {
    .genos-header__logo-image { max-width: 124px; }
  .genos-header { left: 8px; right: 8px; }
  .genos-header__logo { width: 125px; }
  .genos-header__languages { max-width: 95px; padding: 0 15px; }
  .genos-header__search-panel { padding: 0 14px; }
  .genos-header__search-inner { grid-template-columns: 82px minmax(0, 1fr) 34px; gap: 10px; padding-top: 28px; }
  .genos-header__search-close { width: 34px; }
  .genos-header__search-close span { left: 5px; width: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .genos-header *, .genos-header *::before, .genos-header *::after { transition: none !important; }
}
