.process {
  padding: 60px 0;
}

.process__steps {
  position: relative;
  display: flex;
  margin-top: 40px;
  border-top: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
}

.process__step {
  position: relative;
  flex: 1;
  padding: 20px 15px;
  border-left: 1px solid var(--accent);
}

.process__step > span {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  border: 1px solid var(--accent);
  top: -11px;
  left: -11px;
  z-index: 2;
}

.process__step > span::before {
  width: 16px;
  height: 16px;
  display: block;
  content: '';
  border: 1px solid var(--accent);
}


.process__step > span:nth-child(2) {
  top: initial;
  bottom: -11px;
}

.process__step > span:nth-child(3) {
  left: initial;
  right: -11px;
}

.process__step > span:nth-child(4) {
  top: initial;
  bottom: -11px;
  left: initial;
  right: -11px;
}

.process__step:nth-child(odd) > span::before {
  border-color: var(--secondary);
  background-color: var(--secondary);
}

.process__step:nth-child(odd) + .process__step:last-child > span:nth-child(n + 3)::before {
  border-color: var(--secondary);
  background-color: var(--secondary);
}


.process__steps::after {
  pointer-events: none;
  display: block;
  position: absolute;
  left: -5px;
  top: -5px;
  width: calc(100% + 5px);
  height: calc(100% + 10px);
  border: 1px solid var(--accent);
  content: '';
}

.process__index {
  display: inline-block;
  padding-bottom: 4px;
  font-size: 30px;
  font-family: 'EdgeLine', var(--font);
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}

.process__title {
  margin-top: 10px;
}

.process__description {
  margin-top: 10px;
  color: var(--color-muted);
}

@media (max-width: 1080px) {
  .process__steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .process__step {
    border-bottom: 1px solid var(--accent);
  }


  .process__step > span {
    display: none;
  }
}

@media (max-width: 768px) {
  .process {
    padding: 22px 0;
  }

  .process__steps {
    grid-template-columns: 1fr;
    border: 1px solid var(--accent);
  }

  .process__steps::after {
    display: none;
  }

  .process__step {
    border: none;
    border-bottom: 1px solid var(--accent);
  }

  .process__step::after {
    display: block;
    content: '';
    width: calc(100% - 10px);
    pointer-events: none;
    height: calc(100% - 10px);
    top: 5px;
    left: 5px;
    border: 1px solid var(--accent);
    position: absolute;
  }

  .process__index {
    font-size: 24px;
  }

  .process__step:last-child {
    border: none;
  }

  .process__step:nth-child(4n+1) > span {
    display: flex;
    left: initial;
    right: -5px;
  }

  .process__step:nth-child(4n+3) > span {
    left: -5px;
    display: flex;
  }

  .process__step:nth-child(4n+2):last-child > span:nth-child(n + 3) {
    display: flex;
    right: initial;
    left: -5px;
  }

  .process__step:nth-child(4n):last-child > span:nth-child(n + 3) {
    display: flex;
    right: -5px;
  }
}
