/* Академия Кампана Хоум — design system.
   Brand tokens lifted from ch.ru / campana-home.ru:
   --orange #BD5720, --dark #222B1B, --beige #F4E7D7, --brown #7D4E25,
   --brown-light #BD9877, --grey #7F8084, --green #739D3C           */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/static/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brand: #bd5720;
  --brand-600: #a94c1b;
  --brand-700: #8f4016;
  --brand-100: #f7e5da;
  --brand-050: #fdf6f2;

  --ink: #222b1b;
  --ink-800: #2c3624;
  --ink-700: #3a4531;

  --beige: #f4e7d7;
  --brown: #7d4e25;
  --brown-light: #bd9877;

  --green: #739d3c;
  --green-100: #eaf2df;
  --red: #d13a37;
  --red-100: #fbe8e7;
  --amber: #d3914d;
  --amber-100: #fbf0e2;

  --grey: #7f8084;
  --muted: #8b8f8a;
  --line: #e6e6e2;
  --line-soft: #f0f0ec;
  --bg: #f7f6f3;
  --card: #ffffff;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(34, 43, 27, .04), 0 6px 20px rgba(34, 43, 27, .05);
  --shadow-lg: 0 2px 4px rgba(34, 43, 27, .05), 0 18px 44px rgba(34, 43, 27, .1);
  --sidebar-w: 258px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
