.landing-courses {
    max-width: 1320px;
    margin: 18px auto 42px;
    padding: 0 16px;
}

.landing-courses__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 12px;
}

.landing-courses__head h2 {
    margin: 0;
    color: #0b1628;
    font-size: 26px;
    font-weight: 800;
}

.landing-courses__head span {
    color: #657386;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-courses__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.landing-course-card {
    min-width: 0;
    display: flex;
    min-height: 184px;
    overflow: hidden;
    border: 1px solid #d5e0ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(22, 32, 51, .08);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.landing-course-card:hover,
.landing-course-card:focus-visible {
    border-color: #a9bfda;
    box-shadow: 0 18px 42px rgba(22, 32, 51, .14);
    transform: translateY(-2px);
    outline: 0;
}

.landing-course-card__body {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 10px;
    padding: 16px;
}

.landing-course-card h3 {
    min-width: 0;
    margin: 0;
    color: #0b1628;
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.16;
}

.landing-course-card p {
    margin: 0;
    color: #526176;
    font-size: 13px;
    line-height: 1.38;
}

.landing-course-card__button {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #cfd9e5;
    border-radius: 999px;
    background: #fff;
    color: #0b1628;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.landing-course-card__button .material-icons {
    font-size: 16px;
}

.landing-course-modal[hidden] {
    display: none;
}

.landing-course-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 22px;
}

.landing-course-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(11, 22, 40, .58);
}

.landing-course-modal__panel {
    position: relative;
    z-index: 1;
    width: min(820px, 100%);
    max-height: min(760px, calc(100vh - 44px));
    overflow: auto;
    border: 1px solid #d5e0ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
    padding: 26px;
}

.landing-course-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #d5e0ec;
    border-radius: 50%;
    background: #fff;
    color: #0b1628;
    cursor: pointer;
}

.landing-course-modal__close .material-icons {
    font-size: 19px;
}

.landing-course-modal h2 {
    margin: 0 42px 14px 0;
    color: #0b1628;
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.18;
}

.landing-course-modal__description {
    color: #263447;
    font-size: 15px;
    line-height: 1.55;
}

.landing-course-modal__description :first-child {
    margin-top: 0;
}

.landing-course-modal__description :last-child {
    margin-bottom: 0;
}

.landing-course-modal__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    border-radius: 999px;
    background: #0d6fd8;
    color: #fff;
    padding: 10px 14px;
    font-weight: 800;
    text-decoration: none;
}

.landing-course-modal__link:hover {
    color: #fff;
    text-decoration: none;
    background: #075eb9;
}

.landing-course-modal__link .material-icons {
    font-size: 18px;
}

.is-course-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .landing-courses {
        padding: 0 12px;
    }

    .landing-courses__head {
        align-items: start;
        flex-direction: column;
        gap: 4px;
    }

    .landing-courses__head h2 {
        font-size: 22px;
    }

    .landing-courses__grid {
        grid-template-columns: 1fr;
    }

    .landing-course-modal {
        padding: 10px;
    }

    .landing-course-modal__panel {
        max-height: calc(100vh - 20px);
        padding: 20px;
    }
}
