.hero {
  position: relative;
  isolation: isolate;
  min-height: min(92vh, 880px);
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/bg.jpg") center right / cover no-repeat;
  transform: scale(1.02);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 120% 80% at 15% 45%, rgba(7, 15, 28, 0.92) 0%, transparent 58%),
    linear-gradient(
      90deg,
      rgba(7, 15, 28, 0.96) 0%,
      rgba(7, 15, 28, 0.68) 42%,
      rgba(7, 15, 28, 0.28) 72%,
      rgba(7, 15, 28, 0.08) 100%
    );
  pointer-events: none;
}

.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(11, 108, 255, 0.14) 0%, transparent 48%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 1.5rem 4rem;
}

.hero__copy {
  max-width: 38rem;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-body-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(135deg, rgba(11, 108, 255, 0.18) 0%, rgba(34, 184, 106, 0.14) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 22px rgba(11, 108, 255, 0.2);
}

.hero__eyebrow svg {
  width: 14px;
  height: 14px;
  stroke: #9ec5ff;
}

.hero__title {
  margin: 0 0 1.125rem;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: clamp(1.95rem, 5vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: var(--color-text-on-dark);
  text-shadow: 0 4px 48px rgba(0, 0, 0, 0.45);
}

.hero__title .text-gradient {
  background: linear-gradient(120deg, #6aa6ff 0%, #3d8cff 45%, #57e0a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: clamp(1.02rem, 1.45vw, 1.14rem);
  font-weight: var(--font-weight-body-medium);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
}

.hero__divider {
  height: 1px;
  margin: 0 0 1.5rem;
  border: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent 100%
  );
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__feature {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-body-medium);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero__feature-icon {
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--color-checkmark);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero__media {
    transform: none;
    background-position: center center;
  }

  /* Усиливаем затемнение на мобиле, чтобы текст был контрастным */
  .hero__overlay {
    background:
      radial-gradient(ellipse 140% 80% at 50% 35%, rgba(7, 15, 28, 0.94) 0%, rgba(7, 15, 28, 0.55) 80%),
      linear-gradient(180deg, rgba(7, 15, 28, 0.92) 0%, rgba(7, 15, 28, 0.6) 70%, rgba(7, 15, 28, 0.85) 100%);
  }

  .hero__inner {
    padding: 2.5rem 1.25rem 3rem;
  }
}

@media (max-width: 640px) {
  .hero__inner {
    padding: 2rem 1rem 2.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero__features {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .hero__feature {
    width: 100%;
  }

  .hero__title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
    line-height: 1.12;
  }

  .hero__lead {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero__eyebrow {
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
  }
}
