/* Стили для HTML-структуры документов ЦА (школьник, студент и др.) */

:root {
  --bg: #fafafa;
  --surface: #fff;
  --text: #1a1a1a;
  --muted: #555;
  --border: #e0e0e0;
  --accent: #2563eb;
  --core: #059669;
  --optional: #d97706;
  --warning-bg: #fff7ed;
  --note-bg: #eff6ff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.doc-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 2rem 1.5rem;
}

.doc-breadcrumb {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.doc-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.doc-breadcrumb a:hover {
  text-decoration: underline;
}

.doc-header h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 42rem;
}

.doc-lead {
  margin: 0;
  max-width: 42rem;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.doc-lead strong {
  font-weight: 600;
  color: var(--text);
}

.doc-links {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.doc-links a {
  color: var(--accent);
  text-decoration: none;
}

.doc-links a:hover {
  text-decoration: underline;
}

/* Страница скилла: единая шапка + оглавление при скролле */
.doc-header--skill {
  padding: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.doc-header--skill .doc-header__shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.35rem;
}

.doc-header--skill .doc-breadcrumb {
  margin-bottom: 0.65rem;
}

.doc-header--skill h1 {
  margin: 0;
  max-width: 48rem;
}

.doc-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.5rem;
}

.doc-header--skill .skill-meta-bar {
  margin: 0;
}

.doc-header--skill .skill-meta-details {
  margin: 0;
}

.doc-header--skill .doc-lead {
  margin-top: 0.85rem;
  max-width: 48rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.doc-header--skill .doc-links {
  margin-top: 0.85rem;
}

.section-note {
  margin: -0.25rem 0 1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.card-pain {
  border-left: 3px solid #fca5a5;
}

.card-pain h3 {
  color: #b91c1c;
}

.doc-layout {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

.doc-layout > .doc-main {
  min-width: 0;
}

/* Hub: направление, каталог маршрутов — шапка в одной колонке с контентом */
.doc-header--hub {
  padding: 0;
}

.doc-header--hub .doc-header__shell {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.75rem 2rem 1.5rem;
}

.direction-featured-skills {
  margin-top: 1rem;
  max-width: 48rem;
}

.direction-routes-grid {
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
}

.direction-custom-path {
  background: var(--surface);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 0 0 1px #d1fae5;
}

.direction-custom-path__label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.direction-custom-path__label:not(:first-child) {
  margin-top: 1.25rem;
}

.direction-custom-path__stepper {
  margin: 0.75rem 0 0;
}

.card-route-lead {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text);
}

.doc-footer--hub {
  max-width: 72rem;
  margin: 0 auto;
}

.doc-toc {
  position: sticky;
  top: 1rem;
  align-self: start;
  font-size: 0.875rem;
}

.toc-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.doc-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.doc-toc li {
  margin-bottom: 0.35rem;
}

.doc-toc a {
  color: var(--text);
  text-decoration: none;
}

.doc-toc a:hover {
  color: var(--accent);
}

/* Страница скилла: шапка отдельно, ниже — обычная сетка с sticky-оглавлением */
.doc-layout.doc-layout--skill {
  padding-top: 1.25rem;
}

.doc-layout.doc-layout--skill .doc-main--skill {
  max-width: none;
  min-width: 0;
  padding: 0;
}

.doc-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.doc-section:last-child {
  border-bottom: none;
}

.doc-section h2 {
  margin-top: 0;
  font-size: 1.375rem;
}

.doc-section h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

.doc-section h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.meta-grid {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.meta-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.meta-item dt {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.meta-item dd {
  margin: 0;
}

.inline-courses {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.inline-courses .course-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: var(--text);
  text-decoration: none;
}

.inline-courses a.course-tag:hover {
  background: #dbeafe;
  color: var(--accent);
}

.inline-courses li {
  margin: 0;
}

.inline-courses code {
  font-size: 0.8125rem;
}

.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  vertical-align: middle;
}

.badge--core {
  background: #d1fae5;
  color: var(--core);
}

.badge--optional {
  background: #ffedd5;
  color: var(--optional);
}

.callout {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  border-left: 4px solid;
}

.callout--note {
  background: var(--note-bg);
  border-color: var(--accent);
}

.callout--quote {
  background: var(--surface);
  border-color: var(--border);
  border-left-width: 3px;
}

.callout--warning {
  background: var(--warning-bg);
  border-color: var(--optional);
}

.callout p:last-child {
  margin-bottom: 0;
}

.context-block {
  margin-bottom: 2rem;
}

.highlight-line {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface);
}

caption {
  text-align: left;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

th,
td {
  border: 1px solid var(--border);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f3f4f6;
  font-weight: 600;
}

.two-col-dl {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.two-col-dl dt {
  font-weight: 600;
}

.two-col-dl dd {
  margin: 0 0 0.75rem;
}

.subgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.subgrid section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.card--wide {
  grid-column: 1 / -1;
}

.card h3 {
  margin-top: 0;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
}

.pain-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pain-list li {
  padding: 0.35rem 0;
  padding-left: 1rem;
  border-left: 3px solid #fca5a5;
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
}

.check-list li {
  margin-bottom: 0.5rem;
}

.route-list li {
  margin-bottom: 0.75rem;
}

.success-quote {
  background: #ecfdf5;
  border-left: 4px solid var(--core);
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
}

.voice-quote blockquote {
  margin: 0;
  font-style: italic;
  color: var(--muted);
}

.voice-quote figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.priority--high {
  color: var(--core);
  font-weight: 600;
}

.priority--mid {
  color: var(--muted);
}

.footnote {
  font-size: 0.875rem;
  color: var(--muted);
}

.related-list a {
  color: var(--accent);
}

.related-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

.related-card__title {
  font-weight: 600;
  color: var(--accent);
}

.related-card__note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.related-nav {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.related-nav a {
  color: var(--accent);
  text-decoration: none;
}

.related-nav a:hover {
  text-decoration: underline;
}

.doc-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

code {
  font-size: 0.875em;
  background: #f3f4f6;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.prompt-block {
  margin: 1rem 0;
}

.prompt-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.prompt-block pre {
  margin: 0;
  padding: 1rem 1.25rem;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

pre.prompt-block {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.lesson-list {
  margin: 0;
  padding-left: 1.5rem;
}

.lesson-list li {
  margin-bottom: 0.75rem;
}

.lesson-list a {
  color: var(--accent);
  text-decoration: none;
}

.lesson-list a:hover {
  text-decoration: underline;
}

.lesson-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.subject-group {
  margin-top: 1.25rem;
}

.subject-group:first-of-type {
  margin-top: 0.5rem;
}

.subject-group h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.doc-main--course,
.doc-main--lesson {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

.card--course {
  border-left: 3px solid var(--accent);
}

.doc-main--index {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}

.card-grid--nav {
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}

.card--nav h3 {
  margin-top: 0;
}

.card--nav h3 a {
  color: var(--accent);
  text-decoration: none;
}

.card--nav h3 a:hover {
  text-decoration: underline;
}

/* Страница маршрута: сценарии и stepper */
.route-picker__intro {
  margin-bottom: 1.25rem;
}

.route-scenarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
}

.route-scenario {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.route-scenario--featured {
  border-color: #93c5fd;
  box-shadow: 0 0 0 1px #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, var(--surface) 4rem);
}

.route-scenario--by-skills {
  border-color: #a7f3d0;
  box-shadow: 0 0 0 1px #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, var(--surface) 4rem);
}

.route-scenario__badge--skills {
  color: #047857;
  background: #d1fae5;
}

.route-scenario__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.route-chip--skill {
  text-decoration: none;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.route-chip--skill:hover {
  background: #d1fae5;
  text-decoration: underline;
}

.route-scenario__note {
  margin: 0;
  font-size: 0.8125rem;
}

.route-scenario__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.route-scenario__title {
  margin: 0;
  font-size: 1.125rem;
}

.route-scenario__tagline {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.route-scenario__audiences {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.route-chip {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--muted);
}

.route-stepper {
  list-style: none;
  padding: 0.5rem 0 0;
  margin: 0;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.route-stepper__step {
  flex: 1 1 0;
  min-width: 4.25rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.25rem;
}

.route-stepper__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: calc(50% + 1.1rem);
  width: calc(100% - 2.2rem);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.route-stepper__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8125rem;
  text-decoration: none;
  position: relative;
  z-index: 1;
  transition: background 0.15s, color 0.15s;
}

.route-stepper__node:hover {
  background: var(--accent);
  color: #fff;
}

.route-stepper__node--missing {
  border-color: var(--border);
  color: var(--muted);
}

.route-stepper__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  line-height: 1.25;
  color: var(--muted);
  padding: 0 0.15rem;
}

.route-scenario__foot {
  margin-top: auto;
  padding-top: 0.25rem;
  border-top: 1px dashed var(--border);
}

.route-progress__label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.route-progress__bar {
  display: block;
  height: 0.35rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.route-progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #7c3aed);
  border-radius: 999px;
}

.route-scenario__outcome {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text);
}

.route-scenario__cta {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.route-scenario__cta a {
  color: var(--accent);
  text-decoration: none;
}

.route-scenario__cta a:hover {
  text-decoration: underline;
}

.route-scenario__detail {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
}

.route-scenario__detail a {
  color: var(--accent);
  text-decoration: none;
}

.route-scenario__detail a:hover {
  text-decoration: underline;
}

/* Страница сценария: блок «С чего начать» */
.scenario-start-panel {
  background: linear-gradient(180deg, #f8fbff 0%, var(--surface) 3rem);
  border: 1px solid #93c5fd;
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.scenario-start-panel--empty {
  grid-template-columns: 1fr;
  border-color: var(--border);
  background: var(--surface);
}

.scenario-start-panel__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.scenario-start-panel__module-title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 600;
}

.scenario-start-panel__module-title a {
  color: var(--text);
  text-decoration: none;
}

.scenario-start-panel__module-title a:hover {
  color: var(--accent);
}

.scenario-start-panel__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.scenario-start-panel__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.scenario-start-panel__btn {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgb(37 99 235 / 0.25);
}

.scenario-start-panel__btn:hover {
  background: #1d4ed8;
  text-decoration: none;
}

.scenario-start-panel__back {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8125rem;
}

.scenario-start-panel__back a {
  color: var(--accent);
  text-decoration: none;
}

.scenario-start-panel__back a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .scenario-start-panel {
    grid-template-columns: 1fr;
  }

  .scenario-start-panel__actions {
    align-items: stretch;
  }

  .scenario-start-panel__btn {
    text-align: center;
  }
}

.scenario-module-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scenario-module-row {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.scenario-module-row__step {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--surface-muted, #f3f4f6);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--accent);
}

@media (max-width: 640px) {
  .route-scenarios {
    grid-template-columns: 1fr;
  }
}

.meta-inline {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.meta-inline dt {
  display: inline;
  font-weight: 600;
  color: var(--muted);
}

.meta-inline dt::after {
  content: ': ';
}

.meta-inline dd {
  display: inline;
  margin: 0;
}

.card-links {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
}

.card-links a {
  color: var(--accent);
}

.meta-item--wide {
  grid-column: 1 / -1;
}

.fear-list {
  margin: 0;
  padding-left: 1.25rem;
}

.fear-list li {
  margin-bottom: 0.35rem;
}

.fear-list--compact {
  padding-left: 1rem;
  font-size: 0.875rem;
}

.fear-list--compact li {
  margin-bottom: 0.25rem;
}

.meta-inline-fears dd {
  display: block;
}

.card--catalog {
  border-left: 3px solid var(--core);
}

.site-nav a {
  font-weight: 500;
}

/* Главная: hero, nav-grid, progress, фильтр линейки */
.home-hero {
  padding-bottom: 2rem;
}

.home-pitch {
  margin-top: 1rem;
  max-width: 42rem;
  line-height: 1.55;
  color: var(--text);
}

.progress-vision {
  margin-top: 1.25rem;
  max-width: 42rem;
}

.progress-demo {
  margin-top: 0.75rem;
}

.progress-demo__skill {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.progress-demo__rank {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.progress-demo__top {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #6d28d9;
  background: #ede9fe;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  vertical-align: baseline;
}

.progress-demo__label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.progress-demo-bar {
  height: 0.5rem;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-demo-bar__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 999px;
}

.monetus-demo {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.monetus-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.monetus-icon {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.monetus-amount {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.monetus-amount__value {
  font-variant-numeric: tabular-nums;
}

.monetus-demo__balance {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.monetus-demo__spends {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
}

.mentors-principle {
  font-size: 1rem;
  margin: 0 0 1rem;
}

.mentors-bullets {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.mentors-bullets li + li {
  margin-top: 0.5rem;
}

.mentors-demo {
  display: grid;
  gap: 1rem;
}

.mentor-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.mentor-choice__card {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.mentor-choice__card--active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.mentor-choice__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.mentor-choice__note {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

.mentor-greeting {
  margin: 0;
}

.home-hubus .hubus-cases {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hubus-case {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.hubus-case__title {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
}

.hubus-case__when {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.hubus-case__text {
  margin: 0 0 1rem;
}

.hubus-demo {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 40rem) {
  .hubus-demo--improve,
  .hubus-demo--spend,
  .hubus-demo--course {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.hubus-chat {
  padding: 0.875rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.hubus-chat__bubble {
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.hubus-chat__bubble--ai {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.hubus-chat__action,
.hubus-chat__hint {
  margin-top: 0.75rem;
  font: inherit;
  font-size: 0.8125rem;
  cursor: default;
}

.hubus-chat__action {
  padding: 0.375rem 0.75rem;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #fff;
  color: #2563eb;
}

.hubus-chat__hint {
  padding: 0;
  border: 0;
  background: none;
  color: #2563eb;
  text-decoration: underline;
}

.hubus-chat__meta {
  font-size: 0.8125rem;
  color: var(--muted);
}

.hubus-lesson,
.hubus-popup {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fafc;
}

.hubus-lesson__title,
.hubus-popup__title {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.hubus-popup__lesson {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
}

.hubus-lesson__task {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hubus-embed {
  padding: 0.875rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.hubus-lesson__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hubus-lesson__btn {
  font: inherit;
  font-size: 0.8125rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  cursor: default;
}

.hubus-lesson__btn--primary {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
}

.mentor-pricing table {
  font-size: 0.875rem;
}

.home-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.home-nav-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

.home-nav-card__label {
  font-weight: 600;
  color: var(--accent);
}

.audience-segments {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.audience-segment__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.audience-segments--full .audience-segment {
  margin-bottom: 0.5rem;
}

/* Главная: компактный выбор аудитории */
.audience-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.75rem;
}

.audience-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.audience-card__profile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.audience-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.audience-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.audience-card__title {
  font-weight: 600;
  color: var(--accent);
}

.audience-card__age {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.audience-card__motivation {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.audience-card__cjm {
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--muted);
  border-left: 2px solid var(--accent, #3b82f6);
  padding-left: 0.5rem;
}

.audience-card__products {
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text);
}

.audience-card__products li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.audience-card__products a {
  color: var(--accent, #2563eb);
  text-decoration: none;
}

.audience-card__products a:hover {
  text-decoration: underline;
}

.audience-card__product-planned {
  color: var(--text);
}

.audience-card__products .chip-coming-soon {
  font-size: 0.625rem;
  padding: 0.1rem 0.35rem;
}

.audience-card__entry {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.audience-card__catalog {
  margin: 0;
  font-size: 0.75rem;
}

.audience-card__catalog a {
  color: var(--accent, #2563eb);
  text-decoration: none;
}

.audience-card__catalog a:hover {
  text-decoration: underline;
}

.audience-segment__lead {
  margin: 0 0 0.75rem;
}

.home-nav-card__desc {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.section-subtitle {
  font-size: 1.125rem;
  margin: 1.25rem 0 0.75rem;
}

.product-line-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.product-line-filter label {
  font-size: 0.9375rem;
  font-weight: 500;
}

.product-line-filter select {
  font: inherit;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface);
  min-width: 12rem;
}

#product-line tbody tr[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .home-nav-grid {
    grid-template-columns: 1fr;
  }
}

/* Продуктовая линейка и avatar chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

.chip {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  line-height: 1.4;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}

.chip-audience {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.chip-audience--high {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.chip-audience--medium {
  background: #fffbeb;
  border-color: #fde68a;
}

.chip-wave {
  font-weight: 600;
}

.chip-wave--a {
  background: #ecfdf5;
  color: var(--core);
}

.chip-wave--b {
  background: #eff6ff;
  color: var(--accent);
}

.chip-wave--c {
  background: #f3f4f6;
  color: var(--muted);
}

.chip-skill {
  background: #f5f3ff;
  border-color: #ddd6fe;
  color: #5b21b6;
}

.cell-muted {
  font-size: 0.75rem;
  color: var(--muted);
}

.skill-id-link {
  text-decoration: none;
}

.skill-id-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

.skill-cell-link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0.15rem 0;
}

.skill-cell-link:hover strong {
  color: var(--accent);
  text-decoration: underline;
}

.skill-cell-link:hover .cell-muted {
  color: var(--accent);
}

.skill-cell-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.table-wrap--product-line .skill-cell-link strong {
  color: var(--accent);
}

.doc-main--skill {
  max-width: 48rem;
  margin: 0;
  padding: 0;
}

.skill-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
}

.skill-meta-bar__sep {
  color: var(--muted);
}

.skill-meta-bar__text {
  color: var(--muted);
}

.chip-kind {
  background: #f3f4f6;
  border-color: var(--border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.chip-kind--skill {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.chip-kind--practice {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.skill-levels {
  margin: 0;
  padding-left: 1.25rem;
}

.skill-levels li {
  margin-bottom: 0.75rem;
}

.xp-demo {
  margin-top: 1rem;
}

.card-skill-teaser {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0.25rem 0 0.5rem;
}

.card-featured-hook {
  margin: 0.5rem 0;
  font-size: 0.9375rem;
}

.card--featured {
  border-left: 3px solid var(--accent);
}

.skills-taxonomy {
  margin-top: 1rem;
  max-width: 48rem;
}

.skills-catalog-filter {
  margin-bottom: 1.25rem;
}

.skills-coming-soon-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
}

.card--coming-soon {
  opacity: 0.92;
  border-style: dashed;
  background: #fafafa;
}

.card--coming-soon h3 {
  margin-top: 0.35rem;
}

.card-coming-soon-badge {
  margin: 0 0 0.25rem;
}

.chip-coming-soon {
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.skill-meta-details {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
}

.skill-meta-details summary {
  cursor: pointer;
  color: var(--muted);
  user-select: none;
}

.skill-meta-details[open] summary {
  margin-bottom: 0.35rem;
}

.skill-meta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0.5rem 0 0;
}

.skill-meta-inline dt {
  display: inline;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.skill-meta-inline dt::after {
  content: ': ';
}

.skill-meta-inline dd {
  display: inline;
  margin: 0;
}

.program-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.program-row dt {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  margin: 0;
}

.program-row dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap--product-line td {
  vertical-align: top;
}

.competency-grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

@media (min-width: 720px) {
  .competency-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.competency-block {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

/* Карточка скилла: три блока столбиком с ровными промежутками */
#competencies {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

#competencies .competency-block .section-subtitle {
  margin-top: 0;
  margin-bottom: 0.625rem;
}

#competencies .competency-block .check-list {
  margin: 0;
}

.literacy-check-block {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.literacy-check-block h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.universal-practices-assessment {
  margin: 1rem 0 0.75rem;
}

.home-nav-card--compact {
  display: inline-block;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
}

.knowledge-control-roles {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.knowledge-control-role {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.knowledge-control-role .section-subtitle {
  margin-top: 0;
}

.knowledge-check-lessons a {
  font-weight: 500;
}

.module-skills-block + .module-skills-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.module-skill-refs {
  margin-top: 0.75rem;
}

.avatar-grid {
  display: grid;
  gap: 1.25rem;
}

.avatar-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.avatar-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.cjm-summary {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.cjm-timeline {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0;
}

.cjm-stage {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0 1.25rem;
  position: relative;
  padding-bottom: 1.75rem;
}

.cjm-stage:last-child {
  padding-bottom: 0;
}

.cjm-stage__marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.cjm-stage:not(:last-child) .cjm-stage__marker::after {
  content: '';
  position: absolute;
  top: 2.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 1.75rem - 2.35rem);
  background: var(--border);
}

.cjm-stage__index {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  z-index: 1;
}

.cjm-stage__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.cjm-stage__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.cjm-stage__fields {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.cjm-field dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cjm-field dd {
  margin: 0;
}

.cjm-field-list {
  margin: 0;
  padding-left: 1.25rem;
}

.cjm-field-list li {
  margin-bottom: 0.25rem;
}

.cjm-stage__table th {
  width: 8.5rem;
  vertical-align: top;
  font-weight: 600;
  color: var(--muted);
}

.cjm-list {
  margin: 0;
  padding-left: 1.25rem;
}

@media (min-width: 900px) {
  .avatar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .doc-layout {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .doc-toc {
    position: static;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
  }
}

/* Кросс-ЦА: спрос на продукты (products_demand.html) */
.doc-layout--wide {
  max-width: none;
}

.doc-layout--wide .doc-main {
  min-width: 0;
}

.table-wrap--demand {
  overflow-x: auto;
}

.demand-table {
  font-size: 0.875rem;
}

.demand-table th,
.demand-table td {
  vertical-align: top;
}

.demand-col-audience {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.75rem;
  padding: 0.35rem 0.25rem;
  max-width: 2rem;
}

.demand-rank {
  color: var(--muted);
  width: 2.5rem;
}

.demand-total {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.demand-count {
  text-align: center;
  color: var(--muted);
}

.demand-product a {
  font-weight: 600;
}

.demand-skill-id {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.demand-cell {
  text-align: center;
  padding: 0.35rem 0.25rem;
}

.demand-cell--empty {
  color: var(--border);
}

.demand-heat {
  display: inline-block;
  min-width: 1.75rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  font-size: 0.8125rem;
}

.demand-heat--hot {
  background: #fde8e8;
  color: #9b1c1c;
  font-weight: 600;
}

.demand-heat--warm {
  background: #fef3c7;
  color: #92400e;
}

.demand-heat--mild {
  background: #ecfdf5;
  color: #065f46;
}

.demand-breakdown {
  min-width: 12rem;
  max-width: 18rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.demand-breakdown__text {
  display: block;
  line-height: 1.35;
}

