/* === HERO SECTION CSS === */
.hero {
  padding: 140px 0;
  background: radial-gradient(circle at top left, var(--bg-start, #1e1e2f), var(--bg-end, #0b0b0f));
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  filter: blur(120px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-text {
  flex: 1 1 500px;
  animation: fadeInLeft 1s ease forwards;
  opacity: 0;
}

#mainTitle {
  font-size: 2.6rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  display: inline-block;
  text-align: left;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-move 5s ease infinite;
  position: relative;
  min-height: 3.2rem;
}

#dynamicText {
  font-weight: inherit;
}

.cursor {
  display: inline-block;
  color: var(--cursor-color, #fff);
  font-size: inherit;
  animation: blink 0.8s steps(1) infinite;
}

.hero-text .lead {
  font-size: 1.3rem;
  color: var(--text-primary, #d1d5db);
  margin-top: 20px;
  line-height: 1.8;
}

.hero-text p.sub {
  font-size: 1.1rem;
  color: var(--text-secondary, #a1a1aa);
  line-height: 1.7;
  margin-top: 16px;
}

.cta-caption {
  margin-top: 32px;
  margin-bottom: 24px;
  font-size: 1rem;
  color: var(--text-muted, #888);
  text-align: left;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-buttons .btn-main {
  width: 220px; /* Фиксированная ширина */
  height: 52px; /* Фиксированная высота */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--btn-bg, #2563eb);
  color: var(--btn-text, #fff);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.hero-buttons .btn-main:hover {
  background-color: var(--btn-hover, #1e40af);
}

.hero-buttons .btn-main i {
  font-size: 1.2rem; /* Размер иконки */
  color: inherit;
}

.hero-media {
  flex: 1 1 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

.hero-video {
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  border: 1px solid #3b82f6;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

/* === LIGHT THEME === */
body.light-theme {
  --bg-start: #f4f4f4;
  --bg-end: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --cursor-color: #000;
  --btn-bg: #3b82f6;
  --btn-text: #fff;
  --btn-hover: #2563eb;
}

/* === ANIMATIONS === */
@keyframes gradient-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-30px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === ADAPTIVE STYLES === */
@media (max-width: 1024px) {
  .hero {
    padding: 100px 0;
  }

  #mainTitle {
    font-size: 1.9rem;
    text-align: left;
    white-space: normal;
  }

  .hero-content {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-text,
  .hero-media {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (max-width: 768px) {
  #mainTitle {
    font-size: 1.7rem;
    text-align: center;
    min-height: 2.8rem;
  }

  .hero-text .lead,
  .hero-text p.sub,
  .cta-caption {
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-buttons .btn-main {
    width: 100%;
  }

  .hero-content {
    align-items: center;
  }

  .hero-video {
    max-width: 100%;
    height: auto;
  }
}
