/* ==========================================================================
   Компонент: Hero-секция (.hero) — Современный редизайн
   ========================================================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding-top: 100px; /* Отступ под фиксированную шапку */
}

/* --- Видеофон и затемнение --- */
.hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../image/pre-video/hero-placeholder.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.hero__poster--hidden {
    opacity: 0;
    pointer-events: none;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.6) 0%, rgba(11, 15, 25, 0.75) 100%);
    z-index: 1;
}

/* --- Контент Hero-секции --- */
.hero__content {
    position: relative;
    margin: auto;
    text-align: center;
    color: #ffffff;
    z-index: 2;
    max-width: 950px;
    padding: 0 20px;
}

/* Бейдж-акцент сверху */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    color: #f3f4f6;
}

.hero__badge-dot {
    width: 8px;
    height: 8px;
    background-color: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 8px #3b82f6;
}

.hero__title {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 18px 0;
    line-height: 1.15;
}

.hero__title span {
    color: #60a5fa; /* Акцентный синий цвет для ключевой фразы */
}

.hero__subtitle {
    font-size: 18px;
    font-weight: 400;
    color: #d1d5db;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Две кнопки действия */
.hero__cta {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* --- Нижняя панель с преимуществами (Glassmorphism Карточки) --- */
.hero__features-bar {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 20px;
    z-index: 2;
}

.hero__feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hero__feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.hero__feature-num {
    font-size: 18px;
    font-weight: 700;
    color: #60a5fa;
    opacity: 0.9;
}

.hero__feature-text {
    font-size: 13px;
    color: #f3f4f6;
    line-height: 1.35;
    text-align: left;
}

.hero__feature-text strong {
    font-weight: 600;
    color: #ffffff;
    display: block;
}

@media (max-width: 768px) {
  .hero {
    height: 100vh; /* Жестко фиксируем высоту по экрану мобилки */
    min-height: 600px;
    padding-top: 70px; /* Пространство под шапку */
    padding-bottom: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* --- Магия центрирования в свободной зоне --- */
  .hero__content {
    flex: 1; /* Занимает всё оставшееся пространство между шапкой и фичами */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирует заголовок, текст и кнопки по вертикали */
    align-items: center;
    margin: 0; /* Убираем ручные отступы */
    padding: 0 10px;
  }

  .hero__title {
    font-size: 30px;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
  }

  .hero__subtitle {
    font-size: 15px;
    max-width: 100%;
    line-height: 1.45;
    margin-bottom: 20px;
  }

  .hero__cta {
    margin-top: 0;
    gap: 12px;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* --- Сетка преимуществ (внизу) --- */
  .hero__features-bar {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 8px;
    margin: 0 auto;
    padding: 0 12px;
  }

  .hero__feature-card {
    height: 100%;
    padding: 10px 12px;
    gap: 8px;
    border-radius: 8px;
  }

  .hero__feature-num {
    font-size: 14px;
  }

  .hero__feature-text {
    font-size: 11px;
    line-height: 1.25;
  }
}

/* --- Для совсем маленьких устройств (смартфоны) --- */
@media (max-width: 480px) {
  .hero__title {
    font-size: 27px; /* Заголовок ровно 25px */
    white-space: nowrap; /* Держим фразу в одну строку */
    letter-spacing: -0.3px;
  }

  .hero__subtitle {
    font-size: 13px; /* Уменьшено на 3px */
  }

  .hero__features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hero__feature-card {
    padding: 10px 12px;
  }

  .hero__feature-text {
    font-size: 11px;
  }
}