/* ─── Topbar ─────────────────────────────────────────────── */
.topbar {
  background: var(--bg-3-2);
  color: rgba(255,255,255,.82);
  font-size: 11.5px;
  font-family: var(--font);
  letter-spacing: .01em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  flex-wrap: wrap;
}
.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,.80);
  transition: color .15s;
  font-size: 11.5px;
}
.topbar__item:hover { color: var(--accent); }
.topbar__item svg { flex-shrink: 0; width: 12px; height: 12px; }
.topbar__divider { width: 1px; height: 12px; background: rgba(255,255,255,.18); }
.topbar__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.80);
  font-size: 12px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.topbar__lang:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }

/* ─── Social Icons ───────────────────────────────────────── */
.social { display: flex; gap: 6px; }
.social__link {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s, transform .15s;
}
.social__link:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.30);
  transform: translateY(-1px);
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 75px;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(11,18,32,.06);
  box-shadow: 0 1px 16px rgba(7,18,42,.05);
  transition: box-shadow .25s, background .25s;
}
.nav.scrolled { 
  box-shadow: 0 4px 24px rgba(7,18,42,.10); 
  background: rgba(255,255,255,.98);
}
.nav > .container {
  height: 100%;
  display: flex;
  align-items: center;
}
.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { height: 50px; width: auto; }
.brand__text { display: grid; line-height: 1.2; }
.brand__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--bg-3);
}
.brand__sub {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: .01em;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.menu__link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  padding: 8px 15px;
  border-radius: 6px;
  transition: all .18s;
  white-space: nowrap;
  text-decoration: none;
}
.menu__link:hover { 
  background: rgba(13,78,166,.06); 
  color: var(--primary); 
}
.menu__link.active { 
  color: var(--primary); 
  font-weight: 600; 
  background: rgba(13,78,166,.08);
}

/* Dropdown */
.menu__item { position: relative; }
.menu__item:hover .dropdown { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(11,18,32,.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(7,18,42,.12);
  padding: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all .2s;
  z-index: 200;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top: none;
  border-bottom-color: #fff;
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  transition: all .15s;
  text-decoration: none;
}
.dropdown a:hover { 
  background: rgba(13,78,166,.06); 
  color: var(--primary); 
}
.dropdown a .dd-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(13,78,166,.08);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: #fff;
  color: var(--bg-3);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.lang-toggle:hover {
  background: rgba(0,0,0,0.04);
}
.lang-toggle svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lang-flags {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.lang-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.lang-flag svg {
  width: 18px;
  height: 12px;
  border-radius: 2px;
}
.lang-label {
  color: var(--bg-3);
  font-weight: 600;
}
.lang-divider {
  color: rgba(0,0,0,0.3);
  font-weight: 400;
  margin: 0 4px;
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .14s, box-shadow .14s, background .14s, border-color .14s, color .14s;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  border-color: rgba(26,99,200,.4);
  box-shadow: 0 6px 20px rgba(13,78,166,.28);
}
.btn--primary:hover { box-shadow: 0 10px 28px rgba(13,78,166,.36); }
.btn--outline {
  background: transparent;
  border-color: rgba(11,46,94,.22);
  color: var(--bg-3);
}
.btn--outline:hover { background: rgba(13,78,166,.06); border-color: rgba(13,78,166,.35); }
.btn--ghost {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.btn--ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.45); }
.btn--accent {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  border-color: rgba(0,174,239,.35);
  box-shadow: 0 6px 20px rgba(0,150,214,.25);
}
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 15px 32px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

/* ─── Mobile toggle ──────────────────────────────────────── */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  place-items: center;
  transition: background .14s;
  flex-shrink: 0;
}
.mobile-toggle:hover { background: var(--bg-2); }

.mobile-wrapper {
  display: none;
}

/* ─── Mobile Drawer ──────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,18,42,.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 150;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  z-index: 160;
  display: flex;
  flex-direction: column;
  box-shadow: 8px 0 40px rgba(0,0,0,.2);
}
body.nav-open .drawer-overlay { opacity: 1; pointer-events: auto; }
body.nav-open .drawer { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.drawer__nav {
  flex: 1;
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.drawer__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: all .15s;
}
.drawer__nav a:hover, .drawer__nav a.active { 
  background: rgba(13,78,166,.08); 
  color: var(--primary); 
}
.drawer__nav a .d-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(13,78,166,.08);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--primary);
}
.drawer__footer {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.drawer__footer .btn { width: 100%; justify-content: center; }

/* ─── Responsive breakpoints ─────────────────────────────── */
@media (max-width: 1024px) {
  .menu { display: none; }
  .nav__actions { display: none !important; }
  .nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .brand { 
    order: 0; 
    flex-shrink: 0;
  }
  .mobile-wrapper {
    display: flex !important;
    align-items: center;
    gap: 8px;
    order: 1;
    flex-shrink: 0;
  }
  .mobile-toggle { 
    display: grid !important; 
  }
  .lang-toggle--mobile {
    padding: 6px 8px;
    order: 0;
    background: transparent;
  }
  .mobile-toggle {
    order: 1;
  }
  .lang-toggle--mobile .lang-flag {
    gap: 0;
  }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav { height: 70px; }
  .brand img { height: 36px; }
  .brand__text { display: none; }
}

@media (max-width: 576px) {
  .drawer { width: 100%; max-width: 100%; }
  .nav { height: 65px; }
  .btn--lg { padding: 13px 24px; font-size: 14px; }
}