/* ============ Токены ============ */
:root {
  --bg: #0e0c0a;
  --surface: #1a1613;
  --surface-2: #231e1a;
  --surface-3: #2e2822;
  --border: rgba(255, 236, 214, .08);
  --border-2: rgba(255, 236, 214, .16);
  --text: #f6f0e9;
  --muted: #a99d91;
  --faint: #6f655c;
  --accent: #ff9b3d;
  --accent-2: #ffc46b;
  --accent-ink: #1d1206;
  --accent-soft: rgba(255, 155, 61, .14);
  --green: #3dd68c;
  --green-soft: rgba(61, 214, 140, .14);
  --red: #ff6b5e;
  --red-soft: rgba(255, 107, 94, .14);
  --blue: #6cb6ff;
  --blue-soft: rgba(108, 182, 255, .13);
  --glow: rgba(255, 140, 50, .13);
  --glow-2: rgba(255, 196, 107, .06);
  --wood: #3a271a;
  --wood-2: #2a1c12;
  --fret: #c9c2b8;
  --shadow: 0 12px 32px rgba(0, 0, 0, .35);
  --radius: 20px;
  --radius-sm: 12px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f3ee; --surface: #ffffff; --surface-2: #f3ede6; --surface-3: #e9e1d7;
    --border: rgba(70, 45, 20, .10); --border-2: rgba(70, 45, 20, .2);
    --text: #241a12; --muted: #6e6257; --faint: #a3978b;
    --accent: #e8760f; --accent-2: #f29a3a; --accent-ink: #ffffff; --accent-soft: rgba(232, 118, 15, .11);
    --green: #12a160; --green-soft: rgba(18, 161, 96, .11); --red: #d9443a; --red-soft: rgba(217, 68, 58, .1);
    --blue: #2b7fd4; --blue-soft: rgba(43, 127, 212, .1);
    --glow: rgba(255, 160, 80, .18); --glow-2: rgba(255, 200, 120, .12);
    --wood: #6b4528; --wood-2: #553620; --fret: #e3ddd4;
    --shadow: 0 10px 28px rgba(80, 50, 20, .1);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f7f3ee; --surface: #ffffff; --surface-2: #f3ede6; --surface-3: #e9e1d7;
  --border: rgba(70, 45, 20, .10); --border-2: rgba(70, 45, 20, .2);
  --text: #241a12; --muted: #6e6257; --faint: #a3978b;
  --accent: #e8760f; --accent-2: #f29a3a; --accent-ink: #ffffff; --accent-soft: rgba(232, 118, 15, .11);
  --green: #12a160; --green-soft: rgba(18, 161, 96, .11); --red: #d9443a; --red-soft: rgba(217, 68, 58, .1);
  --blue: #2b7fd4; --blue-soft: rgba(43, 127, 212, .1);
  --glow: rgba(255, 160, 80, .18); --glow-2: rgba(255, 200, 120, .12);
  --wood: #6b4528; --wood-2: #553620; --fret: #e3ddd4;
  --shadow: 0 10px 28px rgba(80, 50, 20, .1);
  color-scheme: light;
}

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 520px at 85% -10%, var(--glow), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, var(--glow-2), transparent 60%);
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
p a, .tip a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1 { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.12; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 800; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.015em; margin: 36px 0 14px; font-weight: 800; }
h3 { font-size: 17px; line-height: 1.3; margin: 0 0 10px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
p { margin: 0 0 12px; }
b, strong { font-weight: 700; }
.lead { color: var(--muted); font-size: 18px; max-width: 700px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.accent { color: var(--accent); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }

/* ============ Каркас ============ */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 14px;
  display: flex; flex-direction: column; gap: 22px;
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; line-height: 1.05; }
.brand small { display: block; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.brand img { border-radius: 10px; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: var(--muted); font-weight: 600; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--text); }
.nav a.active .icon { color: var(--accent); }
.side-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.side-foot .practice-btn { flex: 1; }

.practice-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--border-2); transition: all .15s;
  font-variant-numeric: tabular-nums;
}
.practice-btn .icon { width: 16px; height: 16px; }
.practice-btn:hover { border-color: var(--accent); }
.practice-btn.on { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); font-weight: 800; font-size: 14px;
  transition: background .15s, border-color .15s; flex: none;
}
.icon-btn:hover { border-color: var(--border-2); background: var(--surface-3); }

