* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f6f3ef;
  color: #1d1a16;
  -webkit-font-smoothing: antialiased;
}
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: #14100d; color: #fff;
  position: sticky; top: 0; z-index: 5;
}
.logo { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; background: #fff; }
.topbar-title { font-weight: 700; font-size: 17px; line-height: 1.15; }
.topbar-sub { font-size: 12.5px; opacity: .75; }
main { max-width: 560px; margin: 0 auto; padding: 18px 14px 40px; }
.card {
  background: #fff; border-radius: 16px; padding: 20px 18px;
  box-shadow: 0 1px 3px rgba(20,16,13,.08);
  margin-bottom: 14px;
}
.hero { text-align: left; }
h1 { font-size: 24px; margin: 4px 0 10px; }
h2 { font-size: 20px; margin: 2px 0 10px; }
p { line-height: 1.5; margin: 0 0 12px; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
input[type="tel"] {
  width: 100%; font-size: 17px; padding: 13px 14px;
  border: 1.5px solid #d8d2c9; border-radius: 12px; outline: none;
}
input[type="tel"]:focus { border-color: #b4552d; }
.btn {
  display: block; width: 100%; border: none; cursor: pointer;
  font-size: 16.5px; font-weight: 700; padding: 14px 16px; border-radius: 12px;
  margin-top: 14px;
}
.btn.primary { background: #b4552d; color: #fff; }
.btn.primary:disabled { opacity: .55; }
.btn.ghost { background: transparent; color: #6b6259; font-weight: 600; border: 1.5px solid #ddd6cc; }
.btn.ghost.small { width: auto; display: inline-block; padding: 8px 12px; font-size: 14px; margin: 0 0 12px; }
.error { color: #b3261e; font-weight: 600; margin-top: 12px; }
.fineprint { font-size: 13px; color: #6b6259; margin-top: 14px; }
.progress-wrap { margin-top: 6px; }
.progress-bar { height: 12px; background: #eee7dd; border-radius: 99px; overflow: hidden; }
#progress-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #d98e4a, #b4552d); border-radius: 99px; transition: width .4s ease; }
.progress-text { font-size: 13.5px; color: #6b6259; margin-top: 8px; font-weight: 600; }
.lesson-row {
  display: flex; align-items: center; gap: 13px; width: 100%;
  background: #fff; border: none; text-align: left; cursor: pointer;
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(20,16,13,.08);
}
.lesson-row.locked { opacity: .55; cursor: default; }
.lesson-badge {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; background: #eee7dd; color: #6b6259;
}
.lesson-row.done .lesson-badge { background: #2e7d32; color: #fff; }
.lesson-row.current .lesson-badge { background: #b4552d; color: #fff; }
.lesson-mid { display: flex; flex-direction: column; gap: 2px; }
.lesson-name { font-weight: 700; font-size: 16px; }
.lesson-meta { font-size: 13px; color: #6b6259; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #b4552d; margin-bottom: 6px; }
#lesson-body p { font-size: 16px; }
#lesson-body figure { margin: 14px 0; }
#lesson-body img { width: 100%; border-radius: 12px; display: block; }
#lesson-body figcaption { font-size: 13px; color: #6b6259; margin-top: 6px; text-align: center; }
.big-emoji { font-size: 44px; margin-bottom: 6px; }
