/* Более точный контроль через :nth-child */
.btn-group-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.btn-group-flex .btn-custom {
    width: calc(50% - 0.75rem);
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    padding: 5px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    height: 3.8rem;
    align-content: center;
}
.btn-custom {
    background-color: #244c93; /* Этот цвет есть */
    color: rgb(255, 255, 255);
}

.btn-custom:hover {
    background-color: rgb(14, 60, 91); /* Цвет при наведении */
    color: #fff;
}

/* Каждая нечетная кнопка (1, 3, 5...) */
.btn-group-flex .btn-custom:nth-child(odd) {
    margin-right: auto;
}

/* Каждая четная кнопка (2, 4, 6...) */
.btn-group-flex .btn-custom:nth-child(even) {
    margin-left: auto;
}

@media screen and (max-width: 560px) {
    .btn-group-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-group-flex .btn-custom {
        width: 100%;
    }
}

/* Стиль для светлых кнопок (последние две) */
.btn-custom--light {
    background-color: #f2f5f6 !important;
    color: #244c93 !important; /* Текст синим для контраста */
}

.btn-custom--light:hover {
    background-color: #e0e5e7 !important; /* Чуть темнее при наведении */
    color: #244c93 !important;
}

/* Если не хотите использовать !important, повысьте специфичность */
.btn-group-flex .btn-custom.btn-custom--light {
    background-color: #f2f5f6;
    color: #244c93;
}

.btn-group-flex .btn-custom.btn-custom--light:hover {
    background-color: #e0e5e7;
    color: #244c93;
}