@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&display=swap");

.nk-hero-section {
  background: #f4f7fc;
  padding: 36px 0 48px;
  font-family: "Exo 2", system-ui, sans-serif;
}

.nk-hero-section .nk-hero-card {
  position: relative;
  width: min(88%, 1200px);
  max-width: 1200px;
  min-height: 288px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(128deg, #061b3a 0%, #082b63 48%, #051528 100%);
  box-shadow: 0 20px 52px rgba(6, 27, 58, 0.2), 0 0 0 1px rgba(30, 136, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 40px clamp(32px, 5vw, 72px);
  border: 1px solid rgba(30, 136, 255, 0.16);
}

.nk-hero-section .nk-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 58% 72% at 84% 44%, rgba(30, 136, 255, 0.3), transparent 54%),
    radial-gradient(circle at 72% 30%, rgba(94, 184, 255, 0.14), transparent 30%);
  pointer-events: none;
}

.nk-hero-section .nk-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(6, 27, 58, 0.38) 0%, transparent 42%, transparent 58%, rgba(6, 27, 58, 0.1) 100%);
  pointer-events: none;
}

/* Статични частици — без движение */
.nk-hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.nk-particle {
  position: absolute;
  border-radius: 50%;
  background: #5eb8ff;
  box-shadow: 0 0 6px rgba(30, 136, 255, 0.5);
  opacity: 0.4;
}

.nk-particle:nth-child(1)  { left: 58%; top: 6%;  width: 3px; height: 3px; }
.nk-particle:nth-child(2)  { left: 67%; top: 14%; width: 2px; height: 2px; opacity: 0.32; }
.nk-particle:nth-child(3)  { left: 74%; top: 9%;  width: 3px; height: 3px; }
.nk-particle:nth-child(4)  { left: 81%; top: 18%; width: 2px; height: 2px; opacity: 0.35; }
.nk-particle:nth-child(5)  { left: 88%; top: 11%; width: 3px; height: 3px; }
.nk-particle:nth-child(6)  { left: 52%; top: 22%; width: 2px; height: 2px; opacity: 0.28; }
.nk-particle:nth-child(7)  { left: 63%; top: 28%; width: 3px; height: 3px; }
.nk-particle:nth-child(8)  { left: 71%; top: 35%; width: 2px; height: 2px; opacity: 0.3; }
.nk-particle:nth-child(9)  { left: 79%; top: 24%; width: 3px; height: 3px; }
.nk-particle:nth-child(10) { left: 86%; top: 32%; width: 2px; height: 2px; opacity: 0.33; }
.nk-particle:nth-child(11) { left: 91%; top: 20%; width: 3px; height: 3px; }
.nk-particle:nth-child(12) { left: 55%; top: 38%; width: 2px; height: 2px; opacity: 0.26; }
.nk-particle:nth-child(13) { left: 68%; top: 42%; width: 3px; height: 3px; }
.nk-particle:nth-child(14) { left: 77%; top: 48%; width: 2px; height: 2px; opacity: 0.3; }
.nk-particle:nth-child(15) { left: 84%; top: 44%; width: 3px; height: 3px; }
.nk-particle:nth-child(16) { left: 93%; top: 52%; width: 2px; height: 2px; opacity: 0.28; }
.nk-particle:nth-child(17) { left: 61%; top: 52%; width: 3px; height: 3px; }
.nk-particle:nth-child(18) { left: 72%; top: 58%; width: 2px; height: 2px; opacity: 0.25; }

.nk-hero-left {
  position: relative;
  z-index: 2;
  flex: 0 0 clamp(150px, 19vw, 230px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nk-hero-section .nk-hero-logo {
  width: clamp(148px, 16.8vw, 196px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(30, 136, 255, 0.32));
}

.nk-hero-copy {
  position: relative;
  z-index: 3;
  margin-left: clamp(16px, 2.5vw, 36px);
  margin-right: auto;
  max-width: min(640px, 56vw);
  min-width: 0;
  flex: 0 1 auto;
  padding-right: 0;
  overflow: visible;
  text-align: left;
}

.nk-hero-section .nk-hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.14em;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", "Exo 2", system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.65vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.nk-hero-section .nk-hero-line {
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

.nk-hero-section .nk-hero-line--white {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nk-hero-section .nk-hero-line--accent {
  color: #42b4ff;
  font-weight: 700;
  font-size: 1.06em;
  letter-spacing: 0.025em;
  text-shadow: 0 0 24px rgba(30, 136, 255, 0.45);
}

.nk-hero-section .nk-hero-line--soft {
  position: relative;
  z-index: 4;
  color: #e8f0fc;
  font-weight: 700;
  font-size: 0.5em;
  letter-spacing: 0.012em;
  text-shadow: 0 1px 10px rgba(6, 27, 58, 0.45);
}

.nk-hero-network {
  position: absolute;
  z-index: 2;
  right: 1%;
  top: 50%;
  transform: translateY(-50%);
  width: 52%;
  max-width: 520px;
  height: 96%;
  pointer-events: none;
  opacity: 0.96;
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 90%, transparent 100%);
}

.nk-hero-network .nk-network-links line {
  stroke: #1e88ff;
}

.nk-hero-network .nk-network-node,
.nk-hero-network .nk-network-spark {
  animation: none !important;
}

.nk-hero-network .nk-traveler {
  filter: drop-shadow(0 0 8px rgba(30, 136, 255, 0.5));
}

.nk-hero-network .nk-network-stations use {
  filter: drop-shadow(0 0 4px rgba(30, 136, 255, 0.35));
}

/* Override oae-theme (legacy banner only) */
.banner-section .banner-wrapper--nk-hero .banner-hero-panel .nk-hero-line--accent,
.banner-section .banner-hero-panel .nk-hero-line--accent {
  color: transparent !important;
  background: linear-gradient(90deg, #8ec5ff 0%, #1e88ff 50%, #6eb6ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: none !important;
}

.nk-hero-section .nk-hero-line--accent {
  color: #42b4ff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: #42b4ff !important;
}

@media (max-width: 991px) {
  .nk-hero-section .nk-hero-card {
    width: calc(100% - 28px);
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 36px 24px 32px;
  }

  .nk-hero-left {
    flex: none;
  }

  .nk-hero-section .nk-hero-logo {
    width: 158px;
  }

  .nk-hero-copy {
    margin-left: 0;
    margin-top: 24px;
    max-width: 100%;
    padding-right: 0;
  }

  .nk-hero-section .nk-hero-title {
    align-items: center;
    width: 100%;
  }

  .nk-hero-network {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: none;
    height: 220px;
    margin-top: 16px;
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nk-hero-network .nk-network-travelers {
    display: none;
  }

  .nk-hero-network .nk-network-stations {
    opacity: 0.45 !important;
  }
}
