/* Unified inner-page heroes, inspired by the clean gradient treatment on setup.html. */
:root {
  --inner-cyan: #22d3ee;
  --inner-green: #6ec44e;
  --inner-card: rgba(8, 17, 20, 0.82);
  --inner-border: rgba(110, 196, 78, 0.2);
}

.inner-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0 42px !important;
  background: #05070a !important;
  border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.inner-hero::before,
.inner-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.22;
}

.inner-hero::before {
  top: -26rem;
  left: calc(50% - 27rem);
  background: radial-gradient(circle, var(--inner-green), transparent 68%);
}

.inner-hero::after {
  right: calc(50% - 29rem);
  bottom: -29rem;
  background: radial-gradient(circle, var(--inner-cyan), transparent 68%);
}

.inner-hero-heading {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.inner-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px !important;
  color: var(--inner-green) !important;
  font-size: 0.76rem !important;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.inner-hero-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--inner-green), var(--inner-cyan));
}

.inner-hero h1,
.ladder .inner-hero h1,
body:not(.home) .ladder .inner-hero h1,
.ladder .inner-hero .neuron-title h1 {
  display: table;
  width: auto;
  max-width: 780px;
  margin: 0 auto 20px;
  padding-bottom: 0.08em;
  background-color: var(--inner-green);
  background-image: linear-gradient(100deg, #6ec44e 0%, #22d3ee 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.16;
  text-shadow: none;
}

/* Override the legacy dark shadow on the how-page title. It visually muddies
   the same gradient used by the catalogue title. */
body.how-page .ladder .inner-hero .neuron-title h1 {
  background-color: #6ec44e;
  background-image: linear-gradient(100deg, #6ec44e 0%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(2.5rem, 6vw, 5rem);
  text-shadow: none;
}

.inner-hero .inner-hero-lead,
.ladder .inner-hero .inner-hero-lead {
  max-width: 700px;
  margin: 0 auto;
  color: #93a2ad;
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.75;
}

.inner-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0 !important;
}

.inner-hero-actions .btn {
  width: auto;
  border-radius: 999px;
}

/* “Как это устроено”: intentionally no mesh/background image in the top section. */
.how-page .inner-hero.band-mesh,
.how-page .inner-hero.band-mesh-hero {
  background-color: #05070a !important;
  background-image: none !important;
}

.how-page .inner-hero .neuron-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}

.how-page .inner-hero .neuron-title {
  grid-column: 1 / -1;
  position: static;
  max-width: 780px;
  margin: 0 auto clamp(24px, 4vw, 38px);
  padding: 0;
  text-align: center;
  transform: none;
}

.how-page .inner-hero .neuron-card,
.how-page .inner-hero .neuron-card:nth-child(odd),
.how-page .inner-hero .neuron-card:nth-child(even) {
  position: relative;
  inset: auto;
  grid-column: auto;
  grid-row: auto;
  width: auto;
  min-height: 100%;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--inner-border);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(11, 22, 24, 0.94), var(--inner-card)) !important;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.035);
  transform: none;
}

.how-page .inner-hero .neuron-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--inner-green), var(--inner-cyan));
}

.how-page .inner-hero .neuron-card h2 {
  margin: 0 0 10px;
  color: #e6edf3;
  font-size: 1.15rem;
  line-height: 1.25;
}

.how-page .inner-hero .neuron-card p {
  margin: 0;
  color: #93a2ad;
  font-size: 0.92rem;
  line-height: 1.65;
}

@media (hover: hover) {
  .how-page .inner-hero .neuron-card:hover {
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.32), 0 0 28px rgba(34, 211, 238, 0.07);
    transform: translateY(-4px);
  }
}

@media (max-width: 760px) {
  .inner-hero {
    padding: 52px 0 28px !important;
  }

  .how-page .inner-hero .neuron-grid {
    grid-template-columns: 1fr;
  }

  .how-page .inner-hero .neuron-title {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .how-page .inner-hero .neuron-card { transition: none; }
}

/* Main-page title: same typography and green-to-cyan gradient as setup.html. */
body.home .hero-copy h1.home-gradient-title {
  display: table;
  width: auto;
  max-width: 780px;
  margin: 0 0 20px;
  background-color: #6ec44e;
  background-image: linear-gradient(100deg, #6ec44e 0%, #22d3ee 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-shadow: none;
}

@media (max-width: 760px) {
  body.home .hero-copy h1.home-gradient-title {
    max-width: 100%;
  }
}

/* Keep page-edge spacing consistent across the primary public pages. The
   catalogue hero already owns its vertical padding, so ladder-stack must not
   add a second outer margin above or below it. */
body.price-page .ladder-stack {
  padding-top: 0;
  padding-bottom: 0;
}

body.home .pad-block,
body.how-page .pad-block {
  padding-bottom: 0;
}
