/* =============================================
   HERO SECTION
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 80px var(--section-pad-x) 60px;
}

/* Background image layer — blur-up progressive loading */
.hero__bg {
  position: absolute;
  inset: 0;
  background: url('../phon-placeholder.webp?v=1') center center / cover no-repeat;
  filter: blur(20px);
  transform: scale(1.1); /* hide blur edges */
  transition: filter 0.6s ease-out, transform 0.6s ease-out;
  z-index: 0;
}

.hero__bg.loaded {
  background-image: url('../phon.webp?v=1');
  filter: blur(0);
  transform: scale(1);
}

/* Dark overlay with center breathing room */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8, 5, 10, 0.8) 0%,
      rgba(8, 5, 10, 0.5) 40%,
      rgba(8, 5, 10, 0.45) 55%,
      rgba(8, 5, 10, 0.65) 80%,
      rgba(13, 7, 9, 0.9) 100%
    ),
    radial-gradient(ellipse 70% 50% at 50% 55%, rgba(229, 37, 53, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 60%, rgba(255, 100, 50, 0.06) 0%, transparent 60%);
  z-index: var(--z-particles);
  pointer-events: none;
}

/* Heavy vignette + edge fade */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--c-bg) 0%, transparent 12%, transparent 85%, var(--c-bg) 100%),
    linear-gradient(to right, var(--c-bg) 0%, transparent 15%, transparent 85%, var(--c-bg) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(13, 7, 9, 0.5) 65%, var(--c-bg) 100%);
  z-index: calc(var(--z-particles) + 1);
  pointer-events: none;
}

/* Bottom separator line */
.hero .hero__separator {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229, 37, 53, 0.4), rgba(255, 45, 70, 0.6), rgba(229, 37, 53, 0.4), transparent);
  box-shadow: 0 0 15px rgba(229, 37, 53, 0.3), 0 0 40px rgba(229, 37, 53, 0.1);
  z-index: var(--z-content);
}

.hero__content {
  position: relative;
  z-index: var(--z-content);
  max-width: 900px;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 24px;
  border: 1px solid rgba(255, 45, 70, 0.3);
  border-radius: 50px;
  font-family: var(--ff-mono);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-ultra);
  text-transform: uppercase;
  color: var(--c-red-vivid);
  background: rgba(229, 37, 53, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  margin-bottom: var(--gap-xl);
  box-shadow:
    0 0 20px rgba(229, 37, 53, 0.15),
    inset 0 0 20px rgba(229, 37, 53, 0.05);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(229, 37, 53, 0.15), inset 0 0 20px rgba(229, 37, 53, 0.05); }
  50% { box-shadow: 0 0 30px rgba(229, 37, 53, 0.25), inset 0 0 20px rgba(229, 37, 53, 0.08); }
}

/* Title block */
.hero__title {
  margin-bottom: var(--gap-xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* "РОЗЫГРЫШ ЗАВЕРШЁН" with decorative lines */
.hero__title-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--ff-mono);
  font-size: clamp(0.75rem, 1.3vw, 0.95rem);
  font-weight: var(--fw-bold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-red-vivid);
  margin-bottom: var(--gap-lg);
  text-shadow: 0 0 30px rgba(229, 37, 53, 0.5);
}

.hero__line {
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-red-vivid), transparent);
  box-shadow: 0 0 8px rgba(229, 37, 53, 0.4);
}

/* Main headline */
.hero__title-big {
  display: block;
  font-size: var(--fs-hero);
  font-weight: var(--fw-extrabold);
  color: #fff;
  line-height: 1.05;
  text-shadow:
    0 4px 40px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(229, 37, 53, 0.08);
  margin-bottom: var(--gap-md);
}

/* Gradient keyword */
.hero__title .highlight {
  background: linear-gradient(135deg, var(--c-red-neon) 0%, var(--c-red-vivid) 30%, var(--c-rose) 70%, var(--c-coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(255, 58, 84, 0.5)) drop-shadow(0 0 60px rgba(229, 37, 53, 0.2));
}

/* Prize list under title */
.hero__title-sub {
  display: block;
  font-family: var(--ff-body);
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  font-weight: var(--fw-medium);
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-top: var(--gap-md);
}

/* Subtitle */
.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(184, 160, 165, 0.9);
  margin-bottom: var(--gap-xl);
  font-weight: var(--fw-regular);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.highlight-text {
  color: #fff;
  font-weight: var(--fw-bold);
  position: relative;
}

.highlight-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--c-red-vivid), var(--c-rose), transparent);
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(229, 37, 53, 0.4);
}

/* Action buttons */
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-lg);
  flex-wrap: wrap;
}

/* Hero primary button — premium style */
.hero__actions .btn--primary {
  position: relative;
  padding: 20px 56px;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  letter-spacing: 0.08em;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 60px;
  color: #fff;
  box-shadow:
    0 0 30px rgba(255, 255, 255, 0.08),
    inset 0 0 30px rgba(255, 255, 255, 0.03);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
  transition: all 0.5s var(--ease-out-expo);
}

/* Glow ring behind button */
.hero__actions .btn--primary::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--c-red-vivid), var(--c-rose), var(--c-red-vivid));
  opacity: 0;
  z-index: -1;
  filter: blur(12px);
  transition: opacity 0.5s var(--ease-out-expo);
}

/* Shimmer sweep */
.hero__actions .btn--primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  animation: btnShimmerLoop 4s var(--ease-out-expo) infinite;
}

@keyframes btnShimmerLoop {
  0% { left: -100%; }
  30% { left: 200%; }
  100% { left: 200%; }
}

.hero__actions .btn--primary:hover {
  transform: translateY(-3px);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 40px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(229, 37, 53, 0.1),
    inset 0 0 40px rgba(255, 255, 255, 0.05);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.hero__actions .btn--primary:hover::before {
  opacity: 0.5;
}

.hero__actions .btn--primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow:
    0 0 15px rgba(255, 255, 255, 0.1),
    inset 0 0 20px rgba(255, 255, 255, 0.03);
}

/* Hero outline button */
.btn--outline {
  padding: 18px 36px;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: var(--fw-medium);
  color: var(--c-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s var(--ease-out-expo);
}

.btn--outline:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

/* Countdown Timer */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--gap-md);
  margin-bottom: var(--gap-xl);
}

.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  padding: 16px 12px 12px;
  border-radius: var(--radius-md);
  background: rgba(229, 37, 53, 0.06);
  border: 1px solid var(--c-glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.countdown__number {
  font-family: var(--ff-mono);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  line-height: 1;
  transition: transform 0.3s var(--ease-out-back);
}

.countdown__number.flip {
  transform: scale(1.15);
  color: var(--c-red-vivid);
}

.countdown__label {
  font-size: var(--fs-label);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-top: 6px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--c-text-muted);
  font-size: var(--fs-label);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  animation: floatY 2s ease-in-out infinite;
  z-index: var(--z-content);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-red), transparent);
  box-shadow: 0 0 6px rgba(229, 37, 53, 0.3);
}

@keyframes floatY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
