.steps {
  margin: 48px 0;
}

.steps__grid {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 48px;
}

.steps__grid::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 32px;
  bottom: 32px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(1, 164, 128, 0.35), transparent);
}

.steps__item {
  position: relative;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 42px;

  min-height: 210px;

  padding: 30px;

  border-radius: 22px;
  border: 1px solid rgba(1, 164, 128, 0.16);

  background: linear-gradient(180deg, rgba(13, 29, 49, 0.92), rgba(10, 24, 40, 0.96));

  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.steps__item:hover {
  transform: translateY(-4px);

  border-color: rgba(1, 164, 128, 0.35);

  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(1, 164, 128, 0.1);
}

.steps__number {
  position: absolute;
  left: -72px;
  top: 28px;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;

  border: 1px solid rgba(1, 164, 128, 0.28);

  background: linear-gradient(180deg, rgba(1, 164, 128, 0.14), rgba(1, 164, 128, 0.06));

  color: var(--accent);

  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.5px;

  backdrop-filter: blur(6px);

  box-shadow:
    inset 0 0 0 1px rgba(1, 164, 128, 0.1),
    0 0 20px rgba(1, 164, 128, 0.18),
    0 10px 28px rgba(0, 0, 0, 0.3);
}
.steps__content {
  order: 1;
  align-self: start;
}

.steps__content h3 {
  margin: 0 0 14px;

  color: #fff;

  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.steps__text {
  margin: 0;

  max-width: 480px;

  color: var(--muted);

  font-size: 17px;
  line-height: 1.8;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.steps__text p {
  margin: 0 0 14px;
}

.steps__text p:last-child {
  margin-bottom: 0;
}

.steps__image {
  order: 2;

  width: 100%;
  max-width: 360px;
  justify-self: end;

  overflow: hidden;
  border-radius: 18px;
}
.steps__image img {
  display: block;

  width: 100%;
  height: 220px;

  object-fit: cover;

  border-radius: 18px;

  transition: 0.35s;
}


.steps__image img {
  display: block;

  width: 100%;
  aspect-ratio: 16/9;

  object-fit: cover;

  transition: 0.35s;
}

.steps__image:hover img {
  transform: scale(1.06);
}


@media (max-width: 768px) {
  .steps__grid {
    padding-left: 0;
  }

  .steps__grid::before {
    display: none;
  }

  .steps__item {
    grid-template-columns: 1fr;
  }
  .steps__content {
    order: 1;
  }

  .steps__number {
    position: static;

    margin-bottom: 4px;
  }

  .steps__content h3 {
    font-size: 26px;
  }

  .steps__image {
    order: 2;
    max-width: 100%;
    justify-self: stretch;
  }

  .steps__image img {
    height: auto;
  }

  .steps__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas:
      'num title'
      'text text'
      'image image';
    gap: 12px 14px;

    padding: 18px;
    min-height: auto;
  }

  .steps__number {
    grid-area: num;
    position: static;
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .steps__content {
    display: contents;
  }

  .steps__content h3 {
    grid-area: title;
    margin: 0;
    align-self: center;
    font-size: 22px;
  }

  .steps__text {
    grid-area: text;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
  }

  .steps__image {
    grid-area: image;
    margin-top: 2px;
  }

  .steps__image img {
    height: 150px;
    object-fit: cover;
  }
}
@media (max-width: 560px) {
  .steps {
    margin: 28px 0;
  }

  .steps__grid {
    gap: 16px;
  }

  .steps__item {
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .steps__number {
    width: 40px;
    height: 40px;
    margin-bottom: 2px;

    border-radius: 12px;
    font-size: 16px;
  }

  .steps__content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.15;
  }

  .steps__text {
    font-size: 14px;
    line-height: 1.55;
  }

  .steps__text p {
    margin-bottom: 8px;
  }

  .steps__image {
    max-width: 100%;
    margin-top: 4px;
  }

  .steps__image img {
    height: 150px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 14px;
  }
}
