/* Espresso look of azamatcoffee.online, system fonts only so the school opens fast in Russia. */
:root {
  --espresso: #17110d; --roast: #241a14; --line: #3a2c22; --crema: #f3ead9; --paper: #fbf6ec; --ink: #1d1612;
  --red: #e8264a; --muted: #b7a796; --claude: #d97757; --ok: #7fd8a8;
  --body: -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--espresso); color: var(--crema); font-family: var(--body); font-size: 17px; line-height: 1.55; }
a { color: var(--crema); }
h1, h2 { line-height: 1.15; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(26px, 5vw, 36px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.err { color: #ff7a90; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { text-decoration: none; font-size: 16px; }
.logo b { color: var(--claude); }
.nav { display: flex; gap: 16px; align-items: center; font-size: 15px; }
.nav form { margin: 0; }
.col { max-width: 860px; margin: 0 auto; padding: 24px 18px 60px; display: grid; gap: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 0 18px 40px; }
.card { background: var(--roast); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: block; text-decoration: none; }
.card.narrow { max-width: 480px; justify-self: center; width: 100%; }
.stack { display: grid; gap: 10px; margin: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 0; }
.row .short { flex: 0 0 90px; }
input, textarea, select { width: 100%; font: inherit; color: var(--crema); background: #120d0a; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--claude); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.check input { width: auto; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; font: 700 16px var(--body); color: #fff; background: var(--red); border: 0; border-radius: 12px; padding: 13px 20px; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--crema); }
.btn.danger { background: transparent; border: 1px solid var(--red); color: #ff7a90; }
.btn:disabled { opacity: .7; cursor: default; }
.link { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.flash { background: rgba(127, 216, 168, .12); border: 1px solid var(--ok); border-radius: 12px; padding: 10px 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.course.off { opacity: .6; }
.bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin: 10px 0; }
.bar i { display: block; height: 100%; background: var(--claude); }
.crumbs { color: var(--muted); font-size: 14px; margin: 0; }
.lead { color: var(--muted); }
.lessons { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lessons a { display: flex; gap: 14px; align-items: center; background: var(--roast); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-decoration: none; }
.lessons a:hover { border-color: var(--claude); }
.lessons .num { font-weight: 800; color: var(--red); min-width: 22px; }
.lessons .ok { margin-left: auto; color: var(--ok); font-size: 14px; white-space: nowrap; }
.lessons .done a { border-color: rgba(127, 216, 168, .4); }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.text p:last-child, .hw p:last-child { margin-bottom: 0; }
.hw .feedback { border-left: 3px solid var(--ok); padding: 8px 12px; margin: 12px 0; background: rgba(127, 216, 168, .06); border-radius: 0 10px 10px 0; }
.hw form { margin-top: 12px; }
.pager { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.pager form { margin: 0; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-size: 15px; }
.pill { background: var(--red); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
code { font-family: var(--mono); font-size: 14px; }
.answer { background: #120d0a; border-radius: 12px; padding: 12px; margin-bottom: 10px; }
@media (max-width: 560px) { table { font-size: 14px; } th, td { padding: 6px 4px; } }
