:root {
  --nav-height: 92px;
  --nav-ink: #111827;
  --nav-muted: #647084;
  --nav-blue: #1457d9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  margin: 0;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: box-shadow 220ms ease, height 220ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

.nav-shell {
  width: min(1440px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-logo img {
  display: block;
  width: 140px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.desktop-nav,
.desktop-actions {
  display: flex;
  align-items: center;
}

.desktop-nav {
  margin-left: auto;
  gap: 4px;
}

.desktop-nav a {
  position: relative;
  padding: 14px 18px;
  color: var(--nav-muted);
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--nav-blue);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.nav-utility:hover,
.nav-utility:focus-visible {
  color: var(--nav-blue);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  width: 34%;
}

.desktop-actions {
  gap: 17px;
}

.nav-utility {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--nav-muted);
  border: 0;
  background: none;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms ease;
}

.nav-utility svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.language-switcher a {
  min-width: 34px;
  padding: 6px 8px;
  border-radius: 999px;
  color: #647085;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher a[aria-current="page"] {
  color: #fff;
  background: #0b347e;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: #e1e5ec;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 9px 24px rgba(17, 24, 39, 0.12);
  transition: transform 180ms ease, background 180ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--nav-blue);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #f4f6f9;
  color: var(--nav-ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
}

.menu-toggle::before {
  transform: translateY(-6px);
}

.menu-toggle::after {
  transform: translateY(6px);
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

.mobile-panel {
  display: none;
}

:focus-visible {
  outline: 3px solid rgba(20, 87, 217, 0.35);
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .nav-shell {
    width: min(100% - 40px, 1180px);
  }

  .desktop-nav a {
    padding-inline: 12px;
  }

  .nav-phone,
  .nav-divider {
    display: none;
  }
}

@media (max-width: 920px) {
  :root {
    --nav-height: 72px;
  }

  .nav-shell {
    width: calc(100% - 32px);
  }

  .nav-logo img {
    width: 112px;
    height: auto;
  }

  .desktop-nav,
  .desktop-actions {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
  }

  .mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    max-height: calc(100dvh - var(--nav-height));
    padding: 14px 20px 24px;
    overflow: auto;
    background: #fff;
    border-top: 1px solid #eef0f4;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mobile-panel a,
  .mobile-panel button {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0 14px;
    border: 0;
    border-bottom: 1px solid #eef0f4;
    background: none;
    color: var(--nav-ink);
    font-size: 16px;
    text-decoration: none;
    text-align: left;
  }

  .mobile-panel .mobile-contact {
    justify-content: center;
    margin-top: 16px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-weight: 700;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
