/* ===== «Это дорого?»: весы — вложение один раз против того, что оно возвращает ===== */
@property --a { syntax: '<angle>'; inherits: true; initial-value: -7deg; }
.px-sc { position: relative; padding: clamp(16px,2.4vw,28px); border-radius: 28px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #fff; }
.px-sc__stage { position: relative; container-type: inline-size; height: 330px; --a: -7deg; transition: --a 1.1s cubic-bezier(.3,1.6,.5,1); }
.px-sc__stage::before { content: ''; position: absolute; left: 50%; top: 10px; width: 380px; height: 380px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(124,77,255,.3), transparent 65%); pointer-events: none; }
.px-sc.is-done .px-sc__stage::before { background: radial-gradient(circle at 70% 50%, rgba(163,230,53,.22), transparent 62%), radial-gradient(circle, rgba(124,77,255,.25), transparent 65%); }

/* стойка и основание */
.px-sc__pole { position: absolute; left: 50%; top: 52px; bottom: 30px; width: 14px; margin-left: -7px; border-radius: 7px; background: linear-gradient(#ece8ff, #7c6cf0); }
.px-sc__base { position: absolute; left: 50%; bottom: 10px; width: 150px; height: 26px; transform: translateX(-50%); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); background: linear-gradient(#cfc6ff, #6f5ce6); }
.px-sc__shadow { position: absolute; left: 50%; bottom: 0; width: 240px; height: 14px; transform: translateX(-50%); border-radius: 50%; background: rgba(0,0,0,.25); }
.px-sc__pivot { position: absolute; left: 50%; top: 52px; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: linear-gradient(#ece8ff, #8b7cf5); border: 3px solid #ece8ff; box-shadow: 0 0 0 8px rgba(180,155,255,.18), 0 0 30px rgba(180,155,255,.6); z-index: 3; }

/* коромысло с чашами */
.px-sc__beam { position: absolute; left: 0; right: 0; top: 52px; height: 0; transform: rotate(var(--a)); z-index: 2; }
.px-sc__bar { position: absolute; left: 22%; right: 22%; top: -6px; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #b49bff, #ece8ff, #b49bff); }
.px-sc__bar::before, .px-sc__bar::after { content: ''; position: absolute; top: -2px; width: 16px; height: 16px; border-radius: 50%; background: #ece8ff; }
.px-sc__bar::before { left: -8px; } .px-sc__bar::after { right: -8px; }
.px-sc__pan { position: absolute; top: 0; width: 44%; height: 150px; transform: translateX(-50%) rotate(calc(var(--a) * -1)); transform-origin: 50% 0; }
.px-sc__pan--l { left: 22%; } .px-sc__pan--r { left: 78%; }
.px-sc__pan svg { position: absolute; left: 0; top: 0; width: 100%; height: 128px; overflow: visible; }
.px-sc__pan svg line { stroke: rgba(255,255,255,.35); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.px-sc__dish { position: absolute; left: 0; right: 0; top: 126px; height: 24px; border-radius: 4px 4px 999px 999px / 4px 4px 100% 100%; background: linear-gradient(#cfc6ff, #6f5ce6); box-shadow: inset 0 4px 0 #ece8ff; }
.px-sc__load { position: absolute; left: 3%; right: 3%; bottom: 24px; display: flex; justify-content: center; }
.px-sc__load--g { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }

/* вложение на левой чаше */
.px-sc__price { padding: 9px 14px 10px; border-radius: 14px; background: linear-gradient(135deg, #c9b8ff, #9b82ff); color: #10163a; text-align: center; box-shadow: 0 10px 24px rgba(124,77,255,.35); }
.px-sc__price small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.px-sc__price b { display: block; font-size: clamp(13px, 3.6cqi, 18px); font-weight: 800; white-space: nowrap; }

/* отдача на правой чаше */
.px-sc__g { display: flex; align-items: center; justify-content: center; gap: 3px; padding: 7px 4px; font-size: clamp(10.5px, 3.1cqi, 14px) !important; border-radius: 11px; background: linear-gradient(135deg, #d9f99d, #86efac); color: #0f2a1a; font-size: 14px; font-weight: 800; line-height: 1; white-space: nowrap; box-shadow: 0 6px 16px rgba(74,222,128,.25); transform: translateY(-260px); opacity: 0; transition: transform .5s cubic-bezier(.55,0,.85,.35), opacity .15s; }
.px-sc__g::before { content: '+'; font-size: 16px; }
.px-sc__g.on { transform: none; opacity: 1; }

/* «плюсы» поднимаются над чашей отдачи: вложение приумножается */
.px-sc__fx { position: absolute; left: 50%; bottom: 60px; width: 0; height: 0; pointer-events: none; }
.px-sc__fx i { position: absolute; left: 0; bottom: 0; font-style: normal; font-size: 16px; font-weight: 900; color: #a3e635; opacity: 0; }
.px-sc.is-done .px-sc__fx i { animation: scUp 2.8s ease-out infinite; animation-delay: calc(var(--i) * .45s); }
@keyframes scUp { 0% { opacity: 0; transform: translate(var(--x), 0) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--x) * 1.4), -90px) scale(1.15); } }

/* итог под весами */
.px-sc__sum { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.px-sc__sum div { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.px-sc__sum small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.px-sc__sum b { display: block; margin-top: 6px; font-size: 17px; font-weight: 800; line-height: 1.25; color: #fff; }
.px-sc__sum .is-in small { color: #c9b8ff; }
.px-sc__sum .is-out { background: rgba(163,230,53,.1); border-color: rgba(163,230,53,.3); }
.px-sc__sum .is-out small { color: #bef264; }

@media (max-width: 760px) {
  .px-sc { padding: 14px 10px; }
  .px-sc__stage { height: 290px; }
  .px-sc__stage::before { width: 300px; height: 300px; }
  .px-sc__bar { left: 22%; right: 22%; }
  .px-sc__pan { width: 44%; } .px-sc__pan--l { left: 22%; } .px-sc__pan--r { left: 78%; }
  .px-sc__load { left: 0; right: 0; }
  .px-sc__g { font-size: clamp(10px, 3.1cqi, 14px) !important; letter-spacing: -.01em; }
  .px-sc__price { padding: 8px 8px 9px; } .px-sc__price small { font-size: 9.5px; }
  .px-sc__g { padding: 6px 2px; border-radius: 9px; gap: 2px; }
  .px-sc__load--g { gap: 3px; }
  .px-sc__pole { width: 10px; margin-left: -5px; }
  .px-sc__base { width: 120px; }
  .px-sc__sum { grid-template-columns: 1fr; }
  .px-sc__sum b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .px-sc__stage { transition: none; }
  .px-sc__g { transition: none; }
  .px-sc.is-done .px-sc__fx i { animation: none; }
}
