/* Главный экран (Hero) */

.hero-main {
  position: relative;
  margin-top: 64px;
  padding: 56px 0 72px;
  color: #0f172a;
  background:
    linear-gradient(
      120deg,
      rgba(15, 23, 42, 0.92),
      rgba(15, 23, 42, 0.78),
      rgba(15, 23, 42, 0.40)
    ),
    url("../img/hero1.png") center right / cover no-repeat;
}

@media (min-width: 900px) {
  .hero-main {
    padding: 80px 0 96px;
  }
}

.hero-main-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 32px;
  align-items: center;
}

.hero-main-content {
  max-width: 100%;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f9fafb;
  margin: 0 0 16px;
}

@media (min-width: 900px) {
  .hero-title {
    font-size: 32px;
  }
}

.hero-subtitle {
  margin: 0 0 20px;
  color: #e5e7eb;
  font-size: 15px;
  line-height: 1.5;
  max-width: 640px;
}

/* Десктопная версия: списки */
.hero-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #e5e7eb;
}

.hero-benefits li::before {
  content: "•";
  color: #38bdf8;
  margin-right: 6px;
}

/* Мобильная версия: компактные фичи с иконками */
.hero-features-mobile {
  display: none;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-main-side {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(10px);
  max-width: 360px;
}

.hero-card-title {
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 15px;
  color: #e5e7eb;
}

.hero-card-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #cbd5f5;
  line-height: 1.5;
}

.hero-card-list {
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.hero-card-list p {
  margin: 0;
  line-height: 1.5;
}

/* Кнопки в hero */
.hero-main .btn-primary {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #0f172a;
}

.hero-main .btn-primary:hover {
  background: #0284c7;
  border-color: #0284c7;
}

.hero-main .btn-ghost {
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
  background: transparent;
}

.hero-main .btn-ghost:hover {
  background: rgba(15, 23, 42, 0.5);
}

/* ========================================
   МОБИЛЬНАЯ ВЕРСИЯ
   ======================================== */

@media (max-width: 900px) {
  .hero-main {
    margin-top: 64px;
    padding: 32px 0 80px; /* отступ снизу под bottom-nav */
    background: 
      linear-gradient(
        180deg,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.85) 100%
      ),
      url("../img/hero1.png") center / cover no-repeat;
  }

  .hero-main-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Скрываем карточку на мобилке */
  .hero-main-side {
    display: none;
  }

  .hero-title {
    font-size: 24px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #d1d5db;
  }

  /* Скрываем десктопный список */
  .hero-benefits {
    display: none;
  }

  /* Показываем мобильные фичи */
  .hero-features-mobile {
    display: grid;
    gap: 10px;
    margin-bottom: 24px;
  }

  .hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #e5e7eb;
    backdrop-filter: blur(8px);
  }

  .hero-feature-item svg {
    flex-shrink: 0;
    color: #38bdf8;
    stroke-width: 2;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
  }
}

/* Очень маленькие экраны */
@media (max-width: 400px) {
  .hero-title {
    font-size: 22px;
  }

  .hero-feature-item {
    font-size: 12px;
    padding: 9px 12px;
  }

  .hero-feature-item svg {
    width: 18px;
    height: 18px;
  }
}
