:root {
  --header-bg: linear-gradient(
    135deg,
    rgba(26, 26, 26, 0.82),
    rgba(8, 8, 8, 0.66)
  );
  --header-border: rgba(255, 255, 255, 0.12);
  --header-shadow: none;
  --header-link-color: #fff;
  --header-link-hover: #fff;
  --header-accent: var(--red, var(--red-main, #e50914));
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  pointer-events: none;
}

#site-header > * {
  pointer-events: auto;
}

#site-header a,
#site-header button,
#site-header select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.navbar-custom {
  position: relative;
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
  z-index: 10000;
}

.navbar-custom .nav-link,
.navbar-brand {
  color: var(--header-link-color) !important;
}

.navbar-custom .nav-link {
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.navbar-custom .nav-link:hover {
  color: var(--header-link-hover) !important;
}

.navbar-custom .nav-link.is-current {
  color: #fff !important;
  text-shadow: 0 0 14px rgba(229, 9, 20, 0.736);
}

.navbar-custom .nav-link.is-current::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 0.4rem;
  background: var(--header-accent);
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.3);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-family: "Rajdhani", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0;
}

.navbar-logo {
  display: block;
  width: auto;
  height: 90px;
  max-width: 180px;
  object-fit: contain;
}

.btn-contact {
  border: 1px solid var(--header-accent);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.15rem;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn-contact:hover {
  background: var(--header-accent);
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
  position: relative;
}

.lang-select {
  display: block;
  height: 34px;
  line-height: 34px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 2.15rem 0 0.7rem;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.lang-switch::after {
  content: "";
  position: absolute;
  right: 0.82rem;
  top: 50%;
  width: 0.46rem;
  height: 0.46rem;
  border-right: 2px solid rgba(255, 255, 255, 0.78);
  border-bottom: 2px solid rgba(255, 255, 255, 0.78);
  transform: translateY(-64%) rotate(45deg);
  pointer-events: none;
}

.lang-select option {
  color: #111;
  background: #fff;
}

.lang-switch:focus-within,
.lang-switch:hover {
  border-color: rgba(255, 107, 114, 0.6);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.16);
}

@media (max-width: 991px) {
  #site-header .navbar-collapse {
    padding: 0.9rem 0 0.35rem;
  }

  #site-header .navbar-nav {
    gap: 0.15rem;
  }

  #site-header .nav-link {
    padding: 0.58rem 0;
  }

  #site-header .navbar-logo {
    height: 90px;
    max-width: 180px;
  }

  #site-header .navbar-nav,
  #site-header .lang-switch {
    width: 100%;
  }

  #site-header .lang-switch {
    margin: 0.9rem 0 0;
    min-height: 50px;
  }

  #site-header .lang-select {
    width: 100%;
    height: 50px;
    line-height: 50px;
    padding: 0 2.8rem 0 1rem;
    text-align: center;
    text-align-last: center;
  }

  #site-header .btn-contact {
    width: 100%;
    margin: 0.7rem 0 0;
    padding: 0.72rem 1rem;
    text-align: center;
    justify-content: center;
  }
}
