.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column;
  z-index: 1;                               /* поверх глобального видеофона */
}
.hero-nav, .hero-inner, .hero-scroll { position: relative; z-index: 2; }

.hero-text { position: relative; max-width: 64ch; }

/* NAV */
.hero-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 1.6rem; position: relative; z-index: 3;
}
.hero-logo { font-family: var(--font-display); font-weight: 800; letter-spacing: .02em; font-size: 1.25rem; display: inline-flex; align-items: baseline; gap: .15em; }
.hero-logo-mark { color: var(--cyan); font-weight: 600; }
.hero-nav-links { display: flex; align-items: center; gap: 2rem; }
.hero-nav-links a { color: var(--text-dim); font-weight: 500; transition: color .2s; }
.hero-nav-links a:hover { color: var(--text); }
.hero-nav-cta { color: var(--text) !important; }

/* CONTENT */
.hero-inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2; padding-top: 4rem; padding-bottom: 9rem;
}
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero-title {
  /* минимум зависит от ширины экрана: «Безграничные» (Unbounded 800) не должно резаться на 320-430px */
  font-size: clamp(1.7rem, 9vw, 7rem); letter-spacing: -.03em;
  text-shadow: 0 2px 30px rgba(6,8,16,.7), 0 0 50px rgba(181,127,255,.2);
}
.hero-title-grad {
  background: var(--grad-eyes); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 24px rgba(181,127,255,.32));
}
.hero-sub {
  margin-top: 1.8rem; max-width: 46ch; color: var(--text-dim);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }

/* бегущая строка — на всю ширину экрана, внизу hero */
.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 4.5rem; z-index: 2;
  width: 100%; overflow: hidden; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  letter-spacing: .18em; color: var(--text-dim); opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-marquee-track { display: inline-flex; animation: hero-scroll-x 32s linear infinite; }
@keyframes hero-scroll-x { to { transform: translateX(-33.333%); } }

/* индикатор скролла */
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid var(--line); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero-scroll span { width: 4px; height: 8px; border-radius: 4px; background: var(--cyan);
  animation: hero-scroll-dot 1.8s ease-in-out infinite; }
@keyframes hero-scroll-dot { 0%,100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(10px); } }
.hero-sub { text-shadow: 0 1px 14px rgba(6,8,16,.8); }
@media (max-width: 720px) {
  .hero-nav-links a:not(.hero-nav-cta) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee span, .hero-scroll span { animation: none; }
}
