/**
 * section-how-start — как начать работать в Магистрали (Водителям).
 * Desktop / tablet / phone — по макету Figma.
 */

.section-how-start {
    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-how-start .section-content {
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    align-self: stretch;
    height: fit-content;
}

.section-how-start .heading {
    width: 46.75rem;
    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-how-start .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-how-start .section-cards {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1.25rem;
    align-self: stretch;
    height: fit-content;
}

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

.section-how-start .card-content,
.section-how-start .card-content-2,
.section-how-start .card-content-3,
.section-how-start .card-content-4 {
    display: flex;
    flex-direction: column;
    gap: 0.9375rem;
    width: 100%;
    max-width: 16.875rem;
    height: fit-content;
}

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

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

.section-how-start .n01,
.section-how-start .n02,
.section-how-start .n03,
.section-how-start .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-how-start .heading-2,
.section-how-start .heading-3,
.section-how-start .heading-4,
.section-how-start .heading-5 {
    flex: 1 1 0;
    min-width: 0;
    margin: 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-text);
}

.section-how-start .description-2,
.section-how-start .description-3,
.section-how-start .description-4,
.section-how-start .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-text);
}

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

/* Tablet: 2×2 */
@media (max-width: 63.9375rem) {
    .section-how-start .heading,
    .section-how-start .description {
        width: auto;
        max-width: none;
        align-self: stretch;
    }

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

    .section-how-start .card,
    .section-how-start .card-2,
    .section-how-start .card-3,
    .section-how-start .card-4 {
        flex: none;
        width: 100%;
    }

    .section-how-start .card-content,
    .section-how-start .card-content-2,
    .section-how-start .card-content-3,
    .section-how-start .card-content-4,
    .section-how-start .card-image,
    .section-how-start .card-image-2,
    .section-how-start .card-image-3,
    .section-how-start .card-image-4 {
        max-width: none;
        width: 100%;
    }
}

/* Phone: колонка */
@media (max-width: 47.9375rem) {
    .section-how-start .heading {
        font-size: 1.875rem;
    }

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

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

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

    .section-how-start .card-image,
    .section-how-start .card-image-2,
    .section-how-start .card-image-3,
    .section-how-start .card-image-4 {
        align-self: stretch;
        width: 100%;
        max-width: none;
        height: 18.4375rem;
    }
}
