/* ════════════════════════════════════════════
   SECTIONS / INTRO — 3-фазовая видео-заставка
   Часть 1 из общего файла sections.css, разбитого по вкладкам сайта
   (архитектурный аудит, пункт «разбить sections.css на файлы»).
   Порядок подключения см. в <head> index.html — важен для каскада.
════════════════════════════════════════════ */

/* ── Intro / Promo (3-phase) ── */
.intro {
  position: fixed;
  inset: 0;
  z-index: var(--z-intro);
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease, visibility 1s ease;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Значения z-index 1–4 ниже — локальный порядок слоёв ВНУТРИ .intro
   (у которого свой stacking context через z-index: var(--z-intro) выше).
   Они не конкурируют с глобальной шкалой в base.css и не нуждаются
   в токенах — это нормальная практика для локальной композиции. */
.intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  z-index: 1;
  transition: opacity 1.2s ease;
}

.intro__video.is-fading {
  opacity: 0;
}

.intro__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  z-index: 2;
  transition: opacity 1s ease;
}

.intro__overlay.is-dark {
  opacity: 0.92;
}

.intro__content {
  position: relative;
  z-index: 3;
  text-align: center;
  opacity: 0;
  transform: scale(0.88) translateY(20px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.intro__content.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.intro__logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(120px, 28vw, 300px);
  letter-spacing: 0.14em;
  color: var(--blue);
  line-height: 1;
  text-shadow:
    0 0 60px var(--blue-glow),
    0 0 120px rgba(22, 38, 185, 0.2),
    0 4px 40px rgba(0, 0, 0, 0.9);
}

.intro__tagline {
  font-size: clamp(12px, 2vw, 18px);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 8px;
  font-weight: 300;
}

.intro__skip {
  position: absolute;
  bottom: 36px;
  right: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 500;
  font-family: 'Raleway', sans-serif;
  transition: background var(--duration-base), border-color var(--duration-base);
}

.intro__skip:hover {
  background: rgba(22, 38, 185, 0.45);
  border-color: var(--blue);
}

.intro__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 4;
}

.intro__progress-bar {
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.1s linear;
}

@media (max-width: 480px) {
  .intro__skip {
    bottom: 20px;
    right: 16px;
    padding: 8px 16px;
    font-size: 12px;
  }
}

