.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-md);
}
.steps::before {
  content: '';
  position: absolute;
  top: 44px;
  inset-inline: 44px;
  height: 1px;
  background: var(--line-strong);
}
.step {
  position: relative;
  padding: 0 var(--space-3xs);
}
.step-top {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-block-end: var(--space-xs);
  background: var(--surface-3);
  width: max-content;
  padding-inline-end: var(--space-3xs);
}
:root[data-theme='dark'] .step-top {
  background: var(--surface-1);
}
.step .icon-badge {
  order: -1;
  background: var(--surface-1);
}
.step h3 {
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  font-weight: 600;
}
.step p {
  margin-block-start: 6px;
  color: var(--text-2);
  font-size: var(--text-body-s);
  line-height: var(--leading-body-s);
}
.how-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  margin-block-start: var(--space-2xl);
  color: var(--text-2);
  font-size: var(--text-body-s);
  text-align: center;
}
@media (max-width: 1023px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 1023px) {
  .steps::before {
    top: 0;
    bottom: 0;
    inset-inline-start: 22px;
    inset-inline-end: auto;
    width: 1px;
    height: auto;
  }
}
@media (max-width: 1023px) {
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-xs);
    padding: var(--space-xs) 0;
  }
}
@media (max-width: 1023px) {
  .step-top {
    grid-row: 1 / span 2;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 6px;
  }
}
@media (max-width: 1023px) {
  .step .icon-badge {
    order: 0;
  }
}

.how-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto var(--space-2xl);
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface-1);
  box-shadow: 0 1px 2px rgba(8, 11, 24, 0.04);
}
.how-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px 6px 8px;
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: var(--text-body-s);
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color var(--motion-base),
    color var(--motion-base),
    box-shadow var(--motion-base);
}
html[dir='rtl'] .how-tab {
  padding: 6px 8px 6px 16px;
}
.how-tab img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.how-tab:hover {
  color: var(--text);
}
.how-tab.is-active {
  background: var(--i50);
  color: var(--i700);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--interactive) 22%, transparent);
}
:root[data-theme='dark'] .how-tab.is-active {
  background: var(--surface-3);
  color: var(--text);
}
.how-tab:focus-visible {
  outline: 2px solid var(--interactive);
  outline-offset: 2px;
}
.how-panel[hidden] {
  display: none;
}
@media (max-width: 479px) {
  .how-tab {
    padding-inline: 8px 12px;
    font-size: 13px;
  }
}
@media (max-width: 479px) {
  .how-tab img {
    width: 26px;
    height: 26px;
  }
}
.how-tab-t {
  display: grid;
  text-align: start;
}
.how-tab-t b {
  font-size: var(--text-body-s);
  line-height: 18px;
  font-weight: 600;
}
.how-tab-t small {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  opacity: 0.8;
}