main { padding: 40px clamp(20px, 4vw, 56px) 80px; width: 100%; max-width: 1120px; margin: 0 auto; outline: none; }
main.enter > * { animation: enter .35s ease both; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

.topbar, .tabbar { display: none; }

/* ============ Кнопки и элементы ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--border-2); white-space: nowrap;
  transition: transform .1s, background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: scale(.97); }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 20px -6px var(--accent); }
.btn.primary:hover { box-shadow: 0 8px 26px -6px var(--accent); }
.btn.primary.on { background: var(--surface-3); color: var(--text); box-shadow: none; border-color: var(--border-2); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn.sm .icon { width: 16px; height: 16px; }
.btn.lg { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn.xl { min-height: 60px; padding: 0 32px; font-size: 18px; border-radius: 16px; width: 100%; }
.btn.is-done { background: var(--green-soft); color: var(--green); border-color: var(--green); box-shadow: none; }
.bump { animation: bump .3s ease; }
@keyframes bump { 40% { transform: scale(.94); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.lvl-1 { background: var(--green-soft); color: var(--green); }
.lvl-2 { background: var(--accent-soft); color: var(--accent); }
.lvl-3 { background: var(--red-soft); color: var(--red); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }

.seg-ctl { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.seg-ctl button { height: 34px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .15s; }
.seg-ctl button:hover { color: var(--text); }
.seg-ctl button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }

.bpm-ctl { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.bpm-ctl b { color: var(--text); font-size: 18px; font-variant-numeric: tabular-nums; }
.bpm-ctl .icon-btn { width: 36px; height: 36px; border-radius: 10px; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 40px; height: 24px; border-radius: 999px; background: var(--surface-3); position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text); transition: transform .2s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width .4s; }

.range { width: 100%; height: 28px; -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: var(--surface-3); }
.range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--surface-3); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); }

select {
  height: 44px; padding: 0 36px 0 14px; border-radius: 12px; font-weight: 700; font-size: 16px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a99d91' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 18px;
  border: 1px solid var(--border-2); -webkit-appearance: none; appearance: none; cursor: pointer;
}
input[type="number"] { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); font-size: 20px; font-weight: 700; width: 120px; }

.tip { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.tip > .icon { color: var(--accent); margin-top: 3px; }
.tip > div { flex: 1; }
.tip.warn { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 25%, transparent); }
.tip.warn > .icon { color: var(--red); }
.tip.info { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 25%, transparent); }
.tip.info > .icon { color: var(--blue); }

.page-head { margin-bottom: 28px; }
.page-head .badge { margin-bottom: 12px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 14px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.back:hover { color: var(--text); }
.back .icon { width: 16px; height: 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ Главная ============ */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 32px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 18px; }
.next-up {
  display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; transition: border-color .15s;
}
.next-up:hover { border-color: var(--accent); }
.next-up span { color: var(--accent); font-weight: 700; }
.next-up em { font-style: normal; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.next-up em .icon { width: 14px; height: 14px; }
.hero-art { display: grid; place-items: center; }
.hero-chord {
  position: relative; padding: 28px 32px 24px; border-radius: 28px; text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-2); box-shadow: var(--shadow), 0 0 80px -20px var(--glow);
  display: grid; gap: 14px; justify-items: center; transform: rotate(2deg);
}
.hero-chord .chord-svg { width: 170px; }
.hero-chord-cap b { font-size: 28px; display: block; line-height: 1; }
.hero-chord-cap span { color: var(--muted); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.stat-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stat-value { font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.stat-grow { flex: 1; min-width: 120px; }
.stat-grow .bar { margin-top: 8px; }
.stat-ring { position: relative; display: grid; place-items: center; width: 72px; height: 72px; }
.stat-ring .ring { position: absolute; inset: 0; width: 72px; height: 72px; }
.stat-ring b { font-size: 16px; }
.ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 7; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset .6s; }
.stat-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); }
.stat-ico .icon { width: 26px; height: 26px; }
.stat-ico.flame { background: var(--red-soft); color: var(--red); }

.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; padding: 20px 22px 14px; }
.wk { display: grid; justify-items: center; gap: 6px; font-size: 12px; }
.wk-bar { position: relative; width: 100%; max-width: 44px; height: 110px; border-radius: 10px; background: var(--surface-2); overflow: hidden; display: flex; align-items: flex-end; }
.wk-bar span { width: 100%; border-radius: 10px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); opacity: .85; transition: height .4s; }
.wk-bar i { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--border-2); }
.wk.met .wk-bar span { background: linear-gradient(180deg, #7ff0b8, var(--green)); }
.wk small { color: var(--muted); font-weight: 600; }
.wk.today small { color: var(--accent); font-weight: 800; }
.wk em { font-style: normal; font-weight: 700; min-height: 18px; font-variant-numeric: tabular-nums; }

.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool { display: grid; gap: 4px; transition: transform .15s, border-color .15s; }
.tool:hover { transform: translateY(-2px); border-color: var(--border-2); }
.tool b { font-size: 16px; margin-top: 8px; }
.tool-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); flex: none; }
.tip-day { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; }
.tip-day p { margin: 4px 0 0; font-size: 17px; }

