/* ── Аист в небе · Платформа · Дизайн-система ───────────────────────────── */

:root {
  --bg:          #F8F4EF;
  --surface:     #FFFFFF;
  --surface-2:   #F2EDE7;
  --accent:      #7D9E91;
  --accent-light:#D6E8E2;
  --accent-dark: #527A6D;
  --rose:        #C9969F;
  --rose-light:  #F5EAEC;
  --gold:        #C4A86B;
  --gold-light:  #F5EED8;
  --text:        #261F1B;
  --muted:       #9A9089;
  --border:      #EDE7E1;
  --shadow:      0 2px 12px rgba(38,31,27,0.07);
  color-scheme:  light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111009; --surface: #1A1714; --surface-2: #201D1A;
    --accent-light: #1E3530; --rose-light: #2D1A1D; --gold-light: #2A2318;
    --text: #EDE7E1; --muted: #7A716A; --border: #2A2520;
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111009; --surface: #1A1714; --surface-2: #201D1A;
  --accent-light: #1E3530; --rose-light: #2D1A1D; --gold-light: #2A2318;
  --text: #EDE7E1; --muted: #7A716A; --border: #2A2520;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  color-scheme: dark;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transition: transform 0.25s ease;
}
.sidebar-logo {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo-text {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}
.sidebar-logo-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.sidebar-nav {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-item.active {
  color: var(--accent-dark);
  background: var(--accent-light);
  border-left-color: var(--accent-dark);
  font-weight: 500;
}
.nav-item svg { flex-shrink: 0; }
.nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 20px 4px;
}
.sidebar-pay-block {
  padding: 14px 16px;
  margin: 0 12px 8px;
  background: linear-gradient(135deg, var(--accent-light) 0%, #f0ebe8 100%);
  border-radius: 12px;
  border: 1px solid var(--accent);
}
.btn-pay-sidebar {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-dark);
  color: #fff;
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.btn-pay-sidebar:hover { opacity: 0.88; color: #fff; }

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
}

/* Main content */
.main {
  margin-left: 220px;
  flex: 1;
  min-height: 100vh;
  padding: max(32px, env(safe-area-inset-top)) 32px 60px;
  max-width: 1100px;
}

/* Sidebar help link */
.sidebar-help {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 12.5px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
}
.sidebar-help:hover { color: var(--text); text-decoration: none; }

/* Nav badge */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  background: var(--rose);
  color: #fff;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  margin-left: auto;
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; padding: 72px 16px 80px; }
  .mobile-topbar { display: flex !important; }
}

/* Mobile topbar */
.mobile-topbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  align-items: center;
  padding: 0 16px;
  z-index: 50;
  gap: 12px;
}
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* ── Typography ── */
h1, .h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 8px;
}
h2, .h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 6px;
}
h3, .h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 20px 0 10px;
}
.lead {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
}
.card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-sub {
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Badges ── */
.badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-green  { background: var(--accent-light);  color: var(--accent-dark); }
.badge-rose   { background: var(--rose-light);    color: var(--rose); }
.badge-gold   { background: var(--gold-light);    color: var(--gold); }
.badge-muted  { background: var(--surface-2);     color: var(--muted); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, opacity 0.15s;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; text-decoration: none; }
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-secondary { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); }
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: 8px; }
.btn-danger { background: #c0392b; color: #fff; }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.field input, .field select, .field textarea {
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
}
.field textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* ── Scale bar ── */
.scale-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.scale-row:last-child { border-bottom: none; }
.scale-topic { flex: 1; font-size: 13px; }
.scale-bar-wrap { width: 140px; flex-shrink: 0; }
.scale-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.scale-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-dark);
  transition: width 0.4s ease;
}
.scale-fill.high { background: var(--rose); }
.scale-num {
  width: 28px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ── Lesson card ── */
.lesson-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 11px;
  margin-bottom: 6px;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.lesson-item:hover { background: var(--surface-2); }
.lesson-item.lesson-locked { opacity: 0.75; }
.lesson-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.lesson-num.done    { background: var(--accent-light); color: var(--accent-dark); }
.lesson-num.current { background: var(--accent-dark); color: #fff; }
.lesson-num.locked  { background: var(--surface-2); color: var(--muted); }
.lesson-title { font-size: 13.5px; flex: 1; }
.lesson-title.locked { color: var(--muted); }
.lesson-status-icon { font-size: 14px; }

/* ── Progress ── */
.prog-bar-wrap { margin: 16px 0; }
.prog-bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.prog-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--accent-dark);
  transition: width 0.5s ease;
}
.prog-label { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }

