/* ============================================================
   ШАБЛОН 002 — LIGHT COFFEE · Полный CSS
   ============================================================ */

/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  --bg-page: #ede7dd;
  --bg-card: #faf7f1;
  --bg-card-2: #f2ebe0;
  --bg-checklist: #efe0cc;
  --bg-progress: #e0d6c4;
  --bg-progress-seg: #d0c4b0;

  --text-primary: #3a322a;
  --text-secondary: #6e6659;
  --text-heading: #2e2620;

  --accent: #8b5a3c;
  --accent-hover: #6e462d;
  --accent-green: #5a7d4f;
  --accent-red: #a04f68;

  --border: #d0c4b0;
  --border-light: #e0d6c4;

  --c-1: #8b5a3c;
  --c-2: #4a8b3a;
  --c-3: #c47229;
  --c-4: #8a5a8a;
  --c-5: #c45050;
  --c-6: #3a8a6a;
  --c-7: #c49a29;
  --c-8: #4a7a9a;
  --c-9: #a8794a;
  --c-10: #5a8a3a;
  --c-11: #9a5aaa;
  --c-12: #2e8a7a;

  --font: 'Ubuntu', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   ОБЛОЖКА (index.html)
   ============================================================ */
.cover {
  background: linear-gradient(135deg, #efe0cc 0%, #e0d6c4 100%);
  border-radius: 20px;
  padding: clamp(30px, 6vw, 60px) clamp(22px, 5vw, 50px);
  margin-bottom: 34px;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cover-emoji {
  font-size: clamp(60px, 12vw, 90px);
  line-height: 1;
  margin-bottom: 18px;
  display: block;
}
.cover-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-card);
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.cover h1 {
  font-size: clamp(32px, 7vw, 60px);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.cover-subtitle {
  font-size: clamp(17px, 4vw, 22px);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 26px;
  line-height: 1.6;
}
.cover-meta {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.cover-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cover-meta-num {
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.cover-meta-label {
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* ============================================================
   СЕТКА 12 БЛОКОВ (index.html)
   ============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
  margin-bottom: 40px;
}
.module-card {
  border-radius: 14px;
  padding: 24px 24px 22px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 90, 60, 0.18);
  filter: brightness(0.97);
}
.module-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
}

.module-card:nth-child(1)  { background: #efe0cc; } .module-card:nth-child(1)::before  { background: var(--c-1); }
.module-card:nth-child(2)  { background: #d8e0d2; } .module-card:nth-child(2)::before  { background: var(--c-2); }
.module-card:nth-child(3)  { background: #ecd9be; } .module-card:nth-child(3)::before  { background: var(--c-3); }
.module-card:nth-child(4)  { background: #e0d8c8; } .module-card:nth-child(4)::before  { background: var(--c-4); }
.module-card:nth-child(5)  { background: #ebd8ce; } .module-card:nth-child(5)::before  { background: var(--c-5); }
.module-card:nth-child(6)  { background: #d2dcd0; } .module-card:nth-child(6)::before  { background: var(--c-6); }
.module-card:nth-child(7)  { background: #e8dac6; } .module-card:nth-child(7)::before  { background: var(--c-7); }
.module-card:nth-child(8)  { background: #d8dee0; } .module-card:nth-child(8)::before  { background: var(--c-8); }
.module-card:nth-child(9)  { background: #e8dcd0; } .module-card:nth-child(9)::before  { background: var(--c-9); }
.module-card:nth-child(10) { background: #dae0d6; } .module-card:nth-child(10)::before { background: var(--c-10); }
.module-card:nth-child(11) { background: #e0d4dc; } .module-card:nth-child(11)::before { background: var(--c-11); }
.module-card:nth-child(12) { background: #d4dcd8; } .module-card:nth-child(12)::before { background: var(--c-12); }

.module-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.module-card-num {
  background: var(--bg-card);
  color: var(--accent);
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 26px;
  border: 3px solid currentColor;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
.module-card:nth-child(1)  .module-card-num { color: var(--c-1); }
.module-card:nth-child(2)  .module-card-num { color: var(--c-2); }
.module-card:nth-child(3)  .module-card-num { color: var(--c-3); }
.module-card:nth-child(4)  .module-card-num { color: var(--c-4); }
.module-card:nth-child(5)  .module-card-num { color: var(--c-5); }
.module-card:nth-child(6)  .module-card-num { color: var(--c-6); }
.module-card:nth-child(7)  .module-card-num { color: var(--c-7); }
.module-card:nth-child(8)  .module-card-num { color: var(--c-8); }
.module-card:nth-child(9)  .module-card-num { color: var(--c-9); }
.module-card:nth-child(10) .module-card-num { color: var(--c-10); }
.module-card:nth-child(11) .module-card-num { color: var(--c-11); }
.module-card:nth-child(12) .module-card-num { color: var(--c-12); }
.module-card:hover .module-card-num {
  box-shadow: 0 0 0 4px currentColor, 0 3px 10px rgba(0,0,0,0.1);
}

.module-card-emoji { font-size: 34px; line-height: 1; }
.module-card h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 6px;
}
.module-card p {
  font-size: 15px;
  color: #5a5246;
  line-height: 1.6;
  flex: 1;
}
.module-card-meta {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.module-card-tag {
  font-size: 12px;
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 14px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,0.06);
}
.module-card-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.module-card-progress-bar {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.module-card-progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}
.module-card-progress-pct {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  min-width: 44px;
  text-align: right;
}
.module-card:nth-child(1)  .module-card-progress-fill { background: var(--c-1); }
.module-card:nth-child(2)  .module-card-progress-fill { background: var(--c-2); }
.module-card:nth-child(3)  .module-card-progress-fill { background: var(--c-3); }
.module-card:nth-child(4)  .module-card-progress-fill { background: var(--c-4); }
.module-card:nth-child(5)  .module-card-progress-fill { background: var(--c-5); }
.module-card:nth-child(6)  .module-card-progress-fill { background: var(--c-6); }
.module-card:nth-child(7)  .module-card-progress-fill { background: var(--c-7); }
.module-card:nth-child(8)  .module-card-progress-fill { background: var(--c-8); }
.module-card:nth-child(9)  .module-card-progress-fill { background: var(--c-9); }
.module-card:nth-child(10) .module-card-progress-fill { background: var(--c-10); }
.module-card:nth-child(11) .module-card-progress-fill { background: var(--c-11); }
.module-card:nth-child(12) .module-card-progress-fill { background: var(--c-12); }

/* ============================================================
   СТАТИСТИКА НА ГЛАВНОЙ (index.html)
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: 16px;
  margin: 30px 0;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
}
.stat-num {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   CTA (index.html)
   ============================================================ */
.cta-block {
  background: linear-gradient(135deg, #8b5a3c 0%, #6e462d 100%);
  border-radius: 16px;
  padding: clamp(28px, 5vw, 46px) clamp(22px, 4vw, 40px);
  text-align: center;
  color: var(--bg-card);
  margin-bottom: 34px;
}
.cta-block h2 {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-block p {
  font-size: clamp(16px, 3.8vw, 19px);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ============================================================
   БАЗА
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  padding: 30px 14px;
  line-height: 1.75;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

input, textarea, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

.container { max-width: 1200px; margin: 0 auto; width: 100%; }

/* ============================================================
   ЗАГОЛОВКИ СЕКЦИЙ
   ============================================================ */
.section-title {
  font-size: clamp(22px, 5vw, 32px);
  font-weight: 700;
  color: var(--text-heading);
  margin: 40px 0 8px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-title::before {
  content: "";
  display: block;
  width: 6px;
  height: 30px;
  background: var(--accent);
  border-radius: 3px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: clamp(15px, 3.6vw, 18px);
  margin-bottom: 24px;
}

/* ============================================================
   МОДУЛИ (blocks.html)
   ============================================================ */
.module {
  background: var(--bg-card);
  border-radius: 14px;
  padding: clamp(22px, 5vw, 42px);
  margin-bottom: 28px;
  border: 1px solid var(--border);
  scroll-margin-top: 20px;
}
.module-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.module-num {
  background: var(--accent);
  color: var(--bg-card);
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 30px;
}
.module-header > div:last-child { flex: 1; min-width: 0; }
.module-header h2 {
  font-size: clamp(24px, 5.5vw, 34px);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
  margin-bottom: 6px;
}
.module-header small {
  display: block;
  color: var(--text-secondary);
  font-size: clamp(17px, 4vw, 19px);
  font-weight: 400;
  line-height: 1.5;
}
.module h3 {
  font-size: clamp(20px, 4.8vw, 24px);
  font-weight: 700;
  color: var(--accent);
  margin: 30px 0 14px;
  line-height: 1.35;
}
.module p, .module li {
  font-size: clamp(19px, 4.4vw, 22px);
  color: var(--text-primary);
  line-height: 1.75;
}
.module ul { list-style: none; margin-top: 12px; }
.module ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 14px;
}
.module ul li::before {
  content: "○";
  position: absolute;
  left: 0;
  font-size: 15px;
  top: 6px;
  color: var(--accent);
}

/* ШАПКА СТРАНИЦЫ БЛОКОВ */
.blocks-header {
  background: var(--bg-card);
  border-radius: 14px;
  padding: clamp(22px, 5vw, 36px);
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
}
.back-link:hover { opacity: 0.7; }
.blocks-header h1 {
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

/* ============================================================
   ЧЕК-ЛИСТ
   ============================================================ */
.checklist {
  background: var(--bg-checklist);
  border-left: 5px solid var(--accent);
  padding: 20px 24px;
  border-radius: 10px;
  margin-top: 18px;
}
.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 0;
  font-size: clamp(19px, 4.5vw, 23px);
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}
.checklist label:last-child { border-bottom: none; }
.checklist input[type="checkbox"] {
  margin-top: 5px;
  width: 30px;
  height: 30px;
  min-width: 30px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ============================================================
   ТАБЛИЦЫ
   ============================================================ */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(18px, 4.2vw, 21px);
  min-width: 100%;
}
th, td {
  padding: clamp(14px, 3vw, 18px) clamp(14px, 3vw, 20px);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  white-space: nowrap;
  line-height: 1.6;
  background: transparent;
}
th {
  color: var(--text-secondary);
  font-size: clamp(15px, 3.5vw, 17px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  background: var(--bg-progress);
}
td { color: var(--text-primary); }
tbody tr:nth-child(odd)  { background: var(--bg-card); }
tbody tr:nth-child(even) { background: var(--bg-card-2); }
tbody tr:hover           { background: #e8ddc9; transition: background 0.15s; }
tbody tr:last-child td   { border-bottom: none; }

/* ============================================================
   АККОРДЫ (модуль 2) — сетка 2 колонки, на мобиле 1
   ============================================================ */
.chords {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 24px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.chord-card {
  padding: clamp(14px, 3vw, 24px) clamp(8px, 2vw, 16px) clamp(16px, 3vw, 22px);
  text-align: center;
  overflow: hidden;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.chord-card svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
}

/* Фон карточек: мажор — зелёный, минор — красный */
.chord-card.major { background: #eaf1e6; }
.chord-card.minor { background: #f5eaec; }

/* ============================================================
   ДНИ / НЕДЕЛЯ
   ============================================================ */
.week-progress {
  background: var(--bg-progress);
  border-radius: 20px;
  padding: 5px;
  margin-bottom: 26px;
  display: flex;
  gap: 5px;
  overflow: hidden;
}
.week-progress .seg {
  flex: 1;
  height: 10px;
  border-radius: 5px;
  background: var(--bg-progress-seg);
}
.week-progress .seg.done { background: var(--accent); }

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.day-card {
  padding: 20px 16px 22px;
  position: relative;
  overflow: hidden;
  border-left: 5px solid var(--accent);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.day-card:nth-child(1)  { background: #efe0cc; }
.day-card:nth-child(2)  { background: #d8e0d2; }
.day-card:nth-child(3)  { background: #ecd9be; }
.day-card:nth-child(4)  { background: #e0d8c8; }
.day-card:nth-child(5)  { background: #ebd8ce; }
.day-card:nth-child(6)  { background: #d2dcd0; }
.day-card:nth-child(7)  { background: #e8dac6; }
.day-card:nth-child(8)  { background: #d4dcd0; }
.day-card:nth-child(9)  { background: #edd6cc; }
.day-card:nth-child(10) { background: #d8ded2; }
.day-card:nth-child(5n) { border-right: none; }
.day-card:nth-last-child(-n+5) { border-bottom: none; }
.day-emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 10px;
  display: block;
}
.day-label {
  font-size: 20px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  line-height: 1.2;
}
.day-task {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.55;
  font-weight: 500;
}
.day-task b { color: var(--accent); font-weight: 700; }

/* ============================================================
   ФИНАЛЬНАЯ ПРОВЕРКА
   ============================================================ */
.final-check {
  background: var(--bg-checklist);
  border-radius: 12px;
  padding: 26px 24px;
  border-top: 5px solid var(--accent);
  margin-top: 20px;
}
.final-check h3 {
  font-size: clamp(21px, 4.8vw, 27px);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.final-check h3 .check-icon { font-size: 32px; line-height: 1; }
.final-check .checklist { background: transparent; border-left: none; padding: 0; }

/* ============================================================
   СХЕМА ОКТАВЫ
   ============================================================ */
.octave-wrap {
  background: #efe0cc;
  border-radius: 14px;
  padding: clamp(16px, 3.5vw, 28px) clamp(12px, 2.5vw, 20px);
  margin-top: 24px;
  overflow-x: auto;
}
.octave-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* ============================================================
   ОБРАТНАЯ СВЯЗЬ
   ============================================================ */
.feedback-block {
  margin-top: 28px;
  padding: 20px 22px;
  background: #f2ebe0;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}
.feedback-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: block;
}
.feedback-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.feedback-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: #faf7f1;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.3;
}
.feedback-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.feedback-btn[data-state="understood"] { border-color: var(--accent-green); }
.feedback-btn[data-state="understood"].active {
  background: var(--accent-green);
  color: #fff;
  border-color: var(--accent-green);
}
.feedback-btn[data-state="partial"] { border-color: #c49a29; }
.feedback-btn[data-state="partial"].active {
  background: #c49a29;
  color: #fff;
  border-color: #c49a29;
}
.feedback-btn[data-state="lost"] { border-color: #c45050; }
.feedback-btn[data-state="lost"].active {
  background: #c45050;
  color: #fff;
  border-color: #c45050;
}
.feedback-btn-icon { font-size: 20px; line-height: 1; }

/* ============================================================
   ПОНИМАНИЕ КУРСА
   ============================================================ */
.understanding-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 34px;
  border: 1px solid var(--border);
}
.understanding-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 20px;
  background: var(--bg-checklist);
  border-radius: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.understanding-total-num {
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  color: var(--accent-green);
  line-height: 1;
  transition: color 0.3s;
}
.understanding-total-label {
  font-size: clamp(14px, 3.2vw, 17px);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  max-width: 200px;
}
.understanding-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 22px;
}
.understanding-charts .chart-card { min-height: 360px; }

.feedback-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 18px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.feedback-reset:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ============================================================
   АНАЛИТИКА
   ============================================================ */
.analytics-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 34px;
  border: 1px solid var(--border);
}
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 22px;
  margin-top: 24px;
}
.chart-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 18px 18px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.chart-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  text-align: center;
}
.chart-wrap {
  flex: 1;
  position: relative;
  min-height: 240px;
}
.chart-card canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ============================================================
   ТРЕКЕР
   ============================================================ */
.tracker-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: clamp(20px, 4vw, 36px);
  margin-bottom: 34px;
  border: 1px solid var(--border);
}
.tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.tracker-header h3 {
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  color: var(--text-heading);
}
.tracker-date {
  font-size: 15px;
  color: var(--text-secondary);
  background: var(--bg-checklist);
  padding: 6px 14px;
  border-radius: 16px;
  font-weight: 600;
}
.tracker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}
.tracker-table th, .tracker-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}
.tracker-table th {
  background: var(--bg-checklist);
  color: var(--text-secondary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.tracker-table tbody tr:nth-child(odd) { background: var(--bg-card); }
.tracker-table tbody tr:nth-child(even) { background: #f5efe6; }
.tracker-table tbody tr:last-child td { border-bottom: none; }
.tracker-table input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
  cursor: pointer;
}
.tracker-table .status-done { color: var(--accent-green); font-weight: 700; }
.tracker-table .status-pending { color: #b0885c; font-weight: 500; }

.tracker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.tracker-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================
   ПОЛЗУНКИ ПРОГРЕССА В ТРЕКЕРЕ
   ============================================================ */
.tracker-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
  max-width: 200px;
}
.tracker-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-progress);
  border-radius: 4px;
  overflow: hidden;
}
.tracker-progress-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.tracker-table .status-pending .tracker-progress-fill {
  background: var(--accent);
}
.tracker-progress-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 35px;
  text-align: right;
}

/* ============================================================
   CTA и кнопки
   ============================================================ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg-card);
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}
.cta-btn:hover { background: var(--accent-hover); transform: translateY(-2px); }

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: var(--bg-card);
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  margin-top: 20px;
}
.export-btn:hover { background: var(--accent-hover); }

/* УМНАЯ КНОПКА */
.smart-cta { margin-top: 28px; margin-bottom: 20px; }
.smart-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
  border-radius: 14px;
  text-decoration: none;
  color: #faf7f1;
  background: linear-gradient(135deg, #8b5a3c 0%, #6e462d 100%);
  box-shadow: 0 6px 20px rgba(139, 90, 60, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}
.smart-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(139, 90, 60, 0.35);
}
.smart-btn-icon { font-size: 34px; line-height: 1; flex-shrink: 0; }
.smart-btn-content { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.smart-btn-title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.smart-btn-sub { font-size: 14px; font-weight: 400; opacity: 0.85; line-height: 1.4; }
.smart-btn-arrow { font-size: 26px; font-weight: 700; flex-shrink: 0; transition: transform 0.3s; }
.smart-btn:hover .smart-btn-arrow { transform: translateX(6px); }
.smart-hint {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: #8a8275;
  line-height: 1.5;
}

/* ============================================================
   НАВИГАЦИЯ В КОНЦЕ
   ============================================================ */
.blocks-footer-links {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}
.blocks-footer-links h3 {
  font-size: clamp(20px, 4.5vw, 24px);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  text-align: center;
}
.blocks-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.blocks-footer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 24px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.blocks-footer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(139, 90, 60, 0.15);
  border-color: var(--accent);
}
.blocks-footer-icon { font-size: 36px; line-height: 1; }
.blocks-footer-title { font-size: 18px; font-weight: 700; color: var(--accent); }
.blocks-footer-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer {
  text-align: center;
  padding: 32px 0;
  color: #8a8275;
  font-size: 15px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

/* ============================================================
   ТЕХНИЧЕСКИЕ КАРТОЧКИ (модуль 7 — бас и аккорды)
   ============================================================ */
.technique-card {
  background: transparent;
  border-radius: 16px;
  padding: clamp(20px, 4vw, 32px);
  margin-top: 22px;
  border: 2px solid var(--border-light);
}
.technique-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}
.technique-num {
  background: var(--accent);
  color: var(--bg-card);
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
}
.technique-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  line-height: 1.3;
}
.technique-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.scheme-wrap {
  background: transparent;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}
.scheme-wrap svg {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
}
.technique-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
.technique-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f2ebe0;
  border-radius: 10px;
  border-left: 4px solid var(--accent);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}
.step-num {
  background: var(--accent);
  color: var(--bg-card);
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.technique-step b { color: var(--accent); font-weight: 700; }

/* ============================================================
   БЛОК B МОДУЛЯ 7 — 4 ОТДЕЛЬНЫХ КАРТОЧКИ АККОРДОВ
   ============================================================ */
.chords-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.technique-step-card {
  background: #faf7f1;
  border-radius: 14px;
  padding: 20px 16px 24px;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-card-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.step-card-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-weight: 500;
}

.technique-step-card svg {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
}

/* На мобильном — 4 карточки в один столбец */
@media (max-width: 620px) {
  .chords-grid-4 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .technique-step-card svg {
    max-width: 100%;
  }
}

/* На печати — 2 колонки */
@media print {
  .chords-grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) and (min-width: 701px) {
  .week-grid { grid-template-columns: repeat(3, 1fr); }
  .day-card:nth-child(5n) { border-right: 1px solid var(--border); }
  .day-card:nth-child(3n) { border-right: none; }
  .day-card:nth-last-child(-n+5) { border-bottom: 1px solid var(--border); }
  .day-card:nth-last-child(-n+1) { border-bottom: none; }
}

@media (max-width: 700px) and (min-width: 481px) {
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .day-card:nth-child(3n),
  .day-card:nth-child(5n) { border-right: 1px solid var(--border); }
  .day-card:nth-child(2n) { border-right: none; }
  .day-card:nth-last-child(-n+5) { border-bottom: 1px solid var(--border); }
  .day-card:nth-last-child(-n+2) { border-bottom: none; }
}

/* Мобильные экраны: аккорды в 1 столбец */
@media (max-width: 720px) {
  .chords {
    grid-template-columns: 1fr;
  }
  .chord-card svg {
    max-width: 100%;
  }
}

/* Мобильные: 4 аккорда блока B модуля 7 — в 1 столбец */
@media (max-width: 620px) {
  table, thead, tbody, th, td, tr { display: block; }
  thead { display: none; }
  tr {
    border-radius: 10px;
    margin-bottom: 14px;
    padding: 16px 20px;
  }
  td {
    border-bottom: none;
    padding: 8px 0;
    white-space: normal;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: clamp(18px, 4.2vw, 20px);
  }
  td::before {
    content: attr(data-label);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    flex-shrink: 0;
    padding-top: 3px;
  }
  tbody tr:nth-child(odd)  { background: var(--bg-card); }
  tbody tr:nth-child(even) { background: var(--bg-card-2); }

  .tracker-table { font-size: 14px; }
  .tracker-table th, .tracker-table td { padding: 10px 12px; }
  .smart-btn { padding: 16px 20px; gap: 14px; }
  .smart-btn-icon { font-size: 28px; }
  .smart-btn-title { font-size: 17px; }
  .smart-btn-sub { font-size: 13px; }
  .feedback-buttons { grid-template-columns: 1fr; }
  .feedback-btn { justify-content: flex-start; padding: 12px 16px; }

  /* Технический блок */
  .technique-header { flex-wrap: wrap; }
  .technique-num { width: 38px; height: 38px; min-width: 38px; font-size: 17px; }
  .technique-title { font-size: 17px; }
  .scheme-wrap svg { max-width: 100%; }

  /* 4 карточки аккордов — в 1 столбец */
  .chords-grid-4 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .technique-step-card svg {
    max-width: 100%;
  }

  /* Ползунки в трекере на мобильном */
  .tracker-progress-wrap {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .week-grid { grid-template-columns: 1fr; }
  .day-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .day-card:last-child { border-bottom: none; }
  .day-emoji { font-size: 40px; }
  .day-label { font-size: 22px; }
  .day-task { font-size: 18px; }

  .chord-card { padding: 10px 6px 14px; }
  .chord-card svg { max-width: 100%; }
}

@media (max-width: 360px) {
  body { padding: 20px 10px; font-size: 20px; }
  .module { padding: 18px; }
  .module-num { width: 54px; height: 54px; min-width: 54px; font-size: 26px; }
}

/* ============================================================
   ПЕЧАТЬ В PDF
   ============================================================ */
@media print {
  html, body { overflow-x: visible; }
  body {
    background: #ede7dd !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    padding: 12px;
    font-size: 14px;
  }
  .export-btn, .cta-btn, .smart-cta, .feedback-reset {
    display: none !important;
  }
  .analytics-section, .understanding-section {
    display: none !important;
  }
  .module, .chord-card, .octave-wrap, .day-card, .module-card,
  .tracker-section, .final-check, .checklist, .feedback-block,
  .technique-card, .technique-step-card {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
  .module { padding: 16px !important; margin-bottom: 14px !important; }
  .module-header { gap: 14px !important; margin-bottom: 14px !important; padding-bottom: 12px !important; }
  .module-num { width: 48px !important; height: 48px !important; min-width: 48px !important; font-size: 22px !important; }
  .module-header h2 { font-size: 20px !important; }
  .module-header small { font-size: 14px !important; }
  .module h3 { font-size: 17px !important; margin: 14px 0 8px !important; }
  .module p, .module li {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
  .module ul li { margin-bottom: 6px !important; padding-left: 18px !important; }
  .checklist { padding: 12px 16px !important; }
  .checklist label { padding: 8px 0 !important; font-size: 13px !important; gap: 10px !important; }
  .checklist input[type="checkbox"] { width: 18px !important; height: 18px !important; min-width: 18px !important; }
  table, thead, tbody, th, td, tr { display: revert !important; }
  th, td { padding: 8px 10px !important; font-size: 12px !important; white-space: normal !important; }
  .chords { grid-template-columns: repeat(2, 1fr) !important; }
  .chords-grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .week-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .modules-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .cover { padding: 18px !important; margin-bottom: 14px !important; }
  .cover h1 { font-size: 26px !important; }
  .cover-emoji { font-size: 42px !important; margin-bottom: 8px !important; }
  .cover-badge { font-size: 11px !important; padding: 4px 12px !important; margin-bottom: 10px !important; }
  .cover-subtitle { font-size: 14px !important; margin-bottom: 12px !important; }
  .cover-meta { gap: 16px !important; padding-top: 14px !important; margin-top: 14px !important; }
  .cover-meta-num { font-size: 24px !important; }
  .cover-meta-label { font-size: 10px !important; }
  .feedback-block { padding: 12px 14px !important; margin-top: 14px !important; }
  .feedback-title { font-size: 12px !important; margin-bottom: 8px !important; }
  .feedback-buttons { grid-template-columns: repeat(3, 1fr) !important; gap: 6px !important; }
  .feedback-btn { padding: 8px 6px !important; font-size: 12px !important; }
  .feedback-btn-icon { font-size: 14px !important; }
  .tracker-section { padding: 14px !important; }
  .tracker-header { margin-bottom: 12px !important; }
  .tracker-header h3 { font-size: 16px !important; }
  .tracker-date { font-size: 12px !important; padding: 4px 10px !important; }
  .tracker-footer { margin-top: 12px !important; padding-top: 12px !important; }
  .tracker-total { font-size: 14px !important; }
  .scheme-wrap { padding: 0 !important; }
  .technique-card { padding: 14px !important; }
  .module-card:hover, .smart-btn:hover, .cta-btn:hover,
  .feedback-btn:hover, .blocks-footer-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }
}