/* Установка: ролик «full → half» и 3 шага рядом. Клик по шагу перематывает ролик, активный шаг подсвечивается по ходу видео */
.howto{max-width:1180px;margin:0 auto;padding:10px 24px 110px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);grid-template-areas:"vid ." "vid head" "vid steps" "vid .";grid-template-rows:1fr auto auto 1fr;column-gap:72px}
.howto>*{min-width:0}
.ht-head{grid-area:head}
.ht-head .cond{font-size:clamp(17px,1.8vw,22px);color:var(--orange-d)}
.ht-head h2{margin-top:10px;font-size:clamp(38px,5vw,64px)}
.ht-vid{grid-area:vid;position:relative;isolation:isolate;align-self:center}
.ht-vid::before{content:"";position:absolute;inset:22px -20px -20px 22px;background:var(--peach);border-radius:30px;transform:rotate(2.5deg);z-index:-1}
.ht-vid video{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;border-radius:24px;background:var(--ink)}
.ht-play{position:absolute;top:calc(5% + 8px);right:12px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,246,235,.92);display:grid;place-items:center;box-shadow:0 2px 10px rgba(11,26,51,.25)}
.ht-play svg{width:18px;height:18px;fill:var(--ink)}
.ht-play .i-play{display:none}
.ht-vid.paused .ht-play .i-play{display:block}
.ht-vid.paused .ht-play .i-pause{display:none}
.ht-steps{grid-area:steps;list-style:none;margin:30px 0 0;padding:0;display:grid;gap:12px}
.ht-steps button{position:relative;overflow:hidden;width:100%;display:flex;align-items:center;gap:16px;padding:14px 18px;border:2px solid var(--ink);border-radius:18px;background:#fff;text-align:left;font-weight:800;font-size:18px;line-height:1.25;box-shadow:4px 5px 0 var(--ink);transition:transform .12s,background .2s,color .2s}
.ht-steps button:hover{transform:translate(-1px,-1px)}
.ht-steps button:active{transform:translate(3px,4px);box-shadow:1px 1px 0 var(--ink)}
.ht-steps i{flex:0 0 40px;height:40px;border-radius:50%;background:var(--orange);color:#fff;display:grid;place-items:center;font-style:normal;font-family:var(--fc);font-weight:800;font-size:22px;line-height:1}
.ht-steps button.on{background:var(--ink);color:var(--cream)}
.ht-steps button.on i{background:var(--butter);color:var(--ink)}
.ht-steps button.on::after{content:"";position:absolute;left:0;bottom:0;height:4px;width:calc(var(--p,0) * 100%);background:var(--butter)}
.ht-note{margin-top:18px;font-size:15px;color:var(--ink-soft)}

@media (max-width:820px){
  .howto{display:flex;flex-direction:column;padding:0 16px 72px}
  .ht-head{text-align:center;margin-bottom:28px}
  .ht-vid::before{inset:14px -8px -12px 14px}
  .ht-steps{margin-top:30px;gap:10px}
  .ht-steps button{font-size:16px;padding:12px 14px;gap:12px}
  .ht-steps i{flex-basis:34px;height:34px;font-size:19px}
  .ht-note{text-align:center}
}
