:root {
  --primary: #005f5f;
  --primary-mid: #008080;
  --primary-dark: #004040;
  --accent: #b8860b;
  --accent-light: #d4a017;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
}

body { font-family: 'Inter', 'Segoe UI', sans-serif; background: var(--slate-50); color: var(--slate-700); }

/* PAGE HEADER (standart) */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, var(--accent) 130%);
  color: #fff;
  padding: 44px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-header > .container-xl { max-width: 1320px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.page-header .breadcrumb-row { font-size: 13px; opacity: .75; margin-bottom: 10px; }
.page-header .breadcrumb-row a { color: #fff; text-decoration: none; }
.page-header .breadcrumb-row a:hover { text-decoration: underline; }
.page-header h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.page-header .lead { font-size: 15px; opacity: .9; margin: 0; }
@media (max-width: 768px) {
  .page-header h1 { font-size: 24px; }
  .page-header .lead { font-size: 14px; }
}

/* Main wrap */
.wrap { max-width: 1320px; margin: 36px auto 60px; padding: 0 16px; }

/* CATEGORY TABS */
.cat-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--slate-200); margin-bottom: 28px; overflow-x: auto; }
.cat-tab {
  background: transparent; border: none; padding: 14px 20px;
  font-weight: 600; font-size: 14px; color: var(--slate-500);
  cursor: pointer; transition: .2s; border-bottom: 3px solid transparent;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.cat-tab:hover { color: var(--primary); }
.cat-tab.active { border-bottom-color: var(--primary); color: var(--primary); }
.cat-count { padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #e6f4f4; color: var(--primary); }
.cat-section.hidden { display: none; }

/* Cards grid */
.lessons-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.lesson-card {
  background: #fff; border-radius: 18px; padding: 22px;
  border: 1.5px solid var(--slate-200); transition: .2s;
}
.lesson-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,95,95,.1); border-color: var(--primary); }
.lesson-card.video-card { padding: 0; overflow: hidden; }
.lesson-card.video-card .card-body { padding: 22px; }

.player-wrap { position: relative; background: var(--slate-50); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.audio-icon { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(184,134,11,.3); }
.video-icon { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,95,95,.4); z-index: 2; pointer-events: none; }
audio, video { width: 100%; border-radius: 12px; background: var(--slate-900); outline: none; }
video { aspect-ratio: 16/9; object-fit: cover; display: block; }

.lesson-label-audio { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 4px; letter-spacing: .4px; }
.lesson-label-video { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 4px; letter-spacing: .4px; }
.lesson-title { font-size: 14px; font-weight: 600; color: var(--slate-800); margin-bottom: 12px; line-height: 1.4; }
.lesson-desc { font-size: 14px; color: var(--slate-600); margin-bottom: 14px; line-height: 1.55; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag-audio { background: #fef3c7; color: #92400e; }
.tag-video { background: #dbeafe; color: #1e40af; }
.tag-cat   { background: #e6f4f4; color: var(--primary); }
.tag-level { background: var(--slate-100); color: var(--slate-600); }

.empty-card {
  border: 1.5px dashed var(--slate-300); background: var(--slate-50);
  border-radius: 18px; padding: 40px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.empty-card .empty-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--slate-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px; color: var(--slate-400); font-size: 22px;
}
.empty-card .empty-title { font-weight: 600; color: var(--slate-700); margin-bottom: 4px; }
.empty-card .empty-desc { font-size: 13px; color: var(--slate-500); max-width: 280px; }

.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 20px; font-weight: 700; color: var(--slate-800); margin-bottom: 4px; }
.section-head p { font-size: 14px; color: var(--slate-500); margin: 0; }