small { font-size: 12.5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  background: var(--ink);
  color: #e8e6df;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; color: #fff; padding: 2px 4px; }
.brand__logo { display: block; }
.brand__logo svg { display: block; width: 150px; height: auto; }
.brand__sub {
  display: block; font-size: 12px; font-weight: 700; color: var(--brown-light);
  letter-spacing: .22em; text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 8px; width: 150px;
}
.brand--light .brand__sub { color: var(--brand); border-top-color: var(--line); }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav__label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #7d8577; margin: 6px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px;
  color: #d7d5cc; font-weight: 600; font-size: 14px;
  transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.is-active { background: var(--brand); color: #fff; }
.nav a .ico { width: 18px; height: 18px; flex: none; opacity: .9; }

.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-user__name { display: inline-block; font-size: 13px; font-weight: 700; color: #fff; }
.side-user__role { font-size: 11.5px; color: #8b9283; }
.side-foot a { color: #a9ada2; font-size: 12.5px; }
.side-foot a:hover { color: #fff; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 32px; border-bottom: 1px solid var(--line); background: #fff;
  position: sticky; top: 0; z-index: 20;
}
.topbar__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.topbar__crumb { font-size: 12.5px; color: var(--muted); }
.content { padding: 26px 32px 60px; max-width: 1320px; width: 100%; }

.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--brand-100); color: var(--brand-700);
  display: grid; place-items: center; font-weight: 800; font-size: 13px;
}
.avatar--dark { background: rgba(255,255,255,.12); color: #fff; }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }

/* ---------- cards & grid ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-soft);
}
.card__body { padding: 20px; }
.card__body--tight { padding: 14px 20px; }
.grid { display: grid; gap: 16px; }
.grid--stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--courses { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.spacer { flex: 1; }

.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.stat__label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat__value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; }
.stat__hint { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat--brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat--brand .stat__label, .stat--brand .stat__hint { color: rgba(255,255,255,.82); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  background: var(--brand); color: #fff; transition: background .15s, box-shadow .15s, color .15s;
  white-space: nowrap; line-height: 1.2;
}
.btn:hover { background: var(--brand-600); color: #fff; }
.btn:active { background: var(--brand-700); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--bg); color: var(--ink); border-color: #d9d9d3; }
.btn--dark { background: var(--ink); }
.btn--dark:hover { background: var(--ink-700); }
.btn--danger { background: #fff; border-color: var(--red-100); color: var(--red); }
.btn--danger:hover { background: var(--red-100); color: var(--red); }
.btn--sm { padding: 7px 13px; font-size: 13px; border-radius: 9px; }
.btn--lg { padding: 13px 26px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; font-weight: 700; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--line-soft); color: var(--grey); white-space: nowrap;
}
.chip--success { background: var(--green-100); color: #4e7524; }
.chip--danger { background: var(--red-100); color: var(--red); }
.chip--brand { background: var(--brand-100); color: var(--brand-700); }
.chip--amber { background: var(--amber-100); color: #9c6420; }
.chip--muted { background: var(--line-soft); color: var(--muted); }
.chip--outline { background: #fff; border: 1px solid var(--line); color: var(--grey); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- progress ---------- */
.bar { display: block; height: 8px; border-radius: 999px; background: var(--line-soft); overflow: hidden; min-width: 60px; }
.bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--brand); transition: width .35s ease; }
.bar__fill--success { background: var(--green); }
.bar__fill--danger { background: var(--red); }
.bar__fill--muted { background: #d5d5cf; }
.bar--sm { height: 6px; }
.progress-inline { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.progress-inline .bar { flex: 1; }
.progress-inline b { font-variant-numeric: tabular-nums; font-size: 13px; min-width: 38px; text-align: right; }

.ring { --p: 0; --c: var(--brand); width: 128px; height: 128px; position: relative; flex: none; }
.ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--line-soft) 0);
}
.ring::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.ring__val {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-size: 30px; font-weight: 800; letter-spacing: -.03em;
}

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line);
  white-space: nowrap; background: #fff;
}
.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fbfaf8; }
.tbl .num { font-variant-numeric: tabular-nums; }
.tbl__person { display: flex; align-items: center; gap: 11px; }
.tbl__person b { font-weight: 700; display: block; }
.tbl__person span { font-size: 12.5px; color: var(--muted); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field > label { font-size: 13px; font-weight: 700; color: var(--ink-700); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.textarea--code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237f8084' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 14px; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 18px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1 1 200px; }

/* ---------- alerts ---------- */
.alert { padding: 13px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; border: 1px solid; }
.alert--ok { background: var(--green-100); border-color: #d5e4c1; color: #45691f; }
.alert--error { background: var(--red-100); border-color: #f3cdcb; color: #a32b28; }
.alert--info { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-700); }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty__icon { font-size: 34px; margin-bottom: 10px; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }

/* ---------- login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth__side {
  background: var(--ink); color: #fff; padding: 46px;
  display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(900px 400px at 10% 0%, rgba(189,87,32,.34), transparent 60%);
}
.auth__side h2 { font-size: 34px; line-height: 1.15; margin-bottom: 14px; max-width: 15ch; }
.auth__side p { color: #b7bcae; max-width: 42ch; }
.auth__points { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.auth__point { display: flex; gap: 11px; align-items: flex-start; color: #d9d7cd; font-size: 14.5px; }
.auth__point i { color: var(--brown-light); font-style: normal; }
.auth__form { display: grid; place-items: center; padding: 40px 24px; }
.auth__box { width: 100%; max-width: 372px; }
.auth__box h1 { margin-bottom: 6px; }
.auth__box > p { color: var(--muted); margin-bottom: 24px; }

/* ---------- course cards ---------- */
.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s, border-color .18s;
}
a.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: #e0ddd5; color: inherit; }
.course-card__top { display: flex; gap: 13px; align-items: flex-start; }
.course-card__emoji {
  width: 46px; height: 46px; border-radius: 12px; background: var(--brand-050);
  border: 1px solid var(--brand-100); display: grid; place-items: center; font-size: 22px; flex: none;
}
.course-card__title { display: block; font-weight: 800; font-size: 16px; letter-spacing: -.01em; color: var(--ink); }
.course-card__meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.course-card__desc { font-size: 13.5px; color: var(--grey); flex: 1; }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- lesson list ---------- */
.lessons { display: flex; flex-direction: column; }
.lesson-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft); color: inherit;
}
.lesson-row:last-child { border-bottom: 0; }
a.lesson-row:hover { background: #fbfaf8; color: inherit; }
.lesson-row.is-locked { opacity: .55; }
.lesson-num {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: var(--line-soft); color: var(--grey);
}
.lesson-num.is-done { background: var(--green); color: #fff; }
.lesson-num.is-current { background: var(--brand); color: #fff; }
.lesson-num.is-failed { background: var(--red); color: #fff; }
.lesson-row__body { flex: 1; min-width: 0; }
.lesson-row__title { display: block; font-weight: 700; }
.lesson-row__meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }

/* ---------- lesson reading ---------- */
.reader { max-width: 760px; }
.prose { font-size: 16px; line-height: 1.7; color: #2f3a29; }
.prose h1, .prose h2 { margin: 30px 0 12px; font-size: 22px; }
.prose h3 { margin: 24px 0 10px; font-size: 18px; }
.prose h4 { margin: 20px 0 8px; font-size: 16px; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose blockquote {
  margin: 18px 0; padding: 13px 18px; background: var(--brand-050);
  border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; color: #5c4231;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.prose th { background: var(--bg); font-weight: 700; }
.prose code { background: var(--line-soft); padding: 2px 6px; border-radius: 5px; font-size: 13.5px; }
.prose pre { background: var(--ink); color: #e6e4dc; padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; color: inherit; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; }
.prose hr { margin: 26px 0; }

.video-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: var(--r); overflow: hidden; margin-bottom: 22px; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.sticky-actions {
  position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(247,246,243,0), var(--bg) 34%);
  padding: 24px 0 10px; margin-top: 26px;
}

/* ---------- test ---------- */
.q-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.q-card__num { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.q-card__text { font-size: 16.5px; font-weight: 700; margin: 6px 0 4px; line-height: 1.4; }
.q-card__hint { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt {
  display: flex; align-items: flex-start; gap: 11px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: border-color .12s, background .12s;
  font-size: 14.5px;
}
.opt:hover { border-color: var(--brown-light); background: #fdfcfa; }
.opt input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.opt:has(input:checked) { border-color: var(--brand); background: var(--brand-050); }
.opt--correct { border-color: var(--green); background: var(--green-100); }
.opt--wrong { border-color: var(--red); background: var(--red-100); }
.opt__tag { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; }

.result-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.result-hero__text h1 { font-size: 27px; margin-bottom: 6px; }
.result-hero__text p { color: var(--grey); margin-bottom: 0; }

/* ---------- editor ---------- */
.q-editor { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; background: #fff; margin-bottom: 14px; }
.q-editor__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.q-editor__badge { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .05em; text-transform: uppercase; }
.opt-editor { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.opt-editor .input { flex: 1; }
.opt-editor input[type=checkbox], .opt-editor input[type=radio] { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  color: var(--grey); cursor: pointer; display: grid; place-items: center; font-size: 15px; flex: none;
  font-family: inherit; line-height: 1;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn--danger:hover { background: var(--red-100); color: var(--red); border-color: #f3cdcb; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button {
  border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted);
  padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.is-active { color: var(--brand); border-bottom-color: var(--brand); }

.matrix td.cell { text-align: center; padding: 8px 6px; }
.matrix .cell__wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; min-width: 74px; }
.matrix .cell__pct { font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.matrix .bar { width: 66px; }
.matrix th.rot { text-transform: none; letter-spacing: 0; font-size: 11.5px; white-space: normal; min-width: 92px; max-width: 130px; }

.creds {
  background: var(--brand-050); border: 1px dashed var(--brand); border-radius: var(--r);
  padding: 18px 20px;
}
.creds__row { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 10px; }
.creds__item small { display: block; color: var(--muted); font-size: 12px; }
.creds__item b { font-size: 19px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }

.mini-list { display: flex; flex-direction: column; gap: 10px; }
.mini-list__item { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.mini-list__item:last-child { border-bottom: 0; }

.hide { display: none !important; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.tabnum { font-variant-numeric: tabular-nums; }
.mb-0 { margin-bottom: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.burger { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: 262px; z-index: 60; height: 100vh;
    transform: translateX(-100%); transition: transform .22s ease;
  }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.35); }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(34,43,27,.45); z-index: 50; }
  .burger {
    display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; flex: none;
  }
  .topbar { padding: 14px 18px; }
  .content { padding: 18px 18px 60px; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  h1 { font-size: 22px; }
}
@media (max-width: 560px) {
  .stat__value { font-size: 25px; }
  .ring { width: 104px; height: 104px; }
  .ring__val { font-size: 25px; }
  .btn { padding: 10px 15px; }
}
