/* ==========================================================================
   Blok „Korzyści z wykresem kosztów” (.os-gains). Źródło: assets/css/podstrony/outsourcing.css
   (Korzyści: wykres poglądowy obok ośmiu korzyści w dwóch kolumnach).
   ========================================================================== */

/* section head of B: the prefix on its own row, text and button on the right from the top */
.os-gains .os-head { align-items: start; row-gap: 1.25rem; }
.os-gains .os-head h2 { max-width: 17ch; }
.os-head__side { display: grid; justify-items: start; gap: 1.4rem; }
.os-head__side p { margin: 0; }

.os-gains__body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.os-gains__body--bez-wykresu { grid-template-columns: minmax(0, 1fr); }
.os-spread {
  position: sticky; top: calc(var(--nav-h) + 2.5rem); margin: 0;
  padding: clamp(1.25rem, 2.5vw, 1.75rem); border-radius: var(--radius-lg);
  background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line);
}
.sect--tint .os-spread { background: #fff; }
.os-spread__top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-bottom: 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line-strong);
}
.os-spread__top b { font-size: 1.125rem; font-weight: 600; letter-spacing: -.012em; color: var(--navy-900); }
.os-spread__top span { font-family: var(--font-ui); font-size: .6875rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); }
.os-spread__row + .os-spread__row { margin-top: 1.4rem; }
.os-spread__label { display: flex; align-items: center; gap: .55rem; margin: 0 0 .6rem; font-size: .9375rem; font-weight: 500; color: var(--navy-900); }
.os-spread__key { flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--orange-600); }
.os-spread__key--buy { background: var(--navy-900); }
.os-spread__bars {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; align-items: end;
  height: 92px; border-bottom: 2px solid var(--line-strong);
}
.os-spread__bars i { display: block; height: 30%; border-radius: 4px 4px 0 0; background: var(--orange-600); transform-origin: 50% 100%; }
.os-spread__bars--buy i { height: 3px; border-radius: 2px 2px 0 0; background: var(--line-strong); }
.os-spread__bars--buy i:first-child { height: 100%; border-radius: 5px 5px 0 0; background: var(--navy-900); }
.os-spread__axis { display: flex; justify-content: space-between; margin: .55rem 0 0; font-family: var(--font-ui); font-size: .75rem; color: var(--muted); }
.os-spread__axis span { display: inline-flex; align-items: center; gap: .35rem; }
.os-spread__axis .icon { width: .9rem; height: .9rem; }
.os-spread.is-armed .os-spread__bars i { transform: scaleY(0); }
.os-spread.is-armed.is-on .os-spread__bars i { transform: none; transition: transform .7s var(--ease) calc(var(--k, 0) * 55ms + .1s); }
.os-spread.is-armed.is-on .os-spread__bars--buy i:first-child { transition-delay: 0s; }

.os-gains__list { border-top: 0; column-gap: clamp(1.25rem, 3vw, 2.5rem); }
.os-gains__list li { grid-template-columns: 38px minmax(0, 1fr); gap: .15rem .95rem; padding: 1.1rem 0 1.15rem; }
.os-gains__list li:nth-child(-n+2) { border-top: 1px solid var(--line-strong); }
.os-gains .gains__icon { width: 38px; height: 38px; border-radius: 12px; }
.os-gains .gains__icon .icon { width: 1.1rem; height: 1.1rem; }
.os-gains .gains b { padding-top: .45rem; font-weight: 600; letter-spacing: -.01em; }

@media (max-width: 900px) {
  .os-gains__body { grid-template-columns: minmax(0, 1fr); }
  .os-spread { position: static; }
}
@media (max-width: 767px) {
  .os-gains__list li:nth-child(2) { border-top: 0; }
}
@media (max-width: 560px) {
  .os-head__side .btn { width: 100%; }
}
