:root {
  --green: #0E3470;      /* BPC accent-dark: links, active states */
  --green-2: #2F5A9E;
  --leaf: #F2B01E;       /* BPC yellow: progress, done marks */
  --deep: #021939;       /* BPC navy */
  --ink: #262626;
  --muted: #666666;
  --line: #E3E3E3;
  --bg: #F4F6FA;
  --card: #ffffff;
  --tint: #E8EDF5;
  --bad: #c0392b;
  --bad-tint: #fbeceb;
  --navy: #192D45;       /* ЯПРО */
  --r: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, sans-serif;
}
a { color: var(--green); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: "Prata", Georgia, serif; font-weight: 400 !important; }
h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
button { font: inherit; cursor: pointer; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 10px 24px; background: var(--deep); color: #fff;
}
.logo-client { height: 40px; display: block; }
.topnav { display: flex; gap: 6px; margin-left: 8px; }
.topnav a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.topnav a:hover, .topnav a.on { background: rgba(255, 255, 255, .12); }
.partner { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; opacity: .85; }
.logo-yapro { height: 22px; }

main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 64px; outline: none; }

/* home */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; margin-bottom: 32px; }
.eyebrow { color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--green); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mcard {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.mcard:hover { border-color: var(--green-2); transform: translateY(-2px); }
.mcard .cover { aspect-ratio: 16/9; background: var(--tint) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.mcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mcard .tag { font-size: 13px; font-weight: 700; color: var(--green); }
.mcard p { margin: 0; color: var(--muted); font-size: 15px; }
.mcard .meta { margin-top: auto; font-size: 13px; color: var(--muted); }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--leaf); width: 0; }

.howto { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.howto div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.howto b { color: var(--green); }

/* module */
.mhead { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-bottom: 18px; }
.mhead .back { text-decoration: none; font-weight: 600; font-size: 15px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.player { position: sticky; top: 76px; }
.player video { width: 100%; border-radius: var(--r); background: #000; aspect-ratio: 16/9; display: block; }
.vtools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 12px;
  color: var(--ink); font-size: 14px; font-weight: 600;
}
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }
.now { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.now small { color: var(--muted); font-weight: 600; }

.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button {
  flex: 1; background: none; border: 0; padding: 14px 10px; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.tabs button.on { color: var(--green); border-bottom-color: var(--green); }
.pane { padding: 6px 0; max-height: calc(100vh - 170px); overflow-y: auto; }

.ch { border-bottom: 1px solid var(--line); }
.ch:last-child { border-bottom: 0; }
.ch-head { display: flex; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 14px 18px; align-items: flex-start; }
.ch-head:hover { background: var(--bg); }
.ch.cur .ch-head { background: var(--tint); }
.tc { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--green); min-width: 58px; padding-top: 2px; }
.ch-title { font-weight: 700; flex: 1; }
.tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; margin-top: 2px; }
.ch.done .tick { background: var(--leaf); border-color: var(--leaf); }
.ch-body { padding: 0 18px 16px 88px; font-size: 15px; }
.ch-body p { margin: 0 0 10px; }
.ch-body ul { margin: 0 0 10px; padding-left: 18px; }
.ch-body li { margin-bottom: 4px; }
.terms { display: flex; flex-wrap: wrap; gap: 6px; }
.term { background: var(--tint); color: var(--deep); border-radius: 8px; padding: 3px 9px; font-size: 13px; font-weight: 600; }

.slide { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.slide:hover { background: var(--bg); }
.slide.cur { background: var(--tint); }
.slide img { width: 150px; border-radius: 8px; border: 1px solid var(--line); }
.slide h4 { margin: 0 0 4px; font-size: 15px; }
.slide .en { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.slide ul { margin: 0; padding-left: 16px; font-size: 14px; }
.slide .tc { display: block; min-width: 0; margin-bottom: 2px; }

.quiz { padding: 8px 18px 18px; }
.qscore { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 700; }
.q { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 12px 0; }
.q .src { font-size: 12px; color: var(--muted); font-weight: 600; }
.q h4 { margin: 4px 0 10px; font-size: 16px; }
.opt { display: block; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 6px 0; color: var(--ink); }
.opt:hover:not([disabled]) { border-color: var(--green-2); }
.opt.right { background: var(--tint); border-color: var(--leaf); }
.opt.wrong { background: var(--bad-tint); border-color: var(--bad); }
.opt[disabled] { cursor: default; }
.why { margin-top: 8px; font-size: 14px; color: var(--muted); }

.gloss { padding: 14px 18px; }
.search { width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 12px; }
.gl { padding: 10px 0; border-bottom: 1px solid var(--line); }
.gl b { color: var(--deep); }
.gl i { color: var(--muted); font-style: normal; font-size: 13px; margin-left: 6px; }
.gl p { margin: 4px 0 0; font-size: 14px; }
.gpage { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; }

.outcomes { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-bottom: 20px; }
.outcomes ul { margin: 6px 0 0; padding-left: 18px; }

/* footer */
.foot { background: var(--deep); color: #dfe8e4; font-size: 14px; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 32px 24px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.foot a { color: #fff; }
.foot-logo { height: 36px; margin-bottom: 10px; }
.foot-logo-yapro { height: 26px; margin: 4px 0 10px; }
.foot .fine { opacity: .7; font-size: 12px; }

@media (max-width: 960px) {
  .hero, .layout, .foot-in { grid-template-columns: 1fr; }
  .modules, .howto { grid-template-columns: 1fr; }
  .player { position: static; }
  .pane { max-height: none; }
  .partner span { display: none; }
}
@media (max-width: 560px) {
  main { padding: 20px 16px 48px; }
  .top { padding: 8px 16px; gap: 10px; }
  .logo-client { height: 32px; }
  .topnav a { padding: 6px 10px; }
  .ch-body { padding-left: 18px; }
  .slide { grid-template-columns: 1fr; }
  .slide img { width: 100%; }
  .partner { display: none; }
}

/* BPC demo additions */
.eyebrow { color: #B07D00; }
.stat b { color: var(--deep); }
.hero h1 { color: var(--deep); }
.demo-badge { display: inline-block; background: var(--leaf); color: var(--deep); font-weight: 700; font-size: 12px;
  border-radius: 999px; padding: 4px 10px; margin-left: 8px; letter-spacing: .04em; }
.pitch { margin-top: 36px; background: var(--deep); color: #fff; border-radius: var(--r); padding: 28px 30px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.pitch h2 { color: #fff; margin-bottom: .3em; }
.pitch p { color: #d6deea; margin: 0 0 8px; }
.pitch ul { margin: 0; padding-left: 18px; color: #d6deea; }
.pitch .cta { display: inline-block; background: var(--leaf); color: var(--deep); font-weight: 800; text-decoration: none;
  border-radius: 999px; padding: 12px 22px; margin-top: 10px; }
@media (max-width: 960px) { .pitch { grid-template-columns: 1fr; } }
/* one module: a wide horizontal card */
.modules.single { grid-template-columns: 1fr; }
.modules.single .mcard { flex-direction: row; }
.modules.single .mcard .cover { width: 46%; flex: none; aspect-ratio: 16/9; border-bottom: 0; border-right: 1px solid var(--line); }
.modules.single .mcard .body { padding: 24px 28px; }
.modules.single .mcard h3 { font-size: 22px; }
@media (max-width: 760px) {
  .modules.single .mcard { flex-direction: column; }
  .modules.single .mcard .cover { width: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
}
.logo-client { height: 54px; margin: -4px 0; }
