/**
 * bh-landing-steps — три шага с нумерованным бейджем (Figma, как telegram «3 шага»)
 * Требует: bothelp-pages :root, класс .bh-numbered-badge
 */

.bh-landing-steps {
  box-sizing: border-box;
  width: 100%;
  position: relative;
  background: #fff;
  overflow: hidden;
  margin: 0 0 50px;
  padding: 0;
}

.bh-landing-steps__wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.bh-landing-steps--pad-top-80 .bh-landing-steps__wrap {
  padding-top: 80px;
}

.bh-landing-steps__head {
  box-sizing: border-box;
  width: 100%;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bh-landing-steps__head-spacer {
  align-self: stretch;
  display: inline-flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.bh-landing-steps__head--no-lead {
  padding-bottom: 0;
}

.bh-landing-steps__head--no-lead .bh-landing-steps__head-spacer {
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 16px;
}

.bh-landing-steps__head--no-lead + .bh-landing-steps__row {
  margin-top: 40px;
}

.bh-landing-steps__title-row {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.bh-landing-steps__title {
  margin: 0;
  flex: 1 1 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--bh-text, #212121);
  font-size: 36px;
  font-family: var(--bh-font-title, "Ubuntu Sans", sans-serif);
  font-weight: 700;
  line-height: 40px;
  overflow-wrap: break-word;
}

.bh-landing-steps__lead {
  margin: 0;
  box-sizing: border-box;
  width: 100%;
  max-width: 768px;
  text-align: center;
  color: var(--bh-text, #212121);
  font-size: 18px;
  font-family: var(--bh-font-body, Roboto, sans-serif);
  font-weight: 400;
  line-height: 28px;
  opacity: 0.8;
  overflow-wrap: break-word;
}

.bh-landing-steps .bh-numbered-badge {
  background: var(--bh-red, #ff4d4d);
}

.bh-landing-steps__step .bh-numbered-badge {
  position: relative;
  z-index: 1;
}

.bh-landing-steps__row {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

/* Линия-штрих между бейджами (как в оригинале landing / Figma) */
.bh-landing-steps__row::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  right: 0;
  height: 2px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--bh-red, #ff4d4d) 0,
    var(--bh-red, #ff4d4d) 15px,
    transparent 15px,
    transparent 30px
  );
  pointer-events: none;
  z-index: 0;
}

.bh-landing-steps__row::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, transparent 0%, #fff 100%);
  pointer-events: none;
  z-index: 0;
}

.bh-landing-steps__step {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  flex: 1 1 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.bh-landing-steps__step-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.bh-landing-steps__step-title {
  margin: 0;
  color: var(--bh-text, #212121);
  font-size: 24px;
  font-family: var(--bh-font-title, "Ubuntu Sans", sans-serif);
  font-weight: 700;
  line-height: 28.8px;
  overflow-wrap: break-word;
}

.bh-landing-steps__step-desc {
  margin: 0;
  color: var(--bh-text, #212121);
  font-size: 16px;
  font-family: var(--bh-font-body, Roboto, sans-serif);
  font-weight: 400;
  line-height: 23.2px;
  opacity: 0.8;
  overflow-wrap: break-word;
}

.bh-landing-steps__cta {
  margin-top: 61px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
}

.bh-landing-steps__btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 32px;
  background: var(--bh-red, #ff4d4d);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-family: var(--bh-font-body, Roboto, sans-serif);
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .bh-landing-steps__head {
    padding-bottom: 32px;
  }

  .bh-landing-steps__head--no-lead {
    padding-bottom: 0;
  }

  .bh-landing-steps--pad-top-80 .bh-landing-steps__wrap {
    padding-top: 40px;
  }

  .bh-landing-steps__head--no-lead + .bh-landing-steps__row {
    margin-top: 24px;
  }

  .bh-landing-steps__row::before,
  .bh-landing-steps__row::after {
    display: none;
  }

  .bh-landing-steps__row {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .bh-landing-steps__step {
    width: 100%;
    max-width: 100%;
    flex: 1 1 auto;
  }
}
