

.crs-process {
  --proc-gap: 8px;
  --proc-cut: 22px;
  --proc-ink: #ffffff;
  --proc-ink-2: #f1f7fc;
  --proc-accent: #8fc3ea;

  position: relative;
  overflow: hidden;
  background: #ffffff;
  padding: 104px 0 112px;
}

.crs-process__shapes {
  position: absolute;
  top: 0;
  right: 0;
  width: 560px;
  height: 300px;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 300' fill='none' stroke-width='1.25'%3E%3Cpolygon points='540,-90 300,-90 210,0 450,0 450,240 540,150' stroke='%230e67a1' stroke-opacity='0.16'/%3E%3Cpolygon points='420,40 268,40 188,120 340,120 340,272 420,192' stroke='%23004e80' stroke-opacity='0.11'/%3E%3Cg stroke='%230e67a1' stroke-opacity='0.22'%3E%3Cline x1='120' y1='150' x2='136' y2='134'/%3E%3Cline x1='132' y1='150' x2='148' y2='134'/%3E%3Cline x1='144' y1='150' x2='160' y2='134'/%3E%3C/g%3E%3C/svg%3E")
    no-repeat 0 0 / 100% 100%;
}

.crs-process > .container {
  position: relative;
  z-index: 1;
}

.crs-process__head {
  margin-bottom: 44px;
}
.crs-process .crs-trust__title {
  color: #0f172a;
}
.crs-process .crs-section__lead {
  color: rgb(71, 85, 105);
  max-width: 560px;
}

.crs-process__rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--proc-gap);
}

.crs-process__step--1 {
  --proc-hi: #063b62;
  --proc-tone: #05253f;
}
.crs-process__step--2 {
  --proc-hi: #074878;
  --proc-tone: #063b62;
}
.crs-process__step--3 {
  --proc-hi: #075286;
  --proc-tone: #074878;
}
.crs-process__step--4 {
  --proc-hi: #0b5f97;
  --proc-tone: #004e80;
  --proc-accent: #bcdcf3;
}
.crs-process__step--5 {
  --proc-hi: #136fab;
  --proc-tone: #0e67a1;
  --proc-accent: #cfe5f6;
}

.crs-process__step {
  position: relative;
  color: var(--proc-ink);
  background: linear-gradient(150deg, var(--proc-hi) 0%, var(--proc-tone) 70%);
  clip-path: polygon(0 0, calc(100% - var(--proc-cut)) 0, 100% var(--proc-cut), 100% 100%, 0 100%);
  padding: 26px 24px 28px;
}

.crs-process__h {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: inherit;
}

.crs-process__num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--proc-ink);
}
.crs-process__num::after {
  content: '';
  width: 14px;
  height: 2px;
  background: var(--proc-accent);
  transform: rotate(-45deg);
}

.crs-process__title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--proc-ink);
}

.crs-process__body {
  margin-top: 10px;
}
.crs-process__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--proc-ink-2);
  text-wrap: pretty;
}

.crs-process__big,
.crs-process__vlabel {
  display: none;
}

@media (max-width: 991px) {
  .crs-process {
    padding: 88px 0;
  }

  .crs-process__step {
    padding: 24px 22px 26px 22px;
    min-height: 0;
  }


  .crs-process__big {
    display: block;
    position: absolute;
    right: 34px;
    top: 16px;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(143, 195, 234, 0.16);
    pointer-events: none;
  }

  .crs-process__h,
  .crs-process__body {
    position: relative;
    max-width: 560px;
  }
  .crs-process__h {
    padding-right: 56px;
  }
}

@media (max-width: 575px) {
  .crs-process__title {
    font-size: 19px;
  }
  .crs-process__text {
    font-size: 15.5px;
  }
  .crs-process__big {
    font-size: 42px;
  }
  .crs-process__shapes {
    width: 300px;
    height: 160px;
    opacity: 0.6;
  }
}

@media (min-width: 992px) {
  .crs-process__rail {
    grid-template-columns: repeat(var(--crs-process-n, 5), minmax(0, 1fr));
  }
  .crs-process__step {
    min-height: 340px;
    padding: 28px 22px 30px;
  }
  .crs-process__title {
    font-size: 20px;
  }
  .crs-process__text {
    font-size: 15.5px;
  }
}

