/* =========================
   PROBLEM — big photo + feather edges + overlap card (FORCE LIGHT)
========================= */
.section-problem{
  position: relative;
  padding: 72px 0;
  overflow: hidden;
}

/* фон-ореол */
.section-problem::before{
  content:"";
  position:absolute;
  inset:-220px -220px auto -220px;
  height: 680px;
  background:
    radial-gradient(950px 440px at 18% 55%, rgba(94,234,212,0.16), transparent 62%),
    radial-gradient(950px 440px at 86% 35%, rgba(59,130,246,0.12), transparent 62%);
  opacity: .70;
  pointer-events:none;
  z-index:0;
}

.problem-grid{
  position: relative;
  z-index: 1;
  display:grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 18px;
  align-items: center;
}

@media (max-width: 980px){
  .problem-grid{
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }
}

/* визуал */
.problem-visual{
  position: relative;
  width: min(1040px, 100%);
  height: 560px;
  margin-top: 18px;

  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;

  overflow: visible;
  isolation: isolate;

  margin-left: -44px;
  margin-right: -240px;
}

@media (max-width: 980px){
  .problem-visual{
    width: 100%;
    height: 420px;
    margin-left: 0;
    margin-right: 0;
  }
}

.problem-visual::before{
  content:"";
  position:absolute;
  inset:-70px -120px -120px -120px;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(720px 320px at 30% 28%, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(980px 460px at 22% 55%, rgba(94,234,212,0.12), transparent 66%),
    radial-gradient(980px 460px at 88% 18%, rgba(59,130,246,0.10), transparent 68%);
  filter: blur(14px);
  opacity: .85;
}

.problem-photo{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;

  object-fit: contain;      /* не обрезает */
  object-position: 22% 80%;
  transform: scale(1.08);
  transform-origin: 24% 72%;

  filter: saturate(1.03) contrast(1.03);
  border-radius: 0;
}

/* feather edges */
@supports ((-webkit-mask-image: radial-gradient(#000, transparent)) or (mask-image: radial-gradient(#000, transparent))){
  .problem-photo{
    -webkit-mask-image: radial-gradient(
      ellipse 120% 92% at 34% 55%,
      rgba(0,0,0,1) 60%,
      rgba(0,0,0,0.35) 78%,
      rgba(0,0,0,0) 92%
    );
            mask-image: radial-gradient(
      ellipse 120% 92% at 34% 55%,
      rgba(0,0,0,1) 60%,
      rgba(0,0,0,0.35) 78%,
      rgba(0,0,0,0) 92%
    );
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
            mask-size: 100% 100%;
  }
}

/* мягкое “убирание прямоугольника” — всегда light */
.problem-visual::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    radial-gradient(closest-side at 18% 52%, rgba(246,248,255,0.95), transparent 70%),
    radial-gradient(closest-side at 88% 48%, rgba(246,248,255,1), transparent 74%),
    linear-gradient(180deg, rgba(246,248,255,0.9), transparent 22%, transparent 78%, rgba(246,248,255,0.95));
  opacity: .35;
}

/* карточка справа */
.problem-right{ position: relative; z-index: 2; }

.problem-panel{
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.88));
  border: 0;
  border-radius: 34px;
  padding: 26px 28px 22px;
  box-shadow: 0 18px 50px rgba(3,7,18,0.10);

  max-width: 760px;
  margin-left: -180px;
}

@media (max-width: 980px){
  .problem-panel{
    margin-left: 0;
    max-width: 100%;
  }
}

/* list */
.problem-list{
  list-style:none;
  padding:0;
  margin:0 0 16px;
  display:grid;
  gap: 14px;
}

.problem-list li{
  display:flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 600;
  color: rgba(3,7,18,0.70);
}

.problem-list li::before{
  content:"✓";
  width: 36px;
  height: 36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(94,234,212,0.18);
  border: 0;
  color: rgba(3,7,18,0.82);
}

.problem-bridge{
  margin:0;
  padding-top: 14px;
  border-top: 1px solid rgba(3,7,18,0.08);
  color: rgba(3,7,18,0.70);
  font-size: 16px;
}

.problem-bridge strong{ color: rgba(3,7,18,0.92); }

/* =========================
   PROBLEM — accents + staged reveal
========================= */
#problem .problem-left h2{
  font-size: clamp(46px, 5.6vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 12px;
  text-shadow: 0 14px 40px rgba(3,7,18,0.10);
}

#problem .problem-left .muted{
  font-size: 17px;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 0 18px;
}

#problem .problem-left h2::after{
  content:"";
  display:block;
  width: 96px;
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  opacity: .95;
}

#problem .problem-panel{
  box-shadow: 0 26px 80px rgba(3,7,18,0.14);
}

/* animation system */
#problem .anim{
  opacity: 0;
  transform: translateY(34px);
  filter: blur(16px);
  transition:
    opacity .9s ease,
    transform .9s cubic-bezier(.16,1,.22,1),
    filter .9s ease;
  will-change: opacity, transform, filter;
}

#problem .anim--title,
#problem .anim--sub{ filter: blur(10px); }

#problem.in-view .anim{
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

#problem .anim--title{ transition-delay: 0ms; }
#problem .anim--sub{   transition-delay: 180ms; }
#problem .anim--photo{ transition-delay: 360ms; }
#problem .anim--panel{ transition-delay: 560ms; }

#problem .anim--li{
  transition-delay: calc(760ms + (var(--i, 0) * 110ms));
}

#problem .anim--panel{
  transform: translateX(70px) translateY(14px);
}

#problem.in-view .anim--panel{
  transform: translateX(0) translateY(0);
}

#problem .anim--photo{
  transform: translateY(22px) scale(.94);
}

#problem.in-view .anim--photo{
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: no-preference){
  #problem.in-view .problem-panel{
    animation: problemFloat 4.2s ease-in-out 1.2s infinite;
  }
  @keyframes problemFloat{
    0%,100%{ transform: translateY(0); }
    50%{ transform: translateY(-6px); }
  }
}

@media (prefers-reduced-motion: reduce){
  #problem .anim{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  #problem.in-view .problem-panel{ animation: none !important; }
}
