.steps {
  margin: 46px 0;
}

.steps__grid {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 76px;
}

.steps__grid::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(246, 189, 59, 0.42), transparent);
}

.steps__item {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 42px;

  min-height: 210px;
  padding: 28px 32px;

  border-radius: 24px;
  border: 1px solid rgba(246, 189, 59, 0.22);

  background: radial-gradient(circle at 88% 12%, rgba(246, 189, 59, 0.08), transparent 32%), linear-gradient(180deg, #111315 0%, #070809 100%);

  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  transition: 0.25s ease;
}

.steps__item:hover {
  transform: translateY(-4px);
  border-color: rgba(246, 189, 59, 0.42);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.steps__item:hover::before {
  transform: translateX(130%);
}

.steps__number {
  position: absolute;
  left: -76px;
  top: 26px;
  transform: none;
  z-index: 3;

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  border: 1px solid rgba(246, 189, 59, 0.32);
  background: radial-gradient(circle at 50% 20%, rgba(246, 189, 59, 0.18), transparent 42%), #101113;

  color: #f6bd3b;
  font-size: 18px;
  font-weight: 900;

  box-shadow:
    0 0 24px rgba(246, 189, 59, 0.14),
    0 12px 30px rgba(0, 0, 0, 0.38);
}
.steps__content {
  position: relative;
  z-index: 2;
  order: 1;
  align-self: start;
}

.steps__content h3 {
  margin: 0 0 10px;
  color: #f8f8f8;
  font-size: 30px;
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.steps__text {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 16px;
  line-height: 1.7;
}

.steps__text p {
  margin: 0 0 12px;
}

.steps__text p:last-child {
  margin-bottom: 0;
}

.steps__image {
  position: relative;
  z-index: 2;
  order: 2;

  width: 100%;
  max-width: 340px;
  justify-self: end;

  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(246, 189, 59, 0.16);
  background: #070809;
}

.steps__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 20px;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.steps__item:hover .steps__image img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.04);
}

@media (max-width: 768px) {
  .steps__grid {
    padding-left: 0;
  }

  .steps__grid::before {
    display: none;
  }

  .steps__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      'num title'
      'text text'
      'image image';
    gap: 12px 14px;

    min-height: auto;
    padding: 18px;
    border-radius: 20px;
    overflow: hidden;
  }

  .steps__number {
    grid-area: num;
    position: static;
    transform: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    border-radius: 13px;
    border: 1px solid rgba(246, 189, 59, 0.28);
    background: rgba(246, 189, 59, 0.06);

    font-size: 16px;
  }

  .steps__number::after {
    display: none;
  }

  .steps__content {
    display: contents;
  }

  .steps__content h3 {
    grid-area: title;
    margin: 0;
    align-self: center;
    font-size: 22px;
  }

  .steps__text {
    grid-area: text;
    font-size: 14px;
    line-height: 1.55;
  }

  .steps__image {
    grid-area: image;
    max-width: 100%;
    justify-self: stretch;
    margin-top: 4px;
  }

  .steps__image img {
    /*height: 150px;*/
    aspect-ratio: auto;
  }
}
