/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 245, 247, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.header__logo-mark {
  height: 40px;
  width: auto;
}

.header__logo-word {
  height: 32px;
  width: auto;
}

/* Navigation ------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--c-text);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--c-navy);
}

/* Language switch -------------------------------------------------------- */

.lang {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
  border: 1px solid rgba(12, 12, 13, 0.16);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.lang__btn {
  border: 0;
  border-radius: 3px;
  padding: 8px 11px;
  background: transparent;
  color: var(--c-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.lang__btn:hover {
  color: var(--c-navy);
}

.lang__btn.is-active {
  background: var(--c-blue);
  color: var(--c-surface);
}

/* Burger ----------------------------------------------------------------- */

.burger {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
}

.burger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-navy);
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease),
    width 0.25s var(--ease);
}

.burger__line:last-child {
  width: 14px;
  background: var(--c-blue);
}

.burger.is-open .burger__line:first-child {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open .burger__line:nth-child(2) {
  opacity: 0;
}

.burger.is-open .burger__line:last-child {
  width: 22px;
  background: var(--c-navy);
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Tablet — navigation collapses into the burger panel
   ========================================================================== */

@media (max-width: 1024px) {
  .header__inner {
    gap: 14px;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--c-surface);
    border-bottom: 1px solid rgba(12, 12, 13, 0.12);
    box-shadow: 0 12px 24px rgba(1, 17, 66, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav__link {
    padding: 18px var(--gutter);
    font-size: 16px;
    font-weight: 600;
    color: var(--c-navy);
    border-bottom: 1px solid rgba(12, 12, 13, 0.08);
  }

  .nav__link:last-child {
    border-bottom: 0;
  }
}

/* ==========================================================================
   Mobile — the header CTA moves into the sticky action bar
   ========================================================================== */

@media (max-width: 767px) {
  .header__logo {
    gap: 10px;
  }

  .header__logo-mark {
    height: 32px;
  }

  .header__logo-word {
    height: 26px;
  }

  .header__cta {
    display: none;
  }

  .lang__btn {
    padding: 8px 10px;
    letter-spacing: normal;
  }
}
