.uc-project {
  padding: 60px 0 80px;
}

.uc-project .section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.uc-project__title {
  margin-bottom: 48px;
}

.uc-project__flow {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-end;
  gap: 28px;
  margin: 0 auto 56px;
}

.uc-project .uc-project__step {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex: 1 1 172px;
  width: auto;
  max-width: 208px;
  min-width: 0;
  aspect-ratio: 236.05 / 222.57;
  min-height: 0;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #000000;
  overflow: visible;
  isolation: isolate;
}

.uc-project__step-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  z-index: 0;
}

.uc-project__step--tail-down .uc-project__step-shape {
  transform: rotate(180deg);
}

.uc-project__step-inner {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 28px 16px 24px;
  text-align: center;
}

/* Смещение текста от зоны хвоста SVG */
.uc-project__step--tail-up .uc-project__step-inner {
  padding: 32px 30px 19px 13px;
}

.uc-project__step--tail-down .uc-project__step-inner {
  padding: 22px 14px 32px 31px;
}

.uc-project .uc-project__step h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

/* Ступень снизу вверх: step1 — низ, step6 — верх */
.uc-project .uc-project__step.step2 {
  margin-left: -38px;
}

.uc-project .uc-project__step.step3 {
  margin-left: -17px;
  margin-bottom: 24px;
}

.uc-project .uc-project__step.step4 {
  margin-left: -38px;
  margin-bottom: 24px;
}
.uc-project .uc-project__step.step5 {
  margin-left: -17px;
  margin-bottom: 46px;
}
.uc-project .uc-project__step.step6 {
  margin-bottom: 46px;
  margin-left: -38px;
}

.uc-project__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1040px;
  margin: 0 auto;
}

.uc-project__feature {
  text-align: center;
}

.uc-project__feature img {
  width: 80px;
  margin: 0 auto 18px;
}

@media (max-width: 1024px) {
  .uc-project {
    padding: 0;
  }
  .uc-project .uc-project__step h3 {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .uc-project {
    padding: 0;
  }
  .uc-project__title {
    margin-bottom: 28px;
    font-size: 22px;
  }
  .uc-project__flow {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-bottom: 0;
  }
  .uc-project .uc-project__step {
    flex: none;
    width: 100%;
    max-width: none;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    margin-left: 0 !important;
    margin-right: 0;
    background-color: #ffc100;
    border-radius: 16px;
    overflow: visible;
  }

  .uc-project__step-shape {
    display: none;
  }

  .uc-project__step-inner {
    min-height: 72px;
    padding: 18px 16px;
  }

  .uc-project__step--tail-up .uc-project__step-inner,
  .uc-project__step--tail-down .uc-project__step-inner {
    padding: 18px 16px;
  }
  .uc-project .uc-project__step h3 {
    font-size: 15px;
  }
  .uc-project .uc-project__step.step1,
  .uc-project .uc-project__step.step2,
  .uc-project .uc-project__step.step3,
  .uc-project .uc-project__step.step4,
  .uc-project .uc-project__step.step5,
  .uc-project .uc-project__step.step6 {
    margin-bottom: 0;
  }
  .uc-project .uc-project__step:not(:last-child) {
    margin-bottom: 28px;
  }
  .uc-project .uc-project__step.step6 {
    margin-bottom: 20px;
  }
  .uc-project .uc-project__step:not(:last-child)::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 100%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 14px;
    height: 14px;
    margin-top: 8px;
    background: transparent;
    border-right: 3px solid #ffc100;
    border-bottom: 3px solid #ffc100;
    transform: translateX(-50%) rotate(45deg);
    transform-origin: center;
  }
  .uc-project__features {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
  }
  .uc-project__feature {
    flex: 1 1 0;
  }
  .uc-project__feature img {
    width: 48px;
    margin-bottom: 10px;
  }
  .uc-project__feature p {
    margin: 0;
    font-size: 11px;
  }
}
