.route-page {
  display: grid;
  gap: 26px;
}
.route-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px) auto;
  gap: 24px;
  align-items: center;
  padding: 18px 26px 8px;
}
.route-head h1 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.12;
}
.route-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.route-progress-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.route-progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}
.route-progress-card strong {
  color: var(--ink);
}
.route-progress-number {
  color: var(--primary);
  font-size: 34px;
  font-weight: 950;
}
.route-next {
  min-width: 190px;
  min-height: 58px;
  border-radius: 12px;
}
.route-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 26px;
}
.route-timeline::before {
  content: "";
  position: absolute;
  left: 52px;
  top: 18px;
  bottom: 38px;
  width: 2px;
  background: #dce2ff;
}
.route-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 340px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  min-height: 154px;
}
.route-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: start center;
  padding-top: 16px;
}
.route-marker span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(98, 88, 247, 0.26);
}
.route-item.green .route-marker span { background: var(--green); }
.route-item.amber .route-marker span { background: var(--orange); }
.route-item.teal .route-marker span { background: #13a3b1; }
.route-info,
.route-content {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}
.route-info {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: 0 0 0 0;
  border-right: 0;
}
.route-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: #f0edff;
  color: var(--primary);
  font-size: 34px;
}
.route-icon.green { background: #e9fbf3; color: var(--green); }
.route-icon.amber { background: #fff4e3; color: var(--orange); }
.route-icon.blue { background: #eef6ff; color: #3b7cff; }
.route-icon.teal { background: #e8fbfd; color: #12a2af; }
.route-info h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.route-info p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}
.route-mini-progress {
  max-width: 140px;
  display: grid;
  gap: 6px;
}
.route-mini-progress small {
  color: #536083;
  font-weight: 800;
}
.route-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 0 16px 16px 0;
}
.route-lesson-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 120px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #f3f6ff);
}
.route-item.green .route-lesson-card { background: linear-gradient(135deg, #ffffff, #effcf5); }
.route-item.amber .route-lesson-card { background: linear-gradient(135deg, #ffffff, #fff5e8); }
.route-lesson-card h3,
.route-lesson-card p {
  margin: 0;
}
.route-lesson-card h3 {
  font-size: 14px;
}
.route-lesson-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.route-lesson-card .duration {
  justify-self: start;
  background: #111936;
  color: #ffffff;
}
.play-dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
}
.play-dot.done {
  background: var(--green);
}
.route-content > .route-lesson-card:not(:first-child),
.route-content > .route-topics {
  grid-column: span 1;
}
.route-content:has(.route-lesson-card:nth-child(2)) {
  grid-template-columns: repeat(3, minmax(0, 1fr)) 170px;
}
.route-see-all {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border-left: 1px dashed #d4daf4;
  color: var(--muted);
  font-size: 13px;
}
.route-topics {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(76px, 1fr));
  gap: 12px;
  align-items: center;
}
.route-topic {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 76px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #26355f;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}
.route-topic span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2f4ff;
  color: var(--primary);
  font-size: 18px;
}
.route-topic.green span { background: #e9fbf3; color: var(--green); }
.route-topic.amber span { background: #fff4e3; color: var(--orange); }
.route-topic.teal span { background: #e8fbfd; color: #12a2af; }
.route-cert-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(440px, 0.8fr);
  gap: 24px;
  padding: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, #102052, #6d4cf6);
  color: #ffffff;
  box-shadow: var(--shadow);
}
.route-cta-copy {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.route-cta-art {
  display: grid;
  place-items: center;
  min-height: 120px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 42px;
  font-weight: 950;
}
.route-cert-cta h2,
.route-cert-cta p {
  margin: 0 0 12px;
}
.route-cert-cta p {
  color: #d9e1ff;
}
.route-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.route-cert-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}
.route-cert-card small,
.route-cert-card span {
  color: #dfe6ff;
  font-size: 12px;
}
.route-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 0 11px;
  border-radius: 999px;
  background: #eef1ff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
}
.real-route-head {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) auto;
}
.route-progress-card small {
  color: var(--muted);
  line-height: 1.45;
}
.route-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 26px;
}
.route-kpi {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}
.route-kpi span {
  grid-row: span 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f0f3ff;
  color: var(--primary);
  font-weight: 900;
}
.route-kpi strong,
.route-kpi small,
.route-kpi em {
  display: block;
  min-width: 0;
}
.route-kpi strong {
  color: var(--ink);
  font-size: 18px;
}
.route-kpi small {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}
.route-kpi em {
  color: #8490b0;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}
.route-current-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0 26px;
  padding: 20px;
  border: 1px solid rgba(98, 88, 247, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, #f5f7ff);
  box-shadow: var(--shadow-soft);
}
.route-current-panel h2,
.route-current-panel p {
  margin: 8px 0 0;
}
.route-current-panel p {
  color: var(--muted);
  line-height: 1.55;
}
.route-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.route-row-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.route-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.route-status.done {
  background: #e9fbf3;
  color: var(--green);
}
.route-status.current {
  background: #eef1ff;
  color: var(--primary);
}
.route-status.locked {
  background: #eef0f6;
  color: #8993ad;
}
.route-item.done .route-marker span {
  background: var(--green);
}
.route-item.locked {
  opacity: 0.72;
}
.route-item.locked .route-marker span,
.route-item.locked .route-icon {
  background: #eef0f6;
  color: #98a1b8;
}
.route-outcomes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.route-outcomes span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f5f7ff;
  color: #536083;
  font-size: 12px;
  font-weight: 800;
}
.route-item.done .route-outcomes span {
  background: #e9fbf3;
  color: #16855a;
}
.route-content.locked {
  background: #f7f8fc;
}
.route-lesson-card.done {
  background: linear-gradient(135deg, #ffffff, #eefbf5);
}
.route-lesson-card.locked {
  background: #f4f5fa;
}
.route-lesson-card.locked .duration {
  background: #98a1b8;
}
.route-lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}
.route-lesson-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.route-content button:disabled,
.route-lesson-card button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.real-route-timeline .route-see-all {
  padding: 10px;
  text-align: center;
}
.real-route-timeline .route-see-all .primary-button,
.real-route-timeline .route-see-all .ghost-button {
  width: 100%;
  min-height: 40px;
}
@media (max-width: 1180px) {
  .route-head,
  .route-kpi-strip,
  .route-current-panel,
  .route-item,
  .route-cert-cta {
    grid-template-columns: 1fr;
  }
  .route-content,
  .route-content:has(.route-lesson-card:nth-child(2)) {
    grid-template-columns: 1fr;
  }
  .route-info {
    border-right: 1px solid var(--line);
    border-radius: 16px 16px 0 0;
  }
  .route-content {
    border-radius: 0 0 16px 16px;
  }
  .route-see-all {
    min-height: 74px;
    border-left: 0;
    border-top: 1px dashed #d4daf4;
  }
  .route-topics,
  .route-cert-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .route-head {
    padding: 8px 0 0;
  }
  .route-page,
  .route-head,
  .route-kpi-strip,
  .route-current-panel,
  .route-kpi-strip,
  .route-current-panel,
  .route-progress-card,
  .route-timeline,
  .route-item,
  .route-info,
  .route-content,
  .route-cert-cta {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .route-progress-card .progress-bar,
  .route-mini-progress .progress-bar {
    max-width: 100%;
  }
  .route-page,
  .route-head,
  .route-kpi-strip,
  .route-current-panel,
  .route-kpi-strip,
  .route-current-panel,
  .route-progress-card,
  .route-info,
  .route-content,
  .route-lesson-card {
    min-width: 0;
    max-width: 100%;
  }
  .route-progress-card > div:first-child {
    display: grid;
    gap: 4px;
  }
  .route-next {
    width: 100%;
    min-width: 0;
  }
  .route-info p,
  .route-lesson-card p,
  .route-head p {
    white-space: normal;
    overflow-wrap: break-word;
  }
  .route-head p,
  .route-info p,
  .route-lesson-card p {
    max-width: 260px;
  }
  .route-head h1 {
    font-size: 28px;
  }
  .route-timeline {
    padding-left: 0;
  }
  .route-timeline::before {
    display: none;
  }
  .route-marker {
    place-items: start;
    padding: 0;
  }
  .route-info {
    grid-template-columns: 1fr;
  }
  .route-topics,
  .route-cert-grid,
  .route-cta-copy {
    grid-template-columns: 1fr;
  }
}











