/* --- SPLIT CARDS --- */

.split-cards .card--featured {
    .card-title {
        font-size: clamp(24px, 1.412rem + 0.3756vw, 28px);
        font-weight: 600;
        line-height: 1.64;
    }

    .card-title + p {
        font-size: clamp(18px, 1.081rem + 0.1878vw, 20px);
    }

    .list--checked li {
        line-height: 1.23;
    }
}

.split-cards .card--featured:nth-child(odd) {
    background-color: var(--white-muted);

    .badge {
        background-color: #f6ecdf;
    }
}

/* --- SECTION USE-CASES --- */

.use-cases .bg-layer {
    .gear-1 {
        top: calc(50% - 115px);
        left: -132px;
    }

    .gear-2 {
        top: -33px;
        right: 0;
    }
}

.use-case {
    background-color: var(--white-pale-lilac);
    border-radius: 16px 16px 0 0;

    &:not(:last-child) {
        margin-bottom: 40px;
    }
}

.use-case__heading {
    padding: 16px 40px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.52;
    color: var(--brand-text-color);


    h3 {
        font-size: inherit;
        font-weight: inherit;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }
}

.use-case__content {
    padding: 40px 80px;
    background-color: var(--white-muted);
    border-top: 1px solid #c0abe1;
    border-radius: 50px;

    p:first-child {
        margin-bottom: 36px;
    }

    .list--framed {
        grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
        gap: var(--gap, 12px);
    }

    .list--framed li {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;

        font-weight: 500;
        line-height: 1.52;
        text-align: center;
    }
}

.use-case:nth-child(1) .list--framed {
    --cols: 5;
}

.use-case:nth-child(2) .list--framed {
    --cols: 4;
}

/* --- SECTION SOLUTIONS --- */

section:has(.solutions) .bg-layer {
    .gear-1 {
        width: 173px;
        height: 181px;

        top: 220px;
        left: 8px;
    }

    .gear-2 {
        width: 215px;
        height: 226px;

        top: calc(50% + 80px);
        right: 2px;
    }
}

.solutions {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.solution-group {
    display: grid;
    grid-template-columns: 1fr clamp(22px, 0.6488rem + 3.0986vw, 55px) 1fr;
    column-gap: 20px;

    p {
        display: flex;
        align-items: center;
        column-gap: 16px;
        padding: 20px 16px;
        border-radius: 8px;

        font-size: clamp(16px, 0.912rem + 0.3756vw, 20px);
        font-weight: 500;
        line-height: 1.52;
    }

    .shape {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-shrink: 0;

        font-size: clamp(16px, 0.912rem + 0.3756vw, 20px);
        width: clamp(28px, 1.596rem + 0.6573vw, 35px);
        height: clamp(28px, 1.596rem + 0.6573vw, 35px);
        border-radius: 50%;
    }

    .problem {
        background-color: var(--white-muted);
    }

    .problem .shape {
        background-color: #ffdebb;
        color: var(--white-muted);
    }

    .solution {
        background-color: var(--white-pale-lilac);
    }

    .solution .shape {
        background-color: #bbffd7;
        color: var(--white-pale-lilac);
    }

    span[aria-hidden] {
        align-self: center;
    }

    svg {
        max-width: clamp(22px, 0.6488rem + 3.0986vw, 55px);
        max-height: 24px;
    }
}

/* --- SECTION EXAMPLE --- */

.example .section-title {
    text-align: left;
    margin-bottom: 40px;
}

.framed-list li {
    margin-bottom: 0;
}

/* --- SECTION INTEGRATION-SHEMA --- */

.integration-shema {
    display: flex;
    justify-content: center;
    column-gap: 28px;
    text-align: center;
}

.integration-schema__card {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 44px 24px;
    border-radius: 12px;
    background-color: var(--white-muted);

    .icon-thumb {
        display: flex;
        justify-content: center;
        align-items: center;

        width: 68px;
        height: 68px;
        border-radius: 8px;
        margin-bottom: 12px;
    }

    &:first-child .icon-thumb {
        background-color: #f6ecdf;
    }

    &:last-child .icon-thumb {
        background-color: #eae4f4;
    }

    p {
        font-size: 16px;
        line-height: 152%;
    }

    p:first-of-type {
        font-size: clamp(18px, 1.081rem + 0.1878vw, 20px);
        font-weight: 600;
        margin-bottom: 4px;
    }
}

.integration-schema__divider {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.52;
    color: var(--brand-color--accent);
}

/* --- PRODUCT CHARACTERISTICS --- */

.product-characteristics {
    display: grid;
    grid-template-columns: repeat(var(--cols, 2), minmax(0, var(--item-width, 1fr)));
    gap: 40px;

    .section-title {
        text-align: left;
        margin-bottom: 24px;
    }

    .section-title + p {
        font-size: clamp(18px, 1.081rem + 0.1878vw, 20px);
        margin-bottom: 36px;
    }
}

.product-characteristics__card {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 40px 80px;
    border-radius: 50px;
    background-color: var(--white-muted);

    h3 {
        font-size: clamp(22px, 1.243rem + 0.5634vw, 28px);
        font-weight: 600;
        line-height: 1.64;
        margin-bottom: 12px;
    }

    p {
        line-height: 1.52;
    }

    ul.list--decorated {
        margin-bottom: 12px;
    }

    ul.list--framed {
        text-align: center;
    }

    .list--framed p:first-of-tipe {
        font-weight: 500;
    }
}

.product-characteristics__card:first-child {
    grid-area: span 2;
    background-color: var(--white-pale-lilac);
}

/* --- MEDIA 1400px MAX --- */

@media screen and (max-width: 1400px) {
    .use-case:nth-child(1) .list--framed {
        --cols: 3;
    }
}

/* --- MEDIA 1024px MAX --- */

@media screen and (max-width: 1023px) {
    .use-case:nth-child(2) .list--framed {
        --cols: 2;
    }

    .product-characteristics {
        --cols: 1;
        --item-width: 600px;
        justify-content: center;
    }

    .product-characteristics__card:first-child {
        grid-area: auto;
    }

    .product-characteristics__card .list--framed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* --- MEDIA 768px MAX --- */

@media screen and (max-width: 767px) {
    .use-case__content {
        padding: 20px 40px;
        border-radius: 30px;
    }

    .use-case:nth-child(n) .list--framed {
        --cols: 1;
    }

    .solution-group {
        column-gap: 12px;
    }

    .solution-group p {
        flex-direction: column;
        align-items: start;
        row-gap: 6px;
    }

    .integration-shema {
        flex-direction: column;
        align-items: center;
        row-gap: 20px;
    }

    .integration-schema__card {
        padding: 32px 20px;
    }

    .integration-schema__divider {
        flex-direction: column;

        svg {
            rotate: 90deg;
        }
    }

    .product-characteristics__card {
        padding: 20px 12px;
        border-radius: 20px;
    }
}