/* Фирменный слой «Первый Трест» поверх style.css — по дизайн-коду портала КПЭ / Мули (KPI\kpi-core\app\static\brand):
   Montserrat, жёлтый #FFB900, «бумажный» фон. Шапка не чёрная, а графитовая (просьба владельца 27.10.2026).
   Откат: BRAND_STYLE=0 в .env (слой не подключается, остаётся прежний style.css). */
@font-face{font-family:'Montserrat';font-weight:400;font-display:swap;src:url(brand/montserrat-cyrillic-400.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-weight:600;font-display:swap;src:url(brand/montserrat-cyrillic-600.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-weight:800;font-display:swap;src:url(brand/montserrat-cyrillic-800.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Montserrat';font-weight:400;font-display:swap;src:url(brand/montserrat-latin-400.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2116,U+2122,U+2212}
@font-face{font-family:'Montserrat';font-weight:600;font-display:swap;src:url(brand/montserrat-latin-600.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2116,U+2122,U+2212}
@font-face{font-family:'Montserrat';font-weight:800;font-display:swap;src:url(brand/montserrat-latin-800.woff2) format('woff2');unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2116,U+2122,U+2212}

:root {
  --bg: #f6f6f2; --card: #ffffff; --ink: #222326; --muted: #6f706b; --line: #e1e2dc; --soft: #eeeee8;
  --y: #ffb900; --y2: #efad00; --y-soft: #fff6d9; --y-ink: #8a6100;
  --graphite: #2f3236; --graphite2: #3b3f44; --graphite-t: #f2f2ec; --graphite-m: #b9bab4;
  --accent: var(--y-ink); --accent-ink: #1b1b1b; --radius: 6px;
}
body { font-family: 'Montserrat', system-ui, sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; }
::selection { background: var(--y); color: #111; }
a { color: var(--y-ink); }
h1 { font-weight: 600; letter-spacing: -.02em; }
h2 { font-weight: 600; }
.desc { color: #45474b; }

/* шапка: графит + жёлтая полоса, логотип */
.bar { background: var(--graphite); color: var(--graphite-t); border-bottom: 3px solid var(--y); }
.bar a { color: var(--graphite-t); }
.bar a:hover { color: var(--y); }
.bar .muted { color: var(--graphite-m); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .01em; }
.brand img { height: 24px; width: auto; display: block; }
.brand .brand-sep { width: 1px; height: 22px; background: #5a5d62; }
.bar.pub .bar-in { justify-content: center; }

/* поверхности и элементы */
.card { border-radius: var(--radius); border-color: var(--line); }
.kicker { color: var(--y-ink); letter-spacing: .1em; }
input, textarea, select { border-radius: 4px; border-color: var(--line); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--y); outline-offset: -1px; border-color: transparent; }
.btn { border-radius: 4px; font-weight: 600; }
.btn:hover { border-color: var(--y2); }
.btn.primary { background: var(--y); border-color: var(--y); color: #1b1b1b; }
.btn.primary:hover { background: var(--y2); filter: none; }
.btn.danger { color: #b3261e; }
.pill.on { background: var(--y-soft); color: var(--y-ink); }
.alert { border-radius: 4px; }
.share { border-radius: 4px; background: var(--soft); }
.tag { border-radius: 3px; }
td input[type=checkbox], .checks input { accent-color: var(--graphite); }
.done .ok { background: var(--y); color: #1b1b1b; }
.ico.back { color: var(--y-ink); }

/* карточки обучений: дата-плашка слева */
.row-card { align-items: stretch; padding: 0; overflow: hidden; border-left: 0; }
.row-card:hover { border-color: var(--y2); box-shadow: 0 2px 10px rgba(47, 50, 54, .08); }
.tr-date { flex: 0 0 76px; background: var(--graphite); color: var(--graphite-t); display: flex; flex-direction: column;
  align-items: center; justify-content: center; border-right: 3px solid var(--y); padding: 10px 0; }
.tr-date b { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--y); }
.tr-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.tr-date i { font-style: normal; font-size: .72rem; color: var(--graphite-m); margin-top: 2px; }
.tr-date.none b { font-size: 1.1rem; color: var(--graphite-m); }
.row-body { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }

/* календарь в фирменном стиле */
.cal { border-radius: var(--radius); overflow: hidden; }
.cal thead th { background: var(--graphite); color: var(--graphite-t); padding: 10px 6px; border: 0; font-weight: 600; letter-spacing: .04em; }
.cal td { border-color: var(--line); }
.cal td.out { background: var(--soft); }
.cal .d { color: var(--muted); font-weight: 600; }
.cal td.today { outline: 0; box-shadow: inset 0 0 0 2px var(--y); }
.cal td.today .d { background: var(--y); color: #1b1b1b; border-radius: 3px; padding: 0 6px; }
.cal a.ev { background: var(--y-soft); border-left: 3px solid var(--y); border-radius: 3px; color: var(--ink); }
.cal a.ev:hover { background: #ffecb0; }
.cal a.ev.off { background: var(--soft); border-left-color: #b9bab4; color: var(--muted); }
.cal-nav h1 { min-width: 9ch; text-align: center; }

@media (max-width: 600px) {
  .tr-date { flex-basis: 64px; }
  .row-body { padding: 12px; }
}
@media print { .bar { background: none; color: #000; border-bottom-color: #000; } }

.tr-hero { cursor: default; }
.tr-hero:hover { box-shadow: none; border-color: var(--line); }
.tr-hero .tr-date { flex-basis: 92px; }
.tr-hero .tr-date b { font-size: 2.1rem; }
