html {
  --nav-visual-offset: 0px;
}

nav {
  position: fixed;
  top: var(--nav-visual-offset);
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transform: translate3d(0, 0, 0);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { height: 24px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 18px;
  min-width: 0;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 400;
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  user-select: none;
  transition: color 0.2s ease;
}

.lang-switch i { font-size: 14px; opacity: 0.9; }
.lang-switch::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}
.lang-switch:hover,
.lang-switch:focus-within { color: #fff; }

.lang-current {
  min-width: 22px;
  pointer-events: none;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  inset: -10px;
  z-index: 2;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  outline: none;
}

.lang-select option {
  color: #1d1d1f;
  background: #fff;
  font-weight: 600;
}

.btn-aventail {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  overflow: hidden;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
  text-align: center;
}

.btn-aventail::before {
  content: '';
  position: absolute;
  top: var(--y, 50%);
  left: var(--x, 50%);
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
}

.btn-aventail:hover::before { opacity: 1; }

.btn-aventail:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px var(--glow-color);
}

.glass-cta {
  background: linear-gradient(140deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.06) 100%);
  border: 0.5px solid rgba(240, 224, 255, 0.72);
  box-shadow: 0 10px 28px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.32);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.glass-cta::before { display: none; }

.glass-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(140deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.09) 100%);
  border-color: rgba(251, 241, 255, 0.95);
  box-shadow: 0 14px 30px rgba(0,0,0,0.38), 0 0 0 0.5px rgba(243, 227, 255, 0.72), inset 0 1px 0 rgba(255,255,255,0.36);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
}

.hero-cta .cta-arrow {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  opacity: 0.9;
  transform: translateX(0);
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.hero-cta:hover .cta-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.mobile-menu .mobile-menu-cta {
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
}

.nav-cta {
  border-radius: 10px;
  padding: 9px 22px;
  font-size: 13px;
  font-weight: 500;
}

.mobile-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) 26px max(24px, env(safe-area-inset-bottom));
  background: rgba(6, 7, 10, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.32s ease, transform 0.32s ease;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
}

.mobile-menu-close {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.52);
}

.mobile-menu-links {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  text-align: left;
  width: 100%;
  padding-left: 4px;
  min-height: 0;
}

.mobile-menu-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.96);
  font-size: clamp(28px, 8.5vw, 40px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  opacity: 0;
  transform: translateY(12px);
  transition: color 0.2s ease, transform 0.35s ease, opacity 0.35s ease;
}

.mobile-menu.open .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu-links a:nth-child(1) { transition-delay: 0.03s; }
.mobile-menu.open .mobile-menu-links a:nth-child(2) { transition-delay: 0.07s; }
.mobile-menu.open .mobile-menu-links a:nth-child(3) { transition-delay: 0.11s; }
.mobile-menu.open .mobile-menu-links a:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-menu-links a:nth-child(5) { transition-delay: 0.19s; }
.mobile-menu.open .mobile-menu-links a:nth-child(6) { transition-delay: 0.23s; }
.mobile-menu.open .mobile-menu-links a:nth-child(7) { transition-delay: 0.27s; }

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: #fff;
  transform: translateY(-1px);
}

.mobile-menu-footer {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 22px;
  margin-top: auto;
  padding-top: 8px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.34s ease 0.18s, transform 0.34s ease 0.18s;
}

.mobile-menu.open .mobile-menu-footer {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mobile-menu-cta { min-width: 148px; }

.mobile-menu-social {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 18px;
  display: flex;
  justify-content: center;
  gap: 18px;
  color: rgba(255,255,255,0.72);
  font-size: 20px;
}

.mobile-menu-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.mobile-menu-social a:hover,
.mobile-menu-social a:focus-visible {
  color: #fff;
  opacity: 1;
}

.mobile-menu-social i { color: currentColor; }

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 900px) {
  .nav-links,
  .nav-right {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav-inner {
    position: relative;
    height: 64px;
  }

  .nav-inner > .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 132px);
  }

  .nav-inner > .logo img,
  .mobile-menu-top .logo img {
    max-width: 100%;
  }

  .mobile-menu-top {
    justify-content: flex-end;
  }

  .mobile-menu-top .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 132px);
  }
}

@media (max-width: 560px) {
  .mobile-menu {
    padding-left: 16px;
    padding-right: 16px;
  }

  .mobile-menu-links {
    gap: 14px;
  }

  .mobile-menu-links a {
    font-size: clamp(24px, 7.8vw, 34px);
  }

  .mobile-menu-social {
    font-size: 18px;
  }
}
