/* Shared navbar + floating download */

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #2b8fc7;
  color: #fff;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

/* ── Navbar: frosted dark navy glass ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 32px rgba(15, 23, 42, 0.35);
}

.site-navbar {
  background: transparent;
}

.site-navbar-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem;
  min-height: 3.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .site-navbar-inner {
    padding: 0 1.75rem;
    min-height: 4.25rem;
  }
}

@media (min-width: 1024px) {
  .site-navbar-inner { padding: 0 2rem; }
}

/* Brand */
.site-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.2s ease;
}
.site-brand:hover { opacity: 0.9; }

.site-brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(59, 130, 246, 0.3));
}

@media (min-width: 640px) {
  .site-brand-icon { width: 38px; height: 38px; }
}

.site-brand-name {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #f8fafc;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  .site-brand-name { font-size: 1.375rem; }
}

/* Desktop nav */
.site-nav {
  display: none;
  align-items: center;
  gap: 0.375rem;
}

@media (min-width: 1024px) {
  .site-nav { display: flex; }
}

.site-nav-link {
  position: relative;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 0.5rem;
  background: transparent;
  transition: color 0.25s ease, text-shadow 0.25s ease;
  white-space: nowrap;
}

.site-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0.25rem;
  left: 50%;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #38bdf8);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.site-nav-link:hover {
  color: #f1f5f9;
  background: transparent;
  text-shadow: 0 0 20px rgba(148, 163, 184, 0.25);
}

.site-nav-link:hover::after {
  width: 50%;
}

.site-nav-link-active {
  color: #f1f5f9;
  background: transparent;
}

.site-nav-link-active::after {
  width: 55%;
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.8),
    0 0 4px rgba(59, 130, 246, 0.5);
}

/* Mobile toggle */
.site-nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav-mobile-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}

@media (min-width: 1024px) {
  .site-nav-mobile-toggle { display: none; }
}

/* Mobile menu */
.site-nav-mobile {
  display: none;
  padding: 0.5rem 1.25rem 1rem;
  max-width: 72rem;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-nav-mobile.is-open { display: block; }

@media (min-width: 1024px) {
  .site-nav-mobile { display: none !important; }
}

.site-nav-mobile .site-nav-link {
  display: block;
  margin-bottom: 0.125rem;
  padding: 0.625rem 0.75rem;
}

.site-nav-mobile .site-nav-link-active::after {
  display: none;
}

.site-nav-mobile .site-nav-link-active {
  color: #7dd3fc;
  background: transparent;
}

/* Navbar download CTA (next to language switcher) */
.site-nav-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff !important;
  text-decoration: none !important;
  white-space: nowrap;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-nav-download-btn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.site-nav-download-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .site-nav-download-btn span {
    display: none;
  }
  .site-nav-download-btn {
    padding: 0.5rem;
  }
}

html[lang="ru"] .site-nav-download-btn {
  padding: 0.55rem 1.1rem;
}

html[dir="rtl"] .site-navbar-actions {
  flex-direction: row-reverse;
}

/* Floating download — brand blue */
#floating-download {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 9999px;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#floating-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.55);
}
#floating-download svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

html[dir="rtl"] #floating-download {
  right: auto;
  left: 1.5rem;
}
