/* Header — full width, compact height, no overlap */
.ffl-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 80 !important;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.22) 85%,
    rgba(0, 0, 0, 0.06) 100%
  ) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.ffl-header.is-solid {
  position: fixed !important;
  background: rgba(8, 10, 14, 0.94) !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
  backdrop-filter: blur(10px) !important;
}

.ffl-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 48px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(12px, 2vw, 28px);
  min-height: 64px;
}

.ffl-header__left {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 14px;
  min-width: 0;
}

.ffl-header__nav {
  display: none;
  min-width: 0;
}

.ffl-header__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  justify-self: center;
  line-height: 0;
  max-width: 100%;
}

.ffl-header__logo-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(340px, 52vw);
  object-fit: contain;
  filter: none !important;
}

.ffl-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 10px;
  min-width: 0;
}

.ffl-header__actions .ffl-btn {
  display: none;
  --ffl-btn-h: 48px;
  --ffl-btn-pad: 5px;
}

/* Language switcher — modern segmented pill */
.ffl-lang {
  flex: 0 0 auto;
}

.ffl-lang__track {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.ffl-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 7px 10px;
  border-radius: 999px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ffl-lang__btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.ffl-lang__btn.is-active {
  background: #fff;
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.ffl-lang--mobile {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0 4px;
}

.ffl-lang--mobile .ffl-lang__track {
  width: 100%;
  max-width: 280px;
  justify-content: space-between;
}

.ffl-lang--mobile .ffl-lang__btn {
  flex: 1;
}

.ffl-mobile-nav__meta {
  padding: 0 4px 8px;
}

.ffl-menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.ffl-menu a,
.ffl-menu__link {
  font-family: "Montserrat", system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #fff !important;
  text-shadow: none !important;
  text-decoration: none !important;
  line-height: 1.2;
  white-space: nowrap;
}

.ffl-menu a:hover,
.ffl-menu__link:hover {
  color: var(--ffl-lime) !important;
}

.ffl-header__burger {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.ffl-header__burger-line {
  width: 16px;
  height: 2px;
  background: #fff;
}

.ffl-mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  padding: 12px clamp(16px, 3vw, 40px) 18px;
  background: rgba(12, 16, 22, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.ffl-mobile-nav.is-open {
  display: block;
}

.ffl-menu--mobile {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.ffl-menu--mobile a,
.ffl-menu--mobile .ffl-menu__link {
  color: #fff !important;
  font-size: 17px !important;
}

.ffl-mobile-nav__cta {
  display: flex;
}

/* Desktop: menu left, logo center, CTA right — no overlap */
@media (min-width: 980px) {
  .ffl-header__inner {
    min-height: 68px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .ffl-header__nav {
    display: block;
  }

  .ffl-header__actions .ffl-btn {
    display: inline-flex;
  }

  .ffl-header__burger,
  .ffl-mobile-nav {
    display: none !important;
  }

  .ffl-header__logo-img {
    height: 52px;
    max-width: 380px;
  }
}

@media (min-width: 1200px) {
  .ffl-header__inner {
    max-width: 1600px;
    padding-left: 48px;
    padding-right: 48px;
  }

  .ffl-menu {
    gap: 8px 26px;
  }

  .ffl-menu a,
  .ffl-menu__link {
    font-size: 18px !important;
  }
}

/* Mobile: logo center, burger right */
@media (max-width: 979px) {
  .ffl-header__inner {
    grid-template-columns: 40px 1fr 40px;
  }

  .ffl-header__nav,
  .ffl-header__left .ffl-lang {
    display: none !important;
  }

  .ffl-mobile-nav__meta {
    display: none !important;
  }

  .ffl-header__brand {
    grid-column: 2;
  }

  .ffl-header__actions {
    grid-column: 3;
  }
}
