/* Кабинет и клиентские страницы — поверх дизайн-токенов colors_and_type.css */

/* Палитра кабинета приведена к дизайн-макету «Личный кабинет» (тёплая, как админка).
   Грузится после colors_and_type.css → переопределяет токены только в кабинете;
   лендинги (styles.css) сохраняют свой коралл. */
:root {
  --paper:      #F3EEE4;
  --card:       #FBF7EE;
  --card-warm:  #F0E9DA;
  --peach:      #FBEAD9;
  --coral:      #D98A5B;
  --coral-dark: #BE6E3E;
  --ochre:      #C9912F;
  --sage:       #7C8E64;
  --sky:        #5E8FA8;
  --ink:        #43301F;
  --ink-soft:   #7A6552;
  --line:       #E7DECB;
  --danger:     #C2706A;
  --accent:     #D98A5B;
  --accent-hover: #BE6E3E;
  --link:       #BE6E3E;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: var(--s-5);
}

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 237, 217, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px dashed var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-3);
}
.site-header__logo img { height: 40px; display: block; }
.site-header__nav { display: flex; align-items: center; gap: var(--s-4); }
.site-header__user { font-family: var(--font-body); font-weight: 600; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Полосы/секции ---------- */
.page { padding-block: var(--s-7) var(--s-8); }
.page__head { margin-bottom: var(--s-6); }
.page__head .eyebrow { margin-bottom: var(--s-2); display: block; }

/* ---------- Кнопки-формы (используем .btn из токенов) ---------- */
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 8px 16px; font-size: 0.875rem; }

/* ---------- Карточка (общая) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--s-6);
}

/* ---------- Авторизация ---------- */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; }
.auth-card { width: 100%; max-width: 440px; text-align: center; }
.auth-card h1 { font-size: 1.9rem; margin: 0 0 var(--s-2); }
.auth-card .lede { margin-bottom: var(--s-5); }
.field { text-align: left; margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: var(--s-1); color: var(--ink); }
.field input[type=email], .field input[type=text], .field input[type=password] {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 160ms ease;
}
.field input:focus { outline: none; border-color: var(--coral); }
.muted-channels { margin-top: var(--s-5); color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- Флеш-сообщения ---------- */
.flash { border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin-bottom: var(--s-5); font-size: 0.95rem; }
.flash--success { background: rgba(157, 173, 131, 0.18); border: 1px solid var(--sage); color: var(--ink); }
.flash--info { background: rgba(168, 197, 214, 0.18); border: 1px solid var(--sky); color: var(--ink); }
.flash--error { background: rgba(178, 80, 64, 0.12); border: 1px solid var(--danger); color: var(--ink); }
.magic-link { word-break: break-all; font-size: 0.85rem; }

/* ---------- Мои курсы ---------- */
.courses-grid { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.course-card {
  flex: 1 1 280px;
  max-width: 360px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.course-card__img { aspect-ratio: 16 / 10; background: var(--peach); overflow: hidden; }
.course-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.course-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.course-card__meta { color: var(--ink-soft); font-size: 0.9rem; margin-top: auto; }

/* ---------- Профиль ---------- */
.profile-grid { display: grid; grid-template-columns: 160px 1fr; gap: var(--s-3) var(--s-4); align-items: center; }
.profile-grid dt { color: var(--ink-soft); font-size: 0.9rem; }
.profile-grid dd { margin: 0; font-weight: 600; }

/* ---------- Страница курса: уроки ---------- */
.lessons { display: flex; flex-direction: column; gap: var(--s-4); }
.lesson {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.lesson__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); }
.lesson__num {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--peach); color: var(--coral-dark);
  font-weight: 700; font-family: var(--font-display);
}
.lesson__title { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); margin: 0; }
.lesson__body { padding: 0 var(--s-5) var(--s-5); }

.lock-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  background: var(--card-warm); color: var(--ink-soft);
  border: 1px dashed var(--line); border-radius: var(--r-pill);
  padding: 4px 12px; font-size: 0.8rem; font-weight: 600;
}
.lesson--locked { opacity: 0.92; }
.lesson--locked .lesson__title { color: var(--ink-soft); }
.lesson__teaser {
  padding: var(--s-4) var(--s-5) var(--s-5);
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(217,200,172,0.10) 10px, rgba(217,200,172,0.10) 20px);
}

