/* ЕГЭ-повторение · общий стиль (утверждённая концепция: soft edtech, пастельные карточки) */
@font-face {
  font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/Onest-normal-400-800-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 800; font-display: swap;
  src: url(../fonts/Onest-normal-400-800-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 {
  --bg: #EEF1F5; --rail: #E4E8EE; --card: #FFFFFF; --soft: #F6F7F9; --line: #E7EAEE; --line2: #DCE0E6;
  --ink: #0F1115; --muted: #626873; --muted2: #3F444D;
  --accent: #FF5B1F; --accent-soft: #FFE6DB;
  --econ: #FFE4D6; --econ-deep: #E8692F; --econ-ink: #8A3511; --econ-text: #5A3424;
  --soc: #E8E3FF; --soc-deep: #6B55E0; --soc-ink: #3E2EA3; --soc-text: #3E3866;
  --ok-bg: #DCF3E5; --ok: #23874F; --ok-ink: #1C6B3E;
  --bad-bg: #FDE2DE; --bad: #D9473A; --bad-ink: #9A271C;
  --mid-bg: #FFF2C7; --mid: #B08300; --mid-ink: #5E480C;
  --na-bg: #E9ECF0; --na-ink: #3A3F47;
  --hist: #DCF3E7; --hist-deep: #2E9467; --hist-text: #1E5A42;
  --r-xl: 30px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --shadow: 0 10px 30px rgba(15,17,21,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Onest', system-ui, -apple-system, sans-serif;
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
p { margin: 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid #5A49B8; outline-offset: 2px; }

/* ---------- каркас ---------- */
.shell { min-height: 100vh; display: flex; gap: 24px; padding: 24px; align-items: flex-start; }
.rail { position: sticky; top: 24px; flex: 0 0 88px; background: var(--rail); border-radius: var(--r-xl);
  padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: calc(100vh - 48px); }
.logo { width: 52px; height: 52px; border-radius: 16px; background: var(--ink); color: var(--bg); display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 16px; text-decoration: none; }
.rail-gap { height: 28px; }
.rail-spacer { flex: 1; }
.navitem { display: flex; flex-direction: column; align-items: center; gap: 5px; text-decoration: none; color: var(--muted2); }
.navbtn { width: 52px; height: 52px; border-radius: 50%; background: var(--card); color: var(--ink); display: flex;
  align-items: center; justify-content: center; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease; position: relative; }
.navitem:hover .navbtn { transform: translateY(-1px); }
.navitem[aria-current="page"] .navbtn, .navbtn[aria-current="page"] { background: var(--ink); color: #fff; }
.navitem[aria-current="page"] { color: var(--ink); }
.navlabel { font-size: 11.5px; font-weight: 500; line-height: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.logo.wide { width: auto; height: 44px; padding: 0 16px; border-radius: 14px; font-size: 15px; letter-spacing: .02em; align-self: flex-start; }
.navbtn .tip { position: absolute; left: 64px; background: var(--ink); color: #fff; font-size: 13px; padding: 5px 10px;
  border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.navbtn:hover .tip { opacity: 1; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--soc); color: var(--soc-ink); display: flex;
  align-items: center; justify-content: center; font-weight: 600; border: 0; cursor: pointer; }
.main { flex: 1 1 auto; min-width: 0; max-width: 1240px; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 28px; }
.tabbar { display: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .shell { padding: 0; display: block; }
  .rail { display: none; }
  .main { padding: 20px 16px 110px; gap: 20px; }
  .tabbar { display: grid; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; background: var(--card);
    border-radius: 26px; padding: 8px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
    box-shadow: 0 6px 24px rgba(28,27,31,.1); }
  .tabbar a { text-decoration: none; border-radius: 18px; padding: 8px 0; display: flex; flex-direction: column;
    align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--ink); }
  .tabbar a[aria-current="page"] { background: var(--ink); color: #fff; }
}

/* ---------- общие элементы ---------- */
.card { background: var(--card); border-radius: var(--r-lg); padding: 24px; }
.card.xl { border-radius: var(--r-xl); padding: 32px; }
.grid { display: grid; gap: 16px; }
.grid.auto-220 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid.auto-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid.auto-340 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
@media (max-width: 760px) { .grid.auto-340, .grid.auto-300 { grid-template-columns: 1fr; } .card.xl { padding: 22px; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px;
  padding: 14px 24px; font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(28,27,31,.18); }
.btn.light { background: var(--bg); color: var(--ink); }
.btn.white { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; border: 1.5px solid #D6CFC4; color: var(--ink); }
.btn.big { padding: 18px 40px; font-size: 18px; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn:disabled { background: var(--line2); color: #6B6770; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }

.chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 13px; font-size: 14px;
  font-weight: 500; background: var(--bg); color: var(--muted2); }
.chip.econ { background: var(--econ); color: var(--econ-ink); }
.chip.hist { background: var(--hist); color: var(--hist-text); }
.chip.soc { background: var(--soc); color: var(--soc-ink); }
.chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.chip.bad { background: var(--bad-bg); color: var(--bad-ink); }
.chip.mid { background: var(--mid-bg); color: var(--mid-ink); }
.chip.na { background: var(--na-bg); color: var(--na-ink); }
.chip.dark { background: var(--ink); color: #fff; }

.bar { height: 10px; border-radius: 999px; background: rgba(28,27,31,.1); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--ink); transition: width .5s ease; }
.bar.thin { height: 8px; }
.segbar { display: grid; gap: 5px; }
.segbar > i { height: 10px; border-radius: 999px; background: rgba(28,27,31,.14); }
.segbar > i.done { background: var(--ok); }
.segbar > i.prog { background: linear-gradient(90deg, var(--ink) var(--p, 30%), rgba(28,27,31,.14) var(--p, 30%)); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .label { font-size: 15px; color: var(--muted); }
.stat .value { font-size: 36px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.stat .value small { font-size: 20px; color: var(--muted); font-weight: 500; }

.eyebrow { font-size: 15px; color: var(--muted); }
.page-title { font-size: clamp(34px, 5vw, 58px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.page-sub { font-size: 21px; color: var(--muted); }
.h2 { font-size: 22px; font-weight: 600; }
.empty { padding: 28px; border: 2px dashed var(--line2); border-radius: var(--r-lg); color: var(--muted); text-align: center; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--ink);
  animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fade { animation: fadeUp .3s ease both; }
.pop { animation: pop .35s cubic-bezier(.3,1.6,.6,1) both; }
@media (prefers-reduced-motion: reduce) { .fade, .pop { animation: none; } .bar > i { transition: none; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 14px; font-size: 15px; z-index: 50; animation: fadeUp .25s ease both; max-width: 90vw; }
@media (max-width: 760px) { .toast { bottom: 100px; } }

/* ---------- вход ---------- */
.welcome { min-height: 100vh; display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; }
.welcome .art { flex: 1 1 520px; background: var(--rail); border-radius: 40px; padding: 48px; display: flex;
  flex-direction: column; justify-content: space-between; gap: 32px; min-height: 520px; }
.welcome .stack { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.welcome .stack span { height: 58px; border-radius: 18px; display: flex; align-items: center; padding: 0 22px; font-weight: 600; }
.welcome .form-card { flex: 1 1 440px; background: #fff; border-radius: 40px; padding: 56px 48px; display: flex;
  flex-direction: column; justify-content: center; gap: 32px; }
@media (max-width: 1000px) { .welcome .art { display: none; } }
@media (max-width: 760px) {
  .welcome { padding: 12px; }
  .welcome .form-card { padding: 36px 22px; border-radius: 28px; }
}
.field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.input { height: 58px; border-radius: 18px; border: 1.5px solid var(--line2); background: var(--soft); padding: 0 18px;
  font: inherit; font-size: 18px; font-weight: 400; color: var(--ink); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(28,27,31,.08); }
textarea.input { height: auto; min-height: 220px; padding: 16px 18px; line-height: 1.5; resize: vertical; }
.input.code { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.form-error { background: var(--bad-bg); color: var(--bad-ink); border-radius: 14px; padding: 12px 16px; font-size: 15px; }

/* ---------- главная ---------- */
.progress-card { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); align-items: center; gap: 24px; padding: 20px 28px; }
.progress-card .stat .value { font-size: 32px; }
@media (max-width: 760px) {
  .progress-card { grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; }
  .progress-card .ring svg { width: 52px; height: 52px; }
  .progress-card .stat .label { font-size: 12px; }
  .progress-card .stat .value { font-size: 22px; }
  .progress-card .stat .value small { font-size: 14px; }
}
.section-card { border-radius: var(--r-xl); padding: 32px; display: flex; flex-direction: column; gap: 22px; min-height: 290px;
  text-decoration: none; color: var(--ink); }
.section-card.econ { background: var(--econ); }
.section-card.soc { background: var(--soc); }
.section-card.off { background: var(--na-bg); }
.section-card.hist { background: var(--hist); }
.section-card.hist .meta { color: var(--hist-text); }
.section-card.hist .bar > i { background: var(--hist-deep); }
.section-head.hist { background: var(--hist); }
.task-images { display: flex; flex-wrap: wrap; gap: 12px; }
.task-images img { max-width: 100%; max-height: 520px; border-radius: 16px; border: 1px solid var(--line); display: block; }
.tabs a[role="tab"] { font-size: 17px; }
.section-card .ico { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.section-card h2 { font-size: 30px; font-weight: 600; }
.section-card .meta { font-size: 17px; }
.section-card.econ .meta { color: var(--econ-text); }
.section-card.soc .meta { color: var(--soc-text); }
.section-card.econ .bar > i { background: var(--econ-deep); }
.section-card.soc .bar > i { background: var(--soc-deep); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ring { flex: 0 0 auto; }
.mini-row { display: flex; align-items: center; gap: 14px; }
.mini-row + .mini-row { border-top: 1px solid var(--line); padding-top: 14px; }
.ok-dot { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; background: var(--ok-bg); color: var(--ok);
  display: flex; align-items: center; justify-content: center; }
.score-pill { background: var(--bg); border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 600; white-space: nowrap; }

/* ---------- чек-лист ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tabs a { text-decoration: none; background: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 500; font-size: 16px;
  display: inline-flex; align-items: center; gap: 10px; }
.tabs a[aria-current="page"] { background: var(--ink); color: #fff; }
.tabs .dot { width: 10px; height: 10px; border-radius: 50%; }
.section-head { border-radius: var(--r-xl); padding: 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-end; justify-content: space-between; }
.section-head.econ { background: var(--econ); }
.section-head.soc { background: var(--soc); }
.counters { display: flex; gap: 28px; flex-wrap: wrap; }
.counters b { display: block; font-size: 30px; font-weight: 600; line-height: 1.1; }
.counters span { font-size: 14px; }
.hw-row { background: #fff; border-radius: var(--r-lg); padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center;
  gap: 16px 24px; transition: transform .15s ease, box-shadow .15s ease; }
.hw-row:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.check { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.check.done { background: var(--ok); color: #fff; }
.check.prog { border: 2px solid var(--ink); }
.check.prog i { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--ink) 0 var(--p, 30%), var(--line2) var(--p, 30%) 100%); }
.check.todo { border: 2px solid #D6CFC4; }
.hw-row .title { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hw-row .title b { font-size: 19px; font-weight: 600; }
.hw-row .title span { font-size: 15px; color: var(--muted); }
.hw-row .result { flex: 0 0 110px; display: flex; flex-direction: column; align-items: flex-end; }
.hw-row .result small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hw-row .result b { font-size: 20px; font-weight: 600; }
.hw-row .btn { flex: 0 0 150px; }
@media (max-width: 760px) {
  .hw-row { padding: 18px; gap: 12px 14px; }
  .hw-row .result { flex: 1 1 auto; align-items: flex-start; }
  .hw-row .btn { flex: 1 1 100%; }
}

/* ---------- задание ---------- */
.task-shell { min-height: 100vh; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.task-wrap { width: 100%; max-width: 920px; display: flex; flex-direction: column; gap: 18px; }
.dots { display: grid; gap: 4px; }
.dots i { height: 8px; border-radius: 999px; background: var(--line2); }
.dots i.full { background: var(--ok); }
.dots i.partial { background: #D9A400; }
.dots i.zero { background: var(--bad); }
.dots i.pending { background: #9C8FE6; }
.dots i.cur { background: var(--ink); }
.task-card { background: #fff; border-radius: var(--r-xl); padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; gap: 24px; }
.task-stem { display: flex; flex-direction: column; gap: 12px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; font-weight: 600; }
.task-stem .plain { font-weight: 400; font-size: 18px; color: var(--muted2); }
.task-text { background: var(--soft); border-radius: var(--r-md); padding: 20px 22px; font-size: 17px; line-height: 1.6; font-weight: 400;
  max-height: 460px; overflow: auto; display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.task-text .src { font-style: italic; color: var(--muted); }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: flex-start; gap: 16px; text-align: left; width: 100%; padding: 17px 20px; border-radius: 20px;
  border: 2px solid var(--rail); background: #fff; cursor: pointer; font-size: 18px; line-height: 1.5;
  transition: border-color .15s ease, background .2s ease, transform .12s ease; }
.opt:hover:not(:disabled) { transform: translateY(-1px); border-color: #CFC7BB; }
.opt:disabled { cursor: default; }
.opt .num { flex: 0 0 32px; height: 32px; border-radius: 10px; background: var(--bg); display: flex; align-items: center;
  justify-content: center; font-weight: 600; font-size: 16px; margin-top: 1px; }
.opt .txt { flex: 1 1 auto; }
.opt.sel { border-color: var(--ink); background: var(--soft); }
.opt.sel .num { background: var(--ink); color: #fff; }
.opt.r-ok { border-color: var(--ok); background: var(--ok-bg); }
.opt.r-ok .num { background: var(--ok); color: #fff; }
.opt.r-bad { border-color: var(--bad); background: var(--bad-bg); }
.opt.r-bad .num { background: #B3261E; color: #fff; }
.opt.r-miss { border-color: var(--ok); border-style: dashed; }
.opt.r-miss .num { background: var(--ok-bg); color: var(--ok-ink); }
.opt.r-dim { opacity: .55; }
.opt .tag { align-self: center; border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; background: #fff; white-space: nowrap; }
.opt.r-ok .tag, .opt.r-miss .tag { color: var(--ok-ink); }
.opt.r-miss .tag { background: var(--ok-bg); }
.opt.r-bad .tag { color: var(--bad-ink); }

.match { display: flex; flex-direction: column; gap: 14px; }
.match-legend { background: var(--soft); border-radius: var(--r-md); padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.match-legend b { font-size: 13px; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.match-row { border: 2px solid var(--rail); border-radius: 20px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.match-row .left { font-size: 18px; line-height: 1.45; }
.match-row .left b { margin-right: 6px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-width: 52px; height: 46px; padding: 0 14px; border-radius: 14px; border: 2px solid transparent; background: var(--bg);
  font-weight: 600; font-size: 17px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pill:hover:not(:disabled) { border-color: #CFC7BB; }
.pill.sel { background: var(--ink); color: #fff; }
.pill.r-ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok-ink); }
.pill.r-bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad-ink); }
.pill.r-miss { background: #fff; border: 2px dashed var(--ok); color: var(--ok-ink); }
.pill:disabled { cursor: default; }
.pill .lbl { font-weight: 500; font-size: 14px; }
.match-row.r-ok { border-color: var(--ok); }
.match-row.r-bad { border-color: var(--bad); }

@media (max-width: 760px) {
  .task-shell { padding: 14px 10px 28px; gap: 16px; }
  .task-card { padding: 18px 14px; border-radius: 26px; gap: 18px; }
  .opt { padding: 13px 12px; gap: 12px; font-size: 16.5px; border-radius: 16px; }
  .opt .num { flex-basis: 28px; height: 28px; font-size: 15px; }
  .match-row { padding: 14px 12px; }
  .match-row .left { font-size: 16.5px; }
  .pill { min-width: 46px; height: 44px; padding: 0 10px; }
  .feedback { border-radius: 26px; padding: 20px 16px; }
  .answer-bar .btn, .feedback .row .btn { flex: 1 1 100%; }
  .task-stem { font-size: 19px; }
}
.answer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.feedback { border-radius: var(--r-xl); padding: clamp(22px, 4vw, 34px); display: flex; flex-direction: column; gap: 18px; animation: fadeUp .3s ease both; }
.feedback.full { background: var(--ok-bg); }
.feedback.partial { background: var(--mid-bg); }
.feedback.zero { background: var(--bad-bg); }
.feedback.pending { background: var(--soc); }
.verdict { display: flex; align-items: center; gap: 16px; }
.verdict .ic { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 52px; }
.feedback.full .ic { background: var(--ok); }
.feedback.partial .ic { background: var(--mid); }
.feedback.zero .ic { background: #B3261E; }
.feedback.pending .ic { background: var(--soc-deep); }
.verdict b { font-size: 24px; font-weight: 600; display: block; }
.verdict span { font-size: 16px; color: var(--muted2); }
.ans-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ans-box { background: rgba(255,255,255,.75); border-radius: 18px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.ans-box small { font-size: 13px; color: #55505A; }
.ans-box b { font-size: 24px; font-weight: 600; letter-spacing: .06em; word-break: break-word; }
.ans-box.right b { color: var(--ok-ink); }
.why { display: flex; flex-direction: column; gap: 8px; }
.why p { background: #fff; border-radius: 16px; padding: 13px 18px; font-size: 16px; line-height: 1.55; }
.why p.hl { box-shadow: inset 4px 0 0 var(--bad); }
.why .rule { font-size: 14px; color: #55505A; }
.sample { background: #fff; border-radius: 16px; padding: 16px 18px; font-size: 16px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }
.term-input { max-width: 520px; }

/* ---------- review ---------- */
.score-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.score-big { font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.score-big small { font-size: 24px; color: var(--muted); font-weight: 500; }
.counts3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; align-content: center; }
.counts3 div { border-radius: 22px; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.counts3 b { font-size: 32px; font-weight: 600; }
.counts3 span { font-size: 14px; }
.topic-bars { display: flex; flex-direction: column; gap: 14px; }
.topic-bar { display: grid; grid-template-columns: minmax(150px, 300px) minmax(0, 1fr) 70px; align-items: center; gap: 16px; }
.topic-bar .track { height: 14px; border-radius: 999px; background: #F0ECE6; overflow: hidden; }
.topic-bar .track i { display: block; height: 100%; border-radius: 999px; }
.topic-bar b { text-align: right; font-weight: 600; }
@media (max-width: 760px) { .topic-bar { grid-template-columns: 1fr 64px; } .topic-bar .track { grid-column: 1 / -1; grid-row: 2; } }
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.group { border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.group h3 { font-size: 18px; font-weight: 600; }
.group .rule { font-size: 13px; color: var(--muted2); }
.group .it { background: rgba(255,255,255,.75); border-radius: 16px; padding: 11px 14px; display: flex; flex-direction: column; }
.group .it b { font-weight: 500; font-size: 16px; }
.group .it span { font-size: 13px; color: #55505A; }
.group.repeat { background: var(--bad-bg); } .group.repeat h3 { color: #7A1C15; }
.group.single { background: var(--mid-bg); } .group.single h3 { color: #4A3909; }
.group.good { background: var(--ok-bg); } .group.good h3 { color: #1E4F2F; }
.group.insufficient { background: var(--na-bg); } .group.insufficient h3 { color: var(--na-ink); }
.err { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.err .head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.err .head .pts { margin-left: auto; font-weight: 600; }
.err .q { font-size: 17px; line-height: 1.5; }
.err .boxes { display: flex; flex-wrap: wrap; gap: 10px; }
.err .boxes span { border-radius: 14px; padding: 9px 14px; font-size: 15px; }
.err .boxes .y { background: var(--bad-bg); }
.err .boxes .c { background: var(--ok-bg); }
.err .boxes b { letter-spacing: .05em; }
.err details summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.err .ex { font-size: 15px; color: var(--muted2); line-height: 1.5; display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.recs { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.recs ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #E8E4DE; }

/* ---------- кабинет преподавателя ---------- */
.t-shell { min-height: 100vh; display: flex; flex-wrap: wrap; gap: 24px; padding: 24px; align-items: flex-start; background: #F6F5F2; }
.t-side { position: sticky; top: 24px; flex: 0 0 260px; background: #fff; border-radius: 28px; padding: 24px 16px; display: flex;
  flex-direction: column; gap: 18px; min-height: calc(100vh - 48px); }
.t-side .brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.t-side .brand .logo { width: 44px; height: 44px; border-radius: 14px; font-size: 14px; }
.t-links { display: flex; flex-direction: column; gap: 4px; }
.t-links a { text-decoration: none; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; font-size: 16px; }
.t-links a:hover { background: var(--bg); }
.t-links a[aria-current="page"] { background: var(--bg); font-weight: 600; }
.t-links .badge { margin-left: auto; background: var(--mid-bg); color: var(--mid-ink); border-radius: 999px; padding: 2px 9px; font-size: 13px; font-weight: 600; }
.t-main { flex: 999 1 560px; min-width: 0; max-width: 1180px; display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; }
.t-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 4px; }
.t-head h1 { font-size: 36px; font-weight: 600; }
@media (max-width: 860px) {
  .t-shell { padding: 12px; gap: 12px; }
  .t-side { position: static; flex: 1 1 100%; min-height: 0; padding: 14px; }
  .t-links { flex-direction: row; flex-wrap: wrap; }
  .t-side .spacer, .t-side .foot { display: none; }
}
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpis div { background: #fff; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.kpis span { font-size: 14px; color: var(--muted); }
.kpis b { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.agenda-item { display: flex; gap: 14px; align-items: flex-start; border-radius: 18px; padding: 16px; }
.agenda-item.repeat { background: var(--bad-bg); }
.agenda-item.single { background: var(--mid-bg); }
.agenda-item .n { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.agenda-item b { font-size: 17px; display: block; }
.agenda-item span { font-size: 14px; color: var(--muted2); display: block; }
.agenda-item em { font-style: normal; font-size: 13px; font-weight: 600; }
.table-box { overflow-x: auto; }
table.t { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 500; padding: 10px 12px; }
table.t td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: top; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: var(--soft); }
.secdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; }
.toggle { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--line2); border: 0; cursor: pointer; flex: 0 0 48px; }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle[aria-pressed="true"] { background: var(--ok); }
.toggle[aria-pressed="true"]::after { left: 23px; }
.qa { display: grid; grid-template-columns: 1fr; gap: 10px; }
.qa-row { background: #fff; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; border: 1.5px solid transparent; }
.qa-row.bad { border-color: var(--bad-bg); }
.qa-row.held { opacity: .7; border-style: dashed; border-color: var(--line2); }
.edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.edit-grid .wide { grid-column: 1 / -1; }
.edit-grid textarea.input { min-height: 110px; font-size: 15px; }
.edit-grid .input { font-size: 15px; height: 46px; border-radius: 14px; }
select.input { appearance: auto; }
.note { background: var(--mid-bg); color: var(--mid-ink); border-radius: 14px; padding: 12px 16px; font-size: 14px; }

@media print {
  .t-side, .tabbar, .rail, .no-print { display: none !important; }
  .t-shell, .shell { display: block; padding: 0; background: #fff; }
  body { background: #fff; }
  .card, .kpis div { break-inside: avoid; border: 1px solid #ddd; }
}

/* ---------- телефон: перекрывает правила выше ---------- */
@media (max-width: 760px) {
  .page-title { font-size: 32px; }
  .page-sub { font-size: 17px; }
  .section-card { padding: 22px; min-height: 0; gap: 14px; border-radius: 26px; }
  .section-card h2 { font-size: 23px; }
  .section-card .ico { width: 44px; height: 44px; }
  .section-head { padding: 22px; border-radius: 26px; gap: 18px; }
  .progress-card .stat:last-child { display: none; }
  .progress-card { grid-template-columns: auto repeat(2, minmax(0, 1fr)); }
}

/* =====================================================================
   v2 · по референсам: прохладный светлый фон, белые карточки, крупная
   типографика, стеклянные виджеты на hero, прогресс точками, акцент — оранжевый
   ===================================================================== */
body { letter-spacing: -0.005em; }
.page-title, .hero h1, .section-card h2, .t-head h1 { font-weight: 500; letter-spacing: -0.035em; }
.stat .value, .kpis b, .score-big, .counters b { font-weight: 500; letter-spacing: -0.03em; }
.card { box-shadow: 0 1px 0 rgba(15,17,21,.03); }
.eyebrow.dot::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.btn.primary { background: var(--ink); }
.btn.white:hover { background: #F3F4F6; }

/* боковое меню с подписями */
.side { position: sticky; top: 20px; flex: 0 0 236px; background: #fff; border-radius: 26px; padding: 22px 14px;
  display: flex; flex-direction: column; gap: 6px; min-height: calc(100vh - 40px); box-sizing: border-box; }
.side .brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; text-decoration: none; color: var(--ink); }
.side .brand .logo { width: 44px; height: 44px; border-radius: 14px; font-size: 14px; flex: 0 0 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-size: 16px; font-weight: 600; }
.brand-text span { font-size: 13px; color: var(--muted); }
.side-caption { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 6px 12px; }
.side-links { display: flex; flex-direction: column; gap: 2px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; text-decoration: none; color: var(--muted2); font-size: 15.5px; font-weight: 500; }
.side-link:hover { background: var(--soft); color: var(--ink); }
.side-link[aria-current="page"] { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.side-label { flex: 1 1 auto; }
.side-count { background: var(--accent); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 8px; }
.side-spacer { flex: 1; }
.side-user { display: flex; align-items: center; gap: 10px; border: 0; background: var(--soft); border-radius: 16px; padding: 10px; cursor: pointer; text-align: left; font: inherit; }
.side-user .avatar { width: 38px; height: 38px; flex: 0 0 38px; font-size: 15px; }
.side-user-text { display: flex; flex-direction: column; min-width: 0; }
.side-user-text b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text span { font-size: 12px; color: var(--muted); }
.shell { gap: 22px; padding: 20px; }
.main { padding: 4px 4px 48px; gap: 22px; }
@media (max-width: 1100px) and (min-width: 761px) {
  .side { flex-basis: 76px; padding: 18px 10px; }
  .brand-text, .side-label, .side-caption, .side-user-text, .side-count { display: none; }
  .side .brand { padding: 0 0 14px; justify-content: center; }
  .side-link { justify-content: center; padding: 12px; }
  .side-user { justify-content: center; background: transparent; }
}
@media (max-width: 760px) { .side { display: none; } .shell { padding: 0; } .main { padding: 14px 12px 110px; } }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 30px; padding: 32px; color: #fff; display: flex; flex-wrap: wrap; gap: 24px;
  align-items: stretch; justify-content: space-between; min-height: 300px; isolation: isolate; }
.hero.econ { background: radial-gradient(120% 140% at 85% 10%, #FF8A4C 0%, rgba(255,138,76,0) 45%), linear-gradient(135deg, #1E3FE0 0%, #2E7BEA 55%, #3FB6D9 100%); }
.hero.hist { background: radial-gradient(120% 140% at 85% 10%, #F5B94A 0%, rgba(245,185,74,0) 45%), linear-gradient(135deg, #123C2E 0%, #1F6B4E 55%, #3D9C73 100%); }
.hero.soc { background: radial-gradient(120% 140% at 85% 10%, #FF7AA8 0%, rgba(255,122,168,0) 45%), linear-gradient(135deg, #2B1E80 0%, #5B45D6 55%, #8E7BF2 100%); }
.hero-word { position: absolute; right: -10px; bottom: -48px; font-size: clamp(140px, 22vw, 280px); font-weight: 600; letter-spacing: -0.06em;
  color: rgba(255,255,255,.12); line-height: 1; z-index: -1; pointer-events: none; }
.hero-main { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; justify-content: flex-end; min-width: 0; }
.hero .eyebrow { color: rgba(255,255,255,.85); font-size: 14px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1; margin: 6px 0 0; }
.hero p { margin: 0; font-size: 18px; color: rgba(255,255,255,.85); max-width: 460px; }
.hero .tabs { margin-top: 10px; }
.hero .tabs a { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.28); }
.hero .tabs a[aria-current="page"] { background: #fff; color: var(--ink); }
.hero-widgets { flex: 0 1 520px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-self: flex-end; }
.glass { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 22px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.glass-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: rgba(255,255,255,.85); }
.glass-head b { font-size: 22px; font-weight: 500; color: #fff; }
.glass .cap { font-size: 12.5px; color: rgba(255,255,255,.8); }
.prog-row { display: flex; align-items: center; gap: 14px; }
.prog-row .big { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.prog-row .big small { font-size: 16px; color: rgba(255,255,255,.75); }
.prog-row .ring circle:first-child { stroke: rgba(255,255,255,.25); }
.week-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; align-items: end; height: 112px; }
.week-col { display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; height: 100%; }
.week-col i { display: block; width: 100%; max-width: 26px; border-radius: 999px; background: rgba(255,255,255,.35); }
.week-col.today i { background: var(--accent); }
.week-n { font-size: 11px; color: rgba(255,255,255,.85); min-height: 13px; }
.week-d { font-size: 11px; color: rgba(255,255,255,.75); }
.week-col.today .week-d { color: #fff; font-weight: 600; }
@media (max-width: 760px) {
  .hero { padding: 22px; border-radius: 26px; min-height: 0; }
  .hero-widgets { grid-template-columns: 1fr 1fr; flex-basis: 100%; gap: 10px; }
  .glass { padding: 12px; border-radius: 18px; }
  .week-bars { height: 84px; gap: 4px; }
  .prog-row .ring svg { width: 46px; height: 46px; }
  .prog-row .big { font-size: 26px; }
  .hero p { font-size: 16px; }
}

/* разделы: пастель + точки */
.section-card { border-radius: 26px; padding: 26px; min-height: 0; gap: 18px; transition: transform .15s ease, box-shadow .15s ease; }
.section-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.section-card h2 { font-size: 26px; }
.section-card .ico { width: 46px; height: 46px; }
.chip.glassy { background: rgba(255,255,255,.7); }
.dots-row { display: flex; flex-wrap: wrap; gap: 5px; }
.dots-row i { width: 10px; height: 10px; border-radius: 50%; background: rgba(15,17,21,.13); }
.dots-row i.on { background: var(--ink); }
.section-card.econ .dots-row i.on { background: var(--econ-deep); }
.section-card.soc .dots-row i.on { background: var(--soc-deep); }
.section-card.hist .dots-row i.on { background: var(--hist-deep); }

/* тёмная карточка «продолжить» */
.dark-card { background: var(--ink); color: #fff; border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; transition: transform .15s ease; }
.dark-card:hover { transform: translateY(-2px); }
.dark-card .eyebrow { color: rgba(255,255,255,.7); }
.dark-title { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.dark-card .dots-row i { background: rgba(255,255,255,.18); }
.dark-card .dots-row i.on { background: var(--accent); }
.dark-card .row span { color: rgba(255,255,255,.8); font-size: 15px; }

/* список работ */
.hw-row { border: 1px solid transparent; }
.hw-row .dots-row { margin-top: 6px; }
.hw-row .dots-row i { width: 8px; height: 8px; }
.hw-row .dots-row i.on { background: var(--accent); }
.section-head { border-radius: 26px; }
.tabs a { box-shadow: 0 0 0 1px var(--line) inset; }
.tabs a[aria-current="page"] { box-shadow: none; }

/* задание */
.task-card { box-shadow: 0 1px 0 rgba(15,17,21,.03); }
.opt { border-color: var(--line); }
.opt.sel { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 1px var(--ink); }
.opt-why { display: block; margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--muted2); font-weight: 400; }
.opt.r-ok .opt-why, .opt.r-miss .opt-why { color: var(--ok-ink); }
.opt.r-bad .opt-why { color: var(--bad-ink); }
.opt.r-dim { opacity: .8; }
.opt.r-dim .opt-why { color: var(--muted); }
.match-row .opt-why { margin-top: 2px; }
.dots i.cur { background: var(--accent); }

/* кабинет учителя */
.t-shell { background: var(--bg); }
.kpis b { font-size: 34px; }
.prog-mini { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); flex: 0 0 auto; }
.prog-mini .dots-row i { width: 7px; height: 7px; }
.prog-mini .dots-row i.on { background: var(--accent); }
.feedback .why p.hl { box-shadow: inset 4px 0 0 var(--bad); }
.parent { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-style: normal; margin-bottom: 2px; }
.agenda-item .parent { font-size: 11px; }

/* ---------- задание v3: таблицы, легенды, аккуратнее ---------- */
.task-stem { font-weight: 600; letter-spacing: -0.005em; }
.task-stem p:first-child { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.42; }
.task-stem .plain { line-height: 1.55; }

.tt-wrap { border: 1px solid var(--line2); border-radius: 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.tt { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 16.5px; line-height: 1.45; min-width: 420px; }
.tt th { text-align: left; vertical-align: bottom; padding: 14px 18px; background: #F2F4F7; color: var(--muted2);
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--line2); }
.tt td { padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
.tt tr:last-child td { border-bottom: 0; }
.tt th + th, .tt td + td { border-left: 1px solid var(--line); }
.tt td.gap { background: #FFF6F1; }
.tt .gap-key { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 6px;
  margin-right: 10px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; vertical-align: 1px; }
.tt .gap-val { color: #B4542C; font-style: italic; }
.tt td.gap.filled { background: #FFEDE3; }
.tt td.gap.filled .gap-val { color: var(--ink); font-style: normal; font-weight: 600; }
.tt td.gap.ok { background: var(--ok-bg); }
.tt td.gap.ok .gap-key { background: var(--ok); }
.tt td.gap.ok .gap-val { color: var(--ok-ink); font-style: normal; font-weight: 600; }
.tt td.gap.bad { background: var(--bad-bg); }
.tt td.gap.bad .gap-key { background: var(--bad); }
.tt td.gap.bad .gap-val { color: var(--ok-ink); font-style: normal; font-weight: 600; }
.tt .gap-was { display: block; margin-top: 4px; font-size: 14px; color: var(--bad-ink); }

.legend { background: var(--soft); border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.legend-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legend-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; }
.legend-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; line-height: 1.45; }
.legend-num { flex: 0 0 auto; min-width: 28px; height: 28px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px var(--line2);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.legend-txt { padding-top: 2px; }
.legend-txt .opt-why { margin-top: 4px; font-size: 14.5px; }

.match-row { border: 1px solid var(--line2); background: #fff; }
.match-row .left { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.row-key { flex: 0 0 auto; min-width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.match-row .left > span:last-child { padding-top: 3px; }
.match-row.r-ok { background: #F6FBF8; }
.match-row.r-ok .row-key { background: var(--ok); }
.match-row.r-bad { background: #FFF8F7; }
.match-row.r-bad .row-key { background: var(--bad); }
.pill { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 600; }
.pill.sel { box-shadow: none; }

.opt { background: #fff; }
.opt .num { background: var(--soft); box-shadow: inset 0 0 0 1px var(--line2); font-weight: 700; }
.opt.sel .num, .opt.r-ok .num, .opt.r-bad .num { box-shadow: none; }
.task-images img { border-radius: 18px; border: 1px solid var(--line); }
.answer-bar { border-top: 1px solid var(--line); padding-top: 20px; }

@media (max-width: 760px) {
  .tt { font-size: 15px; min-width: 0; }
  .tt th { padding: 10px 10px; font-size: 11px; letter-spacing: .03em; }
  .tt td { padding: 10px 10px; }
  .tt .gap-key { min-width: 24px; height: 24px; font-size: 13px; margin: 0 0 4px; display: flex; width: 24px; }
  .legend { padding: 14px 14px; }
  .legend-list { grid-template-columns: 1fr; }
  .legend-list li { font-size: 15.5px; }
  .task-stem p:first-child { font-size: 18.5px; }
}
@media (min-width: 761px) {
  .match.tabular .match-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 16px; }
  .match.tabular .match-row .left { flex: 0 0 250px; }
  .match.tabular .pills { justify-content: flex-end; gap: 6px; }
  .match.tabular .pill { min-width: 44px; height: 42px; }
}
.match.tabular .match-row:has(.opt-why) { flex-wrap: wrap; }
.match.tabular .match-row:has(.opt-why) .left { flex-basis: 100%; }
.match.tabular .match-row:has(.opt-why) .pills { justify-content: flex-start; }

/* ---------- программа экзамена и кодификатор ---------- */
.h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.cov-card { display: flex; flex-direction: column; gap: 20px; }
.cov-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.cov-head .h2 { margin: 6px 0 4px; font-size: 24px; }
.cov-rows { display: flex; flex-direction: column; gap: 4px; }
.cov-row { display: grid; grid-template-columns: 190px 1fr 70px 110px; align-items: center; gap: 16px; padding: 10px 12px;
  border-radius: 14px; text-decoration: none; color: var(--ink); }
.cov-row:hover { background: var(--soft); }
.cov-name { font-weight: 600; }
.cov-num { text-align: right; color: var(--muted); font-size: 15px; }
.cov-num b { color: var(--ink); font-size: 17px; }
.cov-left { font-size: 14px; color: var(--muted); }
.cov-bar { position: relative; display: flex; height: 12px; border-radius: 99px; background: var(--rail); overflow: hidden; }
.cov-bar i { display: block; height: 100%; }
.cov-bar i.st, .cov-legend i.st { background: var(--ok); }
.cov-bar i.op, .cov-legend i.op { background: #F2B705; }
.cov-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; color: var(--muted); }
.cov-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cov-legend i { width: 12px; height: 12px; border-radius: 4px; background: var(--rail); display: inline-block; }

.cod-hero { display: flex; flex-direction: column; gap: 14px; }
.cod-hero > p { max-width: 720px; font-size: 17px; }
.cov-big { display: flex; align-items: center; gap: 16px; }
.cov-big b { display: block; font-size: 24px; }
.cod-howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 6px; }
.cod-howto > div { background: var(--soft); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.cod-howto b { font-size: 16px; }
.cod-filters { display: flex; flex-direction: column; gap: 14px; }
.cod-filter-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cod-label { flex: 0 0 100px; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 0; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line2); border-radius: 999px; padding: 8px 14px;
  font-size: 15px; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.kim-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.kim-part { font-size: 13px; color: var(--muted); margin: 0 4px 0 2px; }
.kim-part + .kim-btn { margin-left: 0; }
.kim-btn { width: 38px; height: 38px; border-radius: 11px; border: 0; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line2);
  font-weight: 600; font-size: 15px; cursor: pointer; }
.kim-btn[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: none; }
.cod-kim-info { background: var(--accent-soft); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.cod-search { max-width: 520px; }
.cod-list { display: flex; flex-direction: column; gap: 18px; }
.cod-block { background: #fff; border-radius: var(--r-xl); padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 6px; }
.cod-block-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.cod-block-head > div:first-child { display: flex; align-items: center; gap: 12px; }
.cod-block-stat { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.cod-block-stat .cov-bar { width: 140px; }
.cod-code { flex: 0 0 auto; min-width: 42px; padding: 4px 8px; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line2);
  font-weight: 700; font-size: 14px; text-align: center; font-variant-numeric: tabular-nums; }
.cod-item { border-radius: 16px; border: 1px solid var(--line); }
.cod-item summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; }
.cod-item summary::-webkit-details-marker { display: none; }
.cod-item summary:hover { background: var(--soft); border-radius: 16px; }
.cod-item.st-studied .cod-code { background: var(--ok-bg); box-shadow: none; color: var(--ok-ink); }
.cod-item.st-open .cod-code { background: var(--mid-bg); box-shadow: none; color: var(--mid-ink); }
.cod-title { flex: 1 1 auto; font-weight: 500; line-height: 1.4; }
.cod-meta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.cod-kims { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cod-body { padding: 4px 16px 16px 70px; display: flex; flex-direction: column; gap: 10px; font-size: 15.5px; line-height: 1.55; color: var(--muted2); }
.cod-note { background: var(--soft); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.cod-hws { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.cod-hws a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 760px) {
  .cov-row { grid-template-columns: 1fr auto; gap: 6px 12px; padding: 10px 6px; }
  .cov-row .cov-bar { grid-column: 1 / -1; grid-row: 2; }
  .cov-left { display: none; }
  .cov-head .btn { width: 100%; justify-content: center; }
  .cod-label { flex-basis: 100%; }
  .cod-item summary { flex-wrap: wrap; gap: 8px 10px; }
  .cod-title { flex-basis: calc(100% - 60px); }
  .cod-meta { margin-left: 52px; }
  .cod-body { padding: 4px 14px 14px; }
  .cod-block-stat .cov-bar { width: 100px; }
}
@media (max-width: 760px) {
  .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
  .tabbar a { font-size: 11px; min-width: 0; }
}

/* ---------- тренажёр ---------- */
.train-hero { display: flex; flex-direction: column; gap: 10px; }
.train-hero > p { max-width: 720px; font-size: 17px; }
.train-errors { gap: 14px; }
.train-howto { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; line-height: 1.5; }
.train-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 18px; }
.train-kim { text-align: left; border: 1px solid var(--line2); background: #fff; border-radius: 20px; padding: 16px; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px; transition: transform .12s, border-color .12s; }
.train-kim:hover { transform: translateY(-2px); border-color: var(--ink); }
.train-kim.weak { border: 2px solid var(--accent); background: #FFF8F4; }
.train-kim-top { display: flex; justify-content: space-between; align-items: baseline; }
.train-kim-top b { font-size: 22px; }
.train-pct { font-weight: 700; font-size: 17px; }
.train-skill { font-size: 14px; color: var(--muted2); line-height: 1.4; min-height: 39px; }
.train-sub { font-size: 13px; color: var(--muted); }
.train-kim .cov-bar { height: 8px; }
.cod-kim-info .linkbtn { font-weight: 600; color: var(--accent); }
@media (max-width: 760px) {
  .train-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .train-kim { padding: 12px; }
  .train-skill { font-size: 13px; min-height: 0; }
}

/* ---------- теория ---------- */
.th-results:empty { display: none; }
.th-hits { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.th-hit { display: block; padding: 12px 14px; border-radius: 14px; background: var(--soft); text-decoration: none; color: var(--ink); }
.th-hit:hover { background: var(--rail); }
.th-hit p { font-size: 14.5px; color: var(--muted2); margin-top: 4px; line-height: 1.45; }
.th-book { display: flex; flex-direction: column; gap: 14px; }
.th-lessons { display: flex; flex-direction: column; gap: 6px; }
.th-lesson { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); }
.th-lesson:hover { border-color: var(--ink); }
.th-lesson > div { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.th-lesson .muted { font-size: 13.5px; }
.th-num { flex: 0 0 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }
.th-head { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.th-pages { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.th-page { margin: 0; width: 100%; max-width: 920px; background: #fff; border-radius: 20px; padding: 10px; box-shadow: 0 1px 0 rgba(15,17,21,.04); }
.th-page img { display: block; width: 100%; height: auto; border-radius: 12px; }
.th-page figcaption { display: flex; justify-content: space-between; align-items: center; padding: 8px 6px 2px; font-size: 14px; }
.th-text { padding: 10px 8px 6px; font-size: 16px; line-height: 1.55; display: flex; flex-direction: column; gap: 4px; }
.th-text[hidden] { display: none; }
.th-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 920px; margin: 8px auto 0; width: 100%; }
.theory-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; color: var(--muted2); }
.theory-links a.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  .th-page { padding: 6px; border-radius: 16px; }
  .th-nav .btn { width: 100%; justify-content: center; }
}

/* ---------- конспект текстом ---------- */
.md-card { padding: clamp(20px, 4vw, 44px); }
.md { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; font-size: 17px; line-height: 1.6; }
.md mark { background: linear-gradient(transparent 12%, #FFC98A 12%, #FFC98A 92%, transparent 92%); color: inherit; padding: 0 2px; border-radius: 3px; }
.md-h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; margin-top: 18px; letter-spacing: -0.02em; }
.md-h3 { font-size: 19px; font-weight: 700; margin-top: 8px; }
.md-def { border-left: 4px solid var(--accent); background: #FFF8F2; border-radius: 0 16px 16px 0; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.md-term { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.md-def p { font-size: 17px; }
.md-p.md-example, .md-list .md-example { color: var(--muted2); }
.md-example b:first-child { color: var(--accent); }
.md-important { background: #FFF4E0; border-left: 4px solid #F2A33A; border-radius: 0 14px 14px 0; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.md-note { color: var(--muted); font-size: 16px; padding-left: 16px; border-left: 2px solid var(--line2); display: flex; flex-direction: column; gap: 4px; }
.md-list { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 10px; }
.md-list li::marker { font-weight: 700; color: var(--accent); }
.md-list li > p { margin-top: 4px; font-size: 16px; }
ul.md-list { gap: 4px; }
.md-table { font-size: 15.5px; }
.md-table td { line-height: 1.5; }
.md-plan { border: 1px dashed var(--line2); border-radius: 18px; padding: 16px 20px; background: var(--soft); display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.md-plan-title { font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; }
.md-plan-title::before { content: "План"; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--ink); color: #fff; border-radius: 6px; padding: 2px 7px; }
.md-plan p.sub { padding-left: 22px; }
.md-plan-note { margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .md { font-size: 16px; gap: 14px; }
  .md-card { padding: 18px 14px; }
  .md-table { min-width: 560px; }
}
.md-graph { margin: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.md-graph svg { width: 100%; max-width: 420px; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.md-graph figcaption { font-size: 14.5px; color: var(--muted2); text-align: center; }
.md-list .md-list { margin-top: 6px; gap: 4px; font-size: 16px; }
.md-found { background: #FFF1C2; border-radius: 6px; box-shadow: 0 0 0 4px #FFF1C2; transition: background 2s; }

/* ---------- конспекты истории: хронология, схемы, цепочки ---------- */
.md-timeline, .md-scheme, .md-flow { margin: 4px 0; display: flex; flex-direction: column; gap: 10px; }
.md-timeline figcaption, .md-flow figcaption { font-weight: 700; font-size: 16px; }
.md-scheme figcaption { font-size: 14.5px; color: var(--muted2); text-align: center; }
.md-timeline ol { list-style: none; margin: 0; padding: 0 0 0 4px; display: flex; flex-direction: column; }
.md-timeline li { position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 14px; padding: 7px 0 7px 22px; font-size: 16px; }
.md-timeline li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: var(--line2); }
.md-timeline li::after { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--muted); }
.md-timeline li:first-child::before { top: 15px; }
.md-timeline li:last-child::before { bottom: calc(100% - 15px); }
.md-timeline li.key::after { background: var(--accent); border-color: var(--accent); }
.tl-date { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.md-timeline li.key .tl-date { color: var(--accent); }

.sc-box { background: #fff; border: 1.5px solid var(--line2); border-radius: 14px; padding: 9px 13px; display: inline-flex; flex-direction: column;
  gap: 2px; font-size: 15px; line-height: 1.35; text-align: center; max-width: 190px; }
.sc-box b { font-size: 15.5px; }
.sc-box span { color: var(--muted2); font-size: 13.5px; }
.sc-box.accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.sc-box.accent span { color: #C9CDD4; }

/* дерево: на широком экране — сверху вниз, на узком — отступами */
.md-scheme { background: var(--soft); border-radius: 18px; padding: 18px 12px; overflow-x: auto; }
.sc-tree { width: max-content; min-width: 100%; }
.sc-tree, .sc-tree ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; }
.sc-tree ul { padding-top: 18px; position: relative; }
.sc-tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: 18px 4px 0; }
.sc-tree > li { padding-top: 0; }
.sc-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 18px; border-left: 2px solid var(--muted); }
.sc-tree ul > li::before, .sc-tree ul > li::after { content: ""; position: absolute; top: 0; width: 50%; height: 18px; border-top: 2px solid var(--muted); }
.sc-tree ul > li::before { right: 50%; }
.sc-tree ul > li::after { left: 50%; border-left: 2px solid var(--muted); }
.sc-tree ul > li:first-child::before, .sc-tree ul > li:last-child::after { border-top: 0; }
.sc-tree ul > li:only-child::after { border-top: 0; }
.sc-tree ul > li:first-child::after { border-radius: 8px 0 0 0; }
.sc-tree ul > li:last-child::before { border-right: 2px solid var(--muted); border-radius: 0 8px 0 0; }
.sc-tree ul > li:only-child::before { display: none; }

.fl-row { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; row-gap: 10px; }
.fl-row .sc-box { flex: 1 1 140px; max-width: none; justify-content: center; }
.fl-arrow { flex: 0 0 30px; display: flex; align-items: center; justify-content: center; }
.fl-arrow::before { content: "→"; font-size: 22px; font-weight: 700; color: var(--accent); }

/* дерево, которое не помещается по ширине (или на телефоне), — вертикально, отступами */
.md-scheme.sc-v { padding: 14px 12px; }
.sc-v .sc-tree, .sc-v .sc-tree ul { flex-direction: column; align-items: stretch; }
.sc-v .sc-tree { width: auto; }
.sc-v .sc-tree ul { padding: 8px 0 0 22px; }
.sc-v .sc-tree li { align-items: stretch; padding: 8px 0 0; }
.sc-v .sc-tree > li { padding-top: 0; }
.sc-v .sc-tree ul::before { left: 8px; top: 0; height: auto; bottom: 22px; }
.sc-v .sc-tree ul > li::before { right: auto; left: -14px; width: 14px; top: 28px; height: 0; border-right: 0; border-radius: 0; border-top: 2px solid var(--muted); display: block; }
.sc-v .sc-tree ul > li::after { display: none; }
.sc-v .sc-tree ul > li:first-child::before, .sc-v .sc-tree ul > li:last-child::before { border-top: 2px solid var(--muted); border-right: 0; }
.sc-v .sc-box { max-width: none; text-align: left; }

@media (max-width: 640px) {
  .md-timeline li { grid-template-columns: 1fr; gap: 0; }
  .fl-row { flex-direction: column; }
  .fl-row .sc-box { flex: none; }
  .fl-arrow { flex: 0 0 26px; }
  .fl-arrow::before { content: "↓"; }
}
}

/* иллюстрации к культуре */
.md-gallery { display: flex; flex-direction: column; gap: 10px; margin: 4px 0; }
.gl-title { font-weight: 700; font-size: 16px; }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gl-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.gl-item a { display: block; position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.gl-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s; }
.gl-item a:hover img { transform: scale(1.03); }
.gl-item figcaption { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; line-height: 1.35; }
.gl-item figcaption b { font-size: 15px; }
.gl-item figcaption span { color: var(--muted2); font-size: 13.5px; }
@media (max-width: 640px) { .gl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .gl-item figcaption { padding: 8px 10px 10px; } }

/* ---------- игры ---------- */
.game-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, border-color .15s ease; }
.game-card:hover { transform: translateY(-2px); border-color: var(--ink); }
.game-logo { width: 56px; height: 56px; border-radius: 18px; background: var(--soc); color: var(--soc-ink); display: flex; align-items: center; justify-content: center; }
.pr-setup { display: flex; flex-direction: column; gap: 16px; }
.pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pr-chip { border: 1.5px solid var(--line2); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 15px; cursor: pointer;
  display: inline-flex; gap: 8px; align-items: baseline; }
.pr-chip span { color: var(--muted); font-size: 13px; }
.pr-chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pr-chip[aria-checked="true"] span { color: #C9CDD4; }
.pr-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pr-mode { text-align: left; border: 1.5px solid var(--line2); background: #fff; border-radius: 20px; padding: 18px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; }
.pr-mode b { font-size: 20px; }
.pr-mode span { font-size: 15px; color: var(--muted2); line-height: 1.4; }
.pr-mode small { font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 6px; }
.pr-mode[aria-checked="true"] { border: 2px solid var(--ink); background: var(--soft); }
.pr-game { display: flex; flex-direction: column; gap: 18px; max-width: 860px; }
.pr-top { display: flex; align-items: center; gap: 14px; }
.pr-step { font-weight: 600; white-space: nowrap; }
.pr-track { flex: 1 1 auto; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pr-track i { display: block; height: 100%; background: var(--ink); border-radius: 99px; transition: width .3s ease; }
.pr-score { font-weight: 600; white-space: nowrap; }
.pr-head .chip { font-size: 13px; }
.pr-feats { margin: 0; padding: 0; list-style: none; counter-reset: f; display: flex; flex-direction: column; gap: 10px; }
.pr-feats li { counter-increment: f; position: relative; padding: 14px 18px 14px 56px; background: var(--soft); border-radius: 16px; font-size: 18px; line-height: 1.4; }
.pr-feats li::before { content: counter(f); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.pr-feats li.pr-extra { background: transparent; border: 1.5px dashed var(--line2); color: var(--muted2); }
.pr-feats li.pr-extra::before { background: var(--line2); color: var(--ink); }
.pr-answer { display: flex; gap: 10px; }
.pr-answer .input { flex: 1 1 auto; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pr-tried { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-tried .chip { text-decoration: line-through; }
.pr-result { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.pr-result:empty { display: none; }
.pr-verdict { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 16px; flex: 1 1 260px; }
.pr-verdict b { font-size: 18px; }
.pr-verdict.ok { background: var(--ok-bg); color: var(--ok-ink); }
.pr-verdict.bad { background: var(--bad-bg); color: var(--bad-ink); }
.pr-final { display: flex; flex-direction: column; gap: 12px; }
.pr-misses { display: flex; flex-direction: column; gap: 10px; }
.pr-miss { border: 1.5px solid var(--line2); border-radius: 16px; padding: 12px 16px; }
.pr-miss summary { cursor: pointer; }
.pr-miss .pr-feats { margin-top: 12px; }
.pr-miss .pr-feats li { font-size: 16px; }
@media (max-width: 760px) {
  .pr-feats li { font-size: 16px; padding: 12px 14px 12px 50px; }
  .pr-feats li::before { left: 12px; top: 10px; width: 28px; height: 28px; }
  .pr-answer { flex-direction: column; }
  .pr-top { gap: 10px; }
}
