/* ===== Title block ===== */
.product-builder__title {
    margin: 32px 0 24px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    line-height: 1.2;
}
h3 span, h2 span, h4 span {
    margin: 32px 0 24px;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    line-height: 1.2;
    display: block;
    font-weight: 600!important;
}

/* Вирівнювання заголовка */
.product-builder__title--left {
    text-align: left;
}

.product-builder__title--center {
    text-align: center;
}

.product-builder__title--right {
    text-align: right;
}

/* ===== Image + Text block ===== */
.product-builder__image-text {
    display: flex;
    gap: 30px;
}
.builder {
margin: 30px 0;
}
section.product-builder__bg {
  padding: 16px;
  border-radius: 8px;
}

/* направление */
.product-builder__image-text--reverse {
    flex-direction: row-reverse;
}

/* вертикальное выравнивание */
.product-builder__image-text--align-center {
    align-items: center;
}

.product-builder__image-text--align-top {
    align-items: flex-start;
}

/* колонки */
.product-builder__image-text-image {
    flex: 0 0 auto;
    max-width: 50%;
}

.product-builder__image-text-image img {
    width: auto;
    max-width: 100%;
    height: auto;
    display: block;
}

.product-builder__image-text-content {
    flex: 1;
    min-width: 0;
}

/* ===== Steps block ===== */

.product-builder__steps {
    margin: 60px 0;
}

.product-builder__steps-title {
    margin: 0 0 40px;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--DarkGreen, #0C1E13);
    text-align: center;
}

/* container — горизонтальный поток */
.product-builder__steps-list {
    display: flex;
    align-items: flex-start;
    counter-reset: step-counter;
    gap: 0;
}

/* step */
.product-builder__step {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--DarkGreen, #0C1E13);
    counter-increment: step-counter;
    padding: 0 10px;
    background: none;
    border: none;
}

/* кружок с номером */
.product-builder__step::before {
    content: counter(step-counter);
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    background: #fff;
    border: 2px solid #E6E6E6;
    color: var(--Accent, #0F6037);
    font-size: 18px;
    font-weight: 700;
    border-radius: 50%;
    line-height: 1;
    transition: all 0.3s ease;
}

/* соединительная линия между кружками */
.product-builder__step::after {
    content: '';
    position: absolute;
    top: 22px;
    left: calc(50% + 27px);
    right: calc(-50% + 27px);
    height: 2px;
    background: #E6E6E6;
    z-index: 1;
}

/* убираем линию после последнего шага */
.product-builder__step:last-child::after {
    display: none;
}

/* стрелочка на линии */
.product-builder__step:not(:last-child)::after {
    background: linear-gradient(to right, #E6E6E6 calc(100% - 8px), transparent calc(100% - 8px));
    border-right: 2px solid #E6E6E6;
}

/* active */
.product-builder__step.is-active::before {
    background: var(--Accent, #0F6037);
    border-color: var(--Accent, #0F6037);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 96, 55, 0.25);
}

/* hover */
.product-builder__step:hover::before {
    border-color: var(--Accent, #0F6037);
    color: var(--Accent, #0F6037);
    box-shadow: 0 4px 12px rgba(15, 96, 55, 0.15);
    transform: scale(1.1);
}

.product-builder__step.is-active:hover::before {
    background: var(--Accent, #0F6037);
    color: #fff;
}

/* text */
.product-builder__step-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    max-width: 160px;
}

/* .product-builder__step:first-child {
    clip-path: none;
    padding-left: 10px;
} */

.product-builder__faq h4.product-builder__faq-title {
    margin-bottom: 0px!important;
    text-decoration: none;
}

/* mobile */
@media (max-width: 768px) {
    h3 span, h2 span, h4 span {
    margin: 20px 0 0;
}
    .product-builder__image-text,
    .product-builder__image-text--reverse {
        flex-direction: column;
        align-items: stretch; /* на мобиле всегда нормально */
    }

    .product-builder__image-text-image {
        max-width: 100%;
    }

    .product-builder__image-text-image img {
        width: 100%;
        max-width: 100%;
    }
    .product-builder__steps-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-left: 24px;
    }

    .product-builder__step {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 20px 0 20px 42px;
        gap: 0;
        position: relative;
    }

    .product-builder__step::before {
        position: absolute;
        left: -18px;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        font-size: 15px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    /* вертикальная линия на мобиле */
    .product-builder__step::after {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        width: 2px;
        height: 100%;
        border-right: none;
        background: #E6E6E6;
    }

    .product-builder__step:first-child::after {
        top: 50%;
        height: 50%;
    }

    .product-builder__step:last-child::after {
        display: block;
        height: 50%;
        bottom: auto;
    }

    .product-builder__step-text {
        text-align: left;
        max-width: none;
        font-size: 14px;
    }
}

/* ===== FAQ block ===== */

.product-builder__faq {
    margin: 40px 0;
}

.product-builder__faq-item {
    margin-bottom: 24px;
}

.product-builder__faq-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 400;
    color: #2f6b3f;
    text-decoration: underline;
}

.product-builder__faq-answer {
    color: #1a1a1a;
    line-height: 1.6;
}

.product-builder__faq-answer p:last-child {
    margin-bottom: 0;
}
