/* ======== Секция "Этапы работ" - Внешний фон ======== */
.nigai-stages-background-wrapper {
  background-color: #eceded;
  padding: 60px 0;
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  margin-top: 60px; /* Отступ от верхнего блока */
  box-sizing: border-box;
  overflow: hidden; /* Важно, чтобы ::before не вылезал */
}

.nigai-stages-background-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('image/test-1.svg');
  background-repeat: no-repeat;
  background-position: calc(100% - 50px) center;
  background-size: auto 70%;
  opacity: 0.4;
  z-index: 0;
}

/* ======== Секция "Этапы работ" ======== */
.nigai-stages-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  font-family: var(--font-main, "Montserrat", sans-serif);
  position: relative; /* Чтобы контент был над фоном */
  z-index: 1;
}

.nigai-stages-section h2 {
  font-family: var(--font-decor, "Poiret One", sans-serif);
  font-size: 45px;
  font-weight: 600;
  color: #54595f;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
  margin-top: 10px;
}

.nigai-stages-content {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
}

.nigai-stages-image {
  flex: 0 0 438px;
  width: 438px;
}

.nigai-stages-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.nigai-stages-text-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
  padding-top: 10px;
}

.nigai-stage-item h3 {
  font-family: var(--font-main, "Montserrat", sans-serif);
  font-size: 16px;
  font-weight: 600;
  color: #324059;
  margin: 0 0 10px 0;
}

.nigai-stage-item p {
  font-family: var(--font-main, "Montserrat", sans-serif);
  font-size: 16px;
  font-weight: 400;
  color: #54595f;
  margin: 0;
  line-height: 1.6;
}

.nigai-stages-goal {
  grid-column: 1 / -1;
  font-family: var(--font-main, "Montserrat", sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: #324059;
  line-height: 1.6;
  margin-top: 10px;
}

/* ======== Адаптивность ======== */
@media (max-width: 1200px) {
  .nigai-stages-background-wrapper {
    background-image: none; /* Скрываем фоновую картинку, когда мало места */
  }
}

@media (max-width: 992px) {
  .nigai-stages-background-wrapper {
    padding: 40px 0;
    margin-top: 40px;
  }
  .nigai-stages-content {
    flex-direction: column;
    align-items: center;
  }

  .nigai-stages-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 438px;
  }

  .nigai-stages-text-wrapper {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nigai-stages-background-wrapper::before {
    background-position: center bottom;
    background-size: 300px auto;
    opacity: 0.2;
  }
  .nigai-stages-section h2 {
    font-size: 36px;
  }
  .nigai-stages-text-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .nigai-stages-goal {
    grid-column: auto;
  }
} 