/* ── Alert ── */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-green { background: var(--accent-light); color: var(--accent-dark); border: 1px solid var(--accent); }
.alert-rose  { background: var(--rose-light);   color: var(--rose); }
.alert-gold  { background: var(--gold-light);   color: var(--gold); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Login page ── */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.login-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
}
.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #2AABEE;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-bottom: 14px;
}
.tg-btn:hover { background: #1a9bde; }

/* ── Admin ── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--surface-2); }
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  flex: 1;
  min-width: 100px;
}
.stat-num { font-size: 26px; font-weight: 600; font-family: 'Cormorant Garamond', serif; }
.stat-label { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ── Video placeholder ── */
.video-placeholder {
  background: var(--surface-2);
  border-radius: 12px;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px dashed var(--border);
}

/* ── Paywall block ── */
.paywall-block {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 16px;
  margin: 24px 0;
}
.paywall-lock { font-size: 36px; margin-bottom: 10px; }
.paywall-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.paywall-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ── Floating Telegram chat button ── */
.tg-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.tg-float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2AABEE;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(42,171,238,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.tg-float-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,171,238,0.5); color: #fff; }
.tg-float-label {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--muted);
  display: none;
}
@media (max-width: 600px) {
  .tg-float { bottom: 16px; right: 14px; }
  .tg-float-btn { padding: 11px 16px; font-size: 13px; }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .main { padding: 70px 16px 80px; }
  h1, .h1 { font-size: 26px; }
  h2, .h2 { font-size: 20px; }
  .login-card { padding: 28px 20px; }
  .scale-bar-wrap { width: 90px; }
  .stat-box { padding: 10px 14px; }
}

/* ══════════════════════════════════════════════════════
   НОВЫЕ КОМПОНЕНТЫ — версия 2
══════════════════════════════════════════════════════ */

/* Логотип птица */
.sidebar-logo-bird {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}
.sidebar-logo-route {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Sidebar pay block — тёмный */
.sidebar-pay-dark {
  margin: 0 12px 12px;
  background: var(--accent-dark);
  border-radius: 11px;
  padding: 14px;
}
.sidebar-pay-dark-txt {
  font-size: 11px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
  margin-bottom: 10px;
}
.sidebar-pay-dark-btn {
  display: block;
  background: #fff;
  color: var(--accent-dark);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 9px;
  border-radius: 7px;
  text-decoration: none;
  transition: opacity .15s;
}
.sidebar-pay-dark-btn:hover { opacity: .88; color: var(--accent-dark); text-decoration: none; }

/* ── Dashboard hero ── */
.dash-hero {
  display: grid;
  grid-template-columns: 1fr 160px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 14px;
}
.dash-hero-text { padding: 22px 20px; }
.dash-hero-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 5px;
}
.dash-hero-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 5px;
}
.dash-hero-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; font-weight: 300; }
.dash-hero-photo {
  background: linear-gradient(160deg,#c5bba8 0%,#b8ccb5 50%,#c8c0a0 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dash-hero-photo-hint {
  font-size: 11px;
  color: rgba(0,0,0,.3);
  font-style: italic;
  text-align: center;
  padding: 8px;
}
@media (max-width: 600px) {
  .dash-hero { grid-template-columns: 1fr; }
  .dash-hero-photo { display: none; }
}

/* ── Psychologist card ── */
.psych-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border-radius: 11px;
  padding: 12px 14px;
}
.psych-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8c8b0, #c8b8a0);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: rgba(0,0,0,.2);
  overflow: hidden;
}
.psych-avatar img { width: 100%; height: 100%; object-fit: cover; }
.psych-name { font-size: 13px; font-weight: 500; color: var(--text); }
.psych-role { font-size: 11.5px; color: var(--muted); margin-top: 1px; }

/* ── Next step block ── */
.next-step-block {
  background: var(--surface-2);
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.next-step-thumb {
  width: 52px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(145deg, #c0b8a8, #b8c8b0);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: rgba(0,0,0,.2);
}
.next-step-title { font-size: 13px; font-weight: 500; line-height: 1.3; }
.next-step-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ── Stats included ── */
.stats-incl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.incl-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 14px 10px;
  text-align: center;
}
.incl-icon { font-size: 20px; margin-bottom: 4px; }
.incl-num {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--accent-dark);
  line-height: 1;
}
.incl-label { font-size: 11px; color: var(--muted); margin-top: 3px; line-height: 1.3; }
@media (max-width: 600px) {
  .stats-incl { grid-template-columns: repeat(2, 1fr); }
}

