.meliteh-steps {
  padding: clamp(24px, 3.5vw, 44px) 0;
}

.meliteh-steps__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.meliteh-steps__header {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.meliteh-steps__title {
  margin: 0;
  color: #141414;
}

.meliteh-steps__intro {
  margin: 14px 0 0;
  color: #585858;
  font-size: 16px;
  line-height: 1.7;
}

.meliteh-steps__intro p,
.meliteh-steps__step-text p {
  margin: 0;
}

.meliteh-steps__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps-count, 1), minmax(0, 1fr));
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  --steps-marker-size: 58px;
}

.meliteh-steps__timeline::after {
  content: "";
  position: absolute;
  top: 29px;
  left: calc((100% / var(--steps-count, 1)) / 2);
  right: calc((100% / var(--steps-count, 1)) / 2);
  height: 1px;
  background: #dfe3ea;
  transform: translateX(calc(var(--steps-marker-size) / -2));
}

.meliteh-steps__item {
  position: relative;
  min-width: 0;
  padding: 0 18px;
  text-align: center;
}

.meliteh-steps__marker {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--steps-marker-size);
  height: var(--steps-marker-size);
  margin: 0 auto 24px;
  border: 1px solid rgba(210, 0, 39, 0.32);
  border-radius: 999px;
  background: #ffffff;
}

.meliteh-steps__marker span {
  color: #d20027;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.meliteh-steps__card {
  display: flex;
  flex-direction: column;
  height: fit-content;
  overflow: hidden;
  background: transparent;
  padding-top: 0;
}

.meliteh-steps__image-wrap {
  display: block;
  overflow: hidden;
  margin-bottom: 18px;
  background: #e8ebef;
  border-radius: 12px;
}

.meliteh-steps__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.meliteh-steps__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}

.meliteh-steps__step-title {
  margin: 0;
  color: #141414;
  font-size: 18px;
  line-height: 1.3;
}

.meliteh-steps__step-text {
  color: #585858;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.meliteh-steps__cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 42px;
  text-align: center;
}

.meliteh-steps__cta-label {
  margin: 0;
  color: #141414;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.meliteh-steps__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid #d20027;
  border-radius: 4px;
  background: #d20027;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.meliteh-steps__cta:hover,
.meliteh-steps__cta:focus-visible {
  background: #ffffff;
  color: #d20027;
  transform: translateY(-1px);
}

@media (max-width: 700px) {
  .meliteh-steps {
    padding: 21px 0;
  }

  .meliteh-steps__timeline {
    grid-template-columns: 1fr;
    gap: 28px;
    overflow: visible;
    padding: 0 0 0 30px;
    --steps-marker-size: 44px;
  }

  .meliteh-steps__timeline::after {
    top: 0;
    bottom: 44px;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
    background: #dfe3ea;
    transform: none;
  }

  .meliteh-steps__item {
    padding: 0;
    text-align: left;
  }

  .meliteh-steps__marker {
    position: absolute;
    top: 0;
    left: -52px;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .meliteh-steps__card {
    padding-top: 0;
  }

  .meliteh-steps__cta-panel {
    justify-content: flex-start;
    margin-top: 32px;
    text-align: left;
  }
}
