/* ==========================================================================
   Главная страница «Синапс»: яркая витрина проекта.
   Подключается только на главной и не затрагивает стили внутренних страниц.
   ========================================================================== */

/* ------------------------------- Первый экран ----------------------------- */

.hp-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 40px;
  color: #ffffff;
  background:
    radial-gradient(1100px 560px at 12% -12%, rgba(24, 168, 198, 0.55) 0%, rgba(24, 168, 198, 0) 62%),
    radial-gradient(900px 520px at 96% 4%, rgba(58, 96, 255, 0.42) 0%, rgba(58, 96, 255, 0) 58%),
    radial-gradient(700px 520px at 70% 108%, rgba(255, 138, 61, 0.24) 0%, rgba(255, 138, 61, 0) 60%),
    linear-gradient(158deg, #052234 0%, #06374b 48%, #051d2c 100%);
}

.hp-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  animation: hp-float 16s ease-in-out infinite;
}

.hp-hero__glow--a {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -60px;
  background: rgba(63, 224, 255, 0.5);
}

.hp-hero__glow--b {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: 8%;
  background: rgba(142, 162, 255, 0.45);
  animation-delay: -5s;
}

.hp-hero__glow--c {
  width: 260px;
  height: 260px;
  top: 40%;
  right: -80px;
  background: rgba(255, 176, 92, 0.4);
  animation-delay: -9s;
}

.hp-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 48px;
  align-items: center;
}

.hp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(180, 240, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #b8f1ff;
  backdrop-filter: blur(6px);
}

.hp-hero__title {
  margin: 20px 0 18px;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: #ffffff;
}

.hp-hero__title span {
  display: block;
}