/* ---------- Блоки контента ---------- */
.cblock { margin-top: var(--s-5); }
.cblock + .cblock { padding-top: var(--s-5); border-top: 1px dashed var(--line); }
.cblock__label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: var(--s-2); }
.cblock__video {
  aspect-ratio: 16/9; border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--ink); color: var(--paper); display: grid; place-items: center; text-align: center;
}
.cblock__video a { color: var(--peach); }
.cblock__text { color: var(--ink); }
.cblock__link a { font-weight: 600; }

/* Чек-лист (персональные отметки) */
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.checklist li { margin: 0; }
.checklist label { display: flex; align-items: center; gap: var(--s-3); cursor: pointer; padding: 8px 12px; border-radius: var(--r-md); transition: background 140ms ease; }
.checklist label:hover { background: var(--card-warm); }
.checklist input { width: 20px; height: 20px; accent-color: var(--coral); flex: none; }
.checklist .done { color: var(--ink-soft); text-decoration: line-through; }

/* ---------- Главная (минимальная) ---------- */
.hero { text-align: center; padding-block: var(--s-9) var(--s-8); }
.hero h1 { margin: 0 0 var(--s-4); }
.hero .lede { max-width: 620px; margin-inline: auto; margin-bottom: var(--s-6); }
.hero__cta { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px dashed var(--line); margin-top: var(--s-8); }
.site-footer__inner { padding-block: var(--s-5); color: var(--ink-soft); font-size: 0.85rem; text-align: center; }

@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; gap: var(--s-1); }
  .profile-grid dd { margin-bottom: var(--s-3); }
}

/* ---------- Checkout / страница продукта ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--s-7); align-items: start; }
.checkout-illustration { width: 100%; border-radius: var(--r-lg); margin-top: var(--s-5); box-shadow: var(--shadow-md); display: block; }
.checkout-form h3 { font-size: 1.4rem; }
.consents { margin: var(--s-4) 0 var(--s-5); }
.consents label { align-items: flex-start; }
.consents input { margin-top: 2px; }
.consents span { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 820px) { .checkout-grid { grid-template-columns: 1fr; } }

/* ---------- Колесо баланса ---------- */
.wheel-layout { display: grid; grid-template-columns: 420px 1fr; gap: var(--s-6); align-items: start; }
.wheel-card { display: grid; place-items: center; }
.wheel-svg { width: 100%; max-width: 400px; height: auto; }
.wheel-legend h3 { margin-top: 0; }
.legend-item { padding: var(--s-3) 0; border-bottom: 1px dashed var(--line); }
.legend-item:last-child { border-bottom: none; }
.legend-item__head { display: flex; align-items: center; gap: var(--s-3); justify-content: space-between; }
.legend-score { font-weight: 700; color: var(--coral-dark); font-family: var(--font-display); }
.legend-item--locked { opacity: 0.7; }
.quiz { display: flex; flex-direction: column; gap: var(--s-5); }
.quiz-param { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.quiz-param__head { display: flex; align-items: center; gap: var(--s-3); }
.quiz-param__head h3 { margin: 0; }
.quiz-param--locked { opacity: 0.85; }
.quiz-locked { margin-top: var(--s-3); padding: var(--s-4); border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--ink-soft); background: repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(217,200,172,0.10) 10px, rgba(217,200,172,0.10) 20px); }
.quiz-question { margin-top: var(--s-4); }
.quiz-question__text { font-weight: 600; margin-bottom: var(--s-2); }
@media (max-width: 860px) { .wheel-layout { grid-template-columns: 1fr; } }