/* ── Expandable lesson card ── */
.lesson-card-exp {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  transition: box-shadow .2s;
}
.lesson-card-exp:hover { box-shadow: var(--shadow); }
.lesson-card-head {
  display: flex;
  align-items: stretch;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.lesson-card-photo {
  width: 90px;
  flex-shrink: 0;
  background: linear-gradient(145deg, #c8beac, #b4c8b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: rgba(0,0,0,.18);
}
.lesson-card-photo.pc-sage { background: linear-gradient(145deg,#b8ccb5,#a4bfa8); }
.lesson-card-photo.pc-warm { background: linear-gradient(145deg,#c8b8a0,#d4c4a8); }
.lesson-card-photo.pc-olive { background: linear-gradient(145deg,#b4c0a0,#c4cebc); }
.lesson-card-photo.pc-blush { background: linear-gradient(145deg,#c8b4b0,#d4c0bc); }
.lesson-card-info { flex: 1; padding: 12px 14px; min-width: 0; }
.lesson-card-num {
  font-size: 10.5px;
  color: var(--muted);
  margin-bottom: 2px;
  font-weight: 500;
  letter-spacing: .04em;
}
.lesson-card-name { font-size: 14px; font-weight: 500; color: var(--text); line-height: 1.3; }
.lesson-card-hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.lesson-card-right {
  padding: 12px 14px 12px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  flex-shrink: 0;
}
.lesson-chev {
  color: var(--muted);
  transition: transform .22s;
  flex-shrink: 0;
}
.lesson-card-exp.open .lesson-chev { transform: rotate(90deg); }
.lesson-card-body {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px 18px;
}
.lesson-card-exp.open .lesson-card-body { display: block; }

/* ── Why block ── */
.why-block {
  background: var(--accent-light);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.why-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.why-text { font-size: 13.5px; line-height: 1.65; color: var(--accent-dark); }

/* ── Topics list ── */
.topics-list-exp {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 10px 0;
}
.topic-item-exp {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.5;
}
.topic-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-top: 7px; flex-shrink: 0; }

/* ── Materials grid ── */
.mats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.mat-item {
  background: var(--surface-2);
  border-radius: 9px;
  padding: 11px 13px;
}
.mat-icon { font-size: 18px; margin-bottom: 4px; }
.mat-name { font-size: 12.5px; font-weight: 500; color: var(--text); }
.mat-desc { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.35; }
.mat-status { margin-top: 7px; }
.pill-lock {
  display: inline-flex; align-items: center; gap: 4px;
  background: #f2ede4; color: #9a8060;
  padding: 3px 9px; border-radius: 20px; font-size: 11px;
}
.pill-ok {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--accent-light); color: var(--accent-dark);
  padding: 3px 9px; border-radius: 20px; font-size: 11px;
}
@media (max-width: 500px) {
  .mats-grid { grid-template-columns: 1fr; }
  .lesson-card-photo { width: 64px; }
}

/* ── Benefit block ── */
.benefit-block {
  background: var(--gold-light);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: #6a5820;
  line-height: 1.65;
  margin-top: 14px;
}

/* ── Lesson photo hero ── */
.lesson-photo-hero {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #c5bba8 0%, #b8ccb5 50%, #c8c0a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 130px;
  margin-bottom: 18px;
}
.lesson-photo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 70% 30%, rgba(255,255,255,.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(107,142,107,.15) 0%, transparent 50%);
}
.lesson-photo-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 0 20px; width: 100%; }
.lesson-photo-hero .badge { z-index: 1; }
.lesson-photo-badges { position: absolute; top: 12px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 2; }

/* Quote style for lesson intro */
.lesson-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  color: var(--accent-dark);
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ── Payment screen ── */
.pay-hero-block {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--surface-2) 100%);
  border: 1.5px solid var(--accent);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
}
.pay-hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--accent-dark);
  margin-bottom: 8px;
  text-wrap: balance;
}
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.5; }
.check-mark { color: var(--accent-dark); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.price-row { display: flex; align-items: baseline; gap: 6px; justify-content: center; margin: 14px 0 20px; }
.price-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 52px; font-weight: 500; color: var(--accent-dark); line-height: 1;
}
.price-cur { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 24px; color: var(--accent-dark); }
.btn-stripe { background: #635BFF; color: #fff; }
.btn-stripe:hover { background: #4f49cc; opacity: 1; }
.pay-steps { display: flex; flex-direction: column; gap: 12px; }
.pay-step { display: flex; gap: 12px; align-items: flex-start; }
.pay-step-n {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--accent-dark); color: #fff;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pay-step-text { font-size: 13.5px; color: var(--text); line-height: 1.6; }

/* ── Lesson card head layout ── */
.lesson-card-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  padding: 14px 16px;
  min-width: 0;
}
.lesson-num-exp {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.lesson-num-exp.done { background: var(--accent-dark); color: #fff; }
.lesson-num-exp.current { background: var(--accent); color: #fff; }
.lesson-num-exp.locked { background: var(--border); color: var(--muted); }
.lesson-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.lesson-card-title.locked { color: var(--muted); }
.lesson-emoji { margin-right: 4px; }
.lesson-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.lesson-card-head .lesson-chev { margin: auto 14px auto 0; }

/* ── lesson-photo-hero color variants ── */
.lesson-photo-hero.pc-sage { background: linear-gradient(135deg, #b8ccb5 0%, #c5d8c2 50%, #a4bfa8 100%); }
.lesson-photo-hero.pc-warm { background: linear-gradient(135deg, #c8b8a0 0%, #d4c4a8 50%, #bfa88a 100%); }
.lesson-photo-hero.pc-olive { background: linear-gradient(135deg, #b4c0a0 0%, #c4cebc 50%, #a4b490 100%); }
.lesson-photo-hero.pc-blush { background: linear-gradient(135deg, #c8b4b0 0%, #d4c0bc 50%, #bca0a0 100%); }

/* ── lesson-quote padding ── */
.lesson-quote {
  padding: 14px 18px;
  background: var(--accent-light);
  border-radius: 12px;
  margin-bottom: 16px;
}

/* ── btn-stripe as block ── */
.btn-stripe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .2s;
  margin-bottom: 20px;
}
