/**
 * section-automation — как Магистраль автоматизирует ЭПД.
 */

.section-automation {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
    max-width: 81.25rem;
    margin: 0 auto;
    padding: 0 0 var(--site-section-gap);
    box-sizing: border-box;
    height: fit-content;
}

.section-automation .section-content {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    align-self: stretch;
    height: fit-content;
}

.section-automation .heading {
    width: 74.375rem;
    max-width: 100%;
    margin: 0;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--site-text);
}

.section-automation .description {
    width: 63.5625rem;
    max-width: 100%;
    margin: 0;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: normal;
    color: var(--site-text-body);
}

.section-automation .section-cards {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
    align-self: stretch;
}

.section-automation .card,
.section-automation .card-2,
.section-automation .card-3,
.section-automation .card-4 {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    width: auto;
    height: auto;
    padding: 1.25rem;
    background: var(--site-epd-card-accent);
    border-radius: 1.25rem;
    box-shadow: inset 0 0 0 0.0625rem var(--site-epd-card-accent-ring);
}

.section-automation .card-content,
.section-automation .card-content-2,
.section-automation .card-content-3,
.section-automation .card-content-4 {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    flex: 1 1 auto;
    width: 16.875rem;
    max-width: 100%;
    min-height: 0;
}

.section-automation .card-header,
.section-automation .card-header-2,
.section-automation .card-header-3,
.section-automation .card-header-4 {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.625rem;
    align-self: stretch;
    height: fit-content;
}

.section-automation .card-number,
.section-automation .card-number-2,
.section-automation .card-number-3,
.section-automation .card-number-4 {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    width: 1.875rem;
    height: 1.875rem;
    background: var(--site-step-bg);
    border-radius: 0.625rem;
}

.section-automation .n01,
.section-automation .n02,
.section-automation .n03,
.section-automation .n04 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 0;
    align-self: stretch;
    margin: 0;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    color: var(--site-accent);
}

.section-automation .heading-2,
.section-automation .heading-3,
.section-automation .heading-4,
.section-automation .heading-5 {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--site-on-accent-muted);
}

.section-automation .description-2,
.section-automation .description-3,
.section-automation .description-4,
.section-automation .description-5 {
    align-self: stretch;
    margin: 0;
    font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: normal;
    color: var(--site-on-accent-muted);
}

.section-automation .card-image,
.section-automation .card-image-2,
.section-automation .card-image-3,
.section-automation .card-image-4 {
    flex-shrink: 0;
    width: 16.875rem;
    max-width: 100%;
    height: 16.875rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.5rem;
    box-shadow: inset 0 0 0 0.0625rem var(--site-image-ring);
}

@media (max-width: 63.9375rem) {
    .section-automation .heading {
        width: auto;
    }

    .section-automation .description {
        width: auto;
    }

    .section-automation .section-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .section-automation .card,
    .section-automation .card-2,
    .section-automation .card-3,
    .section-automation .card-4 {
        width: 100%;
        height: 100%;
    }

    .section-automation .card-content,
    .section-automation .card-content-2,
    .section-automation .card-content-3,
    .section-automation .card-content-4 {
        width: 100%;
    }

    .section-automation .card-image,
    .section-automation .card-image-2,
    .section-automation .card-image-3,
    .section-automation .card-image-4 {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        align-self: stretch;
    }
}

@media (max-width: 47.9375rem) {
    .section-automation .heading {
        font-size: 1.875rem;
    }

    .section-automation .description {
        font-size: 0.875rem;
    }

    .section-automation .section-cards {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .section-automation .heading-2,
    .section-automation .heading-3,
    .section-automation .heading-4,
    .section-automation .heading-5 {
        font-size: 1.125rem;
    }

    .section-automation .card-image,
    .section-automation .card-image-2,
    .section-automation .card-image-3,
    .section-automation .card-image-4 {
        height: auto;
        aspect-ratio: 1;
    }
}
