.stages-five-block.alignfull {
  background-color: var(--background-secondary);
  padding-top: 100px;
  padding-bottom: 100px;
}

.stages-five-block .block-title{
	margin-bottom: 20px;
}

.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:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
.stages-five-block__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stages-five-block .stage-item {
  background: var(--background_secondary);
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  padding: 35px 30px;
  min-height: 360px;
}
.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(--primary);
}
.stages-five-block .stage-item__head:not(:last-child) {
  margin-bottom: 20px;
}
.stages-five-block .stage-item__number {
  min-width: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  background: var(--primary);
  text-align: center;
  color: var(--background);
  margin-bottom: 0;
}
.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;
}
.stages-five-block .stage-item__text {
  color: var(--main-text-primary);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}
.stages-five-block .stage-item__decor {
  position: absolute;
  width: 246px;
  height: 206px;
  object-fit: contain;
}
.stages-five-block .stage-item:nth-child(8n + 2) .stage-item__decor {
  top: -28%;
  left: 24%;
}
.stages-five-block .stage-item:nth-child(8n + 3) .stage-item__decor {
  bottom: -13%;
  left: -34%;
}
.stages-five-block .stage-item:nth-child(8n + 1) .stage-item__decor,
.stages-five-block .stage-item:nth-child(8n + 4) .stage-item__decor,
.stages-five-block .stage-item:nth-child(8n + 8) .stage-item__decor {
  bottom: -16%;
  right: -29%;
  transform: rotate(-85deg);
}
.stages-five-block .stage-item:nth-child(8n + 5) .stage-item__decor {
  bottom: -14%;
  left: 13%;
}
.stages-five-block .stage-item:nth-child(8n + 6) .stage-item__decor {
  bottom: -15%;
  right: -18%;
}
.stages-five-block .stage-item:nth-child(8n + 7) .stage-item__decor {
  top: 26%;
  left: -48%;
}
.stages-five-block__btn {
  position: relative;
  background: var(--primary);
  border-radius: 30px;
  overflow: hidden;
  padding: 35px 30px 90px;
  cursor: pointer;
}
.stages-five-block__btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36%;
  height: 36%;
  max-width: 130px;
  max-height: 130px;
  background-image: url("./images/decor.png");
  background-size: contain;
  background-position: bottom left;
  background-repeat: no-repeat;
}
.stages-five-block__btn-title {
  color: var(--background);
}
.stages-five-block__btn-text {
  color: var(--background_secondary);
}
.stages-five-block__btn-arrow {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background);
  border-radius: 10px;
  position: absolute;
  bottom: 30px;
  right: 30px;
  transition: all 0.3s ease-in;
}
.stages-five-block__btn-arrow svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
  transition: all 0.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;
    min-height: 250px;
  }
  .stages-five-block__btn {
    padding: 20px 15px 60px;
  }
  .stages-five-block__btn-arrow {
    width: 40px;
    height: 40px;
    bottom: 15px;
    right: 15px;
  }
}
@media (max-width: 1025px) {
  .stages-five-block__wrap.column-3,
  .stages-five-block__wrap.column-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 769px) {
  .stages-five-block.alignfull {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
@media (max-width: 498px) {
  .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 .stage-item__decor {
    display: none;
  }
  .stages-five-block__image {
    order: 1;
  }
  .stages-five-block__btn {
    order: 2;
  }
}

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