/* Интерфейс стенда. Мобильный — первым классом: агент на стойке открывает урок
   с телефона между рейсами, а не с рабочего места. */

:root {
  --brand: #174ABC;
  --brand-dark: #0F3893;
  --ink: #0B1B3A;
  --accent: #EF11B6;
  --bg: #FBFCFE;
  --surface: #fff;
  --surface-2: #F3F6FC;
  --line: rgba(11, 27, 58, .11);
  --muted: rgba(11, 27, 58, .58);
  --ok: #0F7A4A;
  --warn: #C8500A;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 27, 58, .05), 0 10px 34px rgba(11, 27, 58, .07);
  --wrap: 1080px;
}

/* Скрытие обязано побеждать раскладку. `.btn { display: inline-flex }`
   перебивал браузерное правило для [hidden], и «Скачать MP4», «Собрать
   узбекскую версию», «Собрать ещё урок» показывались на каждом уроке —
   видимые и мёртвые. */
[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;           /* горизонтальная прокрутка страницы недопустима */
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 5.2vw, 44px); font-weight: 700; }
h2 { font-size: clamp(23px, 4vw, 33px); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

/* ── Полоса-предупреждение ────────────────────────────────────────── */
.ribbon {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px clamp(14px, 4vw, 28px);
  background: #0B1B3A;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.4;
}
.ribbon b { color: #fff; font-weight: 600; }
.ribbon__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 0 3px rgba(239, 17, 182, .22);
}
.ribbon__link {
  margin-left: auto;
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .45);
  color: #fff;
  padding: 0 0 1px;
  cursor: pointer;
  font-size: 13px;
}

/* ── Шапка ────────────────────────────────────────────────────────── */
.head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 252, 254, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head__in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px clamp(14px, 4vw, 28px);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.head__brand { display: flex; align-items: center; gap: 11px; }
.head__mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), #2E6BE6);
  position: relative;
  flex: none;
}
.head__mark::after {
  content: '';
  position: absolute;
  right: 5px; bottom: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.head__title { font-weight: 650; font-size: 16px; line-height: 1.2; }
.head__sub { font-size: 12.5px; color: var(--muted); }
.head__nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.head__nav button {
  background: none; border: 0; cursor: pointer;
  padding: 7px 12px; border-radius: 9px;
  font-size: 14px; color: var(--muted);
}
.head__nav button:hover { background: var(--surface-2); color: var(--ink); }
.head__nav button.is-active { background: var(--surface-2); color: var(--brand); font-weight: 600; }

/* ── Экраны ───────────────────────────────────────────────────────── */
.screen { display: none; }
.screen.is-active { display: block; animation: rise .32s cubic-bezier(.22, 1, .36, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.is-active { animation: none; } }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 52px) clamp(14px, 4vw, 28px) 72px;
}
.wrap--narrow { max-width: 760px; }
.wrap--wide { max-width: 1240px; }

.eyebrow {
  font-size: 12.5px; font-weight: 650;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}
.lead { margin-top: 16px; font-size: clamp(16px, 2vw, 18.5px); color: var(--muted); max-width: 66ch; }
.lead--sm { font-size: 15.5px; }

