/* 03 · Подход — заголовок и пять этапов с томатной плашкой. Логика — assets/js/components/steps.js */

.stp-prog>i {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  animation: prog 2.2s linear both;
}

.appr-h {
  font-size: min(132px,9.6cqw);
  font-weight: 900;
  line-height: .88;
  letter-spacing: -.01em;
  text-transform: uppercase;
}

.appr-note {
  position: absolute;
  right: 0;
  bottom: 6px;
  max-width: 380px;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(27,23,20,.86);
}

.stp-w {
  position: relative;
  margin-top: 76px;
  container-type: inline-size;
}

.stp {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  border-top: 1px solid var(--fg28);
  border-bottom: 1px solid var(--fg28);
}

.stp-i {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 370px;
  padding: 30px 22px 58px;
  color: var(--fg);
  border-left: 1px solid var(--fg28);
  cursor: default;
  min-width: 0;
}

.stp-i:first-child {
  border-left-color: transparent;
}

.stp-n {
  font-weight: 900;
  font-size: 108px;
  line-height: .8;
  letter-spacing: -.01em;
  -webkit-text-fill-color: var(--bg);
  -webkit-text-stroke: 3px currentColor;
  paint-order: stroke fill;
  transition: -webkit-text-fill-color .6s var(--e1);
}

/* заголовки этапов выравниваем от верха: длина описаний в узких колонках не сдвигает их по высоте */
.stp-v {
  margin-top: clamp(20px,2cqw,40px);
  min-height: 1.9em;
  display: flex;
  align-items: flex-end;
  font-weight: 800;
  font-size: 2.8cqw;
  line-height: .95;
  text-transform: uppercase;
}

.stp-d {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(27,23,20,.84);
  transition: color .6s var(--e1);
}

.stp-plate {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 20%;
  overflow: hidden;
  background: var(--acc);
  pointer-events: none;
  transform: translate3d(0,0,0);
  transition: transform .85s var(--e1);
  will-change: transform;
}

.stp-ink {
  position: absolute;
  top: 0;
  left: 0;
  width: 500%;
  height: 100%;
  transition: transform .85s var(--e1);
  will-change: transform;
}

.stp-ink .stp {
  height: 100%;
  border-color: transparent;
}

.stp-ink .stp-i {
  color: var(--ink);
  border-left-color: transparent;
}

.stp-ink .stp-n {
  -webkit-text-fill-color: var(--ink);
}

.stp-ink .stp-d {
  color: var(--ink);
}

.stp-prog {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 24px;
  height: 3px;
  background: rgba(27,23,20,.18);
  overflow: hidden;
  transition: opacity .3s;
}

.stp-prog>i {
  background: var(--ink);
}

.stp-prog.is-hidden {
  opacity: 0;
}

@media (max-width:900px) {
  .appr-h {
    font-size: clamp(46px,13cqw,132px);
  }
  .appr-note {
    position: static;
    margin-top: 24px;
  }
  .stp-plate {
    display: none;
  }
  .stp {
    grid-template-columns: minmax(0,1fr);
    border-bottom: 0;
  }
  .stp-i {
    min-height: 0;
    padding: 22px 18px 24px;
    border-left: 0;
    border-bottom: 1px solid var(--fg28);
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    column-gap: 20px;
    align-items: start;
    transition: background-color .6s var(--e1),color .6s;
  }
  /* колонка номера одной ширины во всех строках (по самому широкому «04»), иначе заголовки этапов стоят «лесенкой» */
  .stp-n {
    font-size: 64px;
    grid-row: span 2;
    min-width: .9em;
  }
  .stp-v {
    margin-top: 0;
    min-height: 0;
    font-size: 30px;
  }
  .stp-d {
    min-height: 0;
    margin-top: 8px;
  }
  .stp-i.on {
    background: var(--acc);
    color: var(--ink);
  }
  .stp-i.on .stp-n {
    -webkit-text-fill-color: var(--acc);
  }
  .stp-i.on .stp-d {
    color: var(--ink);
  }
}

.sec-appr > .wrap {
  container-type: inline-size;
}

.appr-head {
  position: relative;
  margin-top: 40px;
}
