/* =========================================================
   Option Folder Cards Block
   ========================================================= */

.option-folder-cards {
    --ofc-bg: #F1F4F8;
    --ofc-tab-height: 46px;
    --ofc-tab-width: 38%;
    --ofc-radius: 16px;

    padding: 20px 0;
    background: #FFFFFF;
}

.option-folder-cards__container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Title ────────────────────────────────────────────── */
.option-folder-cards h2.option-folder-cards__title {
    margin: 0;
    max-width: 840px;
}

.option-folder-cards__title span {
    color: #D41028;
}

/* ── Grid ─────────────────────────────────────────────── */
.option-folder-cards__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    column-gap: 22px;
    row-gap: 20px;
}

/* ── Card (folder shape) ──────────────────────────────── */
.option-folder-cards__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    min-height: 271px;
    margin-top: var(--ofc-tab-height);
    padding: 10px 15px;
    background: var(--ofc-bg);
    border-radius: 0 var(--ofc-radius) var(--ofc-radius) var(--ofc-radius);
    box-shadow: 0 1px 3px 0 #0000001A;
}

/* Tab: straight part */
.option-folder-cards__card::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 100%;
    width: var(--ofc-tab-width);
    height: var(--ofc-tab-height);
    background: var(--ofc-bg);
    border-top-left-radius: var(--ofc-radius);
}

/* Tab: slanted edge */
.option-folder-cards__card::after {
    content: '';
    position: absolute;
    left: calc(var(--ofc-tab-width) - 20px);
    bottom: 100%;
    width: 68px;
    height: var(--ofc-tab-height);
    background: var(--ofc-bg);
    border-top-right-radius: 14px;
    transform: skewX(45deg);
    transform-origin: bottom left;
}

.option-folder-cards__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Label ────────────────────────────────────────────── */
.option-folder-cards__label {
    display: block;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #D41028;
}

/* ── Heading ──────────────────────────────────────────── */
.option-folder-cards h3.option-folder-cards__heading {
    margin: 0;
    font-size: 24px;
    line-height: 44px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: #000000;
}

/* ── Text ─────────────────────────────────────────────── */
.option-folder-cards p.option-folder-cards__text {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;
    color: #000000;
}

.option-folder-cards__text strong,
.option-folder-cards__text b {
    font-weight: 700;
}

/* ── Number ───────────────────────────────────────────── */
.option-folder-cards__number {
    display: block;
    font-size: 24px;
    line-height: 44px;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #737373;
}

@media (max-width: 991px) {
    .option-folder-cards__grid {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .option-folder-cards__card {
        min-height: 0;
    }
}

@media (max-width: 575px) {
    .option-folder-cards {
        --ofc-tab-height: 32px;
        --ofc-tab-width: 45%;
    }

    .option-folder-cards__card {
        gap: 28px;
        padding: 16px 20px 20px;
    }

    .option-folder-cards__card::after {
        width: 52px;
    }

    .option-folder-cards__body {
        gap: 16px;
    }

    .option-folder-cards h3.option-folder-cards__heading {
        font-size: 24px;
        line-height: 30px;
    }

    .option-folder-cards p.option-folder-cards__text {
        font-size: 16px;
        line-height: 24px;
    }

    .option-folder-cards__number {
        font-size: 28px;
        line-height: 32px;
    }
}
