.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(11, 11, 13, 0.70);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: visible;
}

.header::before {
  content: "";
  position: absolute;
  inset: -60%;
  background:
    radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%),
      rgba(220,38,38,0.35), transparent 60%),
    radial-gradient(500px circle at calc(100% - var(--mx, 50%)) calc(100% - var(--my, 50%)),
      rgba(252,165,165,0.25), transparent 60%);
  filter: blur(40px);
  opacity: 0.7;
  transition: opacity .2s ease;
  pointer-events: none;
}

.glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(220,38,38,0.06), rgba(252,165,165,0.06));
  pointer-events: none;
}

.ripples { 
  position: absolute; 
  inset: 0; 
  pointer-events: none; 
}

.ripple {
  position: absolute;
  width: 12px; 
  height: 12px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(30% 30% at 50% 50%, rgba(255,255,255,0.9), rgba(255,255,255,0));
  animation: ripple .7s ease forwards;
}

@keyframes ripple { 
  0% { opacity: .9; transform: translate(-50%, -50%) scale(1); } 
  100% { opacity: 0; transform: translate(-50%, -50%) scale(10); } 
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  color: var(--fg);
  width: 100%;
  box-sizing: border-box;
}

.brand { 
  display: inline-flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 600; 
  letter-spacing: 1px; 
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.logoDot {
  width: 12px; 
  height: 12px; 
  border-radius: 999px;
  background: conic-gradient(from 0deg, var(--accent1), var(--accent2));
  box-shadow: 0 0 16px rgba(220,38,38,.6);
  animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse { 
  0%, 100% { transform: scale(1); filter: brightness(1); } 
  50% { transform: scale(1.15); filter: brightness(1.15); } 
}

.logoText { 
  font-size: 1.1rem; 
  font-weight: 600;
  color: #ffffff;
  text-transform: none;
  letter-spacing: 1.2px;
}

.nav { 
  display: flex; 
  gap: 20px; 
  justify-content: center; 
}

.language-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.link {
  position: relative; 
  color: var(--fg); 
  text-decoration: none; 
  font-weight: 500; 
  padding: 8px 2px;
  transition: color .2s ease;
}

.link.active { color: var(--fg); }

.link::after { display: none; }

.link:hover { color: var(--accent1); }

.burger {
  display: none; 
  width: 44px; 
  height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
  border-radius: 10px; 
  cursor: pointer;
}

.burger span { 
  display: block; 
  width: 22px; 
  height: 2px; 
  margin: 6px auto; 
  background: var(--fg); 
  border-radius: 2px; 
}

@media (max-width: 860px) {
  .container { 
    grid-template-columns: auto 1fr auto auto; 
    gap: 8px;
    padding: 14px 12px;
  }
  
  .nav {
    position: absolute; 
    top: 60px; 
    right: 12px;
    background: rgba(17,17,17,0.92);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; 
    padding: 10px 12px;
    display: none; 
    flex-direction: column; 
    gap: 10px;
    z-index: 1000;
  }
  
  .nav.open { 
    display: flex; 
  }
  
  .language-switcher {
    order: -1;
    margin-bottom: 10px;
    justify-content: center;
  }
  
  .burger { 
    display: inline-block; 
  }
}
