/* Liquid glass: pływający, półprzezroczysty pasek z rozmyciem tła */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(255,255,255,0.62) 0%, rgba(255,255,255,0.38) 100%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 8px 28px rgba(26,58,143,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(26,58,143,0.06);
}
/* połysk u góry paska */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.navbar-content { position: relative; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar { background: rgba(255,255,255,0.94); }
}
.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.navbar-logo {
  width: 36px; height: 36px;
  background: #3B6AE8;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.navbar-logo svg { width: 20px; height: 20px; stroke: white; fill: none; stroke-width: 2; }
.navbar-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1A1A2E;
  line-height: 1.2;
  font-family: 'Inter', sans-serif;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
}
.navbar-nav a {
  color: #5A5A7A;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}
/* Linki: po najechaniu zmieniają kolor i pojawia się cienka linia pod spodem, aktywna strona ma ją na stałe */
.navbar-nav a:not(.navbar-cta) {
  position: relative;
  padding: 0.55rem 1rem;
  transition: color 0.25s ease;
}
.navbar-nav a:not(.navbar-cta)::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: #3B6AE8;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.2, 1);
}
.navbar-nav a:not(.navbar-cta):hover {
  color: #3B6AE8;
}
.navbar-nav a:not(.navbar-cta):hover::after,
.navbar-nav a:not(.navbar-cta)[aria-current="page"]::after {
  transform: scaleX(1);
}
.navbar-nav a:not(.navbar-cta)[aria-current="page"] {
  color: #3B6AE8;
}
.navbar-cta {
  background: linear-gradient(135deg, #3B6AE8 0%, #1A3A8F 100%);
  color: white !important;
  padding: 0.75rem 1.75rem;
  margin-left: 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  transition: transform 0.3s cubic-bezier(0.22, 0.7, 0.2, 1), box-shadow 0.3s ease;
}
.navbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(59,106,232,0.35);
}
@media (min-width: 1001px) and (max-width: 1180px) {
  .navbar { padding: 0 1rem; }
  .navbar-nav { gap: 0; }
  .navbar-nav a:not(.navbar-cta) { padding: 0.5rem 0.6rem; font-size: 0.82rem; }
  .navbar-nav a:not(.navbar-cta)::after { left: 0.6rem; right: 0.6rem; }
  .navbar-cta { padding: 0.65rem 1.1rem; font-size: 0.85rem; margin-left: 0.25rem; }
  .navbar-name { font-size: 0.72rem; }
}
#mobile-hamburger { display: none; }
#mobile-menu { display: none; }
@media (max-width: 1000px) {
  .navbar { display: none; }

  #mobile-hamburger {
    display: flex;
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 9999;
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.5);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
  }

  #mobile-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }

  #mobile-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  #mobile-hamburger.open span:nth-child(2) { opacity: 0; }
  #mobile-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  #mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    bottom: 0;
    background: white;
    z-index: 9998;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2rem;
    box-shadow: -8px 0 32px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
  }

  #mobile-menu.open {
    display: flex;
    right: 0;
  }

  #mobile-menu a {
    color: #1A1A2E;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 1rem 0;
    border-bottom: 1px solid #E2E6F3;
    display: block;
    transition: color 0.2s;
  }

  #mobile-menu a:hover { color: #3B6AE8; }
  #mobile-menu a[aria-current="page"] { color: #3B6AE8; }
  #mobile-menu a:last-child {
    border-bottom: none;
    color: #3B6AE8 !important;
    margin-top: 0.5rem;
    font-size: 1.3rem;
    font-weight: 500;
  }

  #mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9997;
  }

  #mobile-overlay.open { display: block; }
}
