:root {
  --mh-header-height: 103px;
  --mh-container: 1320px;
  --mh-mega-height: 230px;
  --mh-mega-intro: 330px;
  --mh-navy: #13283a;
  --mh-border: #cfd7d8;
  --mh-text: #172126;
  --mh-motion: .26s cubic-bezier(.2, .7, .2, 1);
}

body.nav-open { overflow: hidden; }
.site-header { position: absolute; z-index: 200; top: 0; right: 0; left: 0; height: var(--mh-header-height); color: var(--mh-navy); background: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.48) 56%, rgba(255,255,255,0) 100%); border: 0; transition: color .25s ease, background .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { position: fixed; color: var(--mh-navy); background: rgba(255,255,255,.96); border-color: transparent; box-shadow: 0 1px 0 rgba(10,25,31,.08); backdrop-filter: blur(12px); }
.header-inner { width: 100%; height: 100%; margin: 0; padding-inline: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { position: relative; z-index: 2; display: flex; width: 240px; height: 44px; min-width: 240px; align-items: center; }
.site-header .header-logo { display: block; width: 240px; height: auto; max-height: 44px; object-fit: contain; object-position: left center; filter: none; opacity: 1; }
.primary-nav { position: absolute; top: 0; left: 50%; height: var(--mh-header-height); min-width: 0; display: flex; justify-content: center; align-items: stretch; gap: 0; transform: translateX(-50%); }
.nav-item { min-width: 0; display: flex; align-items: stretch; }
.has-eco-nav .nav-item--direct { order: 5; }
.has-eco-nav .primary-nav > .nav-item:last-child { order: 6; }
.nav-item > a { position: relative; width: auto; height: 100%; padding-inline: 26px; display: grid; place-items: center; color: var(--mh-navy); font-size: 20px; font-weight: 700; line-height: 1; text-align: center; white-space: nowrap; opacity: 1; transition: color .24s ease; }
.nav-item > a::after { content: ""; position: absolute; right: 26px; bottom: 20px; left: 26px; height: 2px; background: var(--mh-navy); transform: scaleX(0); transform-origin: center; transition: transform .2s ease; }
.nav-item.is-desktop-open > a, .nav-item:focus-within > a { color: var(--mh-navy); }
.nav-item.is-desktop-open > a::after, .nav-item:focus-within > a::after { transform: scaleX(1); }

.dropdown { position: absolute; z-index: 201; top: var(--mh-header-height); left: calc(50% - 50vw); width: 100vw; height: 0; padding: 0 max(60px, calc((100vw - var(--mh-container))/2)); overflow: hidden; color: #fff; background: linear-gradient(110deg, #102238 0%, #0b1828 55%, #07111d 100%); border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 30px rgba(5,24,38,0); opacity: 0; pointer-events: none; display: grid; grid-template-columns: var(--mh-mega-intro) minmax(0,1fr); align-items: stretch; gap: 68px; transform: translateY(-8px); transition: height var(--mh-motion), opacity .24s ease, transform var(--mh-motion), box-shadow .24s ease; }
.nav-item.is-desktop-open .dropdown, .nav-item:focus-within .dropdown { height: var(--mh-mega-height); opacity: 1; pointer-events: auto; box-shadow: 0 18px 30px rgba(5,24,38,.18); transform: none; }
.mega-intro { min-width: 0; padding-right: 48px; border-right: 1px solid rgba(255,255,255,.22); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.mega-intro__icon { width: 36px; height: 36px; margin-bottom: 20px; fill: none; stroke: #fff; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.mega-intro strong { font-size: 28px; font-weight: 700; line-height: 1.15; }
.mega-intro p { margin: 13px 0 0; color: rgba(255,255,255,.72); font-size: 15px; font-weight: 400; line-height: 1.65; }
.mega-links { min-width: 0; padding-block: 34px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: minmax(58px,1fr); gap: 14px 28px; align-content: center; }
.mega-links a, .mega-links button { position: relative; min-width: 0; padding: 0 4px; color: #fff; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.22); display: flex; align-items: center; font: inherit; font-size: 17px; font-weight: 600; line-height: 1.35; text-align: left; white-space: nowrap; transition: color .24s ease, border-color .24s ease; }
.mega-links a::after, .mega-links button::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .24s ease; }
.mega-links a:hover, .mega-links a:focus-visible { color: #fff; border-color: transparent; }
.mega-links a:hover::after, .mega-links a:focus-visible::after { transform: scaleX(1); }
.mega-link--disabled { cursor: default; opacity: .58; }
.header-actions { position: relative; z-index: 2; display: flex; margin-left: auto; align-items: center; gap: 32px; }
.header-language { display: inline-flex; align-items: center; gap: 7px; color: #71808a; font-size: 12px; font-weight: 550; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.header-language__current { color: var(--mh-navy); font-weight: 650; }
.header-language__divider { color: #a7b0b6; font-weight: 400; }
.header-language__option { color: #71808a; cursor: pointer; text-decoration: none; transition: color .2s ease; }
.header-language__option:hover { color: var(--mh-navy); }
.header-contact { position: relative; z-index: 2; min-height: 54px; padding: 0 26px; border: 1px solid var(--mh-navy); display: inline-flex; align-items: center; justify-content: center; color: var(--mh-navy); background: rgba(255,255,255,.2); font-size: 16px; font-weight: 700; line-height: 1; white-space: nowrap; transition: color .2s ease, background-color .2s ease; }
.header-contact:hover, .header-contact:focus-visible { color: #fff; background: var(--mh-navy); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 8px; color: var(--mh-navy); background: transparent; border: 0; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

@media (max-width: 1280px) and (min-width: 801px) {
  .header-inner { padding-inline: 32px; }
  .brand, .site-header .header-logo { width: 205px; min-width: 205px; }
  .nav-item > a { padding-inline: 18px; font-size: 17px; }
  .nav-item > a::after { right: 18px; left: 18px; }
  .header-actions { gap: 22px; }
  .header-language { gap: 6px; font-size: 11px; }
  .header-contact { min-height: 48px; padding-inline: 18px; font-size: 14px; }
  .dropdown { padding-inline: 32px; gap: 38px; }
}

@media (max-width: 1100px) and (min-width: 801px) {
  .has-eco-nav .primary-nav { left: calc(50% + 18px); }
  .has-eco-nav .nav-item > a { padding-inline: 11px; font-size: 15px; }
  .has-eco-nav .nav-item > a::after { right: 11px; left: 11px; }
  .header-actions { gap: 16px; }
}

@media (max-width: 800px) {
  :root { --mh-header-height: 72px; }
  .site-header { position: absolute; background: rgba(255,255,255,.88); }
  .site-header.is-scrolled { position: fixed; }
  .header-inner { width: 100%; padding-inline: 16px; gap: 14px; }
  .brand { width: 185px; min-width: 185px; height: 40px; }
  .site-header .header-logo { width: 185px; max-height: 40px; }
  .header-actions { display: flex; margin-left: auto; gap: 0; }
  .header-contact { display: none; }
  .menu-toggle { position: relative; z-index: 203; display: block; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .primary-nav { position: fixed; z-index: 202; inset: var(--mh-header-height) 0 auto; height: auto; max-height: calc(100vh - var(--mh-header-height)); padding: 18px 20px 30px; overflow-y: auto; color: var(--mh-text); background: #fff; display: grid; align-content: start; justify-content: stretch; justify-items: stretch; gap: 0; visibility: hidden; opacity: 0; transform: translateY(-110%); transition: .28s ease; }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-item { min-width: 0; display: block; }
  .nav-item > a { width: 100%; height: auto; min-height: 56px; padding-inline: 8px; display: flex; flex-direction: row-reverse; justify-content: space-between; border-bottom: 1px solid var(--mh-border); color: var(--mh-text); font-size: 17px; text-align: left; }
  .nav-item > a::after { display: none; }
  .nav-item > a::before { content: "+"; color: #728087; font-size: 20px; font-weight: 400; line-height: 1; }
  .has-eco-nav .nav-item--direct > a { flex-direction: row; justify-content: flex-start; }
  .has-eco-nav .nav-item--direct > a::before { display: none; }
  .nav-item.is-mobile-open > a::before { content: "−"; }
  .nav-item .dropdown { position: static; width: 100%; height: 0; padding: 0; overflow: hidden; color: var(--mh-text); background: #fff; opacity: 0; border: 0; box-shadow: none; pointer-events: none; display: block; transform: none; transition: opacity .2s ease; }
  .nav-item.is-mobile-open .dropdown { height: auto; padding: 8px 0 16px; opacity: 1; pointer-events: auto; }
  .mega-intro { display: none; }
  .mega-links { padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
  .mega-links a, .mega-links button { width: 100%; min-height: 43px; padding: 10px 8px; color: #526168; border: 0; border-bottom: 1px solid #edf0f0; display: flex; align-items: center; font-size: 14px; font-weight: 500; white-space: normal; }
  .mega-links a::after, .mega-links button::after { display: none; }
  .mega-links a:hover, .mega-links a:focus-visible { color: var(--mh-navy); border-color: #dce5e7; }
  .mega-link--disabled { color: #8b979c; }
  .mobile-language-switch {
    min-height: 56px;
    padding: 6px 8px;
    border-bottom: 1px solid var(--mh-border);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #71808a;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
  }
  .mobile-language-switch > span:first-child { color: var(--mh-navy); font-weight: 700; }
  .mobile-language-switch > span:nth-child(2) { color: #a7b0b6; }
  .mobile-language-switch a {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #71808a;
  }
}

@media (min-width: 801px) {
  .mobile-language-switch { display: none; }
}
