.ml-projects-faq {
    padding: 42px 0 80px;
    background: var(--bg);
}

.ml-projects-faq .container {
    max-width: 1120px;
}

.ml-faq-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 28px;
    align-items: stretch;
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, #fff 0%, #fff 62%, #fff6f5 100%);
    box-shadow: var(--shadow);
}

.ml-faq-eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ml-faq-hero h1,
.ml-faq-section h2,
.ml-faq-final-cta h2 {
    margin: 10px 0 0;
    color: var(--text);
    letter-spacing: -.045em;
    line-height: 1.05;
}

.ml-faq-hero h1 {
    max-width: 680px;
    font-size: clamp(38px, 6vw, 68px);
}

.ml-faq-hero .lead {
    max-width: 700px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.ml-faq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.ml-faq-hero__note {
    align-self: end;
    padding: 22px;
    border: 1px solid #ead0ce;
    border-radius: 20px;
    background: #fff;
}

.ml-faq-hero__note strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.ml-faq-hero__note p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.ml-faq-section {
    margin-top: 72px;
}

.ml-faq-section__head {
    max-width: 760px;
}

.ml-faq-section h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.ml-faq-section__head > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.ml-faq-quickstart {
    margin-top: 48px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.ml-faq-quickstart__steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.ml-faq-quickstart__steps li {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 160px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #f8fafc;
}

.ml-faq-quickstart__steps b {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
}

.ml-faq-quickstart__steps strong,
.ml-faq-term-card h3 {
    font-size: 17px;
    line-height: 1.2;
}

.ml-faq-quickstart__steps span,
.ml-faq-term-card p,
.ml-faq-stage-card span {
    color: var(--muted);
    line-height: 1.55;
}

.ml-faq-term-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.ml-faq-term-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.ml-faq-term-card h3 {
    margin: 0;
}

.ml-faq-term-card p {
    margin: 10px 0 0;
}

.ml-faq-flow {
    counter-reset: faq-flow;
}

.ml-faq-flow-step {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: center;
    margin-top: 28px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, .04);
}

.ml-faq-flow-step:nth-of-type(odd) {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
}

.ml-faq-flow-step:nth-of-type(odd) .ml-faq-flow-step__copy {
    order: 2;
}

.ml-faq-flow-step:nth-of-type(odd) .ml-faq-screenshot {
    order: 1;
}

.ml-faq-step-number {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.ml-faq-flow-step h3 {
    margin: 14px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.ml-faq-flow-step__copy > p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.ml-faq-flow-step__tip {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 3px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: #fff8f7;
}

.ml-faq-flow-step__tip strong {
    color: var(--primary);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ml-faq-flow-step__tip span {
    color: var(--text);
    line-height: 1.5;
}

.ml-faq-screenshot {
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fafc;
}

.ml-faq-screenshot img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    border-radius: 11px;
    background: #fff;
}

.ml-faq-screenshot figcaption {
    padding: 11px 4px 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.ml-faq-stage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.ml-faq-stage-card {
    display: grid;
    gap: 7px;
    min-height: 120px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.ml-faq-stage-card strong {
    font-size: 16px;
}

.ml-faq-accordion {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.ml-faq-accordion details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.ml-faq-accordion summary {
    position: relative;
    padding: 18px 50px 18px 20px;
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.ml-faq-accordion summary::-webkit-details-marker {
    display: none;
}

.ml-faq-accordion summary::after {
    position: absolute;
    top: 17px;
    right: 20px;
    color: var(--primary);
    content: "+";
    font-size: 22px;
    line-height: 1;
}

.ml-faq-accordion details[open] summary::after {
    content: "−";
}

.ml-faq-answer {
    padding: 0 20px 20px;
    color: var(--muted);
    line-height: 1.65;
}

.ml-faq-answer p {
    margin: 0;
    max-width: 850px;
}

.ml-faq-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 72px;
    padding: 28px;
    border-radius: 22px;
    background: var(--primary);
    color: #fff;
}

.ml-faq-final-cta .ml-faq-eyebrow,
.ml-faq-final-cta h2,
.ml-faq-final-cta p {
    color: #fff;
}

.ml-faq-final-cta h2 {
    font-size: clamp(26px, 4vw, 40px);
}

.ml-faq-final-cta p {
    max-width: 680px;
    margin: 12px 0 0;
    opacity: .82;
}

.ml-faq-final-cta .btn-primary {
    flex: 0 0 auto;
    border-color: #fff;
    background: #fff;
    color: var(--primary);
    box-shadow: none;
}

@media (max-width: 900px) {
    .ml-faq-hero,
    .ml-faq-flow-step,
    .ml-faq-flow-step:nth-of-type(odd) {
        grid-template-columns: 1fr;
    }

    .ml-faq-flow-step:nth-of-type(odd) .ml-faq-flow-step__copy,
    .ml-faq-flow-step:nth-of-type(odd) .ml-faq-screenshot {
        order: initial;
    }

    .ml-faq-quickstart__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ml-faq-term-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ml-faq-stage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ml-projects-faq {
        padding: 20px 0 48px;
    }

    .ml-faq-hero {
        gap: 20px;
        padding: 22px;
        border-radius: 22px;
    }

    .ml-faq-hero h1 {
        font-size: 38px;
    }

    .ml-faq-hero .lead {
        font-size: 16px;
    }

    .ml-faq-actions,
    .ml-faq-actions .btn,
    .ml-faq-final-cta,
    .ml-faq-final-cta .btn {
        width: 100%;
    }

    .ml-faq-actions,
    .ml-faq-final-cta {
        display: grid;
    }

    .ml-faq-section {
        margin-top: 48px;
    }

    .ml-faq-quickstart {
        padding: 18px;
    }

    .ml-faq-quickstart__steps,
    .ml-faq-term-grid,
    .ml-faq-stage-grid {
        grid-template-columns: 1fr;
    }

    .ml-faq-quickstart__steps li {
        min-height: 0;
    }

    .ml-faq-flow-step {
        gap: 18px;
        padding: 16px;
        border-radius: 20px;
    }

    .ml-faq-flow-step h3 {
        font-size: 27px;
    }

    .ml-faq-final-cta {
        align-items: stretch;
        margin-top: 48px;
        padding: 22px;
    }
}