/* ---------- Мои заказы ---------- */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { text-align: left; padding: var(--s-3) var(--s-4); }
.orders-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.orders-table tbody tr { border-bottom: 1px solid var(--card-warm); }
.orders-table tbody tr:last-child { border-bottom: none; }
.orders-table td { color: var(--ink); font-size: 0.95rem; }
.order-badge { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 600; }
.order-badge--free, .order-badge--paid { background: rgba(124,142,100,0.18); color: #5F8A4E; }
.order-badge--pending { background: rgba(201,145,47,0.16); color: var(--ochre); }
.order-badge--failed { background: rgba(194,112,106,0.14); color: var(--danger); }

/* ============================================================
   ДИЗАЙН-СИСТЕМА КАБИНЕТА — макет «Личный кабинет»
   (точные значения из cabinet-screens*.jsx)
   ============================================================ */
:root {
  --ink-mute: #A4927C;
  --surface:  #FFFFFF;
  --sage-soft: #E9EEDF; --sage-deep: #3E5A36;
  --sky-soft:  #E0EBF0; --sky-deep:  #4E7689;
  --amber-soft:#F6EBCF;
  --rose-soft: #F6E2DF;
  --green:     #5F8A4E; --green-soft: #E6EFDD;
}

.cab-wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 28px; }
.cab-body { background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
.cab-main { flex: 1; }

/* ---------- Шапка кабинета ---------- */
.cabh { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.cabh__bar { height: 66px; display: flex; align-items: center; justify-content: space-between; }
.cabh__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.cabh__brand img { height: 36px; }
.cabh__brand-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #3E5A36; line-height: 1; }
.cabh__brand-sub { font-family: var(--font-hand, 'Caveat', cursive); font-size: 12px; color: var(--ink-mute); margin-top: 1px; }
.cabh__user { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.cabh__user-name { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink); }
/* пользовательское меню (дропдаун в шапке) */
.cab-um { position: relative; }
.cab-um__trigger { display: flex; align-items: center; gap: 9px; cursor: pointer; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px 5px 6px; font-family: var(--font-body); }
.cab-um__trigger:hover { background: var(--card); }
.cab-um__chev { color: var(--ink-soft); transition: transform .18s; flex-shrink: 0; }
.cab-um.is-open .cab-um__chev { transform: rotate(180deg); }
.cab-um__pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px -14px rgba(91,58,41,.4); padding: 6px;
  display: none; flex-direction: column; z-index: 40; }
.cab-um.is-open .cab-um__pop { display: flex; }
.cab-um__pop a, .cab-um__pop button { text-align: left; width: 100%; background: transparent; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); padding: 10px 12px; border-radius: 9px; text-decoration: none; display: block; }
.cab-um__pop a:hover, .cab-um__pop button:hover { background: var(--card-warm); }
.cab-um__pop form { margin: 0; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.cab-um__pop form button { color: var(--danger); }
.cab-ava { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg,#E2A37F,#D9A65A); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px;
  border: 2px solid #fff; box-shadow: 0 4px 10px -4px rgba(201,120,97,.5); object-fit: cover; }
/* таб-пилюли рядом с заголовком раздела */
.cab-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cab-tabs__pill { text-decoration: none; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink-soft);
  padding: 9px 16px; border-radius: 999px; transition: background .15s, color .15s; }
.cab-tabs__pill:hover { background: var(--card-warm); color: var(--ink); }
.cab-tabs__pill.is-on { background: var(--coral); color: #fff; }
.cab-sectitle--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Подвал кабинета ---------- */
.cabf { margin-top: 50px; background: var(--ink); color: rgba(245,236,212,.72); }
.cabf__top { padding: 40px 28px 28px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; flex-wrap: wrap; max-width: 1080px; margin-inline: auto; }
.cabf__lead { max-width: 320px; }
.cabf__lead-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cabf__lead img { height: 34px; filter: brightness(0) invert(1) opacity(.85); }
.cabf__lead-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #F6EDD9; }
.cabf__lead p { font-family: var(--font-body); font-size: 13px; line-height: 1.6; margin: 0; color: rgba(245,236,212,.6); }
.cabf__cols { display: flex; gap: 50px; flex-wrap: wrap; }
.cabf__h { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,236,212,.45); margin-bottom: 10px; }
.cabf__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.cabf__col li { font-family: var(--font-body); font-size: 13px; color: rgba(245,236,212,.72); }
.cabf__bot { max-width: 1080px; margin-inline: auto; padding: 16px 28px 22px; border-top: 1px dashed rgba(245,236,212,.18);
  display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 12.5px; color: rgba(245,236,212,.5); }
.cabf__bot em { font-family: var(--font-hand, 'Caveat', cursive); font-style: normal; font-size: 16px; color: rgba(245,236,212,.75); }

/* ---------- Заголовок секции ---------- */
.cab-h1 { font-family: var(--font-display); font-weight: 700; font-size: 28px; color: var(--ink); margin: 0; letter-spacing: -.01em; }
.cab-sub { font-family: var(--font-body); font-size: 14.5px; color: var(--ink-soft); margin: 6px 0 0; }
.cab-sec { padding-top: 30px; padding-bottom: 60px; }
.cab-sec--tight { padding-top: 24px; }
.cab-sectitle { margin-bottom: 22px; }

/* ---------- Панель (карточка) ---------- */
.cpanel { background: var(--surface); border-radius: 18px; border: 1px solid var(--line); padding: 22px;
  box-shadow: 0 1px 3px rgba(91,58,41,.05), 0 14px 30px -24px rgba(91,58,41,.3); }
.cpanel--p0 { padding: 0; }
.cpanel--p10 { padding: 10px; }
.cpanel--p12 { padding: 12px; }
.cpanel--p32 { padding: 32px; }
.cpanel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cpanel-title__t { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- Кнопки (доп. виды к .btn из токенов) ---------- */
.btn--block { width: 100%; justify-content: center; }
.btn--link { background: transparent; border: none; color: var(--coral-dark); padding: 4px 0; box-shadow: none; }
.btn--link:hover { color: var(--ink); background: transparent; }
.btn--soft { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn--soft:hover { background: var(--card-warm); }
.btn--sage { background: var(--sage); color: #fff; border: none; }
.btn--danger { background: transparent; color: var(--danger); border: none; box-shadow: none; }

/* ---------- Бейдж статуса курса ---------- */
.cbadge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-body); font-weight: 700; font-size: 12px;
  padding: 5px 12px 5px 10px; border-radius: 99px; }
.cbadge__dot { position: relative; width: 8px; height: 8px; flex-shrink: 0; }
.cbadge__dot span { position: absolute; inset: 0; border-radius: 99px; }
.cbadge--active { background: var(--sage-soft); color: var(--sage); border: 1px solid rgba(124,142,100,.2); }
.cbadge--active .cbadge__dot span { background: var(--sage); }
.cbadge--free { background: var(--green-soft); color: var(--green); border: 1px solid rgba(95,138,78,.2); }
.cbadge--free .cbadge__dot span { background: var(--green); }
.cbadge--paid { background: var(--peach); color: var(--coral-dark); border: 1px solid rgba(190,110,62,.2); }
.cbadge--paid .cbadge__dot span { background: var(--coral); }
.cbadge--soon { background: var(--amber-soft); color: var(--ochre); border: 1px solid rgba(201,145,47,.2); }
.cbadge--soon .cbadge__dot span { background: var(--ochre); }

/* ---------- Прогресс-бар ---------- */
.cbar { height: 9px; border-radius: 99px; background: var(--card-warm); overflow: hidden; width: 100%; }
.cbar__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg,#C9912F,#D98A5B); }

/* ---------- Карточка курса (список «Мои курсы») ---------- */
.ccards { display: flex; flex-direction: column; gap: 20px; }
.ccard { display: grid; grid-template-columns: 300px 1fr; background: var(--surface); border-radius: 18px; border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(91,58,41,.05), 0 14px 30px -24px rgba(91,58,41,.3); overflow: hidden; text-decoration: none;
  transition: transform .15s ease; }
.ccard:hover { transform: translateY(-2px); }
.ccard__media { position: relative; min-height: 200px; background: #F5ECD8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; }
.ccard__media--blank { background: linear-gradient(135deg,#D9A65A,#E2A37F); }
.ccard__media--blank img { width: 100px; height: auto; opacity: .55; }
.ccard__body { padding: 26px; display: flex; flex-direction: column; }
.ccard__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); margin: 10px 0 8px; }
.ccard__desc { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 auto; max-width: 460px; }
.ccard__prog { margin-top: 18px; }
.ccard__prog-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.ccard__prog-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--ink); }
.ccard__prog-pct { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--coral-dark); }