/* ============ Уроки ============ */
.progress-line { display: flex; align-items: center; gap: 14px; max-width: 520px; font-weight: 700; font-size: 14px; color: var(--muted); }
.progress-line .bar { flex: 1; }
.module { margin-bottom: 30px; }
.module-head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.module-head h2 { margin: 0; font-size: 20px; }
.module-head p { margin: 0; font-size: 14px; }
.module-head > div { flex: 1; }
.module-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border-2); font-weight: 800; font-size: 18px; flex: none; }
.module-n.done { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.module-prog { font-weight: 700; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.lesson-list { display: grid; gap: 8px; }
.lesson-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s;
}
.lesson-row:hover { border-color: var(--border-2); transform: translateX(3px); }
.lesson-row > .icon { color: var(--faint); }
.lesson-row.next { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lr-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-weight: 800; font-size: 14px; flex: none; }
.lesson-row.done .lr-n { background: var(--green); color: #fff; }
.lesson-row.done .lr-n .icon { width: 18px; height: 18px; stroke-width: 3; }
.lesson-row.next .lr-n { background: var(--accent); color: var(--accent-ink); }
.lr-body { flex: 1; min-width: 0; display: grid; }
.lr-body small { color: var(--muted); font-size: 14px; }
.lr-time { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.reset-row { text-align: center; margin-top: 40px; }

.lesson { max-width: 820px; margin: 0 auto; }
.lesson-head { margin-bottom: 26px; }
.lesson-head h1 { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lesson-num { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 15px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); font-size: 24px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 15px; }
.lesson-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta .icon { width: 16px; height: 16px; color: var(--accent); }
.lesson-dots { display: flex; gap: 5px; margin-top: 18px; flex-wrap: wrap; }
.lesson-dots a { width: 22px; height: 6px; border-radius: 999px; background: var(--surface-3); transition: background .2s; }
.lesson-dots a.done { background: var(--green); }
.lesson-dots a.cur { background: var(--accent); width: 36px; }
.lesson-body { display: grid; gap: 16px; font-size: 17px; }
.lesson-body h2 { margin: 18px 0 0; }
.lesson-body p { margin: 0; }
.nice-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.nice-list li { position: relative; padding-left: 26px; }
.nice-list li::before { content: ''; position: absolute; left: 6px; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; position: relative; padding: 14px 18px 14px 62px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 2px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--accent-soft); color: var(--accent); }
.steps li span { color: var(--muted); font-size: 16px; }
.steps.compact li { background: var(--surface-2); padding: 12px 14px 12px 56px; }
.steps.compact li::before { left: 14px; top: 12px; width: 28px; height: 28px; font-size: 14px; }
.steps.compact li span { font-size: 14px; }
.faq { display: grid; gap: 10px; }
.faq-item { padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.faq-item b { display: flex; gap: 8px; align-items: center; }
.faq-item b .icon { color: var(--accent); width: 18px; height: 18px; }
.faq-item p { color: var(--muted); margin: 4px 0 0 !important; font-size: 16px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.col h3 { margin: 8px 0 0; }
.pros { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.pros li { padding-left: 24px; position: relative; }
.pros li::before { position: absolute; left: 0; font-weight: 800; }
.pros li.plus::before { content: '+'; color: var(--green); }
.pros li.minus::before { content: '−'; color: var(--red); }

.complete { margin-top: 36px; border-width: 2px; transition: border-color .2s, box-shadow .2s; }
.complete.ready { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.complete.done { border-color: var(--green); }
.complete h3 .icon { color: var(--green); }
.checklist { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 8px 4px; }
.checklist input { position: absolute; opacity: 0; }
.cb { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid var(--border-2); display: grid; place-items: center; transition: all .15s; margin-top: 1px; }
.checklist input:checked + .cb { background: var(--green); border-color: var(--green); }
.checklist input:checked + .cb::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); }
.checklist input:focus-visible + .cb { outline: 2px solid var(--accent); outline-offset: 2px; }
.complete-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.lesson-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; max-width: 48%; transition: background .15s; }
.lesson-nav a:hover { background: var(--surface); color: var(--text); }
.lesson-nav a span { display: grid; }
.lesson-nav small { font-size: 12px; color: var(--faint); }
.lesson-nav .nx { text-align: right; margin-left: auto; }

.link-card { display: flex; align-items: center; gap: 16px; padding: 18px 20px; transition: border-color .15s, transform .15s; }
.link-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.link-card > span:nth-child(2) { flex: 1; display: grid; }
.link-card > .icon { color: var(--accent); }

/* ============ Схемы аккордов ============ */
.chord-svg { width: 100%; max-width: 130px; display: block; overflow: visible; }
.chord-svg.lg { max-width: 200px; }
.cs-fret { stroke: var(--faint); stroke-width: 1.4; }
.cs-str { stroke: var(--muted); }
.cs-nut { fill: var(--text); }
.cs-dot { fill: var(--accent); }
.cs-fn { fill: var(--accent-ink); font-size: 10.5px; font-weight: 800; text-anchor: middle; font-family: inherit; }
.cs-open { fill: none; stroke: var(--text); stroke-width: 1.8; }
.cs-mute { stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; }
.cs-note { fill: var(--faint); font-size: 9px; font-weight: 700; text-anchor: middle; font-family: inherit; }
.cs-base { fill: var(--muted); font-size: 11px; font-weight: 700; text-anchor: end; }

.chords-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.legend-inline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.legend-inline .lg-ico { margin-left: 8px; }
.chord-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.chord-grid.inline { grid-template-columns: repeat(auto-fill, minmax(180px, 220px)); }
.chord-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; justify-items: center; transition: border-color .15s, transform .15s; }
.chord-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.chord-diag { width: 100%; display: grid; place-items: center; padding: 6px; border-radius: 14px; transition: background .15s; }
.chord-diag:hover { background: var(--surface-2); }
.chord-meta { text-align: center; display: grid; line-height: 1.3; }
.chord-meta b { font-size: 22px; }
.chord-meta span { color: var(--muted); font-size: 13px; }
.chord-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.mini-chord { display: grid; justify-items: center; gap: 2px; padding: 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); transition: border-color .15s, background .15s; }
.mini-chord:hover { border-color: var(--accent); }
.mini-chord .chord-svg { width: 92px; }
.mini-chord b { font-size: 16px; }
.mini-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.changes-w { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.cw-pair { display: flex; align-items: center; gap: 10px; }
.cw-arrow { font-size: 26px; color: var(--accent); font-weight: 800; }
.cw-text { flex: 1; min-width: 200px; display: grid; gap: 6px; justify-items: start; }
.cw-text p { margin: 0 !important; }

.explain { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.explain-diag { display: grid; justify-items: center; gap: 8px; }
.explain-diag b { font-size: 24px; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 16px; }
.legend li { display: flex; gap: 14px; align-items: flex-start; }
.lg-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; font-weight: 800; font-size: 13px; }
.lg-ico.sm { width: 20px; height: 20px; font-size: 11px; }
.lg-ico.dot { border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.lg-ico.open { border-radius: 50%; border: 2px solid var(--text); width: 22px; height: 22px; margin: 3px; }
.lg-ico.open.sm { width: 16px; height: 16px; margin: 2px; }
.lg-ico.mute { color: var(--red); font-size: 18px; }
.lg-ico.lines.v { background: repeating-linear-gradient(90deg, var(--muted) 0 2px, transparent 2px 7px); }
.lg-ico.lines.h { background: linear-gradient(var(--text) 0 4px, transparent 4px), repeating-linear-gradient(180deg, transparent 0 7px, var(--faint) 7px 9px); }
.hand-card { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.hand-svg { width: 220px; max-width: 100%; }
.hand-card .nice-list { flex: 1; min-width: 200px; }
.hand-skin { fill: var(--surface-3); stroke: var(--border-2); stroke-width: 1.5; }
.hand-num { fill: var(--accent); }
.hand-txt { fill: var(--accent-ink); font-weight: 800; font-size: 14px; text-anchor: middle; }
.hand-t { fill: var(--muted); font-weight: 800; font-size: 14px; text-anchor: middle; }

.tab-card { overflow: hidden; }
.tab { margin: 0 0 10px; padding: 16px; border-radius: 12px; background: var(--surface-2); overflow-x: auto; font: 600 15px/1.5 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--muted); }

/* ============ Модальное окно и уведомления ============ */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(8, 6, 4, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal-backdrop.open { opacity: 1; }
.modal { position: relative; width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--border-2); border-radius: 26px; padding: 28px; box-shadow: var(--shadow); transform: translateY(12px) scale(.98); transition: transform .25s; }
.modal-backdrop.open .modal { transform: none; }
.modal-x { position: absolute; top: 14px; right: 14px; }
.chord-modal { display: grid; grid-template-columns: 220px 1fr; gap: 28px; }
.cm-diag { display: grid; place-items: start center; padding-top: 10px; }
.cm-info h2 { margin: 10px 0 14px; font-size: 34px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cm-info h2 small { font-size: 16px; color: var(--muted); font-weight: 600; }
.cm-info h3 { margin-top: 22px; }
.cm-info .tip { margin: 16px 0; font-size: 15px; }
.finger-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finger-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.fnum { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; flex: none; }
.fnum.o { background: transparent; border: 2px solid var(--text); }
.fnum.x { background: transparent; color: var(--red); font-size: 16px; }

#toast-root { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--border-2); box-shadow: var(--shadow); font-weight: 600; font-size: 15px; opacity: 0; transform: translateY(10px); transition: all .25s; }
.toast.show { opacity: 1; transform: none; }
.toast.ok { border-color: var(--green); }
.toast .icon { color: var(--accent); }

/* ============ Устройство гитары, струны ============ */
.anat { display: grid; gap: 16px; }
.anatomy-svg { width: 100%; display: block; }
.g-fret { stroke: var(--fret); stroke-width: 2; opacity: .8; }
.g-inlay { fill: #efe6d6; opacity: .85; }
.g-str { stroke: #ddd6cb; stroke-linecap: round; }
.g-peg { fill: #d8cfc2; stroke: #8d8174; stroke-width: 1.5; }
.g-peg-stem { fill: #8d8174; }
.g-post { fill: #efe6d6; }
.hot { cursor: pointer; }
.hot .hl { fill: transparent; stroke: transparent; stroke-width: 3; pointer-events: all; transition: fill .2s, stroke .2s; }
.hot:hover .hl { fill: rgba(255, 155, 61, .16); stroke: rgba(255, 155, 61, .5); }
.hot.on .hl { fill: rgba(255, 155, 61, .28); stroke: var(--accent); }
.anat-info { padding: 14px 18px; border-radius: 14px; background: var(--surface-2); min-height: 92px; }
.anat-info h3 { color: var(--accent); margin-bottom: 4px; }
.anat-info p { margin: 0 !important; font-size: 16px; }

.strings-w { display: grid; gap: 4px; }
.strings-w > p { margin-bottom: 8px !important; }
.string-row { display: grid; grid-template-columns: 32px 108px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-align: left; transition: background .15s; }
.string-row:hover { background: var(--surface-2); }
.sr-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.sr-name b { font-size: 17px; }
.sr-name i { font-style: normal; color: var(--muted); font-weight: 700; margin-left: 4px; }
.sr-line { position: relative; height: 24px; display: flex; align-items: center; }
.sr-line span { display: block; width: 100%; border-radius: 3px; background: linear-gradient(180deg, #f0e9df, #a69c90); }
.string-row.ring .sr-line span { animation: vibrate .9s ease-out; }
.string-row.ring .sr-num { background: var(--accent); color: var(--accent-ink); }
@keyframes vibrate {
  0%, 100% { transform: none; }
  10% { transform: translateY(-3px) scaleY(1.5); } 20% { transform: translateY(3px) scaleY(1.5); }
  30% { transform: translateY(-2px); } 40% { transform: translateY(2px); }
  55% { transform: translateY(-1px); } 70% { transform: translateY(1px); }
}
.sr-hint { color: var(--faint); font-size: 13px; min-width: 0; }
.strings-w .btn { justify-self: start; margin-top: 8px; }

/* ============ Метроном ============ */
.metro { display: grid; gap: 16px; }
.metro.mini { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.metro-dots { display: flex; gap: 10px; justify-content: center; }
.metro-dots span { width: 16px; height: 16px; border-radius: 50%; background: var(--surface-3); transition: background .06s, transform .06s; }
.metro-dots span.acc { box-shadow: inset 0 0 0 2px var(--accent); }
.metro-dots span.on { background: var(--accent-2); transform: scale(1.25); box-shadow: 0 0 18px var(--accent); }
.metro-dots span.acc.on { background: var(--accent); }
.metro-dots.big { gap: 16px; padding: 10px 0; }
.metro-dots.big span { width: 30px; height: 30px; }
.metro-main { display: flex; align-items: center; justify-content: center; gap: 22px; }
.round-btn { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); transition: all .15s; }
.round-btn:hover { border-color: var(--accent); }
.round-btn .icon { width: 24px; height: 24px; }
.bpm-big { display: grid; text-align: center; min-width: 170px; }
.bpm-big b { font-size: 84px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.bpm-big span { color: var(--muted); font-size: 14px; }
.bpm-big em { font-style: normal; color: var(--accent); font-weight: 700; font-size: 14px; margin-top: 4px; }
.metro-opts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ============ Бой ============ */
.strum { display: grid; gap: 16px; }
.strum-desc { margin: 0 !important; font-size: 15px; min-height: 1.5em; }
.strum-stage { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px; border-radius: 16px; background: var(--surface-2); }
.strum-chord { display: flex; align-items: center; gap: 14px; }
.sc-diag .chord-svg { width: 96px; }
.sc-name { font-size: 40px; font-weight: 800; line-height: 1; min-width: 70px; }
.sc-next { color: var(--muted); font-size: 14px; margin-top: 6px; }
.strum-slots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.slot { display: grid; justify-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: background .06s, border-color .06s, transform .06s; }
.slot.off { background: transparent; }
.slot.now { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-3px); }
.slot-ico { height: 40px; display: grid; place-items: center; }
.slot-cnt { font-size: 13px; font-weight: 700; color: var(--muted); }
.slot.off .slot-cnt { color: var(--faint); font-weight: 600; }
.stroke { width: 22px; height: 38px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.stroke.d { stroke: var(--accent); }
.stroke.u { stroke: var(--blue); }
.stroke.x { stroke: var(--red); }
.stroke-b { font-size: 12px; font-weight: 800; color: var(--green); }
.stroke-rest { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); opacity: .5; }
.controls { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }

/* ============ Гриф ============ */
.fb { display: grid; gap: 14px; }
.fb-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: space-between; }
.fb-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
.fb-svg { width: 100%; display: block; }
.fb-wood { fill: var(--wood); }
.fb-fret { stroke: var(--fret); stroke-width: 2.5; }
.fb-nut { fill: #efe6d6; }
.fb-inlay { fill: #efe6d6; opacity: .45; }
.fb-str { stroke: #ddd6cb; }
.fb-snum { fill: var(--muted); font-size: 13px; font-weight: 800; text-anchor: middle; }
.fb-fnum { fill: var(--faint); font-size: 12px; font-weight: 700; text-anchor: middle; }
.fb-hot { fill: transparent; cursor: pointer; }
.fb-hot:hover { fill: rgba(255, 155, 61, .18); }
.fb-mark circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.fb-mark text { fill: var(--text); font-size: 11px; font-weight: 800; text-anchor: middle; }
.fb-mark.sharp circle { stroke: var(--faint); }
.fb-mark.sharp text { fill: var(--muted); font-size: 9.5px; }
.fb-mark.flash circle, .fb-mark.q circle { fill: var(--accent); stroke: #fff; }
.fb-mark.flash text, .fb-mark.q text { fill: var(--accent-ink); font-size: 12px; }
.fb-mark.q circle { animation: pulse 1.2s infinite; }
.fb-mark.q.ok circle { fill: var(--green); animation: none; }
.fb-mark.q.bad circle { fill: var(--red); animation: none; }
@keyframes pulse { 50% { stroke-width: 6; } }
.fb-info { padding: 12px 16px; border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.fb-quiz { display: grid; gap: 12px; }
.fb-q-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-score { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--accent); }
.fb-q { margin: 0 !important; font-weight: 600; }
.fb-answers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.fb-answers .btn { font-weight: 600; }
.fb-answers .btn b { color: var(--accent); }
.fb-answers .btn.right { background: var(--green-soft); border-color: var(--green); }
.fb-answers .btn.wrong { background: var(--red-soft); border-color: var(--red); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* ============ Тюнер ============ */
.tuner-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.tuner { display: grid; justify-items: center; gap: 10px; text-align: center; transition: border-color .2s, box-shadow .2s; }
.tuner .tip { text-align: left; font-size: 14px; }
.gauge { width: 100%; max-width: 380px; }
.gauge-svg { width: 100%; display: block; }
.g-arc { fill: none; stroke: var(--surface-3); stroke-width: 10; stroke-linecap: round; }
.g-ok { fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round; }
.g-tick { stroke: var(--faint); stroke-width: 2; stroke-linecap: round; }
.g-tick.big { stroke: var(--muted); stroke-width: 3; }
.g-lbl { fill: var(--muted); font-size: 12px; font-weight: 700; }
.g-lbl.end { text-anchor: end; }
.needle { transform-origin: 150px 160px; transition: transform .15s ease-out; }
.needle line { stroke: var(--text); stroke-width: 4; stroke-linecap: round; }
.needle circle { fill: var(--text); }
.tuner.ok .needle line, .tuner.ok .needle circle { stroke: var(--green); fill: var(--green); }
.tuner.low .needle line, .tuner.high .needle line { stroke: var(--accent); }
.tuner.low .needle circle, .tuner.high .needle circle { fill: var(--accent); }
.tuner.ok { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.tuner-note { display: grid; line-height: 1; margin-top: -10px; }
.tuner-note span { font-size: 72px; font-weight: 800; letter-spacing: -.03em; }
.tuner-note sup { font-size: 24px; color: var(--muted); margin-left: 2px; }
.tuner-note small { color: var(--muted); font-size: 14px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tuner-hint { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 12px; font-weight: 700; background: var(--surface-2); }
.tuner.ok .tuner-hint { background: var(--green-soft); color: var(--green); }
.tuner.low .tuner-hint, .tuner.high .tuner-hint { background: var(--accent-soft); color: var(--accent); }
.tuner.err .tuner-hint { background: var(--red-soft); color: var(--red); }
.tuner.idle .tuner-note span { color: var(--faint); }
.string-picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 14px 0; }
.sp-btn { position: relative; display: grid; justify-items: center; gap: 0; padding: 10px 2px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); transition: all .15s; line-height: 1.2; }
.sp-btn:hover { border-color: var(--border-2); }
.sp-btn b { font-size: 12px; color: var(--muted); }
.sp-btn span { font-size: 22px; font-weight: 800; }
.sp-btn small { font-size: 11px; color: var(--muted); }
.sp-btn.auto { font-weight: 800; font-size: 13px; align-content: center; }
.sp-btn.on { border-color: var(--accent); background: var(--accent-soft); }
.sp-btn.detected { border-color: var(--accent-2); box-shadow: 0 0 0 2px var(--accent-soft); }
.sp-ok { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; display: none; place-items: center; }
.sp-ok .icon { width: 12px; height: 12px; stroke-width: 3.5; }
.sp-btn.tuned .sp-ok { display: grid; }

/* ============ Тренажёры ============ */
.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); white-space: nowrap; transition: all .15s; }
.tabs a:hover { color: var(--text); }
.tabs a.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.tabs a.on .icon { color: var(--accent); }
.tabs + div { display: grid; gap: 16px; }
.settings { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: flex-end; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.settings > label:not(.switch) { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.stage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.stage-now, .stage-next { display: grid; justify-items: center; gap: 4px; text-align: center; }
.stage-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stage-name { font-size: 56px; font-weight: 800; line-height: 1.05; min-height: 1.05em; }
.stage-diag .chord-svg { width: 190px; max-width: 190px; }
.stage-next { opacity: .6; }
.stage-next-name { font-size: 28px; font-weight: 800; min-height: 1.2em; }
.stage-next-diag .chord-svg { width: 100px; }
.stage-foot { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding-top: 6px; }
.stage-foot p { margin: 0; }
.pair { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pair-x { font-size: 24px; color: var(--accent); font-weight: 800; }
.stage.minute { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.minute-pair { display: flex; gap: 14px; }
.minute-clock { font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.minute-clock.warn { color: var(--red); }
.minute-result { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.minute-result label { display: grid; gap: 6px; font-weight: 700; text-align: left; }
.minute-bars { display: flex; gap: 8px; align-items: flex-end; height: 130px; padding-top: 10px; }
.minute-bars div { flex: 1; max-width: 44px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.minute-bars span { width: 100%; border-radius: 8px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); }
.minute-bars small { font-weight: 700; font-size: 12px; color: var(--muted); }

/* ============ Песни ============ */
.song-list { display: grid; gap: 12px; margin-bottom: 24px; }
.song-card { display: flex; align-items: center; gap: 16px; transition: border-color .15s, transform .15s; }
.song-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.song-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--accent-ink); flex: none; }
.song-ico .icon { width: 24px; height: 24px; }
.song-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.song-body b { font-size: 18px; }
.chord-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.chord-chips span { padding: 2px 10px; border-radius: 8px; background: var(--surface-2); font-weight: 800; font-size: 13px; color: var(--accent); }
.song { max-width: 820px; margin: 0 auto; }
.song .card { margin-bottom: 16px; }
.song-tools { display: flex; gap: 12px 20px; flex-wrap: wrap; align-items: center; margin: 20px 0 14px; }
.song-tools .btn.on { border-color: var(--accent); background: var(--accent-soft); }
.lyrics { padding: 28px clamp(18px, 4vw, 36px); line-height: 1.35; }
.verse { margin-bottom: 1.6em; }
.verse:last-child { margin-bottom: 0; }
.line { display: flex; flex-wrap: wrap; align-items: flex-end; margin-bottom: .55em; }
.seg { display: inline-flex; flex-direction: column; }
.seg .ch { min-height: 1.35em; font-size: .78em; font-weight: 800; color: var(--accent); cursor: pointer; padding-right: .5em; }
.seg .ch:hover { text-decoration: underline; }
.seg .ly { white-space: pre; }

.empty { text-align: center; padding: 80px 0; }
.empty .lead { margin: 0 auto 24px; }

/* ============ Адаптив ============ */
@media (max-width: 1100px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .two-col, .tuner-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}
@media (max-width: 860px) {
  .app { display: block; }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: sticky; top: 0; z-index: 20; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  .topbar .brand { font-size: 17px; padding: 0; gap: 10px; }
  .topbar .brand small { font-size: 12px; }
  .topbar-actions { display: flex; gap: 8px; }
  .topbar .practice-btn { height: 38px; padding: 0 14px; }
  .topbar .icon-btn { width: 38px; height: 38px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 4px; padding-bottom: max(6px, env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--muted); font-size: 10px; font-weight: 700; min-width: 0; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar a .icon { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--accent); }
  main { padding: 20px 16px calc(96px + env(safe-area-inset-bottom)); }
  #toast-root { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .lead { font-size: 16px; }
  .card { padding: 18px; border-radius: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stats .stat:last-child { grid-column: auto; }
  .tools { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool { padding: 16px; }
  .week { gap: 6px; padding: 16px 12px 10px; }
  .wk-bar { height: 90px; }
  .hero-actions .btn { flex: 1; }
  .lesson-body { font-size: 16px; }
  .lr-time, .lesson-row .badge { display: none; }
  .lesson-row { padding: 12px 14px; }
  .module-head { gap: 12px; }
  .steps li { padding: 12px 14px 12px 54px; }
  .steps li::before { left: 12px; top: 12px; width: 30px; height: 30px; }
  .explain { grid-template-columns: 1fr; justify-items: center; }
  .explain .legend { justify-self: stretch; }
  .chord-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chord-grid.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chord-card { padding: 12px; }
  .chord-actions .btn { padding: 0 10px; }
  .chord-modal { grid-template-columns: 1fr; gap: 10px; }
  .cm-diag .chord-svg { max-width: 160px; }
  .modal { padding: 22px 18px; border-radius: 22px; }
  .strum-stage { grid-template-columns: 1fr; gap: 14px; padding: 14px; }
  .strum-chord { justify-content: center; }
  .slot-ico { height: 32px; }
  .stroke { width: 18px; height: 30px; }
  .controls .btn.primary { flex: 1 0 100%; }
  .stage { grid-template-columns: 1fr; }
  .stage-next { display: flex; gap: 12px; align-items: center; justify-content: center; }
  .stage-next .stage-label { order: 0; }
  .stage-next-diag { display: none; }
  .stage-name { font-size: 48px; }
  .bpm-big b { font-size: 68px; }
  .bpm-big { min-width: 120px; }
  .metro-main { gap: 12px; }
  .metro-opts .seg-ctl, .metro-opts .btn { flex: 1 1 100%; justify-content: center; }
  .metro-opts .seg-ctl button { flex: 1; }
  .string-row { grid-template-columns: 30px 92px 1fr; gap: 10px; }
  .sr-hint { display: none; }
  .string-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tuner-note span { font-size: 60px; }
  .minute-clock { font-size: 72px; }
  .lesson-nav a { max-width: 100%; }
  .lesson-nav { flex-direction: column; }
  .lesson-nav .nx { margin-left: 0; justify-content: flex-end; }
  .complete-actions .btn { flex: 1 1 100%; }
  .hand-card { justify-content: center; }
  .song-card .badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
