#sec1 {
  padding-bottom: 8rem;
  @media (max-width: 767.98px) {
    padding-bottom: 4rem;
  }
}
#sec2 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}
h2 {
  letter-spacing: 0.2rem;
  margin-bottom: 4rem;
}
.flow-steps-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 70px;
  & .steps-list {
    flex: 1;
    padding: 0;
    margin: 0;
    border-top: 1px solid #baaf9c;
  }
  & .step-media {
    width: 25%;
    gap: 30px;
    display: flex;
    flex-direction: column;
    & img {
      display: block;
    }
  }
}
.step {
  display: flex;
  margin: 0;
  padding: 2rem 0 0;
  & .step-badge {
    position: relative;
    &::after {
      content: "";
      background: url(../../img/page/flow/icon-arrow.svg) no-repeat center;
      position: absolute;
      bottom: 0;
      width: 34px;
      height: 17px;
      left: 12px;
      bottom: -9px;
    }
  }
  & .step-badge img {
    width: 50px;
    margin-right: 45px;
    margin-top: 5px;
    margin-left: 2px;
  }
  & .step-text {
    padding: 0 15px 0 30px;
    border-bottom: 1px solid #baaf9c;
    flex: 1;
    & h3 {
      margin-bottom: 10px;
    }
    & p {
      line-height: 1.8em;
      letter-spacing: -0.4px;
    }
    & .red{
      color: #cd690d;
      font-weight: bold;
    }
  }
}
.step:last-child .step-text {
  border-bottom: none;
}
.flow-steps-wrap:last-of-type .step:last-child .step-badge::after {
  content: none;
}

.free.d-block {
  text-align: center;
  background: var(--vk-color-primary);
  padding: 1rem 20px;
  color: #fff;
  font-weight: bold;
  margin: 4rem 0;
}
.construction {
  background: #f0ece7;
  padding: 3rem 40px;
  margin-bottom: 4rem;
  & .ttl {
    margin-bottom: 0;
    font-weight: bold;
    margin-top: 0;
  }
  & div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  & p {
    margin-top: 10px;
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .flow-steps-wrap {
    gap: 40px;
    & .steps-list {
      width: 100%;
    }
    & .step-media {
      width: 100%;
      gap: 15px;
      flex-direction: row;
      & img {
        display: block;
        aspect-ratio: 1;
        object-fit: cover;
      }
    }
  }
  .step {
    & .step-badge {
      &::after {
        width: 34px;
        height: 17px;
        left: 5px;
        bottom: -9px;
      }
    }
    & .step-badge img {
      width: 38px;
      margin-right: 30px;
    }
    & .step-text {
      padding: 0 15px 0 20px;
    }
  }
  .construction {
    background: #f0ece7;
    padding: 1rem 20px;
    & div {
      grid-template-columns: 1fr;
      gap: 5px;
    }
  }
}
.main-section--margin-bottom--on{
  margin-bottom: 0;
}
