/**
  Курсы
*/

.courses-pagination {
    display:flex;
    justify-content: center;
    margin: 20px auto 160px;
}

.load-more-items {
    margin: 10px 10px 0 10px;
    width:100%;
}

.courses-empty {
    padding: 24px 0 40px;
    border-top: 1px solid rgba(26, 26, 26, 0.4);
}

.courses-empty__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 500;
    color: rgba(26, 26, 26, 1);
}

.courses-empty__reset {
    font-size: 16px;
    color: var(--color-brand);
    text-decoration: underline;
}

.courses-empty__reset:hover {
    color: rgba(26, 26, 26, 1);
}

.course-item {
    padding: 20px 20px 30px 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    background-color: #fff;
}

.course-item .course-item-content {
    height:100%;
}

.course-item .course-item-content h5 {
    padding: 15px 0px 15px 0px;
}

.course-item .course-item-content .block-badges {
    height:40px;
}

.course-item .course-item-content .course-props {
    margin-bottom: 10px;
}

.course-item .course-item-content .course-props .textcols {
    display: table;
    width: 100%;
    border-collapse: collapse;
}
.course-item .course-item-content .course-props .textcols .textcols-row {
    display: table-row;
    border-top: 1px solid rgba(26, 26, 26, 0.4);
}
.course-item .course-item-content .course-props .textcols .textcols-row .textcols-item {
    display: table-cell;
    width: 50%;
    vertical-align: top;
    padding: 8px 0px 8px 0px;
}

/* Счётчик "(0NN)" — пинним к правому верху заголовка через absolute вместо
   прежнего float:right + подгонка margin-top/top под каждый брейкпоинт
   (из-за неё счётчик «скакал» между разрешениями). Теперь на всех ширинах
   он в одной точке относительно <h1>, меняется только размер шрифта. */
.courses-h1 {
    position: relative;
    padding-right: 110px;
}

.courses-count {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -2.4px;
}

@media (max-width: 1280px) {
    .courses-count {
        font-size: 36px;
    }
    .courses-pagination {
        margin: 20px auto 120px;
    }
}

@media (max-width: 1024px) {
    .courses-h1 {
        font-size: 100px;
        padding-right: 90px;
    }
    .courses-count {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .courses-pagination {
        margin: 20px auto 100px;
    }
}

@media (max-width: 599px) {
    .courses-h1 {
        font-size: 48px;
        padding-right: 62px;
    }
    .courses-count {
        font-size: 22px;
        letter-spacing: -1.44px;
    }
}

@media (max-width: 500px) {
    .courses-h1 span {
        display: block;
    }

    .load-more-items {
        margin: 10px 0 0 0;
    }

    .courses-pagination {
        margin: 20px auto 80px;
    }
}