.stages-five-block.dark {
  background: var(--bg_sec);
}

.stages-five-block .top-side {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

.stages-five-block .mark {
  display: flex;
  flex-direction: row;
  gap: 10px;
  /* background: var(--bg-primary-second); */
  border-radius: 100px;
  padding: 10px 20px;
  align-items: center;
  width: fit-content;
  height: fit-content;
}

.stages-five-block .text {
  /* color: var(--text-primary-main); */
  white-space: nowrap;
}

.stages-five-block .icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.stages-five-block .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stages-five-block__wrap {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 30px;
}

.stages-five-block__wrap.column-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stages-five-block__wrap.column-4 {
  grid-template-columns: repeat(4, 1fr);
}

.stages-five-block__image {
  position: relative;
}

.stages-five-block__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stages-five-block .stage-item {
  overflow: hidden;
  position: relative;
  padding: 20px;
  min-height: 200px;
  border: 1px solid var(--bg_stroke);
  background: var(--bg_sec);
  border-radius: 15px;
}

.stages-five-block.dark .stage-item  {
  background: var(--bg);
  box-shadow: var(--ten-box-shadow, 0px 8px 24px 0px rgba(149, 157, 165, 0.14));
}

.stages-five-block .stage-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.stages-five-block .stage-item__head svg {
  width: 24px;
  height: 24px;
  /* color: var(--colors-main); */
}

.stages-five-block .stage-item__head:not(:last-child) {
  margin-bottom: 20px;
}

.stages-five-block .stage-item__number {
  background: var(--primary);
  color: #ffffff;
  border-radius: 5px;
  padding: 8px 15px;
}

.stages-five-block .stage-item__title {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.stages-five-block .stage-item__title:not(:last-child) {
  margin-bottom: 10px;
  /* color: var(--bg-alt-main); */
}

.stages-five-block .stage-item__text {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}




.stages-five-block__btn {
  position: relative;
  background: var(--bgs);
  border-radius: 15px;
  overflow: hidden;
  padding: 20px;
  cursor: pointer;
}

.stages-five-block__btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("images/bg.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.stages-five-block__btn-title {
  color: var(--heads);
}

.stages-five-block__btn-text {
  color: var(--texts);
}

.stages-five-block__btn-arrow {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* background: var(--bg); */
  border-radius: 10px;
  position: absolute;
  bottom: 30px;
  right: 30px;
  transition: all .3s ease-in;
}

.stages-five-block__btn-arrow svg {
  width: 18px;
  height: 18px;
  /* color: var(--bg-alt-main); */
  transition: all .3s ease-in;
}

@media (min-width: 992px) {
  .stages-five-block__btn:hover .stages-five-block__btn-arrow {
    /* background-color: var(--second); */
  }

  .stages-five-block__btn:hover .stages-five-block__btn-arrow svg {
    color: var(--background);
  }
}

@media (max-width: 1240px) {
  .stages-five-block__wrap {
    gap: 14px;
  }
  .stages-five-block .stage-item {
    padding: 20px 15px;
  }
}

@media (max-width: 1125px) {

  .stages-five-block__wrap.column-3,
  .stages-five-block__wrap.column-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}


@media (max-width: 550px) {
  .stages-five-block__wrap {
    grid-auto-rows: inherit;
  }

  .stages-five-block__wrap.column-3,
  .stages-five-block__wrap.column-4 {
    grid-template-columns: 1fr;
  }

  .stages-five-block .stage-item {
    min-height: auto;
  }

  .stages-five-block__image {
    min-height: 200px;
  }

  .stages-five-block__image {
    order: 1;
  }

  .stages-five-block__btn {
    order: 2;
  }
}

/*# sourceMappingURL=block.css.map */