/* Видео-блок перед направлениями — чёрный фон, акцент #186AFF как у номеров в блоке «Преимущества» */
.rb-section.nmi-hero-showcase {
  --pvs-accent: #186aff;
  --pvs-surface: #0d0d0d;
  --pvs-card: #111111;
  --pvs-border: rgba(255, 255, 255, 0.12);
  --pvs-text: #fff;
  --pvs-muted: rgba(255, 255, 255, 0.78);
  background: #000;
  color: var(--pvs-text);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
}

@media (min-width: 992px) {
  .rb-section.nmi-hero-showcase {
    padding: 4.5rem 0;
  }
}

.nmi-hero-showcase .nmi-hero-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 992px) {
  .nmi-hero-showcase .nmi-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: 3rem;
    align-items: center;
  }
}

.nmi-hero-showcase .nmi-hero-caption {
  color: var(--pvs-accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.nmi-hero-showcase .nmi-hero-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 1.25rem;
  min-height: 3em;
  color: #fff;
}

.nmi-hero-showcase .nmi-hero-title .nmi-typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  margin-left: 2px;
  background: var(--pvs-accent);
  vertical-align: -0.05em;
  animation: pvs-cursor-blink 0.9s step-end infinite;
}

@keyframes pvs-cursor-blink {
  50% {
    opacity: 0;
  }
}

.nmi-hero-showcase .nmi-hero-reveal {
  opacity: 0;
  animation: pvs-fade-in 2.2s ease forwards;
  animation-delay: 0.55s;
}

.nmi-hero-showcase .nmi-hero-reveal p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 36rem;
  color: var(--pvs-muted);
}

@keyframes pvs-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nmi-hero-showcase .nmi-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  background: var(--pvs-accent);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.nmi-hero-showcase .nmi-hero-cta:hover {
  opacity: 0.92;
  color: #fff;
  transform: translateY(-1px);
}

.nmi-hero-showcase .nmi-hero-visual {
  position: relative;
  min-width: 0;
}

.nmi-hero-showcase .nmi-hero-video-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  background: var(--pvs-card);
  border: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nmi-hero-showcase .nmi-hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 750px) {
  .nmi-hero-showcase .nmi-hero-video-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.35) 65%,
      rgba(0, 0, 0, 0.82) 100%
    );
  }
}

@media (max-width: 991px) {
  .nmi-hero-showcase .nmi-hero-video-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0) 0%,
      rgba(0, 0, 0, 0.45) 100%
    );
  }
}

.nmi-hero-showcase .nmi-hero-stats {
  margin-top: 1.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.nmi-hero-showcase .nmi-hero-stats-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: pvs-stats-marquee 36s linear infinite;
}

.nmi-hero-showcase .nmi-hero-stats:hover .nmi-hero-stats-track {
  animation-play-state: paused;
}

@keyframes pvs-stats-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.nmi-hero-showcase .nmi-stat-card {
  flex: 0 0 auto;
  width: 158px;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nmi-hero-showcase .nmi-stat-card:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

.nmi-hero-showcase .nmi-stat-card .nmi-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: #fff;
}

.nmi-hero-showcase .nmi-stat-card .nmi-stat-label {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (prefers-reduced-motion: reduce) {
  .nmi-hero-showcase .nmi-hero-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .nmi-hero-showcase .nmi-hero-stats-track {
    animation: none;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
  }
  .nmi-hero-showcase .nmi-hero-title .nmi-typewriter-cursor {
    display: none;
  }
}
