* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-card: #121627;
  --text-white: #ffffff;
  --text-gray: #a0a7c2;
  --accent-blue: #4f6fff;
  --accent-hover: #3a56e0;
}

html, body {
  direction: rtl;
  text-align: right;
  height: 100%;
  font-family: 'Inter', sans-serif;
  color: var(--text-white);
  scroll-behavior: smooth;
}

/* Видео на весь экран */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.2) 20%,
    rgba(0, 0, 0, 0.5)
  );
}



/* Геро-секция */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 7rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.2s;
}

.hero .subtitle {
  font-size: 2.25rem;
  line-height: 1.6;
  margin-bottom: 32px;
  color: var(--text-black);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.4s;
}

.hero .btn {
  background: var(--accent-blue);
  color: white;
  padding: 14px 36px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(79, 111, 255, 0.3);
  opacity: 0;
  animation: fadeInUp 1s ease forwards 0.6s;
}

.hero .btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(79, 111, 255, 0.4);
}

/* Секция с карточками */
.features {
  position: relative;
  z-index: 2;
  padding: 80px 20px 500px;
  background: rgba(11, 14, 26, 0.92);
  backdrop-filter: blur(10px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.card:nth-child(1) { animation: fadeInUp 0.8s ease forwards 0.8s; }
.card:nth-child(2) { animation: fadeInUp 0.8s ease forwards 1.0s; }
.card:nth-child(3) { animation: fadeInUp 0.8s ease forwards 1.2s; }

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.card p {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero .subtitle {
    font-size: 1.1rem;
  }
  .features {
    padding: 60px 20px 80px;
  }
  .card {
    padding: 24px;
  }
}