/* ============ HERO ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 74px;
  padding-bottom: 74px;
}

/* Tekstura siatki technicznej (::before-owy wariant, przygaszony) */
.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(#ffffff08 1px, transparent 1px),
    linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
  opacity: 0.5;
  /* wygaszenie ku dołowi, żeby siatka nie konkurowała z treścią */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
}

/* --- Lewa kolumna: treść --- */
.hero__eyebrow { margin-bottom: 20px; }

.hero__title {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-head);
  margin-bottom: 22px;
  max-width: 15ch;
}

.hero__lead {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 30px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 38px;
}

/* --- Pasek statystyk --- */
.hero__stats {
  list-style: none;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 20ch;
}

/* --- Prawa kolumna: kadr wideo --- */
.hero__frame {
  aspect-ratio: 16 / 9;
  min-height: 340px;
  align-items: stretch;
  justify-content: flex-start;
}
.hero__frame .media-ph__tag {
  position: absolute;
  left: 0;
  bottom: 0;
}

/* Plakietka REC w rogu */
.hero__rec {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(14, 13, 11, 0.72);
  border: 1px solid var(--border-2);
  border-radius: var(--r-tag);
  padding: 6px 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero__rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: hero-rec-blink 1.6s ease-in-out infinite;
}
@keyframes hero-rec-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* --- Responsywność --- */
@media (max-width: 860px) {
  .hero { padding-top: 52px; padding-bottom: 52px; }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .hero__title { font-size: 42px; }
  .hero__frame { min-height: 260px; }
}

@media (max-width: 520px) {
  .hero__title { font-size: 31px; }
  .hero__lead { font-size: 16px; }
  .hero__stats { gap: 22px 28px; }
  .hero__stat-num { font-size: 21px; }
}

/* Wyłączenie animacji dla użytkowników z reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__rec-dot { animation: none; }
}
