/* Каркасные стили кабинета. Палитра и типографика заменятся по дизайн-файлу
   заказчика — держим всё на CSS-переменных, чтобы перекраска была точечной. */

:root {
  --bg: #faf9f7;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #4f6ef7;
  --ok: #2e7d4f;
  --warn: #b3413c;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--card);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.06);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}
.name {
  font-weight: 600;
}
.counters {
  display: flex;
  gap: 14px;
  font-weight: 600;
}
.stars {
  color: #b8860b;
}
.lives {
  color: var(--warn);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
h1 {
  font-size: 22px;
}

.lessons {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
}
.lesson {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}
.lesson.locked {
  opacity: 0.55;
}
.lesson.opened {
  cursor: pointer;
  border-left: 4px solid var(--accent);
}
.lesson.completed {
  border-left: 4px solid var(--ok);
}
.lesson-status {
  color: var(--muted);
  font-size: 13px;
}
.error {
  color: var(--warn);
}