@media (min-width: 992px) {
  .crs-process__rail.is-ready {
    --proc-narrow: 96px;
    --proc-pad: 32px;
    --proc-h: 440px;

    --proc-s: calc(var(--proc-narrow) + var(--proc-gap));

    --proc-wide: calc(100cqw - (var(--crs-process-n, 5) - 1) * var(--proc-s));

    --proc-w: calc(var(--proc-wide) - 2 * var(--proc-pad));

    container-type: inline-size;

    position: relative;
    display: block;

    height: max(var(--proc-h), var(--proc-h-fit, 0px));
  }


  .is-ready .crs-process__step {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--proc-i, 0) * var(--proc-s));
    right: calc(100% - var(--proc-i, 0) * var(--proc-s) - var(--proc-narrow));
    min-height: 0;
    overflow: hidden;
    padding: var(--proc-pad);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition:
      left 0.6s cubic-bezier(0.6, 0, 0.2, 1),
      right 0.6s cubic-bezier(0.6, 0, 0.2, 1);
  }
  .is-ready .crs-process__step.is-after {
    left: calc(var(--proc-i, 0) * var(--proc-s) + var(--proc-wide) - var(--proc-narrow));
  }
  .is-ready .crs-process__step.is-active,
  .is-ready .crs-process__step.is-after {
    right: calc(100% - var(--proc-i, 0) * var(--proc-s) - var(--proc-wide));
  }
  .is-ready .crs-process__step.is-active {
    cursor: default;
  }


  .is-ready .crs-process__step::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.07);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
  }
  .is-ready .crs-process__step:not(.is-active):hover::after {
    opacity: 1;
  }


  .is-ready .crs-process__step::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 34px;
    width: 150px;
    height: 150px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 150' fill='none' stroke-width='1.5'%3E%3Cpolygon points='148,2 62,2 30,34 116,34 116,120 148,88' stroke='%238fc3ea' stroke-opacity='0.34'/%3E%3Cg stroke='%23ffffff' stroke-opacity='0.28'%3E%3Cline x1='2' y1='148' x2='18' y2='132'/%3E%3Cline x1='14' y1='148' x2='30' y2='132'/%3E%3Cline x1='26' y1='148' x2='42' y2='132'/%3E%3C/g%3E%3C/svg%3E")
      no-repeat 0 0 / 100% 100%;
    opacity: 0;
    transition: opacity 0.15s ease;
  }


  .is-ready .crs-process__h,
  .is-ready .crs-process__body {
    flex: none;
    width: var(--proc-w);
    max-width: none;
  }
  .is-ready .crs-process__h {
    display: block;
  }

  .crs-process__btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: inherit;
  }
  .crs-process__btn:focus {
    outline: none;
  }

  .crs-process__btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
  }
  .crs-process__btn:focus-visible::after {
    outline: 2px solid #ffffff;
    outline-offset: -14px;
  }


  .is-ready .crs-process__num {
    position: absolute;
    top: 28px;
    left: 0;
    width: var(--proc-narrow);
    justify-content: center;
    flex-direction: column;
    gap: 14px;
    font-size: 15px;
  }


  .is-ready .crs-process__title {
    display: block;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }
  .is-ready .crs-process__body {
    margin-top: 14px;
  }
  .is-ready .crs-process__text {
    font-size: 17px;
    line-height: 1.62;
    max-width: 52ch;
  }

  .is-ready .crs-process__big {
    display: block;
    position: absolute;
    top: 22px;
    left: calc(var(--proc-pad) - 6px);
    font-size: 132px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--proc-accent);
    pointer-events: none;
  }

  .is-ready .crs-process__vlabel {
    display: block;
    position: absolute;
    bottom: 30px;
    left: calc(var(--proc-narrow) / 2);
    writing-mode: vertical-rl;
    transform: translateX(-50%) rotate(180deg);
    white-space: nowrap;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--proc-ink);
    pointer-events: none;
  }


  .is-ready .crs-process__big,
  .is-ready .crs-process__title,
  .is-ready .crs-process__body {
    opacity: 0;
    transition: opacity 0.15s ease;
  }
  .is-ready .crs-process__num,
  .is-ready .crs-process__vlabel {
    opacity: 1;
    transition: opacity 0.3s ease 0.3s;
  }

  .is-ready .is-active .crs-process__big,
  .is-ready .is-active .crs-process__title,
  .is-ready .is-active .crs-process__body,
  .is-ready .is-active::before {
    opacity: 1;
    transition: opacity 0.4s ease 0.22s;
  }
  .is-ready .is-active .crs-process__num,
  .is-ready .is-active .crs-process__vlabel {
    opacity: 0;
    transition: opacity 0.12s ease;
  }
}

@media (min-width: 1200px) {
  .crs-process__rail.is-ready {
    --proc-narrow: 112px;
    --proc-pad: 40px;
  }
  .is-ready .crs-process__big {
    font-size: 148px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crs-process__step,
  .crs-process__step::before,
  .crs-process__step::after,
  .crs-process__step *,
  .is-ready .is-active .crs-process__big,
  .is-ready .is-active .crs-process__title,
  .is-ready .is-active .crs-process__body,
  .is-ready .is-active::before,
  .is-ready .is-active .crs-process__num,
  .is-ready .is-active .crs-process__vlabel {
    transition: none !important;
  }
}