/* ---------- Содержание курса: hero ---------- */
.chero { position: relative; border-radius: 22px; overflow: hidden; margin-bottom: 26px; box-shadow: 0 18px 40px -26px rgba(91,58,41,.5); }
.chero__img { width: 100%; height: 300px; object-fit: cover; display: block; }
.chero--blank { height: 300px; background: linear-gradient(135deg,#D9A65A,#E2A37F); }
.chero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(245,236,216,.96) 0%, rgba(245,236,216,.82) 38%, rgba(245,236,216,.1) 70%, transparent 100%); }
.chero__inner { position: absolute; inset: 0; padding-left: 40px; display: flex; flex-direction: column; justify-content: center; max-width: 560px; }
.chero__title { font-family: var(--font-display); font-weight: 700; font-size: 38px; color: var(--ink); margin: 14px 0 10px; letter-spacing: -.01em; }
.chero__desc { font-family: var(--font-body); font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; margin: 0; max-width: 420px; }

.cdetail { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.cdetail__h2 { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--ink); margin: 0; }
.cdetail__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.cdetail__meta { font-family: var(--font-body); font-size: 13.5px; color: var(--ink-soft); }
.crail { display: flex; flex-direction: column; gap: 22px; }

/* ---------- Список уроков (содержание) ---------- */
.clessons { display: flex; flex-direction: column; }
.clrow { display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 13px; text-decoration: none; }
.clrow + .clrow { border-top: 1px solid var(--card-warm); }
.clrow--active { background: var(--peach); }
.clrow--locked { opacity: .55; }
.clrow__n { width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; background: var(--card-warm); color: var(--ink-mute); }
.clrow__n--done { background: var(--green); color: #fff; }
.clrow__n--active { background: var(--coral); color: #fff; }
.clrow__main { flex: 1; min-width: 0; }
.clrow__t { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.clrow__meta { font-family: var(--font-body); font-size: 12px; color: var(--ink-mute); display: flex; gap: 8px; margin-top: 1px; }
.clrow__meta .done { color: var(--green); }
.clrow__meta .now { color: var(--coral-dark); font-weight: 600; }
.clrow__r { font-family: var(--font-body); font-size: 12px; color: var(--ink-mute); flex-shrink: 0; }

/* ---------- Donut прогресса ---------- */
.donut { position: relative; width: 72px; height: 72px; flex-shrink: 0; }
.donut svg { transform: rotate(-90deg); }
.donut__pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink); }
.crow-progress { display: flex; align-items: center; gap: 16px; }
.crow-progress__n { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.crow-progress__s { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.crow-access { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--card-warm);
  font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); }

/* ---------- Виджет апгрейда ---------- */
.upg { position: relative; border-radius: 18px; overflow: hidden; padding: 20px; background: linear-gradient(135deg,#4A3320,#6E5235);
  color: #F6EDD9; box-shadow: 0 16px 34px -20px rgba(74,45,30,.7); }
.upg__glow { position: absolute; top: -30px; right: -24px; width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,138,91,.55), transparent 65%); }
.upg__in { position: relative; }
.upg__badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(246,237,217,.16); font-family: var(--font-body);
  font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; color: #F6EDD9; }
.upg__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 12px 0 6px; line-height: 1.25; }
.upg__desc { font-family: var(--font-body); font-size: 13px; line-height: 1.55; margin: 0 0 16px; color: rgba(246,237,217,.78); }
.upg__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.upg__price b { font-family: var(--font-display); font-weight: 700; font-size: 24px; }
.upg__price s { font-family: var(--font-body); font-size: 12.5px; color: rgba(246,237,217,.6); }
.upg__btn { width: 100%; border: none; cursor: pointer; background: var(--coral); color: #fff; font-family: var(--font-body); font-weight: 700;
  font-size: 14.5px; padding: 12px 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }

