/* Comparison 3: тёмная карточка, рост с MPSTARS / без */

.cmp3-sec {
  padding: 28px 20px 56px;
}

.sec.cmp3-sec > .wrap.cmp3 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 40px 52px;
  align-items: stretch;
  padding: 48px 44px !important;
  border-radius: 32px !important;
  border: 0 !important;
  color: #fff;
  background:
    radial-gradient(480px 280px at 88% 12%, rgba(168, 135, 79, .28), transparent 55%),
    radial-gradient(360px 220px at 8% 90%, rgba(61, 74, 99, .35), transparent 50%),
    linear-gradient(155deg, #0B1220 0%, #141C2E 48%, #101826 100%) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 32px 64px rgba(8, 12, 22, .34) !important;
  overflow: hidden;
  isolation: isolate;
}
.sec.cmp3-sec > .wrap.cmp3::before {
  display: none !important;
}

.cmp3-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  align-self: stretch;
  min-height: 360px;
  gap: 56px;
}
.cmp3-copy h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #fff !important;
}
.cmp3-copy .btn {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px !important;
  background: #fff !important;
  color: #0E1525 !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22) !important;
  font-weight: 700;
}
.cmp3-copy .btn:hover {
  background: #F3F1EC !important;
  transform: translateY(-1px);
}

.cmp3-chart {
  position: relative;
  z-index: 1;
  min-height: 360px;
  height: 360px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 28px;
  padding: 4px 4px 0;
}
.cmp3-chart::before {
  content: "";
  position: absolute;
  inset: 6% 4% 44px;
  background-image: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent calc(25% - 1px),
    rgba(255, 255, 255, .07) calc(25% - 1px),
    rgba(255, 255, 255, .07) 25%
  );
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.cmp3-bar {
  position: relative;
  z-index: 1;
  width: min(44%, 150px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.cmp3-track {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.cmp3-bar-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--h, 70%);
  border-radius: 22px;
  padding: 22px 12px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  box-sizing: border-box;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 1.15s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.cmp3-bar-fill > * {
  opacity: 0;
  transition: opacity .4s ease .7s;
}
.cmp3-chart.is-on .cmp3-bar-fill {
  transform: scaleY(1);
}
.cmp3-chart.is-on .cmp3-bar-fill > * {
  opacity: 1;
}
.cmp3-bar.is-hi .cmp3-bar-fill {
  background: linear-gradient(180deg, #F0E2C0 0%, #D4B87A 42%, #A8874F 100%);
  color: #17120A;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18) inset,
    0 18px 40px rgba(168, 135, 79, .35);
}
.cmp3-bar.is-lo .cmp3-bar-fill {
  background: linear-gradient(180deg, #4A556C 0%, #2A3448 55%, #1C2434 100%);
  color: rgba(255, 255, 255, .92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08) inset,
    0 14px 28px rgba(0, 0, 0, .28);
}

.cmp3-ico {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}
.cmp3-bar.is-hi .cmp3-ico { color: #A8874F; }
.cmp3-bar.is-lo .cmp3-ico { color: #7A8499; }
.cmp3-ico .ic {
  width: 22px;
  height: 22px;
  background: currentColor;
}
.cmp3-val {
  margin: 2px 0 0;
  font-family: "Unbounded", "Onest", system-ui, sans-serif;
  font-size: clamp(38px, 4.2vw, 54px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1;
  color: inherit !important;
}
.cmp3-cap {
  margin: 0;
  max-width: 10ch;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.25;
  opacity: .85;
  color: inherit !important;
}

.cmp3-tag {
  flex: 0 0 auto;
  text-align: center;
  white-space: nowrap;
  font-family: "Unbounded", "Onest", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
.cmp3-bar.is-hi .cmp3-tag {
  color: #E2CFA6;
}

@media (max-width: 900px) {
  .sec.cmp3-sec > .wrap.cmp3 {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 34px 24px !important;
  }
  .cmp3-copy {
    min-height: 0;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .cmp3-copy h2 { max-width: 14ch; }
  .cmp3-chart { min-height: 320px; height: 320px; }
}

@media (max-width: 700px) {
  .cmp3-sec { padding-left: 12px; padding-right: 12px; }
  .sec.cmp3-sec > .wrap.cmp3 {
    border-radius: 24px !important;
    padding: 26px 16px !important;
  }
  .cmp3-copy { gap: 18px; }
  .cmp3-bar { width: min(46%, 122px); }
  .cmp3-val { font-size: 34px; }
  .cmp3-chart { min-height: 280px; height: 280px; gap: 18px; }
  .cmp3-tag { font-size: 10px; letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  .cmp3-bar-fill { transition: none; transform: scaleY(1); }
  .cmp3-bar-fill > * { opacity: 1; transition: none; }
  .cmp3-copy .btn:hover { transform: none; }
}
