/* ========== Лендинг детского курса: hero, результаты, наставник (сразу после :root: не держать только в конце файла — часть кастомного CSS на сайте обрезается по лимиту) ========== */

@keyframes kids-hero-cta-pulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(0, 255, 209, 0.45),
      0 0 0 0 rgba(0, 255, 209, 0.35),
      0 14px 44px rgba(0, 255, 209, 0.18);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(0, 255, 209, 0.75),
      0 0 0 14px rgba(0, 255, 209, 0),
      0 18px 52px rgba(0, 255, 209, 0.28);
  }
}

@keyframes kids-hero-ken {
  0% {
    transform: scale(1.05) translate(0, 0);
  }
  100% {
    transform: scale(1.12) translate(-1.5%, -1%);
  }
}

@keyframes kids-hero-overlay-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

:is(#kids-hero, #imx-hero, #pco-hero) {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--kids-hero-base);
  color: var(--artvoic-text);
  font-family: var(--artvoic-font-body);
  overflow: hidden;
  isolation: isolate;
  margin-top: -1px;
  padding-top: 1px;
}

/* Плавный низ → тот же тон, что у #kids-results (--kids-results-base), бесшовный стык */
:is(#kids-hero, #imx-hero, #pco-hero)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: clamp(120px, 32vh, 360px);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(7, 8, 25, 0.22) 28%,
    rgba(7, 8, 25, 0.72) 62%,
    var(--kids-results-base) 92%,
    var(--kids-results-base) 100%
  );
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__video,
:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__photo {
  z-index: 0;
  animation: kids-hero-ken 28s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  :is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__photo {
    animation: none;
  }
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__video {
  z-index: 1;
  opacity: 0.88;
  mix-blend-mode: normal;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__cinematic {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  animation: kids-hero-overlay-breathe 7s ease-in-out infinite;
  background:
    linear-gradient(125deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 42%, transparent 72%),
    linear-gradient(315deg, rgba(0, 0, 0, 0.55) 0%, transparent 48%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.2) 0%,
      rgba(0, 0, 0, 0.75) 48%,
      rgba(7, 8, 25, 0.82) 82%,
      rgba(7, 8, 25, 0.92) 100%
    ),
    radial-gradient(ellipse 85% 65% at 45% 38%, transparent 0%, rgba(0, 0, 0, 0.45) 100%);
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__grid {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: end;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 4rem) clamp(1.25rem, 5vw, 5rem) calc(6.5rem + clamp(56px, 10vh, 96px));
}

:is(#kids-hero, #pco-hero) .kids-hero__copy {
  max-width: min(40rem, 100%);
  padding-bottom: clamp(0.5rem, 3vh, 2rem);
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__kicker {
  display: block;
  margin: 0 0 0.65rem;
  font-weight: 600;
  font-size: clamp(0.65rem, 0.42vw + 0.58rem, 0.8rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--artvoic-accent);
  text-shadow: 0 0 24px rgba(0, 255, 209, 0.35);
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__title {
  margin: 0 0 1rem;
  font-family: var(--artvoic-font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.2vw + 1rem, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--artvoic-text);
  text-shadow:
    0 0 40px rgba(0, 255, 209, 0.12),
    0 2px 24px rgba(0, 0, 0, 0.45);
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__title-lead {
  display: block;
  margin-bottom: 0.42em;
  font-size: 0.92em;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--artvoic-text-soft);
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__title-main {
  display: block;
  line-height: 1.12;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__subtitle {
  margin: 0 0 1.65rem;
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.15rem);
  line-height: 1.58;
  color: var(--artvoic-text-muted);
  max-width: 36em;
}

#kids-hero .kids-hero__title {
  margin-bottom: 30px;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.85rem;
  font-family: var(--artvoic-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--artvoic-bg);
  background: var(--artvoic-accent);
  border-radius: 2px;
  animation: kids-hero-cta-pulse 2.4s ease-in-out infinite;
  transition: transform 0.25s ease;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__cta:hover {
  transform: translateY(-2px);
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__cta:focus-visible {
  outline: 2px solid var(--artvoic-accent);
  outline-offset: 3px;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__cta-note {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__frame {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: min(100%, 380px);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(108, 99, 255, 0.35),
    0 0 48px rgba(0, 255, 209, 0.15);
  outline: 1px solid rgba(0, 255, 209, 0.2);
  outline-offset: 10px;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

:is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__frame-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.75), transparent);
}

@media (max-width: 900px) {
  :is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__grid {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    padding-bottom: calc(5.5rem + clamp(56px, 10vh, 96px));
  }

  #imx-hero {
    min-height: auto;
  }

  #imx-hero .kids-hero__grid {
    min-height: auto;
    padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
    grid-template-columns: 1fr;
    align-items: stretch;
    text-align: left;
  }

  #imx-hero .imx-hero__intro {
    grid-template-columns: minmax(0, 1fr) minmax(92px, 30%);
    gap: clamp(0.65rem, 2.5vw, 1rem);
    align-items: center;
    justify-items: stretch;
  }

  #imx-hero .kids-hero__frame--wow {
    order: 0;
    justify-self: end;
    width: 100%;
    max-width: min(118px, 29vw);
    height: auto;
    max-height: min(22vh, 158px);
    aspect-ratio: 4 / 5;
    align-self: center;
    margin-bottom: 0;
  }

  #imx-hero .kids-hero__frame--wow img {
    object-fit: cover;
  }

  #imx-hero .kids-hero__frame {
    order: 0;
    justify-self: end;
    max-width: min(118px, 29vw);
  }

  #imx-hero .imx-hero__bottom {
    text-align: center;
    align-items: center;
  }

  #imx-hero .kids-hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.45rem, 1.8vw, 0.7rem);
    min-height: 0;
    padding: 0;
    text-align: left;
  }

  #imx-hero .kids-hero__title {
    display: flex;
    flex-direction: column;
    gap: clamp(0.35rem, 1.5vw, 0.55rem);
    margin: 0;
  }

  #imx-hero .imx-hero__title-accent {
    font-size: clamp(1.15rem, 3.6vw + 0.6rem, 1.72rem);
    white-space: normal;
  }

  #imx-hero .imx-hero__title-accent::after {
    margin-left: 0;
    margin-right: auto;
    width: min(100%, 9rem);
  }

  #imx-hero .kids-hero__title-main {
    font-size: clamp(0.86rem, 2.4vw + 0.58rem, 1.02rem);
  }

  #imx-hero .kids-hero__subtitle {
    font-size: clamp(0.76rem, 2vw + 0.55rem, 0.88rem);
    line-height: 1.45;
    margin: 0;
  }

  #imx-hero .kids-hero__title-lead,
  #imx-hero .kids-hero__title-main,
  #imx-hero .kids-hero__subtitle {
    white-space: normal;
  }

  #imx-hero .kids-hero__frame-tag {
    font-size: 0.58rem;
    padding: 0.2rem 0.45rem;
  }

  :is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__copy {
    padding-bottom: 0;
  }

  :is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__cta {
    width: 100%;
    max-width: 22rem;
    justify-self: center;
  }

  :is(#kids-hero, #pco-hero) .kids-hero__frame {
    justify-self: center;
    max-width: min(340px, 88vw);
    order: -1;
  }

  #imx-hero .kids-hero__frame {
    order: 0;
    justify-self: end;
    max-width: min(118px, 29vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__cinematic {
    animation: none;
  }

  :is(#kids-hero, #imx-hero, #pco-hero) .kids-hero__cta {
    animation: none;
    box-shadow: 0 0 0 1px rgba(0, 255, 209, 0.45), 0 14px 44px rgba(0, 255, 209, 0.12);
  }
}

