body.training-page { background: #fcfdfd; }
.training-page [hidden] { display: none !important; }
.training-main { padding-block: 44px 20px; }
.lesson-intro { max-width: 750px; margin-bottom: 32px; }
.lesson-meta { color: var(--blue-dark); font-size: .875rem; margin-bottom: 12px; }
.lesson-intro h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; margin-bottom: 18px; }
.lesson-intro > p:last-child { color: var(--muted); max-width: 680px; }
.lesson-heading { margin-bottom: 22px; }
.lesson-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin-bottom: 12px; }
.lesson-heading > p:last-child:not(.lesson-meta) { color: var(--muted); }
.lesson-section { scroll-margin-top: 105px; }
.quick-lesson { max-width: 880px; }
.full-lesson { margin-top: 28px; padding-top: 36px; border-top: 1px solid var(--line); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 28px; }
.lesson-player { min-width: 0; scroll-margin-top: 105px; }
.lesson-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #163b4d; border-radius: 16px; scroll-margin-top: 105px; }
.lesson-video:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.player-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); font-size: .875rem; }
#current-chapter { font-weight: 650; flex: 1 1 240px; line-height: 1.5; }
.player-toolbar label { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.player-toolbar select { color: var(--ink); background: white; border: 1px solid #b8cdd7; border-radius: 8px; padding: 8px; min-height: 44px; font: inherit; }
.player-toolbar select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.lesson-note { margin-top: 20px; color: var(--muted); font-size: .875rem; line-height: 1.7; }
.lesson-download { display: inline-block; padding-block: 14px; }
.player-status { margin-top: 15px; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--blue); font-size: .9375rem; }
.lesson-chapters { background: #f1f7fa; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chapters-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 22px 20px 0; }
.chapters-heading h2 { font-size: 1.125rem; letter-spacing: -.02em; }
.chapters-heading > span { white-space: nowrap; font-size: .8125rem; color: var(--muted); }
.chapters-hint { font-size: .8125rem; color: var(--muted); padding: 8px 20px 16px; }
.lesson-chapters ol { list-style: none; padding: 4px 10px 10px; margin: 0; max-height: 510px; overflow-y: auto; scrollbar-width: thin; }
.lesson-chapters a { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; min-height: 54px; padding: 12px 10px; border-radius: 8px; font-size: .875rem; line-height: 1.5; }
.lesson-chapters li + li { border-top: 1px solid #dce8ed; }
.chapter-number { color: var(--muted); font-size: .75rem; }
.chapter-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .75rem; }
.lesson-chapters a:hover { background: #e1eef4; }
.lesson-chapters a[aria-current="true"] { background: #dceef6; color: #075a7b; font-weight: 650; box-shadow: inset 3px 0 #147fbb; }
.lesson-chapters a:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.lesson-next { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 44px; padding: 28px 0; border-block: 1px solid var(--line); }
.lesson-next h2 { font-size: 1.4rem; margin-bottom: 10px; }
.lesson-next p { color: var(--muted); font-size: .9375rem; }
.lesson-next .button { flex-shrink: 0; }
.training-page .header-inner nav a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 1000px) { .lesson-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; } }
@media (max-width: 800px) {
  .lesson-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .lesson-chapters ol { max-height: none; }
  .lesson-next { flex-direction: column; align-items: flex-start; }
  .training-main { padding-top: 30px; }
  .lesson-intro { margin-bottom: 25px; }
  .lesson-player, .lesson-video, .lesson-section { scroll-margin-top: 145px; }
}
@media (max-width: 420px) {
  .training-page .header-inner { flex-direction: row; align-items: center; }
  .training-page .header-inner nav { width: auto; gap: 12px; font-size: .8125rem; }
  .training-page .brand { font-size: 1.2rem; }
  .training-page .brand img { width: 32px; height: 32px; }
  .lesson-chapters a { gap: 8px; }
  .lesson-next .button { width: 100%; }
}
