.c-hero {
  padding-block: 56px 72px;
  background-color: var(--bg-base);
  background-image: url("../../assets/images/bg-mob.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.c-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(72px, 12vw, 140px);
  background: linear-gradient(
    180deg,
    rgba(244, 247, 251, 0),
    rgba(244, 247, 251, 0.9),
    rgba(244, 247, 251, 1)
  );
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="dark"] .c-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.32),
    rgba(2, 6, 23, 0.2) 40%,
    rgba(2, 6, 23, 0.48)
  );
  pointer-events: none;
  z-index: 0;
}

:root[data-theme="dark"] .c-hero::after {
  background: linear-gradient(
    180deg,
    rgba(11, 17, 32, 0),
    rgba(11, 17, 32, 0.72),
    rgba(11, 17, 32, 1)
  );
}

.c-hero__inner {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.c-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.c-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-muted);
  font-size: 0.85rem;
}

.c-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-round);
  background: var(--color-primary);
}

.c-hero__title {
  margin: 0;
  font-size: clamp(2.05rem, 7vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 6px;
}

.c-hero__title span {
  color: var(--color-primary);
}

.c-hero__lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 46ch;
  margin-block: 20px 32px;
}

.c-hero__actions {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.c-hero__cta,
.c-hero__secondary {
  width: 100%;
}

.c-button--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.c-hero__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.c-hero__meta li {
  display: grid;
  place-items: center;
  text-align: center;

  padding: 14px 8px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-border);
}

.c-hero__meta strong {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}

.c-hero__meta span {
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--color-muted);
}

:root[data-theme="dark"] .c-hero__title {
  color: #fff;
}

:root[data-theme="dark"] .c-hero__title span {
  color: var(--color-primary);
}

:root[data-theme="dark"] .c-hero__lead {
  color: rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .c-hero__badge {
  background: rgba(15, 23, 42, 0.65);
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.9);
}

:root[data-theme="dark"] .c-hero__badge-dot {
  background: #8ab8ff;
}

:root[data-theme="dark"] .c-button--ghost {
  border-color: rgba(226, 232, 240, 0.55);
  color: rgba(248, 250, 252, 0.95);
  background: rgba(15, 23, 42, 0.25);
}

:root[data-theme="dark"] .c-hero__meta li {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.35);
}

:root[data-theme="dark"] .c-hero__meta strong {
  color: #f8fafc;
}

:root[data-theme="dark"] .c-hero__meta span {
  color: rgba(226, 232, 240, 0.75);
}

@media (max-width: 767px) {
  .c-hero {
    padding-block: 44px 64px;
  }

  .c-hero__badges {
    margin-top: 2px;
    margin-bottom: 6px;
  }

  .c-hero__lead {
    margin-block: 16px 24px;
  }
}

@media (min-width: 768px) {
  .c-hero {
    padding-block: 120px 160px;
    background-image: url("../../assets/images/bg-desk.png");
  }

  .c-hero__inner {
    max-width: 720px; /* КЛЮЧЕВО */
  }

  .c-hero__title {
    font-size: clamp(2.8rem, 4vw, 3.4rem);
    line-height: 1.05;
  }

  .c-hero__lead {
    font-size: 1.05rem;
    max-width: 52ch;
  }
  .c-hero__actions {
    grid-template-columns: auto auto;
    justify-content: flex-start;
  }

  .c-hero__cta,
  .c-hero__secondary {
    width: auto;
    min-width: 220px;
  }

  .c-hero__meta {
    gap: 16px;
    margin-top: 28px;
  }

  .c-hero__meta li {
    padding: 16px 20px;
  }
}
