/* ============================================================
   Lavena v1 — hero, портированный один в один из v2
   (источник: Lavena v2/site/css/main.css, секция Hero + кнопки).
   Подключается ПОСЛЕ style.css: переопределяет старые правила
   .hero / .hero__video / .hero__scrim / .hero__title.
   Токены (--color-*, --font-*, --space-*) — из css/tokens.css.
   ============================================================ */

.container {
  width: min(var(--container), 100% - 2 * var(--space-4));
  margin-inline: auto;
}

.hero {
  position: relative;
  height: auto;            /* v1 задавал height:100svh + flex-column */
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* фон = цвет поля: виден до загрузки постера/видео, без белой вспышки */
  background: var(--color-ink);
  color: var(--color-on-dark);
  text-align: center;
  z-index: 2;              /* над «зерном бумаги» (body::before, z-index 1) */
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;              /* v1 прятал .hero__video без класса .is-active */
  transition: none;
  z-index: 0;
}

/* Подложка: снизу плотнее — там текст, сверху лёгкая для хедера */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top,
      rgba(34, 31, 56, 0.78) 0%,
      rgba(34, 31, 56, 0.35) 42%,
      rgba(34, 31, 56, 0.12) 70%,
      rgba(34, 31, 56, 0.30) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  padding-block: var(--space-8);
  display: grid;
  justify-items: center;
  gap: var(--space-4);
}

/* айбро — «музейный ярлык»: моно, 0.05em */
.hero__eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-lavender-soft);
  animation: hero-rise 0.9s var(--ease-enter) both;
}

.hero__title {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.042em;
  font-feature-settings: 'ss02';
  text-wrap: balance;
  color: var(--color-on-dark);
  text-shadow: none;
  animation: hero-rise 0.9s var(--ease-enter) 0.12s both;
}

.hero__title em {
  font-style: italic;
  color: var(--color-dawn);
}

.hero__lead {
  margin: 0;
  max-width: 38rem;
  font-family: var(--font-sans);
  font-size: var(--text-lead);
  line-height: 1.6;
  color: var(--color-on-dark-muted);
  text-shadow: none;
  animation: hero-rise 0.9s var(--ease-enter) 0.24s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-2);
  animation: hero-rise 0.9s var(--ease-enter) 0.36s both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* Кнопки хиро — как в v2; скоуп .hero, чтобы не трогать остальные .btn v1 */
.hero .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: none;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease,
              transform var(--dur-fast) ease;
}

.hero .btn:active { transform: translateY(1px); }

.hero .btn--primary {
  background: var(--color-dawn);
  color: var(--color-ink);
}

.hero .btn--primary:hover {
  background: var(--color-surface);
  transform: none;
}

.hero .btn--ghost {
  border: 1px solid rgba(247, 245, 251, 0.45);
  color: var(--color-on-dark);
  background: rgba(34, 31, 56, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero .btn--ghost:hover {
  border-color: rgba(247, 245, 251, 0.8);
  background: rgba(247, 245, 251, 0.12);
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__actions { animation: none; }
}
