/* ============================================================
   Production Steps — «Как рождается продукт»
   ============================================================ */

.production-steps {
    background: var(--color-bg-light);
    padding: 100px 120px 64px;
}

.production-steps__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Title ── */
.production-steps__title {
    font-family: var(--font-neo);
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
    font-weight: 400;
    color: var(--color-black);
    text-align: center;
}

/* ── Steps list ── */
.production-steps__list {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

/* ── Single step ── */
.production-steps__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

/* ── Icon row with connectors ── */
.production-steps__icon-wrap {
    display: flex;
    align-items: center;
    width: 100%;
}

.production-steps__icon {
    flex-shrink: 0;
    width: 84px;
    height: 84px;
    background: rgba(1, 126, 66, 0.05);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.production-steps__icon img {
    width: 84px;
    height: 84px;
    display: block;
}

/* Connector lines — solid horizontal line between icons */
.production-steps__connector {
    flex: 1;
    height: 1px;
    background-color: var(--color-primary);
    opacity: 0.4;
}

/* Hide outer connectors so edge icons stay centered above their text */
.production-steps__item:first-child .production-steps__connector--before,
.production-steps__item:last-child  .production-steps__connector--after {
    visibility: hidden;
}

/* ── Text block ── */
.production-steps__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 0 12px;
    width: 100%;
}

.production-steps__step-title {
    font-family: var(--font-neo);
    font-size: 36px;
    line-height: 42px;
    letter-spacing: -1px;
    font-weight: 400;
    color: var(--color-black);
    margin: 0;
}

.production-steps__step-desc {
    font-family: var(--font-inter);
    font-size: 19px;
    line-height: 30px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin: 0;
}

/* ── Tablet ── */
@media (max-width: 1170px) {
    .production-steps {
        padding: 64px 48px;
    }

    .production-steps__step-title {
        font-size: 28px;
        line-height: 36px;
    }

    .production-steps__step-desc {
        font-size: 16px;
        line-height: 24px;
    }
}

/* ── Mobile ── */
@media (max-width: 640px) {
    .production-steps {
        padding: 32px 24px;
    }

    .production-steps__inner {
        gap: 32px;
        align-items: flex-start;
    }

    .production-steps__title {
        font-size: 32px;
        line-height: 37px;
        letter-spacing: 0;
        text-align: left;
    }

    .production-steps__list {
        flex-direction: column;
        gap: 0;
        position: relative;
    }

    /* Vertical connector line on mobile (left side) */
    .production-steps__list::before {
        content: '';
        position: absolute;
        left: 32px; /* center of 64px icon */
        top: 64px;
        bottom: 64px;
        width: 1px;
        background-color: var(--color-primary);
        opacity: 0.4;
        z-index: 0;
    }

    .production-steps__item {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
        padding: 16px 0;
    }

    .production-steps__icon-wrap {
        flex-direction: column;
        align-items: center;
        width: auto;
        flex-shrink: 0;
        position: relative;
        z-index: 1;
        background: var(--color-bg-light); /* covers the vertical line behind icon */
    }

    /* Hide horizontal connectors on mobile */
    .production-steps__connector {
        display: none;
    }

    .production-steps__icon {
        width: 64px;
        height: 64px;
        border-radius: 9px;
        margin: 0;
    }

    .production-steps__icon img {
        width: 64px;
        height: 64px;
    }

    .production-steps__text {
        text-align: left;
        padding: 0;
        gap: 8px;
        justify-content: center;
    }

    .production-steps__step-title {
        font-size: 20px;
        line-height: 24px;
        letter-spacing: -1px;
    }

    .production-steps__step-desc {
        font-size: 14px;
        line-height: 22px;
    }
}
