/* ── Preview label ─────────────────────────────── */
.vars-label {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: oklch(0.505 0.20 285.7 / .07);
  border: 1px solid oklch(0.505 0.20 285.7 / .22);
  border-radius: 6px;
  padding: 5px 12px;
  margin-bottom: 48px;
}


/* ═══════════════════════════════════════════════
   VARIANT A — МОНОЛИТ
   Четыре шага внутри единой тёмной панели.
   Гигантские числа — водяные знаки в фоне.
═══════════════════════════════════════════════ */
.steps-a__panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #2a2a35;
  border-radius: var(--r-xl);
  overflow: hidden;
}

.step-a {
  isolation: isolate;
  position: relative;
  padding: 44px 32px 40px;
  background: var(--c-panel);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background .3s var(--ease);
}
.step-a + .step-a { border-left: 1px solid #2a2a35; }
.step-a:hover { background: var(--c-panel-2); }

.step-a::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.step-a:hover::after { opacity: 1; }

.step-a::before {
  content: attr(data-n);
  position: absolute;
  bottom: -20px; right: 10px;
  font-family: var(--f-mono);
  font-size: 110px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.04);
  pointer-events: none;
  user-select: none;
}

.step-a__num {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .2em;
  color: var(--c-accent);
  display: block;
}

.step-a__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  border: 1px solid var(--c-line-2);
  background: var(--c-bg);
  display: grid; place-items: center;
  color: var(--c-accent);
  flex-shrink: 0;
  transition: border-color .3s var(--ease);
}
.step-a:hover .step-a__icon { border-color: oklch(0.505 0.20 285.7 / .4); }

.step-a h4 { font-size: 17px; letter-spacing: -.015em; }
.step-a p  { color: var(--c-text-2); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 860px) {
  .steps-a__panel { grid-template-columns: 1fr 1fr; }
  .step-a:nth-child(n+3) { border-top: 1px solid #2a2a35; }
  .step-a:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 520px) {
  .steps-a__panel { grid-template-columns: 1fr; }
  .step-a + .step-a { border-left: 0; border-top: 1px solid #2a2a35; }
}


/* ═══════════════════════════════════════════════
   VARIANT B — ВЕРТИКАЛЬ
   Вертикальный список. Слева — гигантский номер,
   справа — иконка + текст. Линия их соединяет.
═══════════════════════════════════════════════ */
.steps-b__list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.step-b {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.step-b__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 6px;
}

.step-b__num {
  font-family: var(--f-mono);
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--c-text-4);
  transition: color .4s var(--ease);
  display: block;
}
.step-b:hover .step-b__num { color: var(--c-accent); }

.step-b__vline {
  flex: 1;
  width: 1px;
  min-height: 40px;
  background: linear-gradient(180deg, var(--c-line-2) 0%, transparent 100%);
  margin-top: 10px;
}

.step-b__right {
  padding: 8px 0 56px 20px;
}
.step-b:last-child .step-b__right { padding-bottom: 0; }

.step-b__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--c-line-2);
  background: var(--c-bg);
  display: grid; place-items: center;
  color: var(--c-accent);
  margin-bottom: 18px;
}

.step-b h4 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 10px; }
.step-b p  { color: var(--c-text-2); font-size: 14px; line-height: 1.6; max-width: 42ch; }

@media (max-width: 600px) {
  .step-b { grid-template-columns: 80px 1fr; }
  .step-b__num { font-size: 56px; }
  .step-b__right { padding-left: 12px; }
}


/* ═══════════════════════════════════════════════
   VARIANT C — ТЕРМИНАЛ
   Все 4 шага — как CLI-команды внутри одного
   окна терминала с macOS-хромом вверху.
═══════════════════════════════════════════════ */
.steps-c__terminal {
  border: 1px solid #2a2a35;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #0a0a10;
  max-width: 860px;
}

.steps-c__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-bottom: 1px solid #2a2a35;
  background: #070709;
}

.steps-c__dots { display: flex; gap: 7px; flex-shrink: 0; }
.steps-c__dots span { width: 12px; height: 12px; border-radius: 50%; }
.steps-c__dots span:nth-child(1) { background: #ff5f57; }
.steps-c__dots span:nth-child(2) { background: #febc2e; }
.steps-c__dots span:nth-child(3) { background: #28c840; }

.steps-c__bartitle {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--c-text-4);
  letter-spacing: .04em;
}

.steps-c__screen {
  padding: 32px 36px 36px;
  display: flex;
  flex-direction: column;
}

.steps-c__group { margin-bottom: 22px; }
.steps-c__group:last-of-type { margin-bottom: 0; }

.steps-c__line {
  display: flex;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.8;
  flex-wrap: wrap;
}

.steps-c__prompt { color: var(--c-accent); white-space: nowrap; flex-shrink: 0; }
.steps-c__cmd    { color: var(--c-text); }

.steps-c__out {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--c-text-3);
  line-height: 1.6;
}
.steps-c__ok   { color: #28c840; margin-right: 5px; }
.steps-c__wait { color: #febc2e; margin-right: 5px; }

.steps-c__cursor-line {
  display: flex;
  align-items: baseline;
  font-family: var(--f-mono);
  font-size: 13.5px;
  margin-top: 22px;
}
.steps-c__cursor {
  color: var(--c-accent);
  animation: blink-cursor 1.1s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 680px) {
  .steps-c__screen { padding: 22px; }
  .steps-c__cmd { word-break: break-all; }
}