.hp-hero__accent {
  background: linear-gradient(96deg, #6ff0d6 0%, #6fd0ff 42%, #b79bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-hero__lead {
  max-width: 34em;
  margin: 0 0 26px;
  font-size: 18px;
  line-height: 1.62;
  color: rgba(230, 246, 255, 0.82);
}

.btn--bright {
  background: linear-gradient(120deg, #ff9b3d 0%, #ff6f61 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 10px 26px rgba(255, 122, 82, 0.34);
}

.btn--bright:hover {
  box-shadow: 0 14px 32px rgba(255, 122, 82, 0.44);
  transform: translateY(-1px);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.hp-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hp-hero__chips-label {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: rgba(200, 232, 245, 0.62);
}

.hp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf9ff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.hp-chip:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.hp-chip i {
  color: #7df3e1;
}

.hp-hero__art {
  position: relative;
  min-height: 380px;
}

.hp-neural {
  display: block;
  width: 100%;
  height: auto;
  max-height: 460px;
}

.hp-neural__link {
  opacity: 0.5;
  animation: hp-dash 6s ease-in-out infinite;
}

.hp-neural__node {
  fill: #9fe9ff;
  animation: hp-pulse 3.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hp-neural__node--bright {
  fill: #7df3e1;
}

.hp-neural__pulse {
  fill: none;
  stroke: #7df3e1;
  stroke-width: 1.4;
  opacity: 0;
  animation: hp-ring 4.4s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hp-hero__badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 40, 56, 0.72);
  box-shadow: 0 16px 38px rgba(2, 18, 28, 0.35);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: #eaf9ff;
  backdrop-filter: blur(8px);
  animation: hp-float 9s ease-in-out infinite;
}

.hp-hero__badge i {
  color: #ffc46b;
  font-size: 16px;
}

.hp-hero__badge--one {
  top: 6%;
  left: -12px;
}

.hp-hero__badge--two {
  right: -6px;
  bottom: 10%;
  animation-delay: -4s;
}

.hp-hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 46px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
}

.hp-hero__stat {
  padding: 6px 12px;
  border-left: 2px solid rgba(125, 243, 225, 0.5);
}

.hp-hero__stat:first-child {
  border-left: 0;
  padding-left: 4px;
}

.hp-hero__stat b {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.hp-hero__stat span {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgba(206, 236, 248, 0.75);
}

/* ------------------------------ Быстрый старт ----------------------------- */

.hp-scenarios {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hp-scenario {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 26px 24px 24px;
  border-radius: 22px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.hp-scenario:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hp-scenario--adult {
  background: linear-gradient(150deg, #2f6fed 0%, #1b45b8 100%);
}

.hp-scenario--child {
  background: linear-gradient(150deg, #ff7f6b 0%, #e2543c 100%);
}

.hp-scenario--test {
  background: linear-gradient(150deg, #16b0c8 0%, #0a6d86 100%);
}

.hp-scenario__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
  color: #ffffff;
}

.hp-scenario h3 {
  margin: 18px 0 8px;
  font-size: 21px;
  color: #ffffff;
}

.hp-scenario p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.hp-scenario__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-weight: 700;
  font-size: 14.5px;
  color: #ffffff;
}

/* ------------------------------- Темы-плитки ------------------------------ */

.hp-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hp-topic {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  font-size: 15.5px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.hp-topic:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  color: var(--primary-dark);
}

.hp-topic__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.hp-topic--child .hp-topic__dot {
  background: var(--child);
}

/* --------------------------------- Полосы --------------------------------- */

.hp-band {
  position: relative;
  overflow: hidden;
  padding: 44px 46px;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.hp-band h2,
.hp-band h3 {
  color: #ffffff;
}

.hp-band p {
  color: rgba(255, 255, 255, 0.86);
}

.hp-band--alert {
  background:
    radial-gradient(760px 320px at 8% -30%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(140deg, #e0453f 0%, #a81f28 100%);
}

.hp-band--book {
  background:
    radial-gradient(680px 320px at 92% -20%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(140deg, #0f7c97 0%, #0b4f7a 60%, #123a86 100%);
}

.hp-band--consult {
  background:
    radial-gradient(700px 340px at 4% -20%, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(140deg, #6a5cff 0%, #2f5bef 55%, #17a5c8 100%);
}

.hp-band__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
}

.hp-band__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hp-band__list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.hp-band__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.9);
}

.hp-band__cover {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 22px 50px rgba(2, 18, 28, 0.4);
}

.hp-price {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 18px 0 4px;
  font-size: 30px;
  font-weight: 800;
}

.hp-price small {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.hp-questions {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-questions li {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  font-size: 15px;
  line-height: 1.45;
  color: #ffffff;
}

/* ---------------------------------- Числа --------------------------------- */

.hp-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.hp-number {
  padding: 26px 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #ffffff 0%, var(--bg-tint) 100%);
  box-shadow: var(--shadow-sm);
}

.hp-number b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #0f7c97 0%, #2f6fed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hp-number span {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ------------------------------- Анимации --------------------------------- */

@keyframes hp-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -14px, 0);
  }
}

@keyframes hp-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes hp-ring {
  0% {
    opacity: 0.75;
    transform: scale(0.7);
  }
  70% {
    opacity: 0;
    transform: scale(1.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

@keyframes hp-dash {
  0%,
  100% {
    opacity: 0.32;
  }
  50% {
    opacity: 0.7;
  }
}

/* ------------------------------- Адаптивность ----------------------------- */

@media (max-width: 1000px) {
  .hp-hero__grid,
  .hp-band__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hp-hero__art {
    min-height: 0;
  }

  .hp-neural {
    max-height: 300px;
    margin: 0 auto;
  }

  .hp-hero__badge {
    display: none;
  }

  .hp-hero__stats,
  .hp-numbers {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-hero__stat {
    border-left: 0;
    border-top: 2px solid rgba(125, 243, 225, 0.35);
    padding: 12px 4px 0;
  }

  .hp-hero__stat:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .hp-hero {
    padding: 40px 0 32px;
  }

  .hp-scenarios {
    grid-template-columns: 1fr;
  }

  .hp-band {
    padding: 30px 24px;
    border-radius: 22px;
  }

  .hp-numbers {
    grid-template-columns: 1fr;
  }

  .hp-hero__lead {
    font-size: 16.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__glow,
  .hp-hero__badge,
  .hp-neural__link,
  .hp-neural__node,
  .hp-neural__pulse {
    animation: none;
  }
}
