.cab { max-width: 1100px; width: 100%; }

/* Верх: заголовок и выход */
.cab__title { margin: 0 0 24px; }

/* Панели: трек и прогресс */
.cab__panel { background: #f4f9f9; border-radius: 16px; padding: 20px 24px; margin-bottom: 16px; }
.cab__label { display: block; font-size: 16px; color: #5c6b6d; margin-bottom: 8px; }

.cab__select {
    width: 100%; max-width: 560px; font: inherit; font-size: 18px; padding: 12px 16px;
    border: 1px solid #c9dcdd; border-radius: 12px; background: #fff; color: inherit; cursor: pointer;
}
.cab__select:disabled { opacity: .6; cursor: wait; }

/* Прогресс-бар */
.cab__progress-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.cab__progress-head .cab__label { margin: 0; }
.cab__progress-text { font-size: 18px; font-weight: 600; color: #00909a; }
.cab__progress { height: 14px; border-radius: 7px; background: #dbe9ea; overflow: hidden; }
.cab__progress-bar {
    height: 100%; width: 0; background: #00909a; border-radius: 7px;
    transition: width .4s ease;
}

/* Ссылка на PDF */
.cab__pdf {
    display: inline-block; margin: 8px 0 32px; padding: 14px 24px; font-size: 18px;
    border: 2px solid #00909a; border-radius: 12px; color: #00909a;
    text-decoration: none; transition: background .2s, color .2s;
}
.cab__pdf:hover { background: #00909a; color: #fff; }

/* Материалы */
.cab__subtitle { margin: 16px 0; }
.cab__empty { font-size: 18px; color: #5c6b6d; }

.cab__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.cab__card {
    display: flex; flex-direction: column; background: #fff;
    border: 2px solid #e3eeee; border-radius: 16px; overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.cab__card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.cab__card.is-done { border-color: #00909a; }

.cab__thumb { position: relative; display: block; aspect-ratio: 531 / 280; background: #e3eeee; overflow: hidden; }
.cab__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cab__badge {
    position: absolute; left: 12px; top: 12px; padding: 4px 12px; font-size: 14px;
    color: #fff; background: rgba(0, 0, 0, .55); border-radius: 20px;
}

.cab__card-body {
    display: flex; flex-direction: column; justify-content: space-between;
    gap: 12px; padding: 16px; flex: 1;
}
.cab__card-title { font-size: 18px; line-height: 1.3; color: inherit; text-decoration: none; }
.cab__card-title:hover { color: #00909a; }

/* Чекбокс прочтения */
.cab__check { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; cursor: pointer; user-select: none; }
.cab__check input { width: 22px; height: 22px; accent-color: #00909a; cursor: pointer; }
.cab__check input:disabled { cursor: not-allowed; }
.cab__check input:disabled:not(:checked) + span { color: #98a6a8; }

/* Удаление кабинета */
.cab__danger { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e3eeee; }
.cab__danger-text { font-size: 16px; color: #5c6b6d; margin-bottom: 12px; }
.cab__danger-btn {
    font: inherit; font-size: 16px; padding: 10px 20px; border: 1px solid #c0392b;
    border-radius: 10px; background: #fff; color: #c0392b; cursor: pointer;
}
.cab__danger-btn:hover { background: #c0392b; color: #fff; }
.cab__danger-btn:disabled { opacity: .6; cursor: wait; }

/* Два столбца от 1200px, название до трёх строк */
@media (min-width: 1200px) {
    .cab__grid { grid-template-columns: repeat(2, 1fr); }
    .cab__card-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        overflow: hidden;
    }
}

/* Мобильные */
@media (max-width: 600px) {
    .cab__panel { padding: 16px; }
}