/* =========================
   Block: How (Как проходит обучение)
   Uses base tokens/components
   ========================= */

.how__head{
  text-align: center;
  margin-bottom: 22px;
}

.how__title{
  margin-bottom: 10px;
}

.how__subtitle{
  max-width: 760px;
  margin: 0 auto;
}

/* panel inherits .card */
.how__panel{
  padding: 22px;
}

/* 4 columns desktop, 2 tablet, 1 mobile */
.how__steps{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* each step is a mini-card inside panel */
.how__step{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 320px;
}

/* numbered badge */
.how__badge{
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 18px rgba(31, 111, 235, 0.22);
}

.how__step-title{
  margin: 44px 0 10px;
  font-size: var(--fs-18);
  font-weight: 700;
  min-height: 40px; /* ≈ 2 строки h3 */
  display: flex;
  align-items: flex-start;
}

/* icon plate */
.how__icon{
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  border: 1px solid rgba(31, 111, 235, 0.18);
  background: rgba(31, 111, 235, 0.06);
  display: grid;
  place-items: center;
  margin: 10px 0 12px;
}

.how__icon svg{
  width: 54px;
  height: 54px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how__text{
  font-size: var(--fs-14);
  color: var(--muted);
  margin-bottom: 12px;
}

.how__text strong{
  color: var(--text);
  font-weight: 800;
}

/* meta list */
.how__meta{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: var(--fs-14);
  color: var(--muted);
}

.how__meta li{
  display: flex;
  gap: 8px;
  align-items: center;
}

.how__meta li::before{
  content: "✓";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(31, 111, 235, 0.12);
  color: var(--primary);
  font-weight: 900;
  line-height: 1;
}

/* CTA */
.how__cta{
  text-align: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.how__btn{
  height: 54px;            /* чуть крупнее базовой кнопки */
  padding: 0 22px;
  border-radius: var(--radius);
}

.how__note{
  margin-top: 10px;
  font-size: var(--fs-14);
}

/* Responsive */
@media (max-width: 1100px){
  .how__steps{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how__step{ min-height: 300px; }
}

@media (max-width: 640px){
  .how__panel{ padding: 16px; }
  .how__steps{ grid-template-columns: 1fr; }
  .how__step{ min-height: auto; }
}