/* ── Онбординг 1-2-3 ──────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 10px;
  margin: 30px 0 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li {
  display: flex; gap: 11px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.45;
}
.steps span {
  flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--brand);
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
}

/* ── Зона загрузки ────────────────────────────────────────────────── */
.drop {
  border: 1.5px dashed rgba(23, 74, 188, .34);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #F7F9FE);
  padding: clamp(28px, 5vw, 46px) 22px;
  text-align: center;
  transition: border-color .2s, background .2s, transform .2s;
}
.drop.is-over { border-color: var(--accent); background: #FFF6FC; transform: scale(1.006); }
.drop__title { font-size: clamp(18px, 2.6vw, 22px); font-weight: 650; }
.drop__hint { margin: 8px auto 18px; font-size: 14px; color: var(--muted); max-width: 46ch; }

.or {
  text-align: center;
  margin: 26px 0 18px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
}
.or::before, .or::after {
  content: ''; position: absolute; top: 50%;
  width: min(34%, 260px); height: 1px; background: var(--line);
}
.or::before { left: 0; }
.or::after { right: 0; }

/* ── Кнопки ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;                 /* тап пальцем, не мышью */
  padding: 11px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .18s, border-color .18s, transform .12s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--primary:disabled { background: #A9BADF; cursor: not-allowed; }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }

/* ── Готовые уроки ────────────────────────────────────────────────── */
.ready { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ready__empty, .ready__none {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
}
.card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 9px;
  transition: border-color .18s, box-shadow .18s, transform .18s;
  width: 100%;
}
.card:hover { border-color: rgba(23, 74, 188, .4); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__tag {
  align-self: flex-start;
  font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase;
  color: var(--brand); background: var(--surface-2);
  padding: 4px 9px; border-radius: 6px;
}
.card__tag.is-live { color: var(--accent); background: #FDF0F9; }
.card__title { font-size: 17px; font-weight: 650; line-height: 1.28; }
.card__meta { font-size: 13.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.card__check { font-size: 13px; color: var(--ok); font-weight: 550; }

/* ── Стадии разбора ───────────────────────────────────────────────── */
.stages { margin: 26px 0; display: grid; gap: 2px; }
.stages li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.stages li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.stages li:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.stages li + li { border-top: 0; }
.stages .mark {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line);
}
.stages li.is-now { color: var(--ink); font-weight: 600; background: #F7FAFF; }
.stages li.is-now .mark { border-color: var(--brand); border-right-color: transparent; animation: spin .8s linear infinite; }
.stages li.is-done { color: var(--ink); }
.stages li.is-done .mark { border-color: var(--ok); background: var(--ok); position: relative; }
.stages li.is-done .mark::after {
  content: ''; position: absolute; left: 5px; top: 2px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.stages .note { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 400; text-align: right; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stages li.is-now .mark { animation: none; } }

.note {
  border-left: 2px solid var(--brand);
  padding: 10px 0 10px 14px;
  font-size: 14.5px;
  color: var(--muted);
}
.fail {
  margin-top: 18px;
  border: 1px solid rgba(200, 80, 10, .34);
  background: #FFF7F1;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--warn);
}

/* ── Цепь обучения ────────────────────────────────────────────────── */
.training {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
}
.training__title { font-size: 17px; font-weight: 650; }
.training__sum { font-size: 14px; color: var(--muted); margin-top: 5px; }
.training ol { margin-top: 13px; display: grid; gap: 8px; }
.training li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  background: var(--surface-2);
}
.training li b { font-weight: 600; }
.training li.is-first { background: #F0F5FF; border-color: rgba(23, 74, 188, .3); }
.training .clauses { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.training .badge {
  margin-left: auto; flex: none;
  font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em;
  color: var(--brand); background: #fff;
  border: 1px solid rgba(23, 74, 188, .3);
  padding: 3px 8px; border-radius: 6px;
}

/* Кнопка выбора урока. Живёт в строке урока, а не общим списком внизу:
   человек выбирает, глядя на пункты и хронометраж именно этого урока.
   Кнопок на экране бывает дюжина — заливать все брендовым синим значит
   сделать список пёстрым; заливка приходит на наведение. */
.btn--pick {
  margin-left: auto; flex: none; align-self: center;
  min-height: 40px; padding: 9px 16px; font-size: 14px;
  background: #fff; color: var(--brand); border-color: rgba(23, 74, 188, .35);
}
.btn--pick:hover, .training li:hover .btn--pick {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.btn--pick:disabled { opacity: .5; cursor: not-allowed; }
.training li.is-built { background: #F4FBF7; border-color: rgba(15, 122, 74, .28); }
.training li.is-built .btn--pick { color: var(--ok, #0F7A4A); border-color: rgba(15, 122, 74, .35); }
.training li.is-built .btn--pick:hover { background: #0F7A4A; color: #fff; border-color: #0F7A4A; }
@media (max-width: 640px) {
  .training li { flex-wrap: wrap; }
  .btn--pick { margin-left: 0; width: 100%; }
}

.approve {
  margin-top: 22px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.approve__text { font-size: 14.5px; color: var(--muted); flex: 1 1 300px; }

/* ── Проверки ─────────────────────────────────────────────────────── */
.checks { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 20px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px;
  font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.chip b { font-weight: 650; }
.chip.is-ok b { color: var(--ok); }
.chip.is-flag b { color: var(--warn); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.chip.is-flag .chip__dot { background: var(--warn); }

/* ── Плеер ────────────────────────────────────────────────────────── */
.lesson__top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }

/* Возврат к списку уроков. Стрелка нарисована в CSS, а не в разметке:
   подпись переключается вместе с языком дорожки через textContent. */
.backlink {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 9px 18px 9px 14px;   /* тап пальцем, не мышью */
  margin-bottom: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink); font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .12s;
}
.backlink::before { content: '←'; font-size: 17px; line-height: 1; color: var(--brand); }
.backlink:hover { background: var(--surface-2); border-color: var(--brand); }
.backlink:active { transform: translateY(1px); }

/* Переключатель дорожки живёт в панели плеера, рядом с воспроизведением:
   вверху страницы, около «К списку», его принимали за служебную кнопку. */
.lang {
  display: inline-flex; align-items: center;
  background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px;
  margin-left: auto;
}
.lang__label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  padding: 0 9px 0 7px;
}
.lang button {
  border: 0; background: none; cursor: pointer;
  padding: 7px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  min-height: 44px;              /* палец, а не мышь: проверяльщик ловит все тапы < 40px */
}
.lang button.is-active { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(11, 27, 58, .1); }

.player { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); }
.deck { display: block; }

.player__bar { display: flex; align-items: center; gap: 10px; margin-top: 13px; flex-wrap: wrap; }
.ctl {
  width: 42px; height: 42px; flex: none;
  border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer;
  font-size: 17px; line-height: 1;
  display: grid; place-items: center;
}
.ctl:hover { background: var(--surface-2); }
.ctl--play { background: var(--brand); color: #fff; border-color: var(--brand); font-size: 15px; }
.ctl--play:hover { background: var(--brand-dark); }
.ctl--text { width: auto; padding: 0 14px; font-size: 13.5px; font-weight: 600; }
.ctl--text.is-active { background: var(--surface-2); color: var(--brand); border-color: rgba(23, 74, 188, .3); }

.track { flex: 1 1 120px; height: 6px; background: var(--surface-2); border-radius: 99px; cursor: pointer; position: relative; }
.track__fill { height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .2s linear; }
.time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 88px; text-align: right; }

.subs {
  margin-top: 12px;
  background: var(--surface-2);
  border-radius: 11px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* ── Источник слайда ──────────────────────────────────────────────── */
.source { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.source__head {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted);
}
.source__body { padding: 16px; font-size: 14.5px; color: var(--muted); }
.quote {
  border-left: 2px solid var(--accent);
  padding: 3px 0 3px 13px;
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.55;
}
.quote__ref { display: block; margin-top: 7px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quote__derived { color: var(--brand); }

.lesson__foot { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Вопросы ──────────────────────────────────────────────────────── */
.q {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 14px;
}
.q__stem { font-size: 16px; font-weight: 600; line-height: 1.45; }
.q__num { font-size: 12.5px; color: var(--muted); font-weight: 650; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 8px; }
.q__opts { margin-top: 13px; display: grid; gap: 8px; }
.opt {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.45;
  min-height: 48px;
  transition: border-color .16s, background .16s;
}
.opt:hover { background: var(--surface-2); }
.opt input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.opt.is-right { border-color: rgba(15, 122, 74, .5); background: #F2FAF6; }
.opt.is-wrong { border-color: rgba(200, 80, 10, .5); background: #FFF6F1; }

.explain {
  margin-top: 12px;
  border-left: 2px solid var(--brand);
  padding: 4px 0 4px 13px;
  font-size: 14.5px;
  color: var(--muted);
}
.explain b { color: var(--ink); }

.quiz__foot { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.verdict {
  margin-top: 22px;
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.verdict.is-pass { border-color: rgba(15, 122, 74, .4); background: #F2FAF6; }
.verdict h3 { font-size: 20px; }
.verdict p { margin-top: 7px; font-size: 15px; color: var(--muted); }

/* ── Модальное окно ───────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(11, 27, 58, .5); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__box {
  background: #fff; border-radius: 18px; padding: clamp(20px, 4vw, 30px);
  max-width: 780px; width: 100%; max-height: 88vh; overflow-y: auto;
  position: relative; box-shadow: 0 24px 70px rgba(11, 27, 58, .3);
}
.modal__x { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); width: 40px; height: 40px; }
.modal__lead { margin-top: 9px; color: var(--muted); font-size: 14.5px; }
.cols { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 20px; }
.cols h4 { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 10px; }
.cols h4.ok { color: var(--ok); }
.cols h4.off { color: var(--warn); }
.cols ul { display: grid; gap: 8px; }
.cols li { font-size: 14.5px; line-height: 1.45; padding-left: 16px; position: relative; color: var(--muted); }
.cols li::before { content: ''; position: absolute; left: 0; top: 9px; width: 8px; height: 1.5px; background: currentColor; opacity: .5; }
.modal__foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── Подвал ───────────────────────────────────────────────────────── */
.foot {
  border-top: 1px solid var(--line);
  padding: 20px clamp(14px, 4vw, 28px) calc(20px + env(safe-area-inset-bottom));
  display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
  max-width: var(--wrap); margin: 0 auto;
}

/* ── Телефон ──────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* Пальцем, а не мышью: любой интерактивный элемент — не меньше 44 px. */
  .head__nav button { min-height: 44px; padding: 10px 14px; }
  .ribbon { padding-bottom: 4px; }
  .ribbon__link { min-height: 44px; margin-left: 0; display: inline-flex; align-items: center; }
  .modal__x { width: 44px; height: 44px; }
  .head__nav { width: 100%; margin-left: 0; overflow-x: auto; }
  .player { padding: 10px; border-radius: 14px; }
  .time { min-width: 0; }
  .track { order: 5; flex-basis: 100%; }
  .ready { grid-template-columns: 1fr; }
  .or::before, .or::after { width: 26%; }
}

/* ── Карта документа во время разбора ─────────────────────────────── */
.outline {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.outline__head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 13.5px;
  font-weight: 600;
}
.outline__list { max-height: 330px; overflow-y: auto; padding: 6px 0; }
.outline__list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 6px 16px 6px calc(16px + var(--lvl, 0) * 16px);
  font-size: 14px;
  line-height: 1.4;
}
.outline__num {
  flex: none;
  color: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 68px;
}
.outline__size { margin-left: auto; flex: none; font-size: 12.5px; color: var(--muted); }

/* ── «Проверьте сами»: открытая проверка формулировок ─────────────── */

.probe {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow);
}
.probe__head { font-weight: 700; font-size: 17px; }
.probe__lead { margin-top: 6px; font-size: 14.5px; color: var(--muted); max-width: 64ch; }
.probe__row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.probe__row input {
  flex: 1 1 320px; min-width: 0; min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface-2);
  font: inherit; font-size: 15px; color: var(--ink);
}
.probe__row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: #fff; }
.probe__hints { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.probe__hint {
  border: 1px dashed var(--line); background: none; cursor: pointer;
  border-radius: 8px; padding: 7px 12px; margin: 4px 0 0 6px; min-height: 44px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--brand);
}
.probe__hint:hover { background: var(--surface-2); }
.probe__wait, .probe__none { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

.probe__verdict {
  margin-top: 16px; padding: 12px 14px; border-radius: 11px;
  font-size: 14.5px; font-weight: 600;
  background: rgba(15, 122, 74, .08); color: var(--ok);
}
.probe__verdict.is-bad { background: rgba(200, 80, 10, .09); color: var(--warn); }

.probe__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.probe__list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 11px 13px; border-radius: 11px; background: var(--surface-2);
  font-size: 14px;
}
.probe__list li.is-bad { background: rgba(200, 80, 10, .07); }
.probe__val {
  flex: none; min-width: 62px; text-align: center;
  padding: 3px 9px; border-radius: 7px; background: #fff;
  border: 1px solid var(--line);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.probe__list li.is-ok .probe__val { color: var(--ok); }
.probe__list li.is-bad .probe__val { color: var(--warn); }
.probe__quote { margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.probe__note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* ── Себестоимость ────────────────────────────────────────────────── */

.cost__total {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px; margin-bottom: 18px;
}
.cost__total > div {
  background: var(--surface-2); border-radius: 12px; padding: 14px;
}
.cost__total span { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.cost__total small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

.cost__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cost__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cost__table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost__mut { color: var(--muted); font-size: 13px; }
.cost__num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost__note { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ── Протокол освоения ────────────────────────────────────────────── */

.protocol {
  margin-top: 22px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.protocol__head { font-weight: 700; font-size: 17px; }
.protocol__lead { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.protocol__lead b { color: var(--ink); font-variant-numeric: tabular-nums; }
.protocol__row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.protocol__row input {
  flex: 1 1 200px; min-width: 0; min-height: 46px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface-2); font: inherit; font-size: 15px; color: var(--ink);
}
.protocol__row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; background: #fff; }
.protocol__err { margin-top: 10px; font-size: 14px; color: var(--warn); font-weight: 600; }

@media (max-width: 560px) {
  .lang { margin-left: 0; width: 100%; justify-content: center; }
  .probe__row input, .protocol__row input { flex-basis: 100%; }
  .probe__row .btn, .protocol__row .btn { width: 100%; }
}

/* Осознанный отказ читается спокойно: документ разобран, просто учить по нему
   нечему. Красная ошибка здесь врала бы — стенд сработал правильно. */
.fail--soft {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}
.fail--soft b { color: var(--brand); }
.fail__hint { color: var(--muted); font-size: 13.5px; }

.note--warn { border-left-color: var(--warn); color: var(--warn); }

.approve.is-blocked { border-color: rgba(200, 80, 10, .38); background: #FFF7F1; }
.approve.is-blocked .approve__text { color: var(--warn); }
.approve.is-blocked .approve__text b { color: var(--warn); }

.source__hint {
  padding: 9px 16px 0;
  font-size: 12.5px;
  color: var(--muted);
}

.uznote {
  margin-top: 12px; padding: 11px 14px; border-radius: 11px;
  background: var(--surface-2); font-size: 14px; color: var(--muted);
}
.uznote.is-bad { background: rgba(200, 80, 10, .08); color: var(--warn); }

/* ── Ревизия регламента ───────────────────────────────────────────── */

.drop--slim { padding: 26px 22px; }
.drop__row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.rev__wait { margin-top: 22px; color: var(--muted); font-size: 15px; }

.rev__head {
  margin-top: 22px; padding: 14px 16px;
  background: var(--surface-2); border-radius: var(--radius);
  font-size: 14.5px; color: var(--muted); line-height: 1.5;
}
.rev__head b { color: var(--ink); }

.rev__tiles {
  display: grid; gap: 12px; margin-top: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.rev__tiles > div {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.rev__tiles .is-hot { border-color: rgba(200, 80, 10, .4); background: #FFF9F5; }
.rev__tiles span { display: block; font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
.rev__tiles .is-hot span { color: var(--warn); }
.rev__tiles small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }

.rev__h { margin: 30px 0 6px; font-size: 19px; }
.rev__lead { font-size: 14px; color: var(--muted); margin-bottom: 12px; }

.rev__changes { display: grid; gap: 10px; margin-top: 12px; }
.rev__changes li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 13px 15px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
}
.rev__changes li.is-hot { border-color: rgba(200, 80, 10, .38); background: #FFF9F5; }
.rev__clause {
  flex: none; min-width: 86px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--brand);
}
.rev__kind { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.swap {
  display: inline-flex; align-items: baseline; gap: 7px;
  margin: 0 12px 4px 0; font-size: 15px;
}
.swap__old { color: var(--warn); text-decoration: line-through; }
.swap__new { color: var(--ok); }
.swap__arrow { color: var(--muted); }
.swap i { color: var(--muted); font-style: normal; }

.rev__diff { margin-top: 4px; font-size: 13.5px; line-height: 1.5; }
.rev__diff del { color: var(--warn); background: rgba(200, 80, 10, .08); text-decoration: line-through; padding: 1px 4px; border-radius: 4px; }
.rev__diff ins { color: var(--ok); background: rgba(15, 122, 74, .08); text-decoration: none; padding: 1px 4px; border-radius: 4px; }

.rev__lesson {
  margin-top: 12px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.rev__lesson.is-hot { border-color: rgba(200, 80, 10, .38); }
.rev__lesson-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.rev__lesson-top span { font-size: 13.5px; color: var(--muted); }
.rev__lesson.is-hot .rev__lesson-top span { color: var(--warn); font-weight: 600; }

.rev__slides { display: grid; gap: 5px; margin-bottom: 12px; }
.rev__slides li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 46%);
  gap: 10px; align-items: baseline;
  padding: 7px 10px; border-radius: 9px; font-size: 14px;
}
.rev__slides li.is-stale { background: rgba(200, 80, 10, .07); }
.rev__slides li.is-review { background: var(--surface-2); color: var(--muted); }
.rev__n {
  text-align: center; font-weight: 700; font-size: 12.5px;
  font-variant-numeric: tabular-nums; color: var(--muted);
}
.rev__slides li.is-stale .rev__n { color: var(--warn); }
.rev__why { font-size: 12.5px; color: var(--muted); text-align: right; }
.rev__slides li.is-stale .rev__why { color: var(--warn); }

.rev__people { display: grid; gap: 8px; }
.rev__people li {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px; background: var(--surface-2); border-radius: 11px; font-size: 14.5px;
}
.rev__people span { color: var(--muted); font-size: 13.5px; }
.rev__more { margin-top: 10px; font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .rev__slides li { grid-template-columns: 26px 1fr; }
  .rev__why { grid-column: 2; text-align: left; }
  .rev__changes li { flex-direction: column; gap: 6px; }
}

.teaser {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 0 18px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--surface-2));
}
.teaser b { display: block; font-size: 15.5px; }
.teaser span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); max-width: 62ch; }

.rev__gaps {
  margin: 4px 0 12px; padding: 12px 14px;
  background: rgba(23, 74, 188, .05); border-radius: 11px;
  font-size: 13.5px; line-height: 1.5;
}
.rev__gaps b { display: block; margin-bottom: 6px; font-size: 13.5px; }
.rev__gap { margin-top: 4px; color: var(--muted); }
.rev__gap span { color: var(--brand); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Текст слайда для телефона ────────────────────────────────────── */
.slidetext { display: none; }
@media (max-width: 760px) {
  .slidetext {
    display: block;
    margin-top: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
  }
  .slidetext h4 { font-size: 17px; font-weight: 650; margin-bottom: 8px; }
  .slidetext ul { display: grid; gap: 8px; }
  .slidetext li { font-size: 15px; line-height: 1.45; padding-left: 14px; position: relative; }
  .slidetext li::before {
    content: ''; position: absolute; left: 0; top: 9px;
    width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
  }
  .slidetext b { color: var(--accent); font-weight: 650; }
  .slidetext__num {
    display: block; margin-top: 10px; font-size: 13px; color: var(--muted);
  }
}
