/* =========================
   Homepage sections
   ========================= */

.khp-section {
    margin: 56px 0;
}

.khp-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.khp-section__title {
    margin: 0;

    color: #0f2a4c;

    font-size: 34px;
    font-weight: 800;
    line-height: 1.2;

    text-align: left;
}

.khp-section__button {
    flex-shrink: 0;

    text-decoration: none !important;
}

/* =========================
   Section footer
   ========================= */

.khp-section__footer {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.khp-section__button--center {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
}

/* =========================
   Empty state
   ========================= */

.khp-empty {
    padding: 20px;
    color: #777;
    text-align: center;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1100px) {
    .khp-section {
        margin: 42px 0;
    }

    .khp-section__header {
        margin-bottom: 22px;
    }

    .khp-section__title {
        font-size: 30px;
        line-height: 1.18;
    }
}

@media (max-width: 768px) {
    .khp-section {
        margin: 34px 0;
    }

    .khp-section__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 14px;

        margin-bottom: 20px;
    }

    .khp-section__title {
        flex: 1 1 auto;

        font-size: 24px;
        line-height: 1.15;
    }

    .khp-section__button {
        flex: 0 0 auto;

        min-height: 42px;
        padding: 10px 16px;

        font-size: 14px;
        line-height: 1;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .khp-section {
        margin: 28px 0;
    }

    .khp-section__header {
        gap: 10px;
    }

    .khp-section__title {
        font-size: 22px;
        line-height: 1.16;
    }

    .khp-section__button {
        min-height: 38px;
        padding: 9px 13px;

        font-size: 13px;
    }
}