/* ---------- Колесо диагностики (пустое, на карточке курса) ---------- */
.dwheel-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 12px; }
.dwheel-empty { font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--ink-mute); margin-top: 8px; }
.dwheel-note { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); line-height: 1.5; text-align: center; margin: 0 0 14px; }

/* ---------- Содержание урока ---------- */
.lcrumb { display: flex; align-items: center; gap: 14px; border-radius: 16px; padding: 12px 16px; margin-bottom: 22px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(91,58,41,.05); }
.lcrumb__img { width: 56px; height: 44px; object-fit: cover; border-radius: 11px; flex-shrink: 0; border: 2px solid rgba(255,255,255,.8); }
.lcrumb__c { flex: 1; min-width: 0; }
.lcrumb__k { font-family: var(--font-body); font-size: 11.5px; color: var(--coral-dark); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.lcrumb__t { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.lcrumb__btn { display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer; background: var(--peach); color: var(--coral-dark);
  font-family: var(--font-body); font-weight: 700; font-size: 13px; padding: 9px 15px; border-radius: 10px; text-decoration: none; }
.lvideo { aspect-ratio: 16/9; border-radius: 18px; background: linear-gradient(135deg,#9DAD83,#5E8FA8); display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden; box-shadow: 0 18px 38px -22px rgba(91,58,41,.5); margin-bottom: 24px; }
.lvideo__play { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.94); display: flex; align-items: center;
  justify-content: center; color: var(--coral-dark); box-shadow: 0 10px 24px -6px rgba(0,0,0,.35); }
.lgrid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: start; }
.lhead-meta { display: flex; align-items: center; gap: 10px; }
.lhead__title { font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--ink); margin: 12px 0; letter-spacing: -.01em; }
.lhead__desc { font-family: var(--font-body); font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 22px; }
.lrail { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 86px; }
.lvideo { display: flex; text-decoration: none; }
.lvideo__play svg { margin-left: 3px; }

/* HLS-плеер урока */
.vplayer { aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #1a130c;
  box-shadow: 0 18px 38px -22px rgba(91,58,41,.5); }
.vplayer video { width: 100%; height: 100%; display: block; background: #1a130c; }
.vplayer--msg { display: flex; align-items: center; justify-content: center; gap: 6px;
  color: rgba(245,236,212,.85); font-family: var(--font-body); font-size: 14px; text-align: center; padding: 16px; }
.vplayer--msg a { color: var(--peach); font-weight: 700; text-decoration: none; }

/* чек-лист урока (squared, как в макете) */
.lcheck { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 22px 0; }
.lcheck__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lcheck__count { font-family: var(--font-body); font-size: 12.5px; color: var(--coral-dark); font-weight: 700; }
.lcheck__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.lcheck__item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; background: var(--surface); cursor: pointer; position: relative; }
.lcheck__item input { position: absolute; opacity: 0; pointer-events: none; }
.lcheck__box { width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0; border: 2px solid var(--line); background: transparent;
  display: flex; align-items: center; justify-content: center; color: #fff; transition: all .15s; }
.lcheck__item input:checked + .lcheck__box { background: var(--green); border-color: var(--green); }
.lcheck__item input:checked + .lcheck__box::after { content: "✓"; font-size: 13px; font-weight: 700; line-height: 1; }
.lcheck__txt { font-family: var(--font-body); font-size: 13px; color: var(--ink); line-height: 1.3; }
.lcheck__txt.done { color: var(--ink-mute); text-decoration: line-through; }

/* ---------- Мои заметки / Мои задачи (виджеты урока) ---------- */
.nt-saved { font-family: var(--font-body); font-size: 11px; color: var(--sage); font-weight: 600; }
.nt-note { width: 100%; min-height: 104px; resize: vertical; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--ink); background: var(--surface); line-height: 1.5; }
.nt-note:focus { outline: none; border-color: var(--coral); }
.nt-tasks { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nt-task { display: flex; align-items: center; gap: 9px; }
.nt-task__check { position: relative; display: flex; flex-shrink: 0; cursor: pointer; }
.nt-task__check input { position: absolute; opacity: 0; pointer-events: none; }
.nt-task__box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; }
.nt-task__check input:checked + .nt-task__box { background: var(--green); border-color: var(--green); }
.nt-task__check input:checked + .nt-task__box::after { content: "✓"; font-size: 11px; font-weight: 700; line-height: 1; }
.nt-task__title { flex: 1; font-family: var(--font-body); font-size: 13.5px; color: var(--ink); }
.nt-task__title.done { color: var(--ink-mute); text-decoration: line-through; }
.nt-task__del { border: none; background: transparent; color: var(--ink-mute); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; }
.nt-task__del:hover { color: var(--danger); }
.nt-add { display: flex; gap: 7px; }
.nt-add input { flex: 1; border: 1px solid var(--line); border-radius: 9px; padding: 8px 11px; font-family: var(--font-body); font-size: 13px; color: var(--ink); background: var(--surface); }
.nt-add input:focus { outline: none; border-color: var(--coral); }
.nt-add__btn { border: none; background: var(--coral); color: #fff; border-radius: 9px; width: 36px; font-size: 18px; cursor: pointer; flex-shrink: 0; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; font-family: var(--font-body); font-weight: 700; font-size: 12px; padding: 4px 11px; border-radius: 7px; }
.pill--sage { background: var(--sage-soft); color: var(--sage); }
.pill--amber { background: var(--amber-soft); color: var(--ochre); }
.pill--free { background: var(--green-soft); color: var(--green); }
.pill--sky { background: var(--sky-soft); color: var(--sky); }
.pill--accent { background: var(--peach); color: var(--coral-dark); }
.pill--rose { background: var(--rose-soft); color: var(--danger); }

/* ---------- Профиль ---------- */
.pfhead { display: flex; align-items: center; gap: 18px; }
.pf-ava { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(140deg,#E2A37F,#D9A65A); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 30px;
  border: 3px solid #fff; box-shadow: 0 8px 18px -8px rgba(201,120,97,.55); object-fit: cover; }
.pf-name { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--ink); margin: 0; }
.pf-since { font-family: var(--font-body); font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pf-stack { display: flex; flex-direction: column; gap: 22px; }
.pf-fields { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Заказы ---------- */
.olist { overflow: hidden; }
.olist .orow { display: flex; align-items: center; gap: 16px; padding: 18px 22px; text-decoration: none; }
.olist .orow + .orow { border-top: 1px solid var(--card-warm); }
.orow:hover { background: var(--paper); }
.orow__icon { width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--card-warm); color: var(--ink-soft); }
.orow__main { flex: 1; min-width: 0; }
.orow__t-row { display: flex; align-items: center; gap: 10px; }
.orow__t { font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--ink); }
.orow__meta { font-family: var(--font-body); font-size: 12.5px; color: var(--ink-mute); margin-top: 3px; }
.orow__sum { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); flex-shrink: 0; text-align: right; }
.orow__sum--free { color: var(--ink-mute); }

/* ---------- Диагностика: вопросы ---------- */
.dqbar { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.dqbar__count { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.dqcard { text-align: center; }
.dqcard__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--sky-soft); color: var(--sky); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
.dqcard__area { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-deep); }
.dqcard__q { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--ink); margin: 12px 0 26px; line-height: 1.3; }
.dqopts { display: flex; flex-direction: column; gap: 11px; text-align: left; }
.dqopt { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-radius: 14px; cursor: pointer; background: var(--paper);
  border: 2px solid transparent; transition: all .15s; }
.dqopt input { position: absolute; opacity: 0; }
.dqopt__radio { width: 25px; height: 25px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--line); background: transparent;
  display: flex; align-items: center; justify-content: center; color: #fff; }
.dqopt__t { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); }
.dqopt input:checked + .dqopt__radio { background: var(--coral); border-color: var(--coral); }
.dqopt:has(input:checked) { background: #fff; border-color: var(--coral); box-shadow: 0 8px 20px -12px var(--coral); }

/* ---------- Колесо баланса (результаты) ---------- */
.rwgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.rwsum { text-align: center; }
.rwsum__lab { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.rwsum__pct { font-family: var(--font-display); font-weight: 700; font-size: 44px; color: var(--ink); line-height: 1; margin: 6px 0 16px; }
.rwsum__pills { display: flex; gap: 8px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.rwleg { display: flex; flex-direction: column; gap: 10px; }
.rwleg__row { padding: 14px; cursor: pointer; }
.rwleg__head { display: flex; align-items: center; gap: 12px; }
.rwleg__sw { width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0; }
.rwleg__name { flex: 1; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--ink); }
.rwleg__pct { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.rwleg__body { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.rwleg__note { font-family: var(--font-body); font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 10px 0 12px; }
.rwleg__rec { background: var(--paper); border-radius: 11px; padding: 12px; }
.rwleg__rec-h { font-family: var(--font-body); font-weight: 700; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.rwleg__rec-item { display: flex; gap: 8px; margin-bottom: 7px; font-family: var(--font-body); font-size: 12.5px; color: var(--ink); line-height: 1.45; }
.rverdict { margin-top: 22px; background: linear-gradient(120deg,#FBEFD4,#F4DEC0); }
.rverdict__in { display: flex; gap: 14px; align-items: flex-start; }
.rverdict__t { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.rverdict p { font-family: var(--font-body); font-size: 14px; color: var(--ink-soft); line-height: 1.6; margin: 5px 0 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .ccard { grid-template-columns: 1fr; }
  .ccard__media { min-height: 170px; }
  .cdetail, .lgrid, .pf-grid, .rwgrid { grid-template-columns: 1fr; }
  .lrail { position: static; }
  .chero__overlay { background: linear-gradient(0deg, rgba(245,236,216,.96) 30%, rgba(245,236,216,.5) 100%); }
  .chero__inner { max-width: none; padding: 0 24px; }
}
@media (max-width: 560px) {
  .cab-wrap { padding-inline: 16px; }
  .cabh__user-name { display: none; }
  .lcheck__grid { grid-template-columns: 1fr; }
}
