.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(5, 6, 7, 0.7);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 7, 0.94);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  font-weight: 950;
  letter-spacing: -0.045em;
}

.brand-bo {
  color: var(--color-blue-hover);
  text-shadow: 0 0 24px rgba(9, 46, 107, 0.28);
}

.brand-go {
  color: var(--color-red);
  text-shadow: 0 0 24px rgba(227, 6, 19, 0.28);
}

.brand-text strong {
  color: #ffffff;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 0;
  gap: 28px;
  font-size: 14px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-blue), var(--color-red));
  transition: transform 0.22s ease;
}

.main-nav a:hover {
  color: #ffffff;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.04);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
  border-radius: 20px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile header alignment fix */
.header-actions {
  margin-left: auto;
}

@media (max-width: 860px) {
  .site-header .container.header-inner {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 6px;
  }

  .site-header .header-actions {
    margin-left: auto;
  }

  .site-header .menu-toggle {
    margin-right: 0;
  }
}

/* CTA tlačidlo v navigácii */
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  box-shadow:
    0 14px 34px rgba(11, 77, 186, 0.22),
    0 10px 26px rgba(227, 6, 19, 0.18);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 18px 42px rgba(11, 77, 186, 0.28),
    0 14px 32px rgba(227, 6, 19, 0.24);
}

.nav-cta:active {
  transform: translateY(0);
}

/* jemne zmenší rozostupy, aby sa CTA zmestilo do navbaru */
.main-nav {
  gap: clamp(16px, 2vw, 28px);
}

/* mobilné menu */
@media (max-width: 860px) {
  .main-nav .nav-cta {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
  }
}