.steps-block .wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.steps-block .main-item {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  background: var(--second);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.steps-block .main-item:before {
  content: "";
  width: 100%;
  height: 100%;
  bottom: 0;
  right: 0;
  position: absolute;
  background-image: url(images/stepsBefore.png);
  background-position: right bottom;
  background-size: contain;
  background-repeat: no-repeat;
}
.steps-block .step-item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stroke-secondary);
  padding: 30px;
  border-radius: 10px;
}
.steps-block .step-top,
.steps-block .main-top {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 15px;
}
.steps-block .step-icon,
.steps-block .main-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-secondary);
}
.steps-block .step-icon img,
.steps-block .step-icon svg,
.steps-block .main-icon img,
.steps-block .main-icon svg {
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  max-width: 60%;
  max-height: 60%;
}
.steps-block .step-name {
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
}
.steps-block .step-desc {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: var(--main-text-primary);
}
.steps-block .main-name {
  font-weight: 600;
  font-size: 24px;
  line-height: 100%;
  color: var(--second);
  position: relative;
}
.steps-block .main-desc {
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: var(--secondary-text);
  position: relative;
  max-width: 365px;
}
.steps-block .main-desc a {
  color: var(--secondary-text);
  white-space: nowrap;
}
.steps-block .main-desc a:hover {
  color: var(--head-primary);
}
.steps-block .main-title {
  margin-bottom: unset;
  padding: 30px;
}
.steps-block .socs {
  margin-top: 20px;
  position: relative;
}

@media (max-width: 1200px) {
  .steps-block .main-title {
    padding: unset;
  }
  .steps-block .main-item,
  .steps-block .step-item {
    padding: 10px;
  }
  .steps-block .wrapper {
    gap: 10px;
  }
  .steps-block .step-top,
  .steps-block .main-top {
    gap: 10px;
  }
  .steps-block .step-icon,
  .steps-block .main-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .steps-block .step-name,
  .steps-block .main-name {
    font-size: 20px;
  }
}

@media (max-width: 996px) {
  .steps-block .wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .steps-block .step-top,
  .steps-block .main-top {
    margin-bottom: 5px;
  }
  .steps-block .step-name,
  .steps-block .main-name {
    font-size: 16px;
  }
  .steps-block .step-desc,
  .steps-block .main-desc {
    font-size: 14px;
  }
}

@media (max-width: 498px) {
  .steps-block .wrapper {
    display: flex;
    flex-direction: column;
  }
}
