/* styles.css — интерактивный конструктор строительных разрушений.
   Тёмная тема в стиле остальных программ платформы expert-val.ru. */

:root {
  --bg: #0e1626;
  --panel: #16213a;
  --panel-2: #1c2b48;
  --ink: #e8eefb;
  --muted: #9db0d0;
  --line: #2b3d63;
  --accent: #f59e0b;
  --accent-2: #7c3aed;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --chrome: #1b2b4a;
  --blue: #60a5fa;
  --green: #34d399;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #1b2b4a 0%, var(--chrome) 100%);
  color: #e6edf7;
  border-bottom: 1px solid #2c3e63;
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.back {
  color: #cfe0ff; text-decoration: none; border: 1px solid #3b5180; border-radius: 8px;
  padding: 6px 12px; font-size: 13px; white-space: nowrap;
}
.back:hover { background: #24365c; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; }
.brand-ico { font-size: 19px; }
.zone-chip {
  font-size: 11.5px; color: #a9c2ea; border: 1px solid #33487a;
  border-radius: 999px; padding: 4px 12px;
}
.core-badge {
  font-size: 11.5px; color: #cfe0ff; border: 1px solid #3b5180;
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
.core-badge.is-ok { color: #86efac; border-color: #2f6f4b; background: rgba(22,163,74,.14); }
.core-badge.is-bad { color: #fca5a5; border-color: #7f2d2d; background: rgba(220,38,38,.16); }
.auth-box { font-size: 13px; color: #c9d8f0; }
.auth-box a { color: #9dc0ff; }

.banner {
  margin: 0; padding: 9px 18px; font-size: 13.5px;
  background: rgba(245,158,11,.14); color: #fcd9a0; border-bottom: 1px solid #6b4d18;
}

/* ---------- переходы между разделами ---------- */
.secnav {
  position: sticky; top: 49px; z-index: 30;
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 8px 18px; background: #16233c; border-bottom: 1px solid #2c3e63;
}
.secnav button {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  padding: 7px 14px; border-radius: 9px; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.secnav button:hover { color: var(--ink); background: #1e2f4f; }
.secnav button.on {
  color: #0e1626; background: var(--accent); border-color: var(--accent); font-weight: 600;
}

.work { padding: 14px 16px 40px; max-width: 1900px; margin: 0 auto; }

/* ---------- карточки ---------- */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px;
}
.card-title {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: #a9c2ea; font-weight: 700; margin-bottom: 10px;
}
.card-title.sep { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 8px;
}
.card-head .card-title { margin-bottom: 0; }
.card-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lead { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; max-width: 1100px; }

/* ---------- сетка конструктора ---------- */
.view[hidden] { display: none !important; }

.view#view-lab {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 400px;
  gap: 12px; align-items: start;
}
@media (max-width: 1500px) { .view[hidden] { display: none !important; }

.view#view-lab { grid-template-columns: 230px minmax(0,1fr) 360px; } }
@media (max-width: 1240px) { .view[hidden] { display: none !important; }

.view#view-lab { grid-template-columns: minmax(0, 1fr); } }
.col-lib, .col-side { position: sticky; top: 104px; }
@media (max-width: 1240px) { .col-lib, .col-side { position: static; } }

/* ---------- библиотека ---------- */
.lib-group { margin-bottom: 14px; }
.lib-group-title {
  font-size: 11.5px; color: #8fa6cc; text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 6px;
}
.lib-item {
  display: block; width: 100%; text-align: left; cursor: pointer; font-family: inherit;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 9px; padding: 8px 10px; margin-bottom: 6px;
}
.lib-item b { display: block; font-size: 13.5px; }
.lib-item i { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.lib-item:hover { border-color: #3f6bb5; }
.lib-item.is-on { border-color: var(--accent); background: rgba(245,158,11,.12); }
.lib-item.is-on b { color: #fcd9a0; }
.lib-soon {
  font-size: 12px; color: var(--muted); background: rgba(157,176,208,.08);
  border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px;
}
.lib-list { margin: 0; padding-left: 18px; font-size: 12px; color: var(--muted); }
.lib-list li { margin-bottom: 3px; }

/* ---------- параметры ---------- */
.fld { display: block; margin-bottom: 9px; }
.fld > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.fld input, .fld select, .fld textarea {
  width: 100%; background: #101b30; color: var(--ink);
  border: 1px solid var(--line); border-radius: 7px; padding: 7px 9px;
  font-size: 14px; font-family: inherit;
}
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--accent); }
.fld input.is-bad, .fld select.is-bad { border-color: var(--bad); }
.fld .unit { color: var(--muted); font-size: 12px; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fld-check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 8px; }
.fld-check input { width: auto; }
.err-list { color: #fca5a5; font-size: 12.5px; }
.err-list:empty { display: none; }
.err-list div { margin-bottom: 3px; }

.mini-fld { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.mini-fld input[type=range] { width: 130px; accent-color: var(--accent); }
.mini-fld b { color: var(--ink); min-width: 46px; }
.scale-note { font-size: 12px; color: #fcd9a0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); color: var(--ink); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 13px; font-size: 13.5px; cursor: pointer; font-family: inherit;
}
.btn:hover { border-color: #4b74bd; background: #22355a; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #241a05; font-weight: 600; }
.btn-primary:hover { background: #fbbf24; border-color: #fbbf24; }
.btn-ghost { background: transparent; }
.btn-small { padding: 5px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.row-btns.center { justify-content: center; }

/* ---------- схема и графики ---------- */
.scheme-wrap { background: #0b1424; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
#svgScheme, #svgCompare { width: 100%; height: auto; display: block; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 820px) { .charts-grid { grid-template-columns: 1fr; } }
.chart { margin: 0; background: #0b1424; border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 2px; }
.chart figcaption { font-size: 12px; color: #a9c2ea; padding: 2px 4px 4px; }
.chart svg { width: 100%; height: auto; display: block; }
.readout {
  margin-top: 8px; font-size: 13px; color: var(--ink);
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  background: #101b30; border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px;
}
.readout .ro-hint { color: var(--muted); }
.readout b { color: #fcd9a0; font-weight: 600; }

/* ---------- результаты ---------- */
.result-box { font-size: 13.5px; }
.res-table { width: 100%; border-collapse: collapse; }
.res-table td { padding: 4px 0; border-bottom: 1px solid rgba(43,61,99,.55); vertical-align: top; }
.res-table td:last-child { text-align: right; white-space: nowrap; }
.res-table .k { color: var(--muted); }
.res-table .v { font-weight: 600; }
.res-table .sub { color: var(--muted); font-size: 12px; }
.state-badge {
  display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); margin: 2px 6px 2px 0;
}
.state-ok { color: #86efac; border-color: #2f6f4b; background: rgba(22,163,74,.14); }
.state-warn { color: #fcd34d; border-color: #7a5a17; background: rgba(217,119,6,.16); }
.state-bad { color: #fca5a5; border-color: #7f2d2d; background: rgba(220,38,38,.16); }

/* ---------- экспертный анализ ---------- */
.analysis-box { font-size: 13px; }
.formula {
  font-family: "Cambria Math", Cambria, Georgia, serif;
  background: #101b30; border-left: 3px solid var(--accent);
  padding: 6px 10px; border-radius: 0 7px 7px 0; margin-bottom: 7px;
  overflow-x: auto; white-space: pre-wrap; font-size: 13px;
}
.formula .num { color: #fcd9a0; }
.formula .cmt { color: var(--muted); font-size: 12px; font-family: inherit; }
.analysis-box ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.analysis-box ol li { margin-bottom: 3px; }
.note {
  border-radius: 9px; padding: 9px 12px; font-size: 12.5px; margin-bottom: 12px;
  border: 1px solid var(--line); background: rgba(157,176,208,.07); color: var(--muted);
}
.note-warn { border-color: #7a5a17; background: rgba(217,119,6,.13); color: #fcd9a0; }
.note-info { border-color: #2b4b86; background: rgba(59,111,224,.13); color: #bcd3f7; }
.note-ok { border-color: #2f6f4b; background: rgba(22,163,74,.13); color: #a7f3d0; }
.note-bad { border-color: #7f2d2d; background: rgba(220,38,38,.13); color: #fca5a5; }
.note .note-title { font-weight: 700; display: block; margin-bottom: 3px; }

/* ---------- задания ---------- */
.tasks { display: grid; gap: 12px; }
.task { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.task h3 { margin: 0 0 6px; font-size: 15px; }
.task .task-data {
  font-size: 13px; color: var(--muted); background: #101b30; border-radius: 8px;
  padding: 8px 11px; margin-bottom: 10px;
}
.task .task-data b { color: var(--ink); }
.task .task-q { font-size: 13.5px; margin-bottom: 8px; }
.task .task-q b { color: #fcd9a0; }
.task-answer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.task-answer input {
  width: 150px; background: #101b30; color: var(--ink); border: 1px solid var(--line);
  border-radius: 7px; padding: 7px 9px; font-size: 14px; font-family: inherit;
}
.task-answer input:focus { outline: none; border-color: var(--accent); }
.task-sol { display: none; font-size: 13px; color: var(--muted); }
.task-sol.show { display: block; }
.task-verdict { font-size: 13px; margin-bottom: 8px; }
.task-verdict.ok { color: #86efac; }
.task-verdict.bad { color: #fca5a5; }

/* ---------- сравнение ---------- */
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 900px) { .cmp-grid { grid-template-columns: 1fr; } }
.cmp-col {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px;
  font-size: 13px;
}
.cmp-col h4 { margin: 0 0 8px; font-size: 14px; color: #fcd9a0; }
.cmp-col .cmp-empty { color: var(--muted); font-size: 12.5px; }
.cmp-table-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 12px; }
.cmp-table th, .cmp-table td { padding: 6px 9px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp-table th { color: #a9c2ea; font-weight: 600; font-size: 12px; }
.cmp-table td.num { text-align: right; white-space: nowrap; }
.cmp-table tr.diff td { background: rgba(245,158,11,.09); }

/* ---------- отчёт ---------- */
.report-box { font-size: 13.5px; }
.report-box h3 {
  font-size: 14px; margin: 16px 0 6px; color: #fcd9a0;
  border-bottom: 1px solid var(--line); padding-bottom: 4px;
}
.report-box h3:first-child { margin-top: 0; }
.report-box p { margin: 0 0 8px; color: var(--muted); }
.report-box table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.report-box td, .report-box th { padding: 5px 8px; border: 1px solid var(--line); text-align: left; }
.report-box th { color: #a9c2ea; font-size: 12px; background: #101b30; }
.report-box td.num { text-align: right; white-space: nowrap; }
.report-stamp {
  border: 1px dashed #7a5a17; color: #fcd9a0; background: rgba(217,119,6,.1);
  border-radius: 9px; padding: 10px 13px; margin-bottom: 14px; font-size: 13px;
}

@media print {
  body { background: #fff; color: #111; }
  .topbar, .secnav, .card-tools, .col-lib, .col-side, .note-warn, .banner { display: none !important; }
  .card { border: 1px solid #999; background: #fff; break-inside: avoid; }
  .report-box p, .report-box td, .report-box th { color: #111; }
  .report-box h3 { color: #111; border-color: #999; }
  .report-stamp { color: #111; border-color: #666; background: none; }
}

/* ---------- аудиопрезентация, демо-пример, кабинет ---------- */


/* ---------- модалка входа ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 10, 22, .72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; max-width: 520px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.modal-ico { font-size: 40px; margin-bottom: 8px; }
.modal-card h3 { margin: 0 0 10px; }
.modal-card p { color: var(--muted); font-size: 13.5px; }
.modal-card .fld { text-align: left; }
.lic-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-ico { font-size: 46px; margin-bottom: 10px; }
.empty h3 { margin: 0 0 8px; color: var(--ink); }
.empty p { max-width: 620px; margin: 0 auto; font-size: 13.5px; }

/* ---------- кнопки демо и презентации ---------- */
.btn-demo-labs {
  background: linear-gradient(180deg, #0f8b83, #0b6d66);
  border-color: #17a39a; color: #fff; padding: 7px 13px; font-size: 13px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.btn-demo-labs:hover { background: linear-gradient(180deg, #14a49a, #0d7d75); }
.btn-pres-labs {
  background: linear-gradient(180deg, #3b6fe0, #2c56b5);
  border-color: #4b7df0; color: #fff; padding: 7px 13px; font-size: 13px;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.btn-pres-labs:hover { background: linear-gradient(180deg, #4b7df0, #3363c6); }

/* ---------- кабинет ---------- */
.cab-empty { padding: 24px 10px; }
.cmp-col .cmp-empty { font-size: 12.5px; color: var(--muted); }

@media print {
  .pres-overlay, .demo-panel, .modal { display: none !important; }
}

/* ---------- аудиопрезентация и демо-пример ---------- */
.pres-overlay {
position: fixed; inset: 0; z-index: 90;
background: rgba(6, 12, 24, .93);
display: flex; align-items: center; justify-content: center; padding: 18px;
}
.pres-overlay[hidden] { display: none; }
.pres-inner {
width: 100%; max-width: 1180px; max-height: 100%;
background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
display: flex; flex-direction: column; overflow: hidden;
box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.pres-head {
display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.pres-title { font-size: 17px; font-weight: 700; }
.pres-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pres-body {
display: grid; grid-template-columns: 1fr 268px; gap: 16px;
padding: 18px; overflow: auto; min-height: 0; flex: 1;
}
.pres-slide {
background: #142038; border: 1px solid var(--line); border-radius: 12px;
padding: 18px 20px; min-width: 0;
}
.pres-slide-no { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.pres-h { margin: 0 0 12px; font-size: 20px; }
.pres-bul { margin: 0; padding-left: 20px; }
.pres-bul li { margin-bottom: 7px; font-size: 14.5px; }
.pres-text {
margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
font-size: 13.5px; color: #c6d6f2; line-height: 1.6; white-space: pre-wrap;
}
.pres-fig { margin-top: 16px; }
.pres-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pres-step {
border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #17253f;
}
.pres-step b { display: block; font-size: 13px; margin-bottom: 4px; color: #9dc0ff; }
.pres-step span { font-size: 12.5px; color: var(--muted); }
.pres-studies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pres-study {
display: flex; align-items: center; gap: 8px;
border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #17253f;
font-size: 12.5px;
}
.pres-study i { font-style: normal; font-size: 15px; }
.pres-study em { font-style: normal; color: var(--muted); font-size: 11.5px; }
.pres-side { min-width: 0; }
.pres-side-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.pres-list { list-style: none; margin: 0; padding: 0; }
.pres-list li {
display: flex; gap: 8px; align-items: flex-start; cursor: pointer;
padding: 7px 9px; border-radius: 8px; font-size: 12.5px; color: #c6d6f2;
border: 1px solid transparent;
}
.pres-list li:hover { background: #1d2d4c; }
.pres-list li.on { background: #27406c; border-color: #3b6fe0; color: #fff; }
.pres-n {
flex: 0 0 22px; text-align: center; border-radius: 6px; background: #22334f;
font-size: 11.5px; color: #9dc0ff; padding: 1px 0;
}
.pres-list li.on .pres-n { background: var(--accent); color: #fff; }
.pres-player {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-2);
}
.pres-btn {
display: inline-flex; align-items: center; justify-content: center;
width: 38px; height: 38px; padding: 0; border-radius: 10px;
}
.pres-btn-main { width: 44px; height: 44px; background: var(--accent); border-color: var(--accent); color: #fff; }
.pres-track {
flex: 1 1 220px; min-width: 140px; height: 8px; border-radius: 999px;
background: #22334f; overflow: hidden; cursor: pointer;
}
.pres-track i { display: block; height: 100%; width: 0; background: var(--accent); }
.pres-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.pres-toggle { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.pres-toggle input { accent-color: var(--accent); }
body.demo-open { padding-right: 430px; }
.demo-panel[hidden] { display: none; }
.demo-panel {
position: fixed; top: 0; right: 0; bottom: 0; width: 430px; z-index: 60;
background: var(--panel); border-left: 1px solid var(--line);
box-shadow: -12px 0 34px rgba(0, 0, 0, .45);
display: flex; flex-direction: column; color: var(--ink);
}
.demo-head {
display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
padding: 16px 18px 12px; border-bottom: 1px solid var(--line); background: var(--panel-2);
}
.demo-title { font-size: 15px; font-weight: 700; color: #fff; }
.demo-sub { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.demo-x {
border: 1px solid #3b5180; background: transparent; border-radius: 8px;
width: 28px; height: 28px; cursor: pointer; color: var(--muted); font-size: 13px;
}
.demo-x:hover { background: #24365c; color: #fff; }
.demo-progress {
display: flex; align-items: center; gap: 10px; padding: 10px 18px;
font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line);
}
.demo-progress i { flex: 1; height: 6px; border-radius: 999px; background: #22345a; overflow: hidden; }
.demo-progress i b { display: block; height: 100%; width: 0; background: #14b8a6; transition: width .25s ease; }
.demo-steps { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.demo-step {
width: 22px; height: 22px; border-radius: 6px; font-size: 11px; font-weight: 700;
display: inline-flex; align-items: center; justify-content: center;
background: #22345a; color: #9db0d0;
}
.demo-step.done { background: #0f766e; color: #d7f5f1; }
.demo-step.on { background: #14b8a6; color: #06231f; }
.demo-body { flex: 1; overflow: auto; padding: 14px 18px 18px; }
.demo-h { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.demo-block { margin-bottom: 14px; }
.demo-block h4 {
font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
color: #8ea6cc; margin-bottom: 5px;
}
.demo-block p { font-size: 13.5px; line-height: 1.55; color: #dbe6fb; }
.demo-block.demo-err {
background: rgba(217, 119, 6, .14); border: 1px solid rgba(217, 119, 6, .5);
border-radius: 10px; padding: 10px 12px;
}
.demo-block.demo-err h4 { color: #fbbf24; }
.demo-block.demo-ok {
background: rgba(22, 163, 74, .14); border: 1px solid rgba(22, 163, 74, .45);
border-radius: 10px; padding: 10px 12px;
}
.demo-block.demo-ok h4 { color: #4ade80; }
.demo-events { margin: 0; padding-left: 18px; }
.demo-events li { font-size: 13px; line-height: 1.5; color: #dbe6fb; margin: 3px 0; }
.demo-events li.muted { color: var(--muted); }
.demo-foot {
display: flex; gap: 10px; justify-content: space-between;
padding: 12px 18px; border-top: 1px solid var(--line); background: var(--panel-2);
}

/* мобильная раскладка — только на узком экране */
@media (max-width: 900px) {
  .pres-body { grid-template-columns: 1fr; }
  .pres-steps, .pres-studies { grid-template-columns: 1fr; }
  body.demo-open { padding-right: 0; }
  .demo-panel { width: 100%; top: auto; height: 62vh; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- лицензия (PATCH-DESTRUCTION-FRONT-LICENSE-2026-11-23) ---------- */
.lic-prices { display: flex; gap: 10px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }
.lic-price { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--panel-2); }
.lic-price b { display: block; font-size: 19px; }
.lic-price span { font-size: 12px; color: var(--muted); }
.lic-price--best { border-color: var(--accent); background: #23304e; }
.lic-price--best em { display: block; font-size: 11px; font-style: normal; color: #fcd34d; margin: 3px 0 6px; }
.lic-buy { width: 100%; margin-top: 9px; padding: 7px 10px; font-size: 13px; }
.lic-need { display: block; margin-top: 9px; font-size: 11.5px; color: #fbbf24; }
.lic-free {
  text-align: left; margin: 14px auto 0; max-width: 430px;
  border: 1px solid rgba(22, 163, 74, .35); border-radius: 10px;
  background: rgba(22, 163, 74, .08); padding: 11px 14px;
}
.lic-free b { font-size: 12.5px; color: #86efac; }
.lic-free ul { margin: 6px 0 0; padding-left: 18px; }
.lic-free li { font-size: 12.5px; color: var(--muted); }
.lic-mail { margin: 14px 0 0; text-align: left; }
.lic-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.lic-note.err { color: #fca5a5; }
.btn-lic { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 13px; }
.btn-lic--need { border-color: rgba(217, 119, 6, .55); color: #fcd34d; }
.btn-lic--need:hover { background: rgba(217, 119, 6, .18); }
.btn-lic--ok { border-color: rgba(22, 163, 74, .5); color: #86efac; }
.btn-lic--ok:hover { background: rgba(22, 163, 74, .16); }

/* ---------- PATCH-HIDDEN-FIX-2026-11-23: [hidden] сильнее авторских display ---------- */
[hidden] { display: none !important; }
