/* minimal safe fix */

/* декоративные слои не должны перехватывать клики */
.brand-badge::before,
.hero-card::before,
.hero-card::after {
  pointer-events: none;
}

/* локальные стек-контексты для карточек */
.hero-card,
.card,
.article,
.test-panel,
.quote,
.notice {
  position: relative;
  isolation: isolate;
}

/* ссылки и кнопки поверх декоративных слоев */
.site-header a,
.hero-actions a,
.section-actions a,
.cta-actions a,
.footer-links a,
.contact-item a,
button {
  position: relative;
  z-index: 5;
}

/* шапка */
.site-header {
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: nowrap;
}

.brand {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  white-space: nowrap;
}

.nav-cta {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 14px;
  padding: 0 16px;
}

@media (max-width: 1280px) {
  .nav {
    gap: 14px;
  }

  .nav-links {
    gap: 10px;
    font-size: 13px;
  }

  .nav-cta {
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    width: 100%;
    order: 3;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
}
