/* Проекты, Курсы, Вики — кабинет школы 547. Цвета из bridge-theme.css. */
.learn-head h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0 0 0.35rem; }
.learn-head p { color: var(--text-muted); margin: 0 0 0.6rem; line-height: 1.55; }
.learn-section { margin: 1.4rem 0 0.7rem; font-size: 1.05rem; color: #fff; }
.learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.learn-card {
  display: flex; gap: 0.9rem; text-align: left; width: 100%; padding: 1rem 1.1rem; cursor: pointer; font: inherit; color: inherit;
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.learn-card:hover { border-color: rgba(112, 213, 255, 0.58); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(49, 168, 255, 0.16); }
.learn-card-cover { flex-direction: column; padding: 0; overflow: hidden; }
.learn-card-cover .learn-card-body { padding: 0 1.1rem 1rem; }
.learn-cover { background: #f4f7fb; height: 180px; display: flex; align-items: center; justify-content: center; }
.learn-cover img { max-height: 100%; max-width: 100%; object-fit: contain; }
.learn-card-icon { font-size: 2rem; line-height: 1; flex: none; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: var(--bg-accent); border-radius: 14px; }
.learn-card-body { min-width: 0; flex: 1; }
.learn-card-title { font-weight: 800; color: #fff; font-size: 1.05rem; margin-bottom: 0.2rem; }
.learn-card-meta { color: var(--accent-cyan); font-size: 0.8rem; margin: 0.2rem 0; }
.learn-card-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.45; margin: 0.35rem 0; }
.learn-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 0.5rem; }
.learn-bar i { display: block; height: 100%; background: var(--accent-green); border-radius: 999px; }
.learn-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0; }
.learn-tags span { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: var(--accent-cyan); border: 1px solid var(--border-color); background: rgba(5, 11, 21, 0.5); }
.learn-crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.88rem; margin-bottom: 0.8rem; color: var(--text-muted); }
.learn-crumbs a { color: var(--accent-blue); text-decoration: none; }
.learn-crumbs a:hover { text-decoration: underline; }
.learn-crumbs b { color: var(--text-main); }
.learn-lessons { display: flex; flex-direction: column; gap: 0.5rem; }
.learn-lesson-row {
  display: flex; align-items: center; gap: 0.9rem; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 0.75rem 0.9rem; min-height: 56px; background: rgba(5, 11, 21, 0.5); border: 1px solid var(--border-color); border-radius: 12px;
}
.learn-lesson-row:hover { border-color: var(--accent-blue); }
.learn-lesson-row.done { border-color: rgba(105, 240, 174, 0.45); }
.learn-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; background: var(--bg-accent); color: var(--accent-cyan); }
.learn-lesson-row.done .learn-num { background: rgba(105, 240, 174, 0.15); color: var(--accent-green); }
.learn-lesson-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.learn-lesson-name b { color: #fff; }
.learn-lesson-name small { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; }
.learn-time { flex: none; color: var(--text-muted); font-size: 0.8rem; }
.learn-lesson { max-width: 900px; }
.learn-lesson h3 { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0.2rem 0 0.6rem; }
.learn-kicker { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
.learn-goal { padding: 0.7rem 0.9rem; border-left: 3px solid var(--accent-blue); background: var(--bg-accent); border-radius: 6px; margin: 0.6rem 0 1rem; line-height: 1.5; }
.learn-p { line-height: 1.65; margin: 0.7rem 0; color: var(--text-main); }
.learn-steps { margin: 0.6rem 0 0.9rem; padding-left: 1.4rem; line-height: 1.6; }
.learn-steps li { margin: 0.35rem 0; }
.learn-fig { margin: 0.9rem 0 1.1rem; }
.learn-fig img { display: block; max-width: 100%; height: auto; background: #fff; border-radius: 10px; border: 1px solid var(--border-color); cursor: zoom-in; }
.learn-fig figcaption { color: var(--text-muted); font-size: 0.84rem; margin-top: 0.4rem; line-height: 1.4; }
.learn-note { padding: 0.75rem 0.95rem; border-radius: 10px; margin: 0.8rem 0; line-height: 1.55; border: 1px solid var(--border-color); }
.learn-note.tip { background: rgba(49, 168, 255, 0.08); border-color: rgba(49, 168, 255, 0.35); }
.learn-note.warn { background: rgba(245, 165, 36, 0.1); border-color: rgba(245, 165, 36, 0.45); }
.learn-note.task { background: rgba(105, 240, 174, 0.08); border-color: rgba(105, 240, 174, 0.45); }
.learn-check { padding: 0.8rem 1rem; border: 1px dashed var(--border-color); border-radius: 10px; margin: 0.8rem 0; }
.learn-check ul { margin: 0.4rem 0 0; padding-left: 1.2rem; line-height: 1.6; }
.learn-foot { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px dashed var(--border-color); }
.learn-foot .btn-outline { max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-done-tag { color: var(--accent-green); font-weight: 800; }
.learn-year h3 { color: #fff; font-size: 1.3rem; margin: 0.2rem 0 0.4rem; }
.learn-details summary { cursor: pointer; color: var(--accent-blue); font-weight: 700; margin-top: 0.4rem; }
.learn-details ul { color: var(--text-muted); line-height: 1.6; }
.learn-project-hero { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 1.4rem; align-items: start; }
.learn-project-hero h3 { color: #fff; font-size: 1.5rem; margin: 0.2rem 0 0.4rem; }
.learn-hero-img { background: #f4f7fb; border-radius: 14px; overflow: hidden; }
.learn-hero-img img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.learn-specs { width: 100%; border-collapse: collapse; margin: 0.6rem 0; font-size: 0.9rem; }
.learn-specs th { text-align: left; color: var(--text-muted); font-weight: 600; padding: 0.35rem 0.6rem 0.35rem 0; width: 42%; border-bottom: 1px solid var(--border-color); }
.learn-specs td { padding: 0.35rem 0; border-bottom: 1px solid var(--border-color); color: var(--text-main); }
.learn-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.learn-files { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-direction: column; gap: 0.45rem; }
.learn-files a, .learn-link { color: var(--accent-blue); text-decoration: none; font-weight: 700; }
.learn-files a:hover, .learn-link:hover { text-decoration: underline; }
.learn-stages { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.learn-stage { display: flex; gap: 0.9rem; padding: 0.8rem 0.9rem; border: 1px solid var(--border-color); border-radius: 12px; background: rgba(5, 11, 21, 0.45); }
.learn-stage.done { border-color: rgba(105, 240, 174, 0.45); }
.learn-stage p { margin: 0.25rem 0 0.35rem; color: var(--text-muted); line-height: 1.5; font-size: 0.9rem; }
.learn-stage b { color: #fff; }
.learn-stage-check { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; min-width: 56px; }
.learn-stage-check input { width: 22px; height: 22px; accent-color: var(--accent-green); cursor: pointer; }
.learn-search { margin: 0.4rem 0 0.7rem; }
.learn-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.learn-wiki-sec { margin-top: 1.1rem; }
.learn-wiki-sec h4 { color: #fff; margin: 0 0 0.4rem; font-size: 1.05rem; }
.learn-pre { white-space: pre-line; line-height: 1.6; color: var(--text-main); }
.learn-rules, .learn-keys { padding-left: 1.2rem; line-height: 1.6; }
.learn-keys li { font-family: var(--font-code); font-size: 0.88rem; }
.learn-zoom { position: fixed; inset: 0; z-index: 100000; background: rgba(2, 6, 14, 0.9); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.learn-zoom img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 8px; }
.learn-zoom button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-color); background: #0a1626; color: #fff; font-size: 1.2rem; cursor: pointer; }
@media (max-width: 760px) {
  .learn-project-hero { grid-template-columns: 1fr; }
  .learn-foot .btn-outline { max-width: 100%; flex: 1 1 100%; }
  .learn-grid { grid-template-columns: 1fr; }
}
