/* ============================================
   HOME BLOCK 4 — DISEÑO VISUAL E INTERFAZ
   Right-aligned head + frame (image-left / feature-rows-right)
   Ассет: image2 (девушка + слот)
   ============================================ */

.home_block_4 {
  background: var(--bg-dark);
  padding-top: 8rem;
  padding-bottom: 10rem;
  position: relative;
}

.home_block_4 > .block_4_inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

/* ===== Right-aligned head ===== */

.home_block_4 > .block_4_inner > .block_4_head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1.6rem;
  max-width: 70rem;
  margin-left: auto;
}

.home_block_4 > .block_4_inner > .block_4_head > .head_title {
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.home_block_4 > .block_4_inner > .block_4_head > .head_title > span {
  color: var(--accent);
}

.home_block_4 > .block_4_inner > .block_4_head > .head_lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 56rem;
}

/* ===== Frame (image-left + features-right) ===== */

.home_block_4 > .block_4_inner > .block_4_frame {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

.home_block_4 > .block_4_inner > .block_4_frame::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.home_block_4 > .block_4_inner > .block_4_frame > .frame_image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  z-index: 1;
}

.home_block_4 > .block_4_inner > .block_4_frame > .frame_image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_image
  > .frame_image_overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 50%, rgba(10, 21, 40, 0.6) 100%),
    linear-gradient(90deg, rgba(10, 21, 40, 0.25) 0%, transparent 50%);
  pointer-events: none;
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_image
  > .frame_image_badge {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--accent-2);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 0 18px rgba(184, 255, 90, 0.4);
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_image
  > .frame_image_badge
  > i {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--bg-dark);
  border-radius: 50%;
}

.home_block_4 > .block_4_inner > .block_4_frame > .frame_features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  z-index: 1;
  position: relative;
}

.home_block_4 > .block_4_inner > .block_4_frame > .frame_features > .frame_row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-dark);
  border: 1px solid var(--bg-line);
  border-radius: var(--radius);
  transition:
    border-color 0.3s,
    transform 0.3s;
  position: relative;
  overflow: hidden;
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_features
  > .frame_row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s;
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_features
  > .frame_row:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_features
  > .frame_row:hover::before {
  transform: scaleY(1);
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_features
  > .frame_row
  > .row_icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_features
  > .frame_row
  > .row_icon
  > svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_features
  > .frame_row
  > .row_content
  > .row_title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.home_block_4
  > .block_4_inner
  > .block_4_frame
  > .frame_features
  > .frame_row
  > .row_content
  > .row_text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ============================================
   Mobile — ≤1024px
   ============================================ */
@media (max-width: 1024px) {
  .home_block_4 > .block_4_inner {
    gap: 5rem;
  }

  .home_block_4 > .block_4_inner > .block_4_head {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .home_block_4 > .block_4_inner > .block_4_head > .head_title {
    font-size: 5.6rem;
  }

  .home_block_4 > .block_4_inner > .block_4_head > .head_lead {
    font-size: 2.6rem;
    max-width: 100%;
  }

  .home_block_4 > .block_4_inner > .block_4_frame {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 2.5rem;
  }

  .home_block_4 > .block_4_inner > .block_4_frame > .frame_image {
    aspect-ratio: 16 / 11;
  }

  .home_block_4
    > .block_4_inner
    > .block_4_frame
    > .frame_image
    > .frame_image_badge {
    font-size: 2rem;
    padding: 1.5rem 2.4rem;
    left: 2.5rem;
    bottom: 2.5rem;
  }

  .home_block_4 > .block_4_inner > .block_4_frame > .frame_features {
    padding: 0;
    gap: 2rem;
  }

  .home_block_4
    > .block_4_inner
    > .block_4_frame
    > .frame_features
    > .frame_row {
    padding: 2.5rem 2.5rem;
    gap: 2rem;
  }

  .home_block_4
    > .block_4_inner
    > .block_4_frame
    > .frame_features
    > .frame_row
    > .row_icon {
    width: 7rem;
    height: 7rem;
  }

  .home_block_4
    > .block_4_inner
    > .block_4_frame
    > .frame_features
    > .frame_row
    > .row_icon
    > svg {
    width: 3.5rem;
    height: 3.5rem;
  }

  .home_block_4
    > .block_4_inner
    > .block_4_frame
    > .frame_features
    > .frame_row
    > .row_content
    > .row_title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
  }

  .home_block_4
    > .block_4_inner
    > .block_4_frame
    > .frame_features
    > .frame_row
    > .row_content
    > .row_text {
    font-size: 2.1rem;
  }
}
