.steps-image {
  position: relative;
  background: rgb(var(--color-background));
  color: rgb(var(--color-text));
}

.steps-image__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  /* min-height: var(--steps-image-height, 760px); */
  max-width: 1400px;
  min-height: 560px;
  margin: 0 auto
}

.steps-image__left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 150px 30px 60px 0;
}

.steps-image__content-panel {
  display: none;
  max-width: 760px;
}

.steps-image__content-panel.is-active {
  display: block;
}

.steps-image__title {
  margin: 0;
  color: rgb(var(--color-text));
}

.steps-image__description {
  margin: 24px 0 0;
  color: rgba(var(--color-text), 0.62);
  max-width: 44ch;
}

.steps-image__progress {
  margin-top: 38px;
}

.steps-image__dot-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps-count, 5), minmax(0, 1fr));
  gap: 10px;
  justify-items: center;
  align-items: start;
}

.steps-image__dot-row::before {
  content: "";
  position: absolute;
  left: calc(50% / var(--steps-count, 5));
  right: calc(50% / var(--steps-count, 5));
  top: 9px;
  height: 1px;
  background: rgba(var(--color-text), 0.18);
}

.steps-image__dot-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: center;
  color: rgb(var(--color-text));
}

.steps-image__dot {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(var(--color-text), 0.78);
  background: rgb(var(--color-background));
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.steps-image__dot-btn.is-active .steps-image__dot {
  background: #e5be0d;
  border-color: #e5be0d;
  transform: scale(1.08);
}

.steps-image__label {
  display: block;
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(var(--color-text), 0.9);
}

.steps-image__right {
  position: relative;
  min-height: 100%;
  background: rgba(var(--color-text), 0.08);
}

.steps-image__image-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.steps-image__image-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}

.steps-image__image-panel img,
.steps-image__image-panel svg,
.steps-image__image-panel > * {
  width: 100%;
  height: 100%;
  display: block;
}

.steps-image__image-panel img,
.steps-image__image-panel svg {
  object-fit: cover;
}

@media (max-width: 959px) {
  .steps-image__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .steps-image__right {
    order: 1;
    /* height: min(58vh, 520px); */
    height: 300px;
  }

  .steps-image__left {
    order: 2;
    padding: 30px 0px 24px;
  }

  .steps-image__description {
    margin-top: 14px;
  }

  .steps-image__dot-row {
    width: 100%;
    overflow-x: hidden;
    grid-template-columns: repeat(var(--steps-count, 5), minmax(0, 1fr));
    justify-items: center;
    gap: 4px;
    padding-bottom: 4px;
    padding-top: 2px;
  }

  .steps-image__dot-row::before {
    top: 9px;
  }

  .steps-image__dot-row::before {
    left: calc(50% / var(--steps-count, 5));
    right: calc(50% / var(--steps-count, 5));
  }

  .steps-image__label {
    margin-top: 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
    line-height: 1.1;
  }
}
