/* Главный hero-блок */

.home-hero {
  margin-top: 1.5rem;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 0 0, rgba(45, 212, 191, 0.15) 0, transparent 48%),
    radial-gradient(circle at 120% 120%, rgba(51, 65, 85, 0.24) 0, transparent 54%),
    linear-gradient(135deg, #1a2434 0%, #223248 45%, #258379 100%);
  color: #f9fafb;
  position: relative;
  overflow: hidden;
  padding: 2.3rem 2rem;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-hero-content {
  width: 100%;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.78rem;

  /* чтобы не залезало на заголовок и нормально переносилось */
  flex-wrap: wrap;
  max-width: 260px;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.home-hero-badge span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.35);
}

.home-hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0.8rem;
  margin-bottom: 0.4rem;
  max-width: 100%;
}

.home-hero-title-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9em; /* чуть поменьше первой строки */
  font-weight: 600;
}

/* Дополнительно подправим на очень маленьких экранах */
@media (max-width: 576px) {
  .home-hero-title {
    font-size: 1.7rem;
  }

  .home-hero {
    padding: 1.6rem 1.1rem;
  }
}

.home-hero-accent {
  color: #4ade80;
}

.home-hero-sub {
  font-size: 0.96rem;
  color: #e5e7eb;
  max-width: 100%;
  margin-bottom: 1.1rem;
}

.home-hero-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  font-size: 0.86rem;
  margin-bottom: 1.3rem;
  width: 100%;
}

.home-hero-list-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.home-hero-list-item-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  width: 100%;
}

.home-hero-note {
  flex-basis: 100%;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.home-hero-btn-main {
  border-radius: 999px;
  padding-inline: 1.3rem;
  font-size: 0.9rem;
}

.home-hero-btn-ghost {
  border-radius: 999px;
  padding-inline: 1.1rem;
  font-size: 0.88rem;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: transparent;
  color: #e5e7eb;
}

/* Фотоколлаж в hero */

.home-hero-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  width: 100%;
  max-width: 360px;
  margin-left: auto;
}

.home-hero-photo {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 120px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.6);
  transform-origin: center;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.home-hero-photo:nth-child(1) {
  grid-row: span 2;
  min-height: 220px;
}

.home-hero-photo:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.7);
  filter: brightness(1.05);
}

.home-hero-photo-label {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.75rem;
  background: rgba(15, 23, 42, 0.75);
}

/* Доп. блок под hero (мини-преимущества) */

.home-highlights {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.home-highlight {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.home-highlight-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #f1f5f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.home-highlight-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.home-highlight-text {
  font-size: 0.82rem;
  color: #6b7280;
}

/* Адаптив */

@media (max-width: 992px) {
  .home-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-photos {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .home-hero {
    padding: 1.8rem 1.3rem;
  }

  .home-hero-sub {
    max-width: none;
  }
}
