/* HOW — 4 шага установки, timeline */

.how-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  position: relative;
}

@media (min-width: 600px) {
  .how-timeline { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .how-timeline { grid-template-columns: repeat(4, 1fr); }
}

.how-timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-tg), var(--accent-violet), var(--accent-mint), transparent);
  opacity: 0.4;
  z-index: 0;
  display: none;
}

@media (min-width: 1024px) {
  .how-timeline::before { display: block; }
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2vw, 28px);
  gap: clamp(4px, 0.4vw, 8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  transition: border-color var(--dur-base), transform var(--dur-base), box-shadow var(--dur-base);
}

.step p { flex: 1; }

.step:hover {
  border-color: var(--border-bright);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card-hover);
}

.step-num {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-sm);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--glow-tg);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-0);
  letter-spacing: -0.01em;
}

.step p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.5;
}

.step-list {
  margin-top: 10px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step-list li {
  position: relative;
  padding-left: 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
}

.step-list li::before {
  content: "·";
  position: absolute;
  left: 2px;
  top: -1px;
  color: var(--accent-mint);
  font-weight: bold;
}

.step-list li b {
  color: var(--text-0);
  font-weight: 600;
}

.step-time {
  display: block;
  margin-top: auto;
  padding-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--accent-mint);
  letter-spacing: 0.04em;
}

/* Fluid typography */
.step h3 { font-size: clamp(15px, 1.3vw, 18px); }
.step p { font-size: clamp(13px, 1vw, 14px); }
.step-num {
  width: clamp(48px, 4.5vw, 60px);
  height: clamp(48px, 4.5vw, 60px);
  font-size: clamp(20px, 1.8vw, 24px);
}
