/**
 * Layout: process_flow
 *
 * Enqueued automatically when a page has a `process_flow` row
 * in designer_page_sections. Depends on the `designer-base` handle.
 */

.process-flow .section-header {
    display: flex;
    flex-direction: column;
    max-width: 788px;
    width: 100%;
    gap: 40px;
}

.process-flow .section-header .main-txt {
    font-size: 18px;
    line-height: 167%;
}

.process-flow__cards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.process-flow__card {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    gap: 28px;
    grid-column: span 2;
}

/* 1 картка в останньому ряду — на всю ширину */
.process-flow__card:last-child:nth-child(3n + 1) {
    grid-column: span 6;
}

/* 2 картки в останньому ряду — по половині ширини кожна */
.process-flow__card:nth-last-child(2):nth-child(3n + 1) {
    grid-column: span 3;
}

.process-flow__card:last-child:nth-child(3n + 2) {
    grid-column: span 3;
}

.process-flow__card__icon {
    width: 44px;
    height: 44px;
}

.process-flow__card__content .title-h4 {
    margin-bottom: 4px;
}

.process-flow__card__content .main-txt {
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: #404040;
}

.process-flow-layout {
    display: flex;
    gap: 201px;
}

.process-flow-layout__content {
    max-width: 537px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.integrations-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.integrations-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px 4px;
    width: 100%;
}

.integrations-card__img {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.process-flow-layout__aside {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.process-flow-list.dot-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.process-flow-list_item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dot-list {
    list-style: none;
}

.process-flow-list_item {
    font-weight: 600;
    font-size: 24px;
    line-height: 100%;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 16px 20px 16px 40px;
    position: relative;
}

.dot-list__item::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background-color: #1a1a1a;
    position: absolute;
    left: 20px;
    top: 50%;
}

@media (max-width:1521px) {
    .process-flow__card {
        /* max-width: 250px; */
        gap: 20px;
    }

    .process-flow__card__content .main-txt {
        font-weight: 400;
        font-size: 16px;
    }
}

@media(max-width:1202px) {
    .process-flow__card {
        flex-direction: column;
    }

    .process-flow__card__icon {
        align-self: flex-end;
    }

    .process-flow-layout {
        display: flex;
        gap: 100px;
    }

    .process-flow-list_item {
        font-weight: 600;
        font-size: 20px;
    }
}

@media(max-width:1025px) {
    .process-flow-layout {
        display: flex;
        gap: 40px;
    }

    .process-flow__cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-flow__cards {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media(max-width:821px) {
    .process-flow__cards {
        grid-template-columns: 1fr;
    }

    .process-flow__card,
    .process-flow__card:last-child:nth-child(3n + 1),
    .process-flow__card:nth-last-child(2):nth-child(3n + 1),
    .process-flow__card:last-child:nth-child(3n + 2) {
        grid-column: span 1;
    }

    .process-flow__card {
        max-width: 100%;
        flex: 0 0 auto;
    }

    .process-flow-layout {
        flex-direction: column;
    }
}

@media(max-width:480px) {
    .process-flow__cards {
        gap: 20px;
    }

    .process-flow__card {
        gap: 12px;
    }
}

/* Benefit description (textarea sub-field). */
.process-flow-list_item--with-desc {
    gap: 4px;
}

.process-flow-list__desc {
    font-weight: 600;
    font-size: 18px;
    line-height: 133%;
    color: #1a1a1a;
}

.process-flow-list_item--with-desc.dot-list__item::before {
    top: 25px;
}

@media(max-width:1202px) {
    .process-flow-list__desc {
        font-size: 16px;
    }

    .process-flow-list_item--with-desc.dot-list__item::before {
        top: 23px;
    }
}
