/* ============================================================
   Единый стиль шапки (header) для ВСЕХ страниц — как на главной.
   Подключается внутри партиала partials_site_header, загружается
   последним в каскаде, поэтому переопределяет любые стили навбара
   из инлайн-блоков страниц и общего site-marketing.css.
   ============================================================ */

/* Декоративный фон шапки — как на главной (скроллится вместе со страницей,
   а не фиксируется, как было на остальных страницах) */
.animated-bg {
  position: relative;
  overflow: hidden;
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
  pointer-events: none;
  animation: none;
}

.gradient-blob-1 {
  width: 340px;
  height: 340px;
  background: rgba(16, 185, 129, 0.55);
  top: -120px;
  left: -80px;
}

.gradient-blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(110, 231, 183, 0.5);
  top: -80px;
  right: -60px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(5, 150, 105, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 150, 105, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #e6efeb;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 26px rgba(6, 78, 59, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: #064e3b;
  letter-spacing: -0.02em;
}

.navbar-brand-img {
  height: 38px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-link {
  color: #5b6b66 !important;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  transition: color 0.15s ease, background 0.15s ease;
  background: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #047857 !important;
  background: rgba(5, 150, 105, 0.1) !important;
}

.navbar-toggler {
  border: 1px solid #e6efeb;
  border-radius: 10px;
  box-shadow: none !important;
}

.navbar-toggler:focus,
.navbar-toggler:active {
  box-shadow: none !important;
  outline: none;
  border-color: #cfe9df;
}

/* мобильное меню — пункты и кнопки на всю ширину, как на главной */
@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 8px;
  }
  .navbar-nav.mx-auto {
    margin: 0 !important;
    width: 100%;
  }
  .navbar-collapse .nav-item {
    width: 100%;
  }
  .navbar-collapse .nav-link {
    display: block;
  }
  .navbar-collapse .d-flex.gap-3 {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px !important;
    margin-top: 10px;
  }
  .navbar-collapse .d-flex.gap-3 .btn {
    width: 100%;
  }
}
