@font-face{font-family:'Unbounded';font-style:normal;font-weight:500 800;font-display:swap;src:url(/fonts/unbounded-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Unbounded';font-style:normal;font-weight:500 800;font-display:swap;src:url(/fonts/unbounded-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/onest-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/onest-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}:root {
  --ink: #15171c; --ink-2: #262a32; --ink-3: #3a404c; --muted: #5f6673; --faint: #8b919c;
  --bg: #f2f3f5; --paper: #ffffff; --plane: #eceef2; --plane-2: #e3e6eb; --line: #e1e4e9; --line-2: #cfd4dc;
  --l4: #ff5a1f; --l4-deep: #e04a12; --l4-ink: #b33a0c; --l4-soft: #fff0e8; --l4-line: #ffd2bd;
  --ok: #167a4b; --ok-soft: #e3f3ea; --warn: #8f5d07; --warn-soft: #fff2da; --bad: #b6352b; --bad-soft: #fce8e5; --info: #2350c4; --info-soft: #e7eefd;
  --ru-blue: #0039a6; --ru-red: #d52b1e; --gb-navy: #012169; --gb-red: #c8102e;
  --r-s: 8px; --r: 12px; --r-l: 18px; --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(21, 23, 28, .06), 0 1px 1px rgba(21, 23, 28, .04);
  --sh-2: 0 12px 32px -18px rgba(21, 23, 28, .35), 0 2px 6px -2px rgba(21, 23, 28, .08);
  --sh-3: 0 24px 60px -28px rgba(21, 23, 28, .45);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --rail-w: 264px;
  --gut: clamp(16px, 3vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01' 1; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--l4); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--l4-soft); color: var(--ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; }
.h1 { font: 700 clamp(26px, 3.4vw, 40px)/1.12 var(--display); letter-spacing: -.02em; margin: 0; }
.h2 { font: 650 clamp(20px, 2.2vw, 26px)/1.2 var(--display); letter-spacing: -.015em; margin: 0; }
.h3 { font: 650 18px/1.3 var(--font); margin: 0; }
.h4 { font: 600 15px/1.35 var(--font); margin: 0; }
.lead { font-size: 18px; line-height: 1.55; color: var(--ink-3); margin: 0; max-width: 64ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.xs { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.kicker { font: 600 12.5px/1.3 var(--font); letter-spacing: .02em; color: var(--muted); }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mt-l { margin-top: 28px; } .mt-xl { margin-top: 44px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--tight { gap: 8px; } .row--between { justify-content: space-between; } .row--top { align-items: flex-start; } .row--nowrap { flex-wrap: nowrap; }
.stack { display: flex; flex-direction: column; gap: 16px; } .stack--s { gap: 8px; } .stack--l { gap: 28px; }
.grow { flex: 1 1 auto; min-width: 0; } .minw0 { min-width: 0; } .ml-auto { margin-left: auto; } .center { text-align: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gside { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gside { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic--s { width: 16px; height: 16px; } .ic--l { width: 24px; height: 24px; }

/* shell */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: 100vh; }
.rail-nav { position: sticky; top: 0; height: 100vh; background: var(--ink); color: #c7cbd3; display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 2px 8px 18px; }
.brand__mark { width: 40px; height: 40px; border-radius: 12px; background: #0b0c0f url(/img/brand/l4-mark.webp) center/cover; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.brand__name { font: 700 15px/1.1 var(--display); color: #fff; letter-spacing: -.01em; }
.brand__name b { color: var(--l4); font-weight: 700; }
.brand__sub { font-size: 12px; color: #8d93a0; margin-top: 3px; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.nav__group { font: 600 11.5px/1 var(--font); letter-spacing: .04em; color: #6d7381; padding: 16px 12px 8px; text-transform: uppercase; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15px; color: #c7cbd3; transition: background .15s, color .15s; }
.nav a:hover { background: #1f2229; color: #fff; }
.nav a[aria-current='page'] { background: #23262e; color: #fff; }
.nav a[aria-current='page']::before { content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--l4); }
.nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--l4); color: var(--ink); font: 700 12px/20px var(--font); text-align: center; }
.rail-nav__foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #1d2027; text-decoration: none; }
.who__name { color: #fff; font-weight: 600; font-size: 14px; line-height: 1.2; }
.who__role { font-size: 12px; color: #8d93a0; }
.dirswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: #1d2027; }
.dirswitch button { border: 0; background: transparent; color: #aeb3bd; padding: 7px 6px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; }
.dirswitch button[aria-pressed='true'] { background: #2c3039; color: #fff; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 12px var(--gut); background: rgba(242, 243, 245, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; }
.topbar.is-stuck { border-bottom-color: var(--line); }
.topbar__brand { display: none; }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 8px var(--gut) 72px; }
.page { animation: enter .32s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tabbar { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .rail-nav { display: none; }
  .topbar__brand { display: flex; }
  .main { padding-bottom: 104px; }
  .tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ink); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a, .tabbar button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; color: #9ea4ae; font: 600 11px/1.1 var(--font); text-decoration: none; border-radius: 10px; }
  .tabbar a[aria-current='page'] { color: #fff; background: #23262e; }
  .tabbar .dot { position: absolute; top: 3px; right: calc(50% - 18px); min-width: 16px; height: 16px; border-radius: 8px; background: var(--l4); color: var(--ink); font: 700 10px/16px var(--font); padding: 0 4px; }
}

/* buttons */
.btn { --b: var(--ink); --c: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--b); background: var(--b); color: var(--c); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .12s var(--ease), background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; transform: none; }
.btn--accent { --b: var(--l4); --c: var(--ink); }
.btn--accent:hover { background: #ff6c35; box-shadow: 0 8px 20px -10px var(--l4); }
.btn--ghost { --b: var(--line-2); --c: var(--ink); background: var(--paper); }
.btn--ghost:hover { background: var(--plane); border-color: var(--faint); }
.btn--quiet { --b: transparent; --c: var(--ink); background: transparent; }
.btn--quiet:hover { background: var(--plane); }
.btn--ok { --b: var(--ok); } .btn--ok:hover { background: #106640; }
.btn--bad { --b: var(--bad); } .btn--bad:hover { background: #9e2b22; }
.btn--s { min-height: 34px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn--l { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }
.iconbtn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; text-decoration: none; transition: background .15s; }
.iconbtn:hover { background: var(--plane); }
.iconbtn .badge { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--l4); color: var(--ink); font: 700 11px/19px var(--font); text-align: center; border: 2px solid var(--bg); }
.iconbtn.is-ring { animation: ring .9s var(--ease) 1; }
@keyframes ring { 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(3deg); } }
.link { color: var(--l4-ink); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14px; margin: 4px 0 12px; }
.back:hover { color: var(--ink); }

/* chips & badges */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--plane); color: var(--ink-3); font: 600 12.5px/1.2 var(--font); white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip--ok { background: var(--ok-soft); color: var(--ok); } .chip--warn { background: var(--warn-soft); color: var(--warn); } .chip--bad { background: var(--bad-soft); color: var(--bad); }
.chip--info { background: var(--info-soft); color: var(--info); } .chip--l4 { background: var(--l4-soft); color: var(--l4-ink); } .chip--ink { background: var(--ink); color: #fff; }
.chip--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.cs { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font: 700 11.5px/1.2 var(--font); letter-spacing: .02em; }
.cs--clarifying, .cs--review { background: var(--warn-soft); color: var(--warn); }
.cs--approved { background: var(--ok-soft); color: var(--ok); } .cs--draft { background: var(--plane-2); color: var(--muted); } .cs--archived { background: var(--plane); color: var(--faint); }
.flag { display: inline-flex; padding: 0 6px; border-radius: 4px; background: var(--warn-soft); color: var(--warn); font: 700 11px/18px var(--font); vertical-align: 1px; }

/* cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; box-shadow: var(--sh-1); }
.card--pad-l { padding: 28px; }
.card--flat { box-shadow: none; }
.card--ink { background: var(--ink); color: #e8eaee; border-color: var(--ink); }
.card--ink .muted { color: #a3a9b4; }
.card--l4 { background: var(--l4-soft); border-color: var(--l4-line); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__title { font: 650 16px/1.3 var(--font); margin: 0; }
a.card { text-decoration: none; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }

/* page head */
.pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 18px 0 24px; }
.pagehead__text { min-width: 0; max-width: 780px; }
.pagehead__text .lead { margin-top: 10px; }

/* rails: market and layer dividers */
.rail { position: relative; height: 12px; border-radius: 3px; overflow: hidden; margin: 0 0 22px; }
.rail--ru { background: linear-gradient(#fff 0 33.33%, var(--ru-blue) 33.33% 66.66%, var(--ru-red) 66.66% 100%); box-shadow: inset 0 0 0 1px var(--line); }
.rail--gb { background: linear-gradient(var(--gb-navy) 0 30%, #fff 30% 38%, var(--gb-red) 38% 62%, #fff 62% 70%, var(--gb-navy) 70% 100%); }
.rail--l4 { height: 10px; background: linear-gradient(var(--ink) 0 22%, transparent 22% 26%, var(--ink-3) 26% 48%, transparent 48% 52%, var(--faint) 52% 74%, transparent 74% 78%, var(--l4) 78% 100%); }
.rail__flag { position: absolute; left: 0; top: 0; }
.mrail { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; }
.mrail__flag { width: 34px; height: 22px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.mrail__band { flex: 1; height: 8px; border-radius: 2px; }
.mrail--ru .mrail__band { background: linear-gradient(#fff 0 33.33%, var(--ru-blue) 33.33% 66.66%, var(--ru-red) 66.66% 100%); box-shadow: inset 0 0 0 1px var(--line); }
.mrail--gb .mrail__band { background: linear-gradient(var(--gb-navy) 0 30%, #fff 30% 38%, var(--gb-red) 38% 62%, #fff 62% 70%, var(--gb-navy) 70% 100%); }
.mrail__label { font: 700 13px/1 var(--display); letter-spacing: .02em; white-space: nowrap; }

/* hero / journey */
.hero { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--ink); color: #eef0f3; padding: clamp(22px, 4vw, 40px); box-shadow: var(--sh-3); }
.hero__strata { position: absolute; right: -40px; top: -20px; width: 460px; height: 340px; opacity: .9; pointer-events: none; }
.hero h1 { font: 700 clamp(28px, 4vw, 46px)/1.06 var(--display); letter-spacing: -.025em; margin: 0; max-width: 18ch; color: #fff; }
.hero .lead { color: #b9bec8; margin-top: 12px; max-width: 54ch; }
.hero__row { position: relative; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 26px; }
.next { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 14px 14px 16px; border-radius: 16px; background: #1f2229; border: 1px solid #2c3039; max-width: 640px; }
.next__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--l4); color: var(--ink); flex: none; }
.next__k { font-size: 13px; color: #9aa0ab; }
.next__t { font-weight: 650; color: #fff; line-height: 1.3; }
.journey { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.layer { position: relative; padding: 14px 14px 12px; border-radius: 14px; background: #1b1e24; border: 1px solid #2a2e36; min-height: 104px; display: flex; flex-direction: column; gap: 6px; }
.layer__n { font: 700 26px/1 var(--display); color: #4a505c; }
.layer__t { font-weight: 650; color: #dfe2e7; font-size: 14.5px; }
.layer__s { font-size: 12.5px; color: #8f95a1; }
.layer__bar { margin-top: auto; height: 4px; border-radius: 2px; background: #2c3039; overflow: hidden; }
.layer__bar i { display: block; height: 100%; width: 100%; background: #9aa1ad; transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--ease); }
.layer.is-done .layer__n { color: #8f95a1; }
.layer.is-done .layer__bar i { background: #9aa1ad; }
.layer.is-current { background: #23262e; border-color: #3a3f4a; box-shadow: 0 0 0 1px var(--l4) inset; }
.layer.is-current .layer__n { color: var(--l4); }
.layer.is-current .layer__bar i { background: var(--l4); }
.layer:last-child .layer__n { color: #5b3a2e; }
.layer:last-child.is-current .layer__n, .layer:last-child.is-done .layer__n { color: var(--l4); }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr 1fr; } .hero__strata { width: 300px; right: -80px; opacity: .55; } }

/* tiles */
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-height: 112px; }
.tile__k { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tile__v { font: 700 30px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.tile__v small { font: 600 15px var(--font); color: var(--faint); letter-spacing: 0; }
.tile__s { font-size: 13px; color: var(--muted); margin-top: auto; }
.tile--alert { border-color: var(--l4-line); background: linear-gradient(180deg, var(--l4-soft), var(--paper) 70%); }
.tile--ink { background: var(--ink); border-color: var(--ink); color: #fff; } .tile--ink .tile__k, .tile--ink .tile__s { color: #a3a9b4; }

/* meters */
.meter { position: relative; height: 8px; border-radius: 4px; background: var(--plane-2); overflow: hidden; }
.meter i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .8s var(--ease); border-radius: 4px; }
.meter--l4 i { background: var(--l4); } .meter--ok i { background: var(--ok); } .meter--s { height: 5px; }
.ring { position: relative; display: inline-grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring__track { stroke: var(--plane-2); }
.ring__val { stroke: var(--ink); transition: stroke-dashoffset 1s var(--ease); }
.ring--l4 .ring__val { stroke: var(--l4); } .ring--ok .ring__val { stroke: var(--ok); } .ring--bad .ring__val { stroke: var(--bad); }
.ring__label { position: absolute; inset: 0; display: grid; place-items: center; font: 700 20px var(--display); font-variant-numeric: tabular-nums; }
.strata { display: grid; gap: 3px; width: 54px; }
.strata i { height: 6px; border-radius: 2px; background: var(--plane-2); }
.strata i.on { background: var(--ink-3); } .strata i:last-child.on { background: var(--l4); }

/* covers */
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.course { position: relative; display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
a.course:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.course__cover { position: relative; aspect-ratio: 16 / 7.5; background: var(--ink); overflow: hidden; }
.course__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.course__no { position: absolute; left: 18px; bottom: 12px; font: 800 44px/1 var(--display); color: #fff; letter-spacing: -.03em; mix-blend-mode: normal; }
.course__tag { position: absolute; right: 12px; top: 12px; }
.course__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course__t { font: 650 17px/1.3 var(--font); margin: 0; }
.course__s { color: var(--muted); font-size: 14px; margin: 0; }
.course__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 10px; }
.course.is-locked { opacity: .72; }
.course.is-locked .course__cover { filter: grayscale(1); }
.coursehead { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; min-height: 220px; padding: clamp(22px, 4vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; }
.coursehead svg.coursehead__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.coursehead > *:not(svg) { position: relative; }
.coursehead h1 { font: 700 clamp(26px, 3.6vw, 42px)/1.08 var(--display); letter-spacing: -.02em; margin: 6px 0 0; max-width: 22ch; }
.coursehead .lead { color: #dfe2e7; margin-top: 10px; }
.coursehead__meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.coursehead .chip { background: rgba(255, 255, 255, .14); color: #fff; }

/* modules & steps */
.mods { display: flex; flex-direction: column; gap: 14px; }
.mod { border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.mod__head { display: flex; gap: 16px; align-items: center; padding: 16px 18px; }
.mod__n { font: 800 22px/1 var(--display); color: var(--faint); width: 34px; flex: none; }
.mod.is-locked .mod__head { opacity: .6; }
.steps { border-top: 1px solid var(--line); }
.step { display: flex; align-items: center; gap: 14px; padding: 12px 18px; text-decoration: none; border-top: 1px solid var(--line); transition: background .15s; }
.step:first-child { border-top: 0; }
a.step:hover { background: var(--plane); }
.step__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--plane); color: var(--ink-3); flex: none; }
.step.is-done .step__ic { background: var(--ok-soft); color: var(--ok); }
.step__t { font-weight: 600; line-height: 1.3; }
.step__m { font-size: 13px; color: var(--muted); }
.step__end { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* reader */
.stepbar { display: flex; align-items: center; gap: 12px; padding: 10px 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.stepbar__t { font-weight: 650; line-height: 1.25; }
.reader { max-width: 760px; margin: 0 auto; }
.reader__title { font: 700 clamp(26px, 3.4vw, 38px)/1.12 var(--display); letter-spacing: -.02em; margin: 10px 0 0; }
.article { font-size: 17.5px; line-height: 1.68; color: #1e2127; }
.article > * + * { margin-top: 16px; }
.article h2 { font: 700 22px/1.25 var(--display); letter-spacing: -.01em; margin-top: 36px; }
.article h3 { font: 650 18.5px/1.3 var(--font); margin-top: 26px; }
.article h4 { font: 650 16.5px/1.35 var(--font); margin-top: 20px; }
.article p { margin: 0; }
.article ul, .article ol { padding-left: 22px; margin: 0; }
.article li + li { margin-top: 6px; }
.article li::marker { color: var(--l4-ink); }
.article a { color: var(--l4-ink); }
.article code { font: 500 .9em ui-monospace, Menlo, monospace; background: var(--plane); padding: 1px 6px; border-radius: 6px; }
.article blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line-2); color: var(--ink-3); }
.article .table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.article th { text-align: left; font-weight: 650; background: var(--plane); padding: 10px 12px; }
.article td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
@media (max-width: 640px) {
  .article { font-size: 16.5px; }
  .article table thead { display: none; }
  .article table, .article tbody, .article tr, .article td { display: block; width: 100%; }
  .article tr { border-top: 1px solid var(--line); padding: 8px 0; }
  .article td { border: 0; padding: 4px 12px; }
  .article td::before { content: attr(data-label); display: block; font: 650 12px/1.3 var(--font); color: var(--muted); }
}
.callout { position: relative; padding: 14px 16px 14px 18px; border-radius: 14px; background: var(--plane); border: 1px solid var(--line); }
.callout p { margin: 0; } .callout p + p { margin-top: 6px; }
.callout__tag { display: inline-block; font: 700 12px/1 var(--font); letter-spacing: .03em; margin-bottom: 8px; color: var(--muted); }
.callout--say { background: #fff; border-color: var(--line-2); box-shadow: inset 4px 0 0 var(--ink); }
.callout--say p { font-weight: 500; }
.callout--key { background: var(--l4-soft); border-color: var(--l4-line); } .callout--key .callout__tag { color: var(--l4-ink); }
.callout--stop { background: var(--bad-soft); border-color: #f4c9c3; } .callout--stop .callout__tag { color: var(--bad); }
.callout--case { background: var(--info-soft); border-color: #cfdcfb; } .callout--case .callout__tag { color: var(--info); }
.callout--mem, .callout--tip { background: var(--ok-soft); border-color: #c5e6d3; } .callout--mem .callout__tag, .callout--tip .callout__tag { color: var(--ok); }
.flow { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: f; }
.flow li { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; font-weight: 550; margin: 0 !important; }
.flow li + li { position: relative; margin-left: 18px !important; }
.flow li + li::before { content: ''; position: absolute; left: -19px; top: 50%; width: 12px; height: 2px; background: var(--line-2); }
.flow__n { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: #fff; font: 700 12px var(--display); flex: none; }
.flow li:last-child .flow__n { background: var(--l4); color: var(--ink); }
.funnel { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.funnel__row { display: grid; grid-template-columns: minmax(120px, 34%) 1fr auto; align-items: center; gap: 12px; font-size: 14.5px; }
.funnel__bar { height: 14px; border-radius: 4px; background: var(--ink); transform-origin: left; }
.funnel__row:last-child .funnel__bar { background: var(--l4); }
.funnel__v { font-weight: 700; font-variant-numeric: tabular-nums; }
.funnel__note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.takeaways { margin-top: 36px; border-radius: var(--r-l); background: var(--ink); color: #fff; padding: 22px 22px 18px; position: relative; overflow: hidden; }
.takeaways::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 8px; background: linear-gradient(var(--ink-3) 0 25%, var(--faint) 25% 50%, #c4c8cf 50% 75%, var(--l4) 75% 100%); }
.takeaways h2 { font: 700 18px/1.3 var(--display); margin: 0 0 12px; }
.takeaways ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 16.5px; line-height: 1.5; }
.takeaways li::marker { color: var(--l4); }
.practice { margin-top: 18px; border-radius: var(--r-l); border: 1px dashed var(--line-2); background: var(--paper); padding: 20px; }
.finish { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); flex-wrap: wrap; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: #6b4705; font-size: 14px; line-height: 1.45; }
.notice--info { background: var(--info-soft); color: #1f3f97; } .notice--ok { background: var(--ok-soft); color: #0f5a37; } .notice--bad { background: var(--bad-soft); color: #8a271f; } .notice--plain { background: var(--plane); color: var(--ink-3); }

/* quiz */
.quiz { max-width: 780px; margin: 0 auto; }
.qdots { display: flex; gap: 4px; margin: 6px 0 22px; }
.qdots i { flex: 1; height: 4px; border-radius: 2px; background: var(--plane-2); }
.qdots i.on { background: var(--ink); } .qdots i.cur { background: var(--l4); }
.qtext { font: 650 clamp(19px, 2.2vw, 23px)/1.35 var(--font); margin: 0 0 6px; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.opt { display: flex; align-items: flex-start; gap: 14px; text-align: left; width: 100%; padding: 15px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 16px; line-height: 1.45; transition: border-color .15s, background .15s, transform .1s; }
.opt:hover { border-color: var(--line-2); background: #fbfbfc; }
.opt:active { transform: scale(.995); }
.opt__mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; margin-top: 1px; color: transparent; transition: all .15s; }
.opt--multi .opt__mark { border-radius: 6px; }
.opt[aria-checked='true'] { border-color: var(--ink); background: #f7f8fa; }
.opt[aria-checked='true'] .opt__mark { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt .ic { width: 14px; height: 14px; stroke-width: 3; }
.qnav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.qres { display: flex; flex-direction: column; gap: 12px; }
.qres__item { padding: 16px 18px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ok); }
.qres__item--bad { border-left-color: var(--bad); }
.qres__ans { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 14.5px; }
.qres__ans span { display: flex; gap: 8px; align-items: flex-start; }
.qres__exp { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); color: var(--ink-3); font-size: 14.5px; }
.score { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* chat (simulations) */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .sim { grid-template-columns: 1fr; } .sim aside { order: -1; } }
.chat { display: flex; flex-direction: column; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); overflow: hidden; min-height: 560px; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfbfc; }
.chat__name { font-weight: 650; line-height: 1.2; }
.chat__status { font-size: 12.5px; color: var(--ok); }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; overflow-y: auto; max-height: 62vh; background: #f6f7f9; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 16px; font-size: 15.5px; line-height: 1.45; animation: pop .22s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.msg--in { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg--out { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.msg--sys { align-self: center; background: transparent; color: var(--muted); font-size: 13px; padding: 2px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat__reply { padding: 14px 16px; border-top: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 8px; }
.chat__hint { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.reply { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 15px; line-height: 1.45; transition: border-color .15s, background .15s; }
.reply:hover { border-color: var(--ink); background: #fafafb; }
.chat--call .chat__head { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat--call .chat__status { color: #8de2b4; }
.chat--call .chat__log { background: #f3f4f6; }
.chat--call .msg { max-width: 92%; border-radius: 10px; }
.chat--call .msg--in::before, .chat--call .msg--out::before { display: block; font: 700 11px/1.3 var(--font); letter-spacing: .03em; margin-bottom: 3px; opacity: .65; }
.chat--call .msg--in::before { content: attr(data-who); } .chat--call .msg--out::before { content: attr(data-me); }
.chat--email .chat__log { background: var(--paper); }
.chat--email .msg { max-width: 100%; align-self: stretch; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); white-space: pre-line; }
.chat--email .msg--out { background: #f7f8fa; }
.chat--email .msg::before { display: block; font: 600 12px/1.3 var(--font); color: var(--muted); margin-bottom: 6px; }
.chat--email .msg--in::before { content: attr(data-who); } .chat--email .msg--out::before { content: attr(data-me); }
.chat--video .chat__head, .chat--meeting .chat__head { background: linear-gradient(90deg, #1b1e24, #2a2e36); color: #fff; }
.calltimer { font: 600 13px var(--font); font-variant-numeric: tabular-nums; color: #8de2b4; }
.free { display: flex; flex-direction: column; gap: 8px; }
.persona { display: flex; flex-direction: column; gap: 12px; }
.persona dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
.persona dt { color: var(--muted); }
.persona dd { margin: 0; font-weight: 550; }
.review { display: flex; flex-direction: column; gap: 12px; }
.review__item { padding: 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.review__said { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f2f3f5; font-size: 15px; }
.review__fb { margin-top: 8px; color: var(--ink-3); font-size: 14.5px; }
.review__best { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: #0f5a37; font-size: 14.5px; }
.crit { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 3px 0; }
.crit .ic { margin-top: 2px; }
.crit--hit { color: var(--ok); } .crit--miss { color: var(--muted); } .crit--minus { color: var(--bad); }

/* avatars & lists */
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; color: #fff; font: 700 13px/1 var(--font); background: var(--ink-3); }
.avatar--l { width: 56px; height: 56px; font-size: 18px; } .avatar--xl { width: 76px; height: 76px; font-size: 24px; }
.list { display: flex; flex-direction: column; }
.list__item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-top: 1px solid var(--line); text-decoration: none; }
.list__item:first-child { border-top: 0; }
a.list__item:hover { background: #fafbfc; }
.list__t { font-weight: 600; line-height: 1.3; }
.list__m { font-size: 13px; color: var(--muted); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.field__hint { font-size: 12.5px; color: var(--muted); }
.field__warn { font-size: 12.5px; color: var(--warn); font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 13px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); font-size: 15.5px; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(21, 23, 28, .08); }
.input--mono, .textarea--mono { font: 500 13.5px/1.55 ui-monospace, Menlo, monospace; }
.pass { position: relative; display: block; }
.pass .input { padding-right: 48px; }
.pass__eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 36px; border: 0; background: none; border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14.5px; line-height: 1.4; width: 100%; }
.check__box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; color: transparent; margin-top: 1px; }
.check[aria-pressed='true'], .check:has(input:checked) { border-color: var(--ink); }
.check[aria-pressed='true'] .check__box, .check:has(input:checked) .check__box { background: var(--ink); border-color: var(--ink); color: #fff; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .ic { width: 13px; height: 13px; stroke-width: 3; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--plane); }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { border: 1.5px solid var(--line); background: var(--paper); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink-3); }
.filter[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; border: 0; background: none; padding: 12px 14px; font-weight: 600; font-size: 14.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected='true'] { color: var(--ink); }
.tabs button[aria-selected='true']::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--l4); }
.search { position: relative; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.search .input { padding-left: 40px; }
.error { padding: 10px 12px; border-radius: 12px; background: var(--bad-soft); color: #8a271f; font-size: 14px; font-weight: 500; }
.secret { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--plane); font: 600 16px ui-monospace, Menlo, monospace; word-break: break-all; }
.rate { display: flex; gap: 4px; flex-wrap: wrap; }
.rate button { min-width: 38px; height: 34px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 650; cursor: pointer; font-variant-numeric: tabular-nums; }
.rate button[aria-pressed='true'] { background: var(--ink); color: #fff; border-color: var(--ink); }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 42px; height: 24px; border-radius: 12px; background: var(--line-2); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 1px 0 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--ink); } .switch input:checked::after { transform: translateX(18px); }

/* tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfbfc; }
.tbl td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr[data-href] { cursor: pointer; }
.tbl tr[data-href]:hover td { background: #fafbfc; }
.cellname { display: flex; align-items: center; gap: 10px; font-weight: 600; }
@media (max-width: 760px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 10px 4px; border-top: 1px solid var(--line); }
  .tbl td { border: 0; padding: 4px 12px; }
  .tbl td[data-label]::before { content: attr(data-label); display: block; font: 600 11.5px/1.3 var(--font); color: var(--muted); }
}

/* dashboard */
.funnelbars { display: flex; flex-direction: column; gap: 8px; }
.fb { display: grid; grid-template-columns: 200px 1fr 44px; align-items: center; gap: 12px; text-decoration: none; }
.fb__t { font-size: 14px; color: var(--ink-3); }
.fb__bar { height: 22px; border-radius: 6px; background: var(--plane); overflow: hidden; }
.fb__bar i { display: block; height: 100%; background: var(--ink-3); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .9s var(--ease); border-radius: 6px; }
.fb--hot .fb__bar i { background: var(--l4); }
.fb--ok .fb__bar i { background: var(--ok); }
.fb__v { font: 700 15px var(--display); text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .fb { grid-template-columns: 1fr 44px; } .fb__bar { grid-column: 1 / -1; grid-row: 2; } }
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: var(--plane); border-radius: var(--r-l); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 220px; }
.lane__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px; font-weight: 650; font-size: 14px; }
.pcard { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }

/* profile */
.profilehead { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 22px; border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); }
.kv { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; font-size: 14.5px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 550; overflow-wrap: anywhere; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { position: relative; padding: 0 0 16px 22px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: -4px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl::after { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); }
.tl--hot::after { border-color: var(--l4); background: var(--l4); }
.note { padding: 12px 14px; border-radius: 12px; background: var(--plane); }
.note--weakness { background: var(--bad-soft); } .note--strength { background: var(--ok-soft); } .note--recommendation { background: var(--info-soft); }
.note--rop { box-shadow: inset 3px 0 0 var(--l4); }

/* notifications */
.drawer { position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); box-shadow: -20px 0 60px -30px rgba(0, 0, 0, .45); display: flex; flex-direction: column; animation: slide .28s var(--ease) both; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 10px 24px; }
.scrim { position: fixed; z-index: 70; inset: 0; background: rgba(21, 23, 28, .32); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.ntf { display: flex; gap: 12px; padding: 12px 10px; border-radius: 12px; text-decoration: none; position: relative; }
.ntf:hover { background: var(--plane); }
.ntf__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--plane); flex: none; }
.ntf.is-unread .ntf__ic { background: var(--l4-soft); color: var(--l4-ink); }
.ntf.is-unread::after { content: ''; position: absolute; right: 10px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--l4); }
.ntf__t { font-weight: 600; line-height: 1.3; padding-right: 14px; }
.ntf__b { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; }
.ntf__m { font-size: 12px; color: var(--faint); margin-top: 4px; }

/* toasts & modal */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 550; font-size: 14.5px; box-shadow: var(--sh-3); animation: pop .25s var(--ease) both; }
.toast--bad { background: var(--bad); } .toast--ok { background: var(--ok); }
@media (max-width: 960px) { .toasts { bottom: 96px; } }
dialog.modal { border: 0; padding: 0; border-radius: var(--r-xl); width: min(620px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: var(--sh-3); color: var(--ink); }
dialog.modal::backdrop { background: rgba(21, 23, 28, .45); }
dialog.modal[open] { animation: pop .22s var(--ease) both; display: flex; flex-direction: column; }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 6px; }
.modal__body { padding: 10px 20px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 34px 16px; color: var(--muted); }
.empty svg { width: 120px; height: 80px; color: var(--line-2); }
.skel { height: 18px; border-radius: 8px; background: linear-gradient(90deg, var(--plane) 25%, #f6f7f9 50%, var(--plane) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skel + .skel { margin-top: 12px; } .skel--l { height: 160px; border-radius: var(--r-l); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* auth & join */
.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); background: var(--ink); }
.gate__art { position: relative; overflow: hidden; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(28px, 6vh, 64px); color: #fff; }
.gate__art svg.gate__strata { position: absolute; inset: auto -10% -6% -10%; width: 120%; height: 70%; }
.gate__word { position: relative; width: min(520px, 90%); aspect-ratio: 1400 / 485; background: url(/img/brand/layer4-word.webp) left center / contain no-repeat; margin-left: -2%; }
.gate__title { position: relative; font: 700 clamp(30px, 4vw, 54px)/1.04 var(--display); letter-spacing: -.03em; max-width: 14ch; margin: 0; }
.gate__lead { position: relative; color: #b9bec8; font-size: 17px; max-width: 46ch; margin: 14px 0 0; }
.gate__facts { position: relative; display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; }
.gate__fact b { display: block; font: 700 28px/1 var(--display); color: #fff; }
.gate__fact span { font-size: 13px; color: #9aa0ab; }
.gate__panel { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.gate__form { width: min(420px, 100%); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .gate { grid-template-columns: 1fr; } .gate__art { min-height: 300px; padding-bottom: 104px; } .gate__art svg.gate__strata { height: 96px; inset: auto -10% -2px -10%; } .gate__facts { display: none; } }
.join { background: var(--bg); min-height: 100vh; }
.join__hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; padding: clamp(28px, 5vw, 64px) var(--gut) clamp(40px, 6vw, 80px); }
.join__wrap { max-width: 1120px; margin: 0 auto; position: relative; }
.join__body { max-width: 1120px; margin: -36px auto 0; padding: 0 var(--gut) 80px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .join__body { grid-template-columns: 1fr; } }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.work { border-radius: 14px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.work img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--plane); }
.work__t { padding: 10px 12px; font-weight: 600; font-size: 14px; }
.work__t span { display: block; font-weight: 500; font-size: 12.5px; color: var(--muted); }

/* cases */
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.case { display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; background: var(--paper); border: 1px solid var(--line); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.case:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }
.case__shot { position: relative; aspect-ratio: 16 / 10; background: var(--plane); overflow: hidden; }
.case__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case__phone { position: absolute; right: 12px; bottom: -18px; width: 22%; aspect-ratio: 390 / 760; border-radius: 12px; overflow: hidden; border: 3px solid var(--ink); background: var(--ink); box-shadow: var(--sh-2); }
.case__phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.casehero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 16px; align-items: end; }
.casehero__desk { border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--plane); box-shadow: var(--sh-2); }
.casehero__phone { border-radius: 26px; overflow: hidden; border: 6px solid var(--ink); background: var(--ink); max-width: 230px; justify-self: center; box-shadow: var(--sh-3); }
@media (max-width: 760px) { .casehero { grid-template-columns: 1fr; } .casehero__phone { display: none; } }
.casegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .casegrid { grid-template-columns: 1fr; } }

/* assessments */
.runner { display: flex; flex-direction: column; gap: 16px; }
.runbar { position: sticky; top: 66px; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--sh-2); }
.runbar .seg { background: #23262e; }
.runbar .seg button { color: #b6bbc5; }
.runbar .seg button[aria-pressed='true'] { background: #353a44; color: #fff; box-shadow: none; }
.timer { font: 700 16px var(--display); font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 8px; background: #23262e; }
.timer.is-low { background: var(--bad); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.split__passage { position: sticky; top: 136px; max-height: calc(100vh - 150px); overflow-y: auto; padding: 22px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } .split__passage { position: static; max-height: none; } }
.item { padding: 18px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); scroll-margin-top: 140px; }
.item__n { font: 700 13px var(--display); color: var(--muted); }
.item__p { font-weight: 600; font-size: 16px; line-height: 1.45; margin-top: 6px; }
.item__x { margin-top: 10px; font-size: 15.5px; line-height: 1.6; color: #22252b; }
.item.is-answered { border-color: var(--line-2); }
.tfng { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.ptext { font-size: 17px; line-height: 2.1; margin-top: 12px; }
.pp { display: inline-grid; place-items: center; min-width: 26px; height: 22px; margin: 0 2px; border-radius: 6px; border: 1.5px dashed var(--line-2); font: 700 11px var(--font); color: var(--faint); cursor: pointer; vertical-align: 2px; padding: 0 4px; transition: all .12s; }
.pp::before { content: attr(data-pos); }
.pp.on { border-style: solid; border-color: var(--ink); background: var(--ink); color: #fff; }
.pp.on::before { content: ','; font-size: 16px; line-height: 1; }
.pp.ok { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.pp.bad { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.matchrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.player { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-l); background: var(--ink); color: #fff; }
.player__btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--l4); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.player__btn[disabled] { background: #3a3f49; color: #8a909b; cursor: not-allowed; }
.player__track { flex: 1; height: 6px; border-radius: 3px; background: #2f343d; overflow: hidden; }
.player__track i { display: block; height: 100%; background: var(--l4); transform-origin: left; transform: scaleX(var(--p, 0)); }
.rec { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border-radius: 14px; background: var(--plane); }
.rec__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bad); animation: pulse 1s infinite; }
.counter { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-ok { color: var(--ok); } .counter.is-bad { color: var(--bad); }
.scorecard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; border-radius: var(--r-xl); background: var(--ink); color: #fff; overflow: hidden; position: relative; }
.scorecard__big { font: 800 clamp(48px, 7vw, 76px)/.95 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.scorecard__big small { font-size: .32em; font-weight: 600; color: #a3a9b4; letter-spacing: 0; margin-left: 6px; }
.scorecard .muted { color: #a3a9b4; }
.scale { position: relative; height: 34px; margin-top: 14px; }
.scale__band { position: absolute; top: 0; height: 10px; border-radius: 2px; }
.scale__lbl { position: absolute; top: 14px; font: 700 11px var(--display); color: #9aa0ab; transform: translateX(-50%); }
.scale__pin { position: absolute; top: -4px; width: 4px; height: 18px; border-radius: 2px; background: var(--l4); box-shadow: 0 0 0 3px var(--ink); transform: translateX(-50%); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars__row { display: grid; grid-template-columns: minmax(140px, 220px) 1fr 64px; align-items: center; gap: 12px; font-size: 14px; }
@media (max-width: 640px) { .bars__row { grid-template-columns: 1fr 56px; } .bars__row .meter { grid-column: 1 / -1; grid-row: 2; } .scorecard { grid-template-columns: 1fr; } }
.spark { width: 100%; height: 56px; }
.spark path { fill: none; stroke: var(--l4); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--l4); }

/* certificates */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.certcard { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--r-l); background: var(--ink); color: #fff; text-decoration: none; position: relative; overflow: hidden; }
.certcard__seal { width: 52px; height: 52px; flex: none; }
.certpage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* Сертификат — документ формата A4: 1 мм листа = var(--mm). Бумага, гильош, рамка с микротекстом, итог и печать с QR. */
.cert { position: relative; width: min(1123px, 100%); aspect-ratio: 297 / 210; background: #fbfaf7; color: #15171c; border-radius: 4px; box-shadow: var(--sh-3); overflow: hidden; container-type: inline-size; --display: var(--brandfont); print-color-adjust: exact; -webkit-print-color-adjust: exact; }
.cert > * { --mm: calc(100cqw / 297); }
.cert__decor { position: absolute; inset: 0; width: 100%; height: 100%; }
.cert__w1 { fill: none; stroke: #e4ddcf; stroke-width: .2; }
.cert__w2 { fill: none; stroke: #f4d6c6; stroke-width: .16; }
.cert__ros { fill: none; stroke: #ff5a1f; stroke-width: .12; opacity: .17; }
.cert__ros--in { opacity: .28; }
.cert__f1 { fill: none; stroke: #1b1e25; stroke-width: .45; }
.cert__f2 { fill: none; stroke: #cfc7b8; stroke-width: .2; }
.cert__micro { font: 600 1.5px var(--font); letter-spacing: .2px; fill: #a69e90; }
.cert__corner path { fill: none; stroke: #ff5a1f; stroke-width: .7; }
.cert__in { position: absolute; inset: calc(var(--mm) * 20) calc(var(--mm) * 24) calc(var(--mm) * 17) calc(var(--mm) * 24); display: flex; flex-direction: column; }
.cert__top { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(var(--mm) * 8); }
.cert__logo { display: block; height: calc(var(--mm) * 9); width: auto; }
.cert__word { width: calc(var(--mm) * 50); padding: calc(var(--mm) * 3) calc(var(--mm) * 4.4); border-radius: calc(var(--mm) * 2.2); background: #15171c; }
.cert__word i { display: block; width: 100%; aspect-ratio: 1400 / 485; background: url(/img/brand/layer4-word.webp) center / contain no-repeat; }
.cert__type { display: grid; gap: calc(var(--mm) * 1.3); text-align: right; font: 600 calc(var(--mm) * 2.5)/1.3 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #6b7079; }
.cert__type b { color: #15171c; font-weight: 700; }
.cert__main { margin-top: calc(var(--mm) * 11); }
.cert__title { margin: 0; font: 800 calc(var(--mm) * 8.4)/1.04 var(--display); letter-spacing: -.02em; }
.cert__title small { display: block; margin-top: calc(var(--mm) * 2.2); font: 700 calc(var(--mm) * 2.6)/1.3 var(--font); letter-spacing: .18em; text-transform: uppercase; color: #ff5a1f; }
.cert__to { margin-top: calc(var(--mm) * 9); font: 500 calc(var(--mm) * 3.5)/1.3 var(--font); color: #6b7079; }
.cert__name { display: inline-block; max-width: 100%; margin-top: calc(var(--mm) * 1.6); padding-bottom: calc(var(--mm) * 2.6); border-bottom: calc(var(--mm) * .35) solid #15171c; font: 700 calc(var(--mm) * 12)/1.06 var(--display); letter-spacing: -.02em; }
.cert__name--l { font-size: calc(var(--mm) * 9.4); }
.cert__name--m { font-size: calc(var(--mm) * 7.4); }
.cert__text { margin: calc(var(--mm) * 4) 0 0; max-width: calc(var(--mm) * 168); font: 400 calc(var(--mm) * 3.5)/1.5 var(--font); color: #3b3f48; }
.cert__res { margin-top: auto; display: grid; grid-template-columns: calc(var(--mm) * 66) 1fr; gap: calc(var(--mm) * 10); align-items: end; }
.cert__overall > span { display: block; font: 700 calc(var(--mm) * 2.4)/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; color: #6b7079; }
.cert__score { display: flex; align-items: flex-end; gap: calc(var(--mm) * 3.2); margin-top: calc(var(--mm) * 2); }
.cert__score b { font: 800 calc(var(--mm) * 23)/.8 var(--display); letter-spacing: -.045em; }
.cert__badge { display: inline-grid; place-items: center; min-width: calc(var(--mm) * 14); height: calc(var(--mm) * 10.5); padding: 0 calc(var(--mm) * 2.6); border-radius: calc(var(--mm) * 2.4); background: #15171c; color: #fff; font: 800 calc(var(--mm) * 5)/1 var(--display); font-style: normal; }
.cert__badge--word { font: 700 calc(var(--mm) * 3.2)/1 var(--font); }
.cert__overall small { display: block; margin-top: calc(var(--mm) * 3); font: 500 calc(var(--mm) * 2.5)/1.3 var(--font); color: #6b7079; }
.cert__scale { display: block; width: 100%; height: auto; }
.cert__seg { fill: #e9e3d8; } .cert__seg.is-past { fill: #d5cec1; } .cert__seg.is-on { fill: #ff5a1f; }
.cert__lv { font: 600 11px var(--font); fill: #8a8f99; } .cert__lv.is-on { fill: #15171c; font-weight: 800; }
.cert__mk { fill: #15171c; }
.cert__secs { display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(var(--mm) * 4.5); margin-top: calc(var(--mm) * 5.5); }
.cert__secs--4 { grid-template-columns: repeat(4, 1fr); }
.cert__sec > span { display: block; min-height: 2.6em; font: 500 calc(var(--mm) * 2.45)/1.3 var(--font); color: #6b7079; }
.cert__sec > div { display: flex; align-items: baseline; gap: calc(var(--mm) * 1.4); margin-top: calc(var(--mm) * .6); }
.cert__sec b { font: 700 calc(var(--mm) * 6)/1 var(--display); letter-spacing: -.02em; }
.cert__sec .cert__word-b { font-size: calc(var(--mm) * 4.2); }
.cert__sec em { font: 700 calc(var(--mm) * 2.6)/1 var(--font); font-style: normal; color: #ff5a1f; }
.cert__bar { display: block; width: 100%; height: calc(var(--mm) * 1.3); margin-top: calc(var(--mm) * 2.2); }
.cert__bar-bg { fill: #e9e3d8; } .cert__bar-fg { fill: #15171c; }
.cert__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(var(--mm) * 8); margin-top: calc(var(--mm) * 7); padding-top: calc(var(--mm) * 4.5); border-top: calc(var(--mm) * .25) solid #d5cec1; }
.cert__meta { display: flex; gap: calc(var(--mm) * 9); min-width: 0; font: 500 calc(var(--mm) * 2.6)/1.35 var(--font); color: #6b7079; }
.cert__meta > div { display: grid; gap: calc(var(--mm) * 1); min-width: 0; }
.cert__meta span { font-size: calc(var(--mm) * 2.1); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cert__meta b { color: #15171c; font-weight: 600; }
.cert__v b { word-break: break-all; }
.cert__marks { display: flex; align-items: center; gap: calc(var(--mm) * 5); flex: none; margin-bottom: calc(var(--mm) * -2); }
.cert__seal { width: calc(var(--mm) * 29); height: calc(var(--mm) * 29); }
.cert__qr { width: calc(var(--mm) * 21); height: calc(var(--mm) * 21); }
.cert--revoked::after { content: 'ОТОЗВАН'; position: absolute; inset: 0; display: grid; place-items: center; font: 800 10cqw var(--display); color: rgba(182, 53, 43, .18); transform: rotate(-12deg); }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff; }
  .shell { display: block; }
  .rail-nav, .topbar, .tabbar, .noprint, .toasts { display: none !important; }
  .main { padding: 0; max-width: none; }
  .cert { width: 297mm; height: 210mm; box-shadow: none; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.fs-14 { font-size: 14px !important; } .fs-15 { font-size: 15.5px !important; } .fs-16 { font-size: 16.5px !important; }
.c-white { color: #fff !important; } .c-mute { color: #a3a9b4 !important; } .c-peach { color: #ffd2bd !important; }
.pre { white-space: pre-wrap; } .pre--say { font: inherit; margin: 0; }
.pointer { cursor: pointer; } .block { display: block; } .rel { position: relative; } .stretch { align-self: stretch; } .w40 { width: 40%; } .jc { justify-content: center; } .minh-screen { min-height: 100vh; }
.list-plain { padding-left: 18px; margin: 8px 0 0; } .list-plain li + li { margin-top: 4px; }
.narrow { max-width: 620px; margin: 36px auto; }
.mla-btn { margin: 12px 6px 0 auto; } .mla-chip { margin: 14px 6px 0 auto; }
.bands7 { display: grid !important; grid-template-columns: repeat(7, 1fr); width: 110px !important; gap: 2px !important; }
.bands7 i { height: 8px !important; }
.display--l { font-size: 56px; } .display--xl { font-size: 72px; color: var(--l4); }
.iconbtn--dark { background: #23262e; border-color: #2c3039; color: #fff; }
.iconbtn--dark:hover { background: #2c3039; }
.check--mini { width: auto; padding: 6px; border: 0; }
.select--inline { width: auto; min-height: 30px; padding: 2px 8px; font-size: 13.5px; border-radius: 8px; display: inline-block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tile { text-decoration: none; color: inherit; }
button.tile { text-align: left; cursor: pointer; font: inherit; }

svg.gate__strata, svg.hero__strata, svg.coursehead__art { max-width: none; }
.brand__name, .brand__sub { display: block; }
.brand__sub b { color: var(--l4); font-weight: 700; }
.article .flow, .article .funnel { margin-top: 18px; }
.topbar .brand { padding: 0; }
.topbar .brand__name { color: var(--ink); font-size: 14px; }
.topbar .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
@media (max-width: 760px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { min-height: 96px; padding: 14px; }
  .tile__v { font-size: 24px; }
  .next { flex-wrap: wrap; }
  .next .btn { width: 100%; }
  .hero h1 { font-size: 27px; }
  .pagehead { margin: 10px 0 18px; }
  .runbar { top: 58px; }
  .split__passage { padding: 16px; }
  .profilehead { padding: 16px; }
}

@media (max-width: 640px) { .bars__row .bands7 { grid-column: 1 / -1; grid-row: 2; width: 100% !important; } }

/* PARLEY: шапка теста */
.phero { padding-bottom: clamp(22px, 3vw, 32px); }
.phero > :not(.hero__strata) { position: relative; }
.phero__brand { display: inline-flex; align-items: center; gap: 10px; font: 800 15px/1 var(--display); letter-spacing: .14em; color: #fff; }
.phero__brand span { display: inline-grid; grid-template-rows: repeat(4, 1fr); gap: 2px; width: 18px; height: 20px; }
.phero__brand span i { background: #8b919c; border-radius: 1.5px; }
.phero__brand span i:last-child { background: var(--l4); }
.phero h1 { font-size: clamp(32px, 5vw, 52px); }
.phero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, max-content)); gap: 10px 34px; margin-top: 26px; }
.phero__facts div { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 2px solid #343944; }
.phero__facts div:first-child { border-left-color: var(--l4); }
.phero__facts b { font: 700 22px/1 var(--display); color: #fff; }
.phero__facts span { font-size: 13px; color: #a3a9b4; }
.btn--onink { --b: #3a3f49; --c: #fff; background: transparent; }
.btn--onink:hover { background: #23262e; }
details.card > summary.disclose { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
details.card > summary.disclose::-webkit-details-marker { display: none; }
.disclose__ic { transition: transform .2s ease; }
details[open] > summary .disclose__ic { transform: rotate(180deg); }
@media (max-width: 760px) { .phero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; } .phero__facts b { font-size: 19px; } }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--warn-soft, #fff4e5); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.notice .ic { flex: none; margin-top: 2px; }
.notice--ok { background: var(--ok-soft); }
.scale__lbl--on { color: #fff; }
@media (max-width: 640px) { .scale__lbl:not(.scale__lbl--on) { display: none; } }
.item__x + .item__p, .item__src + .item__p { margin-top: 14px; }
.item__src { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--faint); }
.item__x p { margin: 0 0 .6em; } .item__x p:last-child { margin-bottom: 0; }
.item__x ul { margin: .4em 0 .6em 1.2em; } .item__x table { margin: .6em 0; }
.item__p + .item__x { margin-top: 10px; }
.gate-sec { margin-top: 24px; }
.gate-sec__rules { margin: 4px 0 6px; padding-left: 1.2em; display: grid; gap: 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2, #2a2e36); }

/* PARLEY: абзацы длинных текстов, метки абзацев, таблицы в заданиях */
.split__passage .article p + p, .runner .card .article p + p { margin-top: 12px; }
.plabel { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-right: 8px; padding: 0 5px; border-radius: 6px; background: var(--ink); color: #fff; font: 700 12px/1 var(--display); vertical-align: 2px; }
.item__x { overflow-x: auto; }
.item__x table { border-collapse: collapse; font-size: 14.5px; line-height: 1.4; margin: 12px 0 4px; }
.item__x th, .item__x td { border: 1px solid var(--line-2, #d9dce1); padding: 7px 14px; text-align: left; }
.item__x th { background: var(--plane); font-weight: 650; }
details.disc { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--plane); }
details.disc > summary { cursor: pointer; font-weight: 600; font-size: 14px; }
details.disc .guide { line-height: 1.6; color: var(--ink); }

/* Статус кандидата: слои пути вместо «точки в таблетке» */
.stage { display: inline-flex; align-items: center; gap: 9px; font: 600 13.5px/1.2 var(--font); color: var(--ink); white-space: nowrap; }
.stage__l { display: inline-flex; flex-direction: column-reverse; gap: 2px; width: 16px; flex: none; }
.stage__l i { display: block; height: 3px; border-radius: 1px; background: var(--line-2, #d9dce1); }
.stage[data-layer="1"] .stage__l i:nth-child(-n+1), .stage[data-layer="2"] .stage__l i:nth-child(-n+2), .stage[data-layer="3"] .stage__l i:nth-child(-n+3), .stage[data-layer="4"] .stage__l i { background: var(--ink); }
.stage[data-layer="4"] .stage__l i:nth-child(4) { background: var(--l4); }
.stage--needs_more .stage__t { color: var(--warn); }
.stage--rejected .stage__t { color: var(--bad); }
.stage--archived .stage__t { color: var(--faint); }
.hero .stage, .coursehead .stage, .card--ink .stage { color: #fff; }
.hero .stage__l i, .coursehead .stage__l i, .card--ink .stage__l i { background: #3a3f49; }
.hero .stage[data-layer="1"] .stage__l i:nth-child(-n+1), .hero .stage[data-layer="2"] .stage__l i:nth-child(-n+2), .hero .stage[data-layer="3"] .stage__l i:nth-child(-n+3), .hero .stage[data-layer="4"] .stage__l i { background: #c7cbd3; }
.hero .stage[data-layer="4"] .stage__l i:nth-child(4) { background: var(--l4); }

/* Статус материала: штамп черновика вместо цветной таблетки */
.cs { display: inline-flex; align-items: center; padding: 3px 7px 2px; border: 1.5px dashed currentColor; border-radius: 3px; background: transparent; font: 700 10px/1.25 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.cs::before { content: none; display: none; }
.cs--clarifying, .cs--review { color: var(--warn); background: transparent; }
.cs--approved { color: var(--ok); background: transparent; } .cs--draft { color: var(--muted); background: transparent; } .cs--archived { color: var(--faint); background: transparent; }
.course__tag .cs, .coursehead .cs { color: #ffd7a1; background: rgba(21, 23, 28, .55); border-color: rgba(255, 215, 161, .75); }
.w-stage { flex: none; width: 150px; } .w-stage .stage__t { font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
/* слои ступенькой: снизу длинный, сверху короткий — разрез, а не «гамбургер» */
.stage__l { width: 18px; align-items: flex-start; gap: 2px; }
.stage__l i { height: 3px; }
.stage__l i:nth-child(1) { width: 18px; } .stage__l i:nth-child(2) { width: 14px; } .stage__l i:nth-child(3) { width: 10px; } .stage__l i:nth-child(4) { width: 6px; }
/* статус: номер этапа + название (вместо иконок) */
.stage { align-items: baseline; gap: 0; }
.stage__n { font: 700 11.5px/1 var(--display); letter-spacing: .04em; color: var(--muted); padding-right: 8px; margin-right: 8px; border-right: 1.5px solid var(--line-2, #d9dce1); font-variant-numeric: tabular-nums; }
.stage[data-layer="4"] .stage__n { color: var(--l4-ink, #b33a0c); }
.stage[data-layer="0"] .stage__n { color: var(--faint); }
.hero .stage__n, .coursehead .stage__n, .card--ink .stage__n { color: #8b919c; border-color: #3a3f49; }
.hero .stage[data-layer="4"] .stage__n, .card--ink .stage[data-layer="4"] .stage__n { color: var(--l4); }
/* метки на карточке курса — рубрика капителью вместо таблеток */
.course__body .row--tight { gap: 0; }
.course__body .row--tight .chip { background: none; padding: 0; border-radius: 0; height: auto; font: 700 10.5px/1.4 var(--display); letter-spacing: .09em; text-transform: uppercase; color: var(--muted); gap: 5px; }
.course__body .row--tight .chip--ink { color: var(--ink); }
.course__body .row--tight .chip--warn { color: var(--warn); }
.course__body .row--tight .chip .ic { width: 12px; height: 12px; }
.course__body .row--tight .chip + .chip::before { content: '·'; margin: 0 7px 0 8px; color: var(--faint); }
/* абзацы статьи: .article p { margin: 0 } перебивал общий ритм — возвращаем отступы */
.article > p + *, .article > * + p { margin-top: 16px; }
.article > p + p { margin-top: 14px; }
/* встроенная пометка «уточняется» — мини-штамп, как на материалах */
.flag { padding: 0 5px; border: 1px dashed currentColor; border-radius: 3px; background: none; color: var(--warn); font: 700 9.5px/16px var(--display); letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }
.coursehead .flag, .hero .flag { color: #ffd7a1; }
.article > h2 { margin-top: 36px; } .article > h3 { margin-top: 28px; } .article > h4 { margin-top: 20px; }
.article > :first-child { margin-top: 0; }

/* Шаг «Цена» */
.pcase__head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pcase__n { font: 700 13px/1 var(--display); color: var(--l4-ink, #b33a0c); letter-spacing: .04em; }
.pcase__head .h3 { flex: 1 1 260px; margin: 0; }
.pcase__in { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2, #d9dce1); }
.pcase__in .field { margin: 0; }
.pcase__in .grow { flex: 1 1 260px; }
.pricefield { display: flex; align-items: center; gap: 8px; }
.pricefield .input { width: 150px; font: 700 20px/1.2 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pricefield i { font: 700 18px/1 var(--display); font-style: normal; color: var(--muted); }
.pres { display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.pres .muted { color: #a3a9b4; }
.pres__score { font: 800 52px/1 var(--display); letter-spacing: -.03em; }
.pres__score small { font-size: .4em; margin-left: 2px; color: #a3a9b4; }
.pres__score.is-ok { color: #8fe0b0; } .pres__score.is-bad { color: #ffb199; }
.pzone { font: 700 10.5px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px 2px; border: 1.5px solid currentColor; border-radius: 3px; }
.pzone--comfort { color: var(--ok); } .pzone--low, .pzone--edge { color: var(--warn); } .pzone--cheap, .pzone--over { color: var(--bad); }
.pscale { position: relative; height: 64px; margin: 20px 0 6px; }
.pscale__band { position: absolute; top: 26px; height: 12px; }
.pscale__band--cheap { background: #f3cfc8; border-radius: 6px 0 0 6px; } .pscale__band--low { background: #f8e3bd; } .pscale__band--comfort { background: #bfe5cd; } .pscale__band--edge { background: #f8e3bd; } .pscale__band--over { background: #f3cfc8; border-radius: 0 6px 6px 0; }
.pscale__opt { position: absolute; top: 20px; width: 2px; height: 24px; background: var(--ink); transform: translateX(-50%); }
.pscale__pin { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.pscale__pin b { font: 700 12.5px/1 var(--display); white-space: nowrap; padding: 4px 7px; border-radius: 6px; background: var(--l4); color: var(--ink); }
.pscale__pin::after { content: ''; width: 3px; height: 22px; background: var(--l4); margin-top: 2px; border-radius: 2px; }
.pscale__tick { position: absolute; top: 46px; transform: translateX(-50%); font: 600 11px/1 var(--font); color: var(--muted); white-space: nowrap; }
.pcase__legend { margin-top: 4px; }
.pcase__why { margin-top: 12px; padding-left: 12px; border-left: 2px solid var(--line-2, #d9dce1); }
@media (max-width: 640px) { .pricefield .input { width: 120px; } .pscale__tick:nth-of-type(2n) { display: none; } }

/* Статистика: плитки и графики */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; border-radius: var(--r-l, 18px); background: var(--paper); border: 1px solid var(--line); }
.kpi__l { font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi__v { margin-top: 8px; font: 650 34px/1 var(--font); letter-spacing: -.02em; color: var(--ink); }
.kpi__v small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.kpi__s { margin-top: 6px; font-size: 13px; color: var(--muted); }
.kpi--accent { background: var(--ink); border-color: var(--ink); }
.kpi--accent .kpi__l, .kpi--accent .kpi__s, .kpi--accent .kpi__v small { color: #a3a9b4; }
.kpi--accent .kpi__v { color: #fff; }
@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hb { position: relative; display: grid; gap: 10px; padding-top: 18px; }
.hb__row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; align-items: center; }
.hb__l { font-size: 13.5px; line-height: 1.3; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.hb__l small { display: block; font-size: 12px; color: var(--muted); }
.hb__track { position: relative; height: 16px; display: flex; align-items: center; }
.hb__bar { height: 14px; background: #4b5260; border-radius: 0 4px 4px 0; outline-offset: 2px; }
.hb__v { margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hb__na { font-size: 12.5px; color: var(--faint); }
.hb__thr { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--l4); z-index: 1; pointer-events: none; }
.hb__thr span { position: absolute; top: 0; left: 4px; font-size: 11px; font-weight: 600; color: var(--l4-ink, #b33a0c); white-space: nowrap; }
.hb__row { padding-left: 0; }
.hb { --lw: 38%; }
.hb__thr { margin-left: calc(var(--lw) + 12px); }
.seg { display: flex; gap: 2px; height: 28px; }
.seg__part { display: flex; align-items: center; padding: 0 8px; border-radius: 4px; color: var(--ink); font-size: 12.5px; min-width: 0; }
.seg__part.is-dark { color: #fff; }
.seg__part b { font-weight: 650; white-space: nowrap; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2, #3a3f49); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dv { display: grid; gap: 10px; }
.dv__axis { position: relative; height: 16px; margin-left: calc(38% + 12px); font-size: 11.5px; color: var(--muted); }
.dv__axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.dv__axis span:first-child { transform: none; } .dv__axis span:last-child { transform: translateX(-100%); }
.dv__row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; align-items: center; }
.dv__l { font-size: 13.5px; line-height: 1.3; }
.dv__l small { display: block; font-size: 12px; color: var(--muted); }
.dv__track { position: relative; height: 24px; }
.dv__mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #c3c7ce; }
.dv__seg { position: absolute; top: 0; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: var(--ink); border-right: 2px solid var(--paper); box-sizing: border-box; }
.dv__seg.is-dark { color: #fff; }
.dv__seg b { font-weight: 650; }
.dvb { display: grid; gap: 10px; }
.dvb__row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; gap: 12px; align-items: center; }
.dvb__l { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dvb__track { position: relative; height: 20px; }
.dvb__zero { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 1px; background: #c3c7ce; }
.dvb__bar { position: absolute; top: 4px; height: 12px; }
.dvb__bar.is-neg { background: #1c5cab; border-radius: 4px 0 0 4px; } .dvb__bar.is-pos { background: #c2410c; border-radius: 0 4px 4px 0; }
.dvb__v { position: absolute; top: 2px; padding-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dvb__v.is-neg { transform: translateX(-100%); padding: 0 6px 0 0; }
.tview { margin-top: 2px; }
.tview > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.tview .tablewrap { margin-top: 10px; }
.ch-tip { position: absolute; z-index: 60; max-width: 280px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.35; pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.ch-tip.is-on { opacity: 1; transform: none; }
[data-tip]:focus-visible { outline: 2px solid var(--l4); outline-offset: 2px; }
@media (max-width: 640px) { .hb__row, .dv__row, .dvb__row { grid-template-columns: 1fr; gap: 4px; } .dv__axis { margin-left: 0; } .hb__thr { display: none; } }
.hb { padding-top: 2px; }
.hb__thr { display: none; }
.hb__tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--l4); border-radius: 1px; z-index: 1; }

/* PARLEY: знак (четыре полосы, верхняя — оранжевая) в меню и на входе */
.pw { display: inline-grid; grid-template-rows: repeat(4, 1fr); gap: 2px; width: 18px; height: 20px; flex: none; }
.pw i { background: #8b919c; border-radius: 1.5px; }
.pw i:last-child { background: var(--l4); }
.brand--parley { gap: 10px; }
.brand--parley .brand__name { letter-spacing: .14em; }
.topbar .brand--parley .pw i { background: #5c6472; }
.topbar .brand--parley .pw i:last-child { background: var(--l4); }
.gate__parley { display: inline-flex; align-items: center; gap: 14px; font: 800 34px/1 var(--display); letter-spacing: .14em; color: #fff; }
.gate__parley .pw { width: 30px; height: 34px; gap: 3px; }
/* знак PARLEY: строки разной длины, как реплики разговора, — не «гамбургер» */
.pw, .phero__brand span { justify-items: start; }
.pw i:nth-child(1), .phero__brand span i:nth-child(1) { width: 72%; }
.pw i:nth-child(2), .phero__brand span i:nth-child(2) { width: 100%; }
.pw i:nth-child(3), .phero__brand span i:nth-child(3) { width: 54%; }
.pw i:nth-child(4), .phero__brand span i:nth-child(4) { width: 86%; }

/* Галерея слайдов и ссылки на скачивание в уроках */
.slides { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 88%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; overscroll-behavior-x: contain; }
.slides__item { margin: 0; scroll-snap-align: start; }
.slides__item img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--plane); }
.slides__item figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.article a.dl { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.article a.dl::before { content: '↓'; font-weight: 700; color: var(--l4); }
.article a.dl:hover { background: #23262e; }
/* цифры шапки теста не заходят на графику справа */
.phero__facts { display: flex; flex-wrap: wrap; gap: 12px 30px; max-width: 58%; }
@media (max-width: 760px) { .phero__facts { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Лестница (```лестница): ступени снизу вверх, верхняя — цель */
.ladder { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column-reverse; gap: 8px; border-radius: 16px; background: var(--plane); border: 1px solid var(--line); counter-reset: none; }
.ladder__step { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 12px; background: #3a404c; color: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; }
.ladder__step--0 { margin-left: 0; background: #22262e; } .ladder__step--1 { margin-left: 7%; background: #2e333d; } .ladder__step--2 { margin-left: 14%; background: #3a404c; }
.ladder__step--3 { margin-left: 21%; background: #4b5260; } .ladder__step--4 { margin-left: 28%; background: #5c6472; } .ladder__step--5 { margin-left: 35%; } .ladder__step--6 { margin-left: 42%; } .ladder__step--7 { margin-left: 49%; }
.ladder__step.is-goal { background: var(--l4); color: var(--ink); }
.ladder__step + .ladder__step::before { content: ''; position: absolute; left: -14px; bottom: -14px; width: 14px; height: 18px; border-left: 2px solid #9aa1ad; border-top: 2px solid #9aa1ad; border-radius: 8px 0 0 0; }
.ladder__n { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--ink); font: 700 12.5px/1 var(--display); }
.ladder__step.is-goal .ladder__n { background: var(--ink); color: #fff; }
@media (max-width: 640px) { .ladder__step { font-size: 14px; } .ladder__step--1 { margin-left: 4%; } .ladder__step--2 { margin-left: 8%; } .ladder__step--3 { margin-left: 12%; } .ladder__step--4 { margin-left: 16%; } .ladder__step--5 { margin-left: 20%; } .ladder__step--6 { margin-left: 24%; } .ladder__step--7 { margin-left: 28%; } }

/* Переписка (```переписка): пузыри мессенджера с пометками разбора */
.dialog { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: #e8ebe3; border: 1px solid var(--line); }
.dialog__row { display: flex; flex-direction: column; align-items: flex-start; max-width: 86%; }
.dialog__row.is-me { align-self: flex-end; align-items: flex-end; }
.dialog__bubble { padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #fff; font-size: 15px; line-height: 1.45; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.dialog__row.is-me .dialog__bubble { border-radius: 16px 16px 4px 16px; background: #d9ecff; }
.dialog__who { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin-bottom: 2px; text-transform: capitalize; }
.dialog__note { margin-top: 4px; padding: 6px 10px; border-radius: 10px; font-size: 13px; line-height: 1.4; background: #fff; border-left: 3px solid currentColor; }
.dialog__note.is-bad { color: var(--bad); } .dialog__note.is-ok { color: var(--ok); }
.dialog__note b { font-weight: 800; }

/* Было — стало (```было-стало) */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba__card { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); }
.ba__card.is-bad { background: var(--bad-soft); border-color: #f4c9c3; } .ba__card.is-ok { background: var(--ok-soft); border-color: #c5e6d3; }
.ba__label { font: 700 11px/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.ba__card.is-bad .ba__label { color: var(--bad); } .ba__card.is-ok .ba__label { color: var(--ok); }
.ba__text { font-size: 15px; line-height: 1.5; }
@media (max-width: 640px) { .ba { grid-template-columns: 1fr; } }
.empty svg { width: 120px; height: auto; color: var(--line-2); }
.empty .iso__glyph { color: #b9bec7; stroke: #b9bec7; }
.figure { margin: 0; }
.figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--plane); }
.figure figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* ───────────── Лента в духе vc.ru и Threads ─────────────
   Светлое меню, посты на сером фоне, статья с обложкой во всю ширину.
   Заголовки — тем же шрифтом, что и текст; фирменный шрифт остаётся только у названий продуктов. */
:root { --display: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; --brandfont: 'Unbounded', 'Onest', system-ui, sans-serif; --link: #1f5fbf; --post-r: 16px; }
.brand__name, .gate__parley, .phero__brand { font-family: var(--brandfont); }
.h1 { font: 700 clamp(26px, 3.2vw, 34px)/1.15 var(--font); letter-spacing: -.022em; }
.h2 { font: 700 clamp(19px, 2vw, 23px)/1.25 var(--font); letter-spacing: -.012em; }

/* меню слева — светлое, как у vc.ru */
.rail-nav { background: var(--bg); color: var(--ink-3); border-right: 1px solid var(--line); }
.brand__name { color: var(--ink); }
.brand__sub { color: var(--muted); }
.nav__group { font: 600 13px/1 var(--font); letter-spacing: 0; text-transform: none; color: var(--faint); padding: 18px 12px 8px; }
.nav a { color: var(--ink-3); border-radius: 12px; }
.nav a:hover { background: rgba(21, 23, 28, .05); color: var(--ink); }
.nav a[aria-current='page'] { background: var(--paper); color: var(--ink); font-weight: 650; box-shadow: 0 1px 2px rgba(21, 23, 28, .07); }
.nav a[aria-current='page']::before { display: none; }
.nav .count { background: var(--l4); color: #fff; }
.who { background: var(--paper); }
.who__name { color: var(--ink); } .who__role { color: var(--muted); }
.dirswitch { background: var(--plane-2); }
.dirswitch button { color: var(--ink-3); }
.dirswitch button[aria-pressed='true'] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(21, 23, 28, .08); }
@media (max-width: 960px) {
  .tabbar { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { color: var(--faint); }
  .tabbar a[aria-current='page'] { color: var(--ink); background: none; }
  .tabbar .dot { color: #fff; }
}

/* кнопки — капсулы; главная кнопка чёрная, оранжевый остаётся на тёмных подложках */
.btn, .btn--s, .btn--l { border-radius: 999px; }
.btn--accent { --b: var(--ink); --c: #fff; }
.btn--accent:hover { background: var(--ink-2); box-shadow: none; }
.hero.phero .btn--accent, .join__hero .btn--accent, .runbar .btn--accent, .card--ink .btn--accent, .scorecard .btn--accent, .pres .btn--accent, .gate__art .btn--accent { --b: var(--l4); --c: var(--ink); }
.hero.phero .btn--accent:hover, .join__hero .btn--accent:hover { background: #ff6c35; }

/* карточки без рамок и теней: белое на сером */
.card, .tile, .kpi, .profilehead { border-color: transparent; box-shadow: none; }
.card .card, .post .card, .widget .card, .card--flat { border-color: var(--line); }
a.card:hover { transform: none; box-shadow: 0 0 0 1px var(--line-2); }

/* лента */
.column { max-width: 760px; margin: 0 auto; }
.feed { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.feed .mrail { margin: 14px 0 4px; }
.feed--side { max-width: 1060px; display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 20px; align-items: start; justify-content: center; }
.feed__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.feed__main > .back { margin-bottom: 0; }
.feed__aside { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; margin-top: 34px; }
@media (max-width: 1100px) { .feed--side { grid-template-columns: minmax(0, 1fr); max-width: 720px; } .feed__aside { position: static; margin-top: 0; } }
.feedhead { display: flex; align-items: flex-end; gap: 20px; margin: 8px 0 4px; }
.feedhead .lead { margin-top: 8px; font-size: 16px; }
.feedhead__ring { display: flex; align-items: center; gap: 10px; flex: none; }
.feed__sep { font: 650 14px/1.2 var(--font); color: var(--muted); margin: 16px 4px 0; }

/* пост */
.post { --pp: 24px; display: block; background: var(--paper); border-radius: var(--post-r); padding: 18px var(--pp) 18px; color: inherit; text-decoration: none; }
a.post { transition: box-shadow .15s; }
a.post:hover { box-shadow: 0 0 0 1px var(--line-2); }
.post__head { display: flex; align-items: center; gap: 12px; }
.ava { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; background: var(--plane-2); }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava--n { background: var(--ink); color: #fff; font: 700 14px/1 var(--font); font-variant-numeric: tabular-nums; }
.ava--s { width: 32px; height: 32px; font-size: 13px; background: var(--plane-2); color: var(--ink); }
.ava--xl { width: 84px; height: 84px; font-size: 26px; box-shadow: 0 0 0 4px var(--paper); }
.post__src { display: flex; flex-wrap: wrap; align-items: center; font: 650 15px/1.3 var(--font); color: var(--ink); text-decoration: none; }
a.post__src:hover { text-decoration: underline; text-underline-offset: 2px; }
.post__dot { font-weight: 500; color: var(--muted); }
.post__dot::before { content: '·'; margin: 0 6px; color: var(--faint); }
.post__warn { color: var(--warn); }
.post__meta { margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.post__title { margin: 14px 0 0; font: 700 22px/1.25 var(--font); letter-spacing: -.012em; color: var(--ink); }
.post__text { margin: 6px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.post__media { margin: 14px calc(-1 * var(--pp)) 0; background: var(--plane); }
.post__media img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.post__foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.post__go { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-weight: 650; font-size: 14.5px; color: var(--ink); }
.post.is-locked { opacity: .72; }
.post.is-locked .post__media img { filter: grayscale(1); }
.post__note { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }

/* шапка курса — как страница сообщества */
.subhead { padding: 0; overflow: hidden; }
.subhead__banner { aspect-ratio: 3 / 1; background: var(--plane-2); }
.subhead__banner.is-plain { aspect-ratio: 7 / 1; }
.subhead__banner img { width: 100%; height: 100%; object-fit: cover; }
.subhead__body { position: relative; padding: 0 var(--pp) 20px; }
.subhead__body .ava--xl { margin-top: -42px; }
.subhead__title { margin: 4px 0 0; font: 700 clamp(24px, 3vw, 30px)/1.2 var(--font); letter-spacing: -.02em; }
.subhead__stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.subhead__stats b { color: var(--ink); font-weight: 650; }
.post--mod .steps { margin: 14px calc(-1 * var(--pp)) -18px; border-top: 1px solid var(--line); }
.post--mod .step { padding: 12px var(--pp); }
.post--mod .step:last-child { border-radius: 0 0 var(--post-r) var(--post-r); }
.post--mod .step__ic { border-radius: 50%; width: 34px; height: 34px; }
.post--mod .step__m { margin-top: 1px; }
.post--mod .step__end .chip { background: none; padding: 0; min-height: 0; color: var(--muted); font-weight: 600; }
.post--mod .step__end .chip--ok { color: var(--ok); } .post--mod .step__end .chip--bad { color: var(--bad); } .post--mod .step__end .chip--warn { color: var(--warn); }
.widget { background: var(--paper); border-radius: var(--post-r); padding: 16px 18px; }
.widget__t { font: 650 15px/1.3 var(--font); }
.widget__list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
details.widget > summary { list-style: none; display: flex; justify-content: space-between; }
details.widget > summary::-webkit-details-marker { display: none; }
details.widget > summary::after { content: '+'; color: var(--muted); font-weight: 500; }
details.widget[open] > summary::after { content: '−'; }

/* статья */
.post--article { --pp: 40px; padding: 22px var(--pp) 28px; }
.reader__title { margin: 18px 0 0; font: 700 clamp(26px, 3.2vw, 34px)/1.18 var(--font); letter-spacing: -.022em; }
.post--article > .article { margin-top: 18px; }
.article { color: #1b1e24; }
.article a:not(.dl) { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article li::marker { color: var(--ink-3); }
.article h2, .article > h2 { font: 700 23px/1.28 var(--font); letter-spacing: -.012em; }
.article h3 { font: 700 19px/1.3 var(--font); }
.callout { border: 0; border-radius: 12px; background: var(--plane); padding: 14px 18px; }
.callout__tag { font: 700 13px/1.2 var(--font); letter-spacing: 0; }
.callout--say { background: transparent; box-shadow: inset 3px 0 0 var(--ink); border-radius: 0; padding: 2px 0 2px 18px; }
.callout--key { background: #fff5ea; } .callout--stop { background: #fdf0ee; } .callout--case { background: #f0f4fc; } .callout--mem, .callout--tip { background: #edf7f1; }
.takeaways { margin-top: 32px; background: var(--plane); color: var(--ink); border-radius: 14px; padding: 20px 22px; }
.takeaways::after { display: none; }
.takeaways h2 { font: 700 18px/1.3 var(--font); }
.takeaways ul { list-style: none; padding: 0; counter-reset: tk; gap: 10px; }
.takeaways li { position: relative; padding-left: 28px; counter-increment: tk; }
.takeaways li::before { content: counter(tk) '.'; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.takeaways li::marker { content: none; }
.post--article .practice { margin: 28px calc(-1 * var(--pp)) 0; padding: 22px var(--pp) 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.post--article .finish { margin: 24px calc(-1 * var(--pp)) -28px; padding: 18px var(--pp); border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--post-r) var(--post-r); background: #fafafb; }

/* картинки в уроках: обложка, кадр, мем */
.pic { margin: 0; }
.article > .pic, .article > * + .pic { margin-top: 26px; }
.article > .pic + * { margin-top: 26px; }
.pic img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--plane); }
.pic figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 9px; }
.pic__cap { font-size: 14.5px; line-height: 1.45; color: var(--ink-3); }
.pic__src { font-size: 12.5px; line-height: 1.4; color: var(--faint); }
.pic--cover { margin-inline: calc(-1 * var(--pp, 0px)); }
.pic--cover img { border-radius: 0; aspect-ratio: 16 / 9; object-fit: cover; }
.pic--cover figcaption { padding-inline: var(--pp, 0px); }
.pic--meme { max-width: 520px; margin-inline: auto; }
.pic--meme img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.pic--meme figcaption { align-items: center; text-align: center; }

/* главная ученика — светлая карточка вместо тёмного героя */
.hero:not(.phero) { background: var(--paper); color: var(--ink); box-shadow: none; border-radius: var(--post-r); }
.hero:not(.phero) .hero__strata { display: none; }
.hero:not(.phero) h1 { color: var(--ink); font: 700 clamp(26px, 3.4vw, 34px)/1.15 var(--font); letter-spacing: -.022em; max-width: none; }
.hero:not(.phero) .lead { color: var(--ink-3); }
.hero:not(.phero) .next { background: var(--plane); border-color: transparent; }
.hero:not(.phero) .next__ic { background: var(--ink); color: #fff; border-radius: 50%; }
.hero:not(.phero) .next__k { color: var(--muted); } .hero:not(.phero) .next__t { color: var(--ink); }
.hero:not(.phero) .layer { background: var(--plane); border-color: transparent; }
.hero:not(.phero) .layer__n { color: var(--faint); font-family: var(--font); }
.hero:not(.phero) .layer__t { color: var(--ink); } .hero:not(.phero) .layer__s { color: var(--muted); }
.hero:not(.phero) .layer__bar { background: var(--plane-2); }
.hero:not(.phero) .layer__bar i, .hero:not(.phero) .layer.is-done .layer__bar i { background: var(--ink-3); }
.hero:not(.phero) .layer.is-current { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.hero:not(.phero) .layer.is-current .layer__bar i { background: var(--l4); }
.hero:not(.phero) .stage { color: var(--ink); }
.hero:not(.phero) .stage__n { color: var(--muted); border-color: var(--line-2); }
.hero:not(.phero) .stage[data-layer="4"] .stage__n { color: var(--l4-ink); }

@media (max-width: 640px) {
  .post, .post--article { --pp: 16px; border-radius: 0; margin-inline: calc(-1 * var(--gut)); }
  .post--article { padding-top: 16px; }
  .post--article .finish { border-radius: 0; }
  .post--mod .step:last-child { border-radius: 0; }
  .feed { gap: 8px; }
  .post__title { font-size: 19px; }
  .reader__title { font-size: 25px; }
  .ava--xl { width: 68px; height: 68px; font-size: 22px; }
  .subhead__body .ava--xl { margin-top: -34px; }
  .feedhead { flex-direction: column; align-items: flex-start; gap: 12px; }
  .column > .back, .feed__main > .back { margin-left: 0; }
}
/* лента: строка источника в одну линию, длинное название обрезается */
.post__src { flex-wrap: nowrap; min-width: 0; }
.post__dot { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post__head > .cs { flex: none; }
/* в списке шагов пометка «уточняется» не повторяется: она есть в шапке курса и в самом уроке */
.post--mod .step__end .cs { display: none; }
@media (max-width: 640px) { .post--course .post__head > .cs { display: none; } }
/* кадры в ленте и в шапке курса: лица обычно в верхней трети — не срезаем головы */
.subhead__banner img { object-position: 50% 28%; }
.post__media img, .pic--cover img { object-position: 50% 35%; }

/* PARLEY: режим экзамена — без меню и шапки, только тест */
.is-exam .rail-nav, .is-exam .topbar, .is-exam .tabbar { display: none !important; }
.is-exam .shell { grid-template-columns: 1fr; }
.is-exam .main { max-width: 1320px; padding-top: 12px; padding-bottom: 48px; }
.is-exam .runbar { top: 8px; }
.is-exam .toasts { bottom: 24px; }
.examtools { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.examtools span { display: inline-flex; align-items: center; gap: 6px; }
.examtools--bar { padding: 2px 4px 0; }
.pledge { border-style: dashed; }
/* маркер */
mark.hl { background: #ffe58a; color: inherit; border-radius: 2px; padding: 0 1px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hlbar { position: fixed; z-index: 90; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--ink); box-shadow: var(--sh-3); }
.hlbar button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #fff; font: 600 13px/1 var(--font); padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.hlbar button:hover { background: #2c3039; }
.hlbar [data-hl="on"] .ic { color: #ffe58a; }
.runner .split__passage, .runner .item__x, .runner .item__p, .runner .card > .article { user-select: text; }
/* зачёркивание вариантов */
.optrow { display: flex; align-items: stretch; gap: 6px; }
.optrow .opt { flex: 1 1 auto; }
.opt__x { flex: none; width: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--faint); display: grid; place-items: center; cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.opt__x:hover { color: var(--ink); border-color: var(--line-2); }
.opt__x[aria-pressed="true"] { color: var(--bad); border-color: var(--bad); background: var(--bad-soft); }
.opt.is-struck { opacity: .5; }
.opt.is-struck > span:last-child { text-decoration: line-through; text-decoration-thickness: 2px; }
.opt__abc { font: 700 12px/1 var(--font); letter-spacing: .02em; text-decoration: line-through; text-decoration-thickness: 2px; }
.examtools .opt__abc { color: var(--ink-3); }
/* PARLEY: видео-экскурсия */
.tour__video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #0f1115; }
.tour__ic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
/* пометки [утвердить] в тексте урока — только для персонала */
body:not(.is-staff) .article .flag, body:not(.is-staff) .takeaways .flag, body:not(.is-staff) .practice .flag, body:not(.is-staff) .opt .flag, body:not(.is-staff) .qres .flag { display: none; }
body:not(.is-staff) .flagw { display: none; }
