.lx-project-process {
  overflow: hidden;
  background: var(--lx-color-mist);
}

.lx-project-process-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.45fr);
  align-items: end;
  justify-content: space-between;
  gap: 56px;
}

.lx-project-process-head .lx-h2 {
  max-width: 790px;
}

.lx-project-process-head .lx-lead {
  max-width: 330px;
  justify-self: end;
}

.lx-process-story {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.lx-process-story > li {
  position: relative;
  min-width: 0;
  border: 1px solid var(--lx-color-line);
  background: var(--lx-color-paper);
}

.lx-process-story > li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: calc(50% - 38px);
  right: -25px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(154, 106, 72, 0.48);
  border-radius: 50%;
  background: var(--lx-color-mist);
  box-shadow: 0 0 0 6px var(--lx-color-mist);
}

.lx-process-story > li:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 4;
  top: calc(50% - 29px);
  right: -14px;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--lx-color-clay);
  border-right: 1px solid var(--lx-color-clay);
  transform: rotate(45deg);
}

.lx-process-story figure {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  background: #ddd8ce;
}

.lx-process-story img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 240ms ease;
}

.lx-process-story > li:hover img {
  transform: scale(1.025);
}

.lx-process-number {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(20, 30, 25, 0.78);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  backdrop-filter: blur(5px);
}

.lx-process-caption {
  min-height: 102px;
  padding: 20px 20px 22px;
}

.lx-process-caption .lx-h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.lx-process-caption p {
  margin: 9px 0 0;
  color: var(--lx-color-clay);
  font-size: 10px;
  line-height: 15px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.lx-project-process-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.lx-project-process-foot .lx-btn {
  flex: 0 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  .lx-process-story img {
    transition: none;
  }

  .lx-process-story > li:hover img {
    transform: none;
  }
}

@media (max-width: 960px) {
  .lx-project-process-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .lx-project-process-head .lx-lead {
    max-width: 680px;
    justify-self: start;
  }

  .lx-process-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 18px;
    margin-top: 36px;
  }

  .lx-process-story > li:nth-child(2)::after {
    top: auto;
    right: calc(50% - 15px);
    bottom: -31px;
  }

  .lx-process-story > li:nth-child(2)::before {
    top: auto;
    right: calc(50% - 3px);
    bottom: -20px;
    transform: rotate(135deg);
  }

  .lx-process-story > li:nth-child(3)::after,
  .lx-process-story > li:nth-child(3)::before {
    display: block;
  }
}

@media (max-width: 560px) {
  .lx-process-story {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 28px;
  }

  .lx-process-story > li:not(:last-child)::after,
  .lx-process-story > li:nth-child(2)::after {
    top: auto;
    right: calc(50% - 15px);
    bottom: -31px;
  }

  .lx-process-story > li:not(:last-child)::before,
  .lx-process-story > li:nth-child(2)::before {
    top: auto;
    right: calc(50% - 3px);
    bottom: -20px;
    transform: rotate(135deg);
  }

  .lx-process-caption {
    min-height: 0;
    padding: 18px 18px 20px;
  }

  .lx-process-caption .lx-h3 {
    font-size: 23px;
  }

  .lx-project-process-foot {
    justify-content: flex-start;
    margin-top: 24px;
  }
}
