/* Nastavnik · цвета продукта и лист разбора ответа: ситуация и балл, ответ против пунктов правила, курс и допуск. */
:root {
  --brand: #24481f; --brand-2: #367a2d; --brand-ink: #1d3a19; --brand-soft: #e8f1e4; --brand-line: #cfe0c7;
  --accent: #f28482; --accent-soft: #fdeceb; --accent-ink: #a23b38;
  --ns-ok: #1f9a50; --ns-ok-hl: #c4edd1; --ns-part: #cf8a00; --ns-part-hl: #fde3a0; --ns-red: #e05a57; --ns-red-hl: #fcd0ce;
}
.w-hero h1 em { color: var(--brand-2); }
.ns { display: flex; flex-direction: column; gap: 12px; }
.ns svg { flex: none; }

/* ситуация и балл ручкой */
.ns-top { display: flex; gap: 14px; align-items: center; }
.ns-sit { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; padding: 11px 16px 12px 12px; border-radius: 14px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); }
.ns-sit-ic { flex: none; width: 34px; height: 34px; margin-top: 2px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.ns-sit-ic svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ns-sit-b { min-width: 0; }
.ns-sit-l { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--brand-ink); }
.ns-sit-q { margin: 2px 0 3px; font-size: 19px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; color: var(--ink); }
.ns-sit-c { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.ns-grade { position: relative; flex: none; width: 120px; height: 84px; }
.ns-grade svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ns-pen { fill: none; stroke: var(--ns-red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ns-gv { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; padding-top: 2px; color: var(--accent-ink); }
.ns-gn { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ns-gv span { margin: 14px 0 0 2px; font-size: 19px; font-weight: 750; }

/* сверка: слева фразы ответа, справа пункты правила, между ними отметка */
.ns-tab { display: flex; flex-direction: column; }
.ns-row { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.22fr) 40px; }
.ns-row.ok { --tone: var(--ns-ok); --hl: var(--ns-ok-hl); }
.ns-row.part { --tone: var(--ns-part); --hl: var(--ns-part-hl); }
.ns-row.bad, .ns-row.miss { --tone: var(--ns-red); --hl: var(--ns-red-hl); }
.ns-th { padding: 0 0 6px; font-size: 13px; font-weight: 650; color: var(--muted); align-items: end; }
.ns-th .l { display: flex; align-items: center; gap: 6px; padding-left: 2px; color: var(--ink-2); }
.ns-th .l svg { width: 16px; height: 16px; fill: none; stroke: var(--brand-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ns-th .r { padding-left: 2px; color: var(--brand-ink); }
.ns-th .p { text-align: right; }
.ns-said, .ns-rule { display: flex; align-items: center; min-height: 41px; padding: 7px 12px; border: 1px solid var(--line); border-top: 0; }
.ns-said:not(.last), .ns-rule:not(.last) { border-bottom-color: var(--line-2); }
.ns-said.first, .ns-rule.first { border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.ns-said.last, .ns-rule.last { border-radius: 0 0 12px 12px; }
.ns-said.first.last, .ns-rule.first.last { border-radius: 12px; }
.ns-said { background: #fff; }
.ns-qt { display: flex; align-items: baseline; gap: 8px; min-width: 0; font-size: 14.5px; line-height: 1.38; }
.ns-qt .tc { flex: none; font-size: 13px; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.ns-q { padding: 1px 3px; border-radius: 4px; background-image: linear-gradient(var(--hl), var(--hl)); background-repeat: no-repeat;
  background-size: 0 100%; transition: background-size .6s var(--ease); }
.ns-row.chk .ns-q { background-size: 100% 100%; }
.ns-miss { display: inline-flex; align-items: center; padding: 3px 10px; border: 1.5px dashed var(--ns-red); border-radius: 8px; background: #fff6f5;
  color: var(--accent-ink); font-size: 13.5px; font-weight: 650; white-space: nowrap; }
.ns-con { position: relative; display: grid; place-items: center; }
.ns-con svg { position: absolute; left: 0; top: 50%; width: 100%; height: 20px; transform: translateY(-50%); overflow: visible; }
.ns-ln { fill: none; stroke: var(--tone); stroke-width: 2.2; stroke-linecap: round; }
.ns-row.bad .ns-ln, .ns-row.miss .ns-ln { stroke-dasharray: 4 4; }
.ns-st { position: relative; width: 24px; height: 24px; border-radius: 50%; background: var(--tone); display: grid; place-items: center; box-shadow: 0 0 0 3px #fff; }
.ns-st svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ns-rule { gap: 10px; background: #f8fbf6; border-color: var(--brand-line); font-size: 14px; line-height: 1.35; color: var(--ink);
  box-shadow: inset 3px 0 0 transparent; transition: box-shadow .3s; }
.ns-row.chk .ns-rule { box-shadow: inset 3px 0 0 var(--tone); }
.ns-rule .no { flex: none; padding: 2px 7px; border-radius: 6px; background: #fff; border: 1px solid var(--brand-line); color: var(--brand-ink);
  font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ns-pts { display: flex; align-items: center; justify-content: flex-end; font-size: 17px; font-weight: 800; color: var(--tone); font-variant-numeric: tabular-nums; }

/* курс по темам, итоговый экзамен, штамп */
.ns-bot { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; }
.ns-trk { min-width: 0; padding: 10px 12px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ns-trk-h { margin: 0 2px 9px; font-size: 13px; line-height: 1.3; font-weight: 650; color: var(--ink-2); }
.ns-rail { display: flex; }
.ns-stn { position: relative; flex: 1 1 0; min-width: min-content; display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.ns-stn::before, .ns-stn::after { content: ""; position: absolute; top: 11px; height: 3px; background: var(--line); transition: background-color .3s; }
.ns-stn::before { left: 0; right: 50%; }
.ns-stn::after { left: 50%; right: 0; }
.ns-stn:first-child::before { display: none; }
.ns-stn.done::before, .ns-stn.done::after, .ns-stn.cur::before { background: var(--brand-2); }
.ns-stn i { position: relative; z-index: 1; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  border: 2px solid var(--line); color: var(--muted); font-style: normal; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.ns-stn i b { font-size: 12px; font-weight: 750; }
.ns-stn i svg { display: none; width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ns-stn.done i b, .ns-stn.cur i b { display: none; }
.ns-stn.done i { background: var(--brand-2); border-color: var(--brand-2); }
.ns-stn.done i svg:first-of-type { display: block; }
.ns-stn.cur i { border-color: var(--ns-red); box-shadow: 0 0 0 4px var(--accent-soft); }
.ns-stn.cur i::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ns-red); }
.ns-stn.cur i { animation: ns-now 1.6s ease-in-out infinite; }
@keyframes ns-now { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent) 22%, transparent); } }
.ns-stn.weak i { background: var(--ns-part); border-color: var(--ns-part); box-shadow: 0 0 0 4px var(--warn-soft); }
.ns-stn.weak i svg:first-of-type { display: none; }
.ns-stn.weak i svg:last-of-type { display: block; }
.ns-stn span { padding: 0 3px; font-size: 13px; line-height: 1.2; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.ns-stn.cur span { color: var(--accent-ink); font-weight: 700; }
.ns-stn.weak span { color: var(--warn-ink); font-weight: 700; }
.ns-fin { display: flex; flex-direction: column; align-items: center; padding: 9px 14px 10px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: center; }
.ns-fin-l { font-size: 13px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.ns-fin-v { display: flex; align-items: baseline; margin: 2px 0 1px; }
.ns-fn { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.ns-fin.bad .ns-fn { color: var(--ns-red); }
.ns-fin-v small { margin-left: 2px; font-size: 16px; font-weight: 700; color: var(--ink-2); }
.ns-fin-s { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ns-stamp { --rot: -6deg; margin-right: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 13px; border: 3px solid var(--brand-2);
  border-radius: 10px; color: var(--brand-2); background: rgba(255, 255, 255, .92); text-transform: uppercase; white-space: nowrap;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand-2) 22%, transparent); }
.ns-stamp b { font-size: 15px; font-weight: 850; letter-spacing: .05em; }
.ns-stamp span { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.ns-stamp.bad { border-color: var(--ns-red); color: var(--accent-ink); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ns-red) 22%, transparent); }

/* карточки в переписке: ситуация и разбор */
.ns-sc, .ns-gc { min-width: 236px; }
.ns-sc-h, .ns-gc-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); }
.ns-sc-h svg, .ns-sc-a svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ns-sc-c { margin-top: 5px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ns-sc-q { margin-top: 4px; font-size: 15px; line-height: 1.35; font-weight: 700; }
.ns-sc-a { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 13.5px; font-weight: 600; color: var(--brand-2); }
.ns-gc-s { margin: 3px 0 3px; font-size: 15px; color: var(--ink-2); }
.ns-gc-s b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-ink); }
.ns-gc-t { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.ns-mk { padding: 0 1px; border-radius: 3px; background: transparent; color: inherit; transition: background-color .4s; }
.ns-mk.on.ok { background: var(--ns-ok-hl); }
.ns-mk.on.part { background: var(--ns-part-hl); }
.ns-mk.on.bad { background: var(--ns-red-hl); }
.w-timer.ns-ck { font-size: 14.5px; }
.w-right .w-ph { gap: 8px; }
.w-right .w-st { padding-right: 9px; }
/* метка на миниатюре внизу слева: сверху справа на листе балл */
.w-th .w-badge { top: auto; right: auto; bottom: 10px; left: 10px; }

/* режим проверки (?qa=1): без переходов и анимаций, кадр в любой момент чёткий */
.ns-qa .ns *, .ns-qa .ns *::before, .ns-qa .ns *::after, .ns-qa .w-msg, .ns-qa .w-msg *, .ns-qa .w-note, .ns-qa .w-result,
.ns-qa .w-st, .ns-qa .w-st i, .ns-qa .w-pill, .ns-qa .w-card { transition: none !important; animation: none !important; }

/* превью 1200×630: зелёная плашка уходит за нижний край */
.w-og .ns { margin-bottom: 30px; }

@container (max-width: 880px) {
  .ns-row { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.2fr) 38px; }
  .ns-qt { font-size: 14px; gap: 7px; }
  .ns-rule { font-size: 13.5px; gap: 8px; }
  .ns { gap: 10px; }
  .ns-said, .ns-rule { padding: 6px 10px; min-height: 37px; }
  .ns-sit { padding: 9px 14px 10px 10px; }
  .ns-sit-q { font-size: 18px; }
  .ns-bot { gap: 10px; }
  .ns-trk { padding: 10px 8px; }
  .ns-stn { flex: 1 1 auto; }
  .ns-stn span { padding: 0 2px; font-size: 12.5px; }
  .ns-fin { padding: 8px 12px 9px; }
  .ns-fin .ns-x { display: none; }
  .ns-stamp { padding: 6px 10px; margin-right: 4px; }
  .ns-stamp b { font-size: 13.5px; letter-spacing: .04em; }
  .ns-stamp span { font-size: 11.5px; }
}
@container (max-width: 700px) {
  .ns-top { align-items: flex-start; gap: 8px; }
  .ns-sit { padding: 10px 12px; gap: 10px; }
  .ns-sit-ic { display: none; }
  .ns-sit-q { font-size: 17px; }
  .ns-grade { width: 92px; height: 66px; }
  .ns-gn { font-size: 34px; }
  .ns-gv span { margin-top: 10px; font-size: 15px; }
  .ns-th { display: none; }
  .ns-tab { gap: 8px; }
  .ns-row { grid-template-columns: 34px minmax(0, 1fr) 42px; grid-template-areas: "st said pts" "st rule pts"; border: 1px solid var(--line); border-radius: 12px;
    overflow: hidden; background: #fff; }
  .ns-said { grid-area: said; }
  .ns-con { grid-area: st; background: #fff; }
  .ns-con svg { display: none; }
  .ns-rule { grid-area: rule; }
  .ns-pts { grid-area: pts; padding-right: 9px; background: #fff; }
  .ns-fin { padding: 9px 10px 10px; }
  .ns-fin .ns-x { display: inline; }
  .ns-said, .ns-rule, .ns-said.first, .ns-rule.first, .ns-said.last, .ns-rule.last { border: 0; border-radius: 0; min-height: 0; padding: 8px 10px 8px 4px; }
  .ns-rule { border-top: 1px dashed var(--line); }
  .ns-bot { grid-template-columns: minmax(0, 1fr) auto; }
  .ns-trk { grid-column: 1 / -1; }
  .ns-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .ns-stn::before, .ns-stn::after { display: none; }
  .ns-stamp { margin-right: 4px; }
}
