/* ============================================================
   index4.css
   Экран 4: челленджи, конкурсы и группы.
   Все селекторы изолированы префиксом index4.
   ============================================================ */

.index4 {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(76px, 8vw, 124px) 0;
  background:
    radial-gradient(circle at 22% 40%, rgba(0, 165, 255, 0.09), transparent 30%),
    radial-gradient(circle at 82% 44%, rgba(87, 255, 70, 0.09), transparent 31%),
    radial-gradient(circle at 52% 88%, rgba(255, 162, 25, 0.055), transparent 26%),
    linear-gradient(145deg, #03101a 0%, #061520 52%, #031019 100%);
}

.index4-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.index4-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(105px);
  opacity: 0.14;
}

.index4-glow-blue {
  width: 42vw;
  aspect-ratio: 1;
  left: -16vw;
  top: 10%;
  background: #00aaff;
}

.index4-glow-green {
  width: 42vw;
  aspect-ratio: 1;
  right: -16vw;
  top: 18%;
  background: #72ff35;
}

.index4-glow-orange {
  width: 26vw;
  aspect-ratio: 1;
  left: 36%;
  bottom: -16vw;
  background: #ff9f1d;
}

.index4-streak {
  position: absolute;
  width: 64vw;
  height: 1px;
  left: 18%;
  background: linear-gradient(90deg, transparent, rgba(44, 205, 255, 0.28), rgba(137, 255, 54, 0.18), transparent);
  box-shadow: 0 0 28px rgba(0, 210, 255, 0.12);
}

.index4-streak-one {
  top: 25%;
  transform: rotate(-12deg);
}

.index4-streak-two {
  bottom: 19%;
  transform: rotate(9deg);
}

.index4-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(30px, 5vw, 82px);
}

.index4-visual {
  position: relative;
  z-index: 2;
  width: min(100%, 880px);
  justify-self: start;
  transform-style: preserve-3d;
  will-change: transform;
}

.index4-image-glow {
  position: absolute;
  inset: 10% 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 44%, rgba(0, 179, 255, 0.18), transparent 45%),
    radial-gradient(circle at 70% 50%, rgba(110, 255, 55, 0.16), transparent 47%);
  filter: blur(42px);
}

.index4-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transform: translateZ(20px);
  filter:
    drop-shadow(0 34px 60px rgba(0, 0, 0, 0.30))
    drop-shadow(0 0 38px rgba(0, 201, 255, 0.05));
}

.index4-copy {
  position: relative;
  z-index: 3;
  max-width: 620px;
}

.index4-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 190, 62, 0.16);
  border-radius: 999px;
  background: rgba(30, 26, 11, 0.44);
  color: #ffd05f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
}

.index4-title {
  margin: 22px 0 0;
  color: #f6fbff;
  font-size: clamp(43px, 4.8vw, 74px);
  line-height: 1.01;
  letter-spacing: -0.046em;
  text-wrap: balance;
}

.index4-title span {
  display: block;
  margin-top: 7px;
  background: linear-gradient(93deg, #29d6ff 8%, #99ff34 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.index4-lead {
  margin: 23px 0 0;
  color: rgba(214, 232, 242, 0.68);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.62;
}

.index4-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 29px;
}

.index4-feature {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(147, 216, 248, 0.10);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(13, 36, 49, 0.70), rgba(6, 22, 32, 0.54));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 14px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(13px);
}

.index4-feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(8, 41, 56, 0.72);
  font-size: 19px;
  font-weight: 900;
}

.index4-feature-trainer .index4-feature-icon {
  color: #ffc44f;
  box-shadow: inset 0 0 0 1px rgba(255, 196, 79, 0.16);
}

.index4-feature-open .index4-feature-icon {
  color: #26dfff;
  box-shadow: inset 0 0 0 1px rgba(38, 223, 255, 0.16);
}

.index4-feature-private .index4-feature-icon {
  color: #a363ff;
  box-shadow: inset 0 0 0 1px rgba(163, 99, 255, 0.16);
}

.index4-feature-rating .index4-feature-icon {
  color: #8eff39;
  box-shadow: inset 0 0 0 1px rgba(142, 255, 57, 0.16);
}

.index4-feature h3 {
  margin: 1px 0 0;
  color: #f4f9fc;
  font-size: 15px;
  line-height: 1.3;
}

.index4-feature p {
  margin: 5px 0 0;
  color: rgba(196, 217, 229, 0.56);
  font-size: 12px;
  line-height: 1.48;
}

.index4-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.index4-pill {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(149, 228, 255, 0.10);
  border-radius: 999px;
  background: rgba(6, 27, 38, 0.58);
  color: rgba(216, 233, 242, 0.62);
  font-size: 11px;
  font-weight: 700;
}

.index4 [data-index4-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 760ms cubic-bezier(.2,.72,.2,1),
    transform 760ms cubic-bezier(.2,.72,.2,1);
}

.index4 [data-index4-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .index4-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    gap: 26px;
  }

  .index4-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .index4 {
    padding: 68px 0 82px;
  }

  .index4-shell {
    grid-template-columns: 1fr;
  }

  .index4-copy {
    grid-row: 1;
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
  }

  .index4-lead {
    margin-inline: auto;
  }

  .index4-features {
    max-width: 650px;
    margin-inline: auto;
    margin-top: 26px;
    text-align: left;
  }

  .index4-bottom {
    justify-content: center;
  }

  .index4-visual {
    grid-row: 2;
    width: min(100%, 760px);
    justify-self: center;
    margin-top: 16px;
  }
}

@media (max-width: 560px) {
  .index4 {
    padding: 56px 0 70px;
  }

  .index4-title {
    font-size: clamp(37px, 11vw, 50px);
  }

  .index4-lead {
    font-size: 15px;
  }

  .index4-feature {
    grid-template-columns: 40px 1fr;
    padding: 13px;
  }

  .index4-feature-icon {
    width: 40px;
    height: 40px;
  }

  .index4-visual {
    width: calc(100% + 16px);
    margin-left: -8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .index4 *,
  .index4 *::before,
  .index4 *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}


/* ============================================================
   ФИНАЛЬНАЯ ПРАВКА ГОРИЗОНТАЛЬНОГО ЭКРАНА 4
   Картинка, основной текстовый блок и SEO-блок используют
   одну и ту же полную ширину контейнера.
   ============================================================ */

.index4 .index4-shell {
  display: block;
}

.index4 .index4-visual {
  width: 100%;
  max-width: none;
  justify-self: stretch;
  margin: 0;
}

.index4 .index4-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
}

.index4 .index4-copy.index4-copy-horizontal {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.index4 .index4-copy-horizontal .index4-copy-top {
  width: 100%;
  max-width: none;
}

.index4 .index4-copy-horizontal .index4-lead {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.index4 .index4-features.index4-features-horizontal {
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.index4 .index4-bottom.index4-bottom-horizontal {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1050px) {
  .index4 .index4-features.index4-features-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .index4 .index4-copy.index4-copy-horizontal {
    max-width: none;
    text-align: center;
  }

  .index4 .index4-visual {
    width: 100%;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .index4 .index4-visual {
    width: 100%;
    margin-left: 0;
  }

  .index4 .index4-features.index4-features-horizontal {
    grid-template-columns: 1fr;
  }
}
