/* ДелоИИ.su — стиль "Accessible & Ethical": крупный текст, высокий контраст,
   большие цели нажатия, видимый фокус. Системные шрифты: без внешних запросов. */

:root {
  --fs-base: 20px;

  --ink: #11181f;
  --ink-soft: #3c4a58;
  --bg: #ffffff;
  --surface: #f1f6fb;
  --surface-2: #e5eef7;
  --border: #9fb2c4;
  --border-soft: #cfdbe6;

  --brand: #0b4f9e;
  --brand-dark: #073a78;
  --on-brand: #ffffff;

  --action: #0a6b3b;
  --action-dark: #07512d;

  --warn-bg: #fff8ec;
  --warn-border: #d9a53c;
  --no: #a3160f;
  --yes: #0a6b3b;

  --focus: #b3400a;
  --radius: 14px;
  --radius-lg: 20px;
  --tap: 3rem;
  --maxw: 72rem;
}

html[data-fs="2"] { --fs-base: 24px; }
html[data-fs="3"] { --fs-base: 28px; }

html[data-contrast="on"] {
  --ink: #000000;
  --ink-soft: #000000;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --border: #000000;
  --border-soft: #000000;
  --brand: #00307a;
  --brand-dark: #001f52;
  --action: #00502b;
  --action-dark: #003a1f;
  --warn-bg: #ffffff;
  --warn-border: #000000;
  --no: #8c0000;
  --yes: #00502b;
  --focus: #8c2b00;
}

* { box-sizing: border-box; }

/* атрибут hidden должен скрывать что угодно, даже элементы с display из классов */
[hidden] { display: none !important; }

html {
  font-size: var(--fs-base);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PT Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  padding-bottom: 5.5rem; /* место под кнопку "Позвонить" */
}

h1, h2, h3 { line-height: 1.22; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

img, svg { max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand); color: var(--on-brand);
  padding: .8rem 1.2rem; z-index: 100; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- Шапка ---------- */
.top { border-bottom: 2px solid var(--border); background: var(--bg); }
.top__in {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding-top: .9rem; padding-bottom: .9rem;
}
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.logo__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.4rem; height: 2.4rem; border-radius: 10px;
  background: var(--brand); color: var(--on-brand);
}
.logo__text { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.logo__ii { color: var(--brand); }
html[data-contrast="on"] .logo__ii { color: var(--brand-dark); }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.tools__label { font-size: .8rem; color: var(--ink-soft); }
.tbtn {
  min-height: var(--tap); min-width: var(--tap);
  padding: .45rem .8rem;
  font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--ink); background: var(--surface);
  border: 2px solid var(--border); border-radius: 10px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.tbtn--wide { min-width: auto; }
.tbtn:hover { background: var(--surface-2); }
.tbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.callbar { background: var(--surface); border-bottom: 2px solid var(--border-soft); }
.callbar__in {
  display: flex; flex-wrap: wrap; gap: .4rem 1rem;
  align-items: center; justify-content: center;
  padding: .7rem 1.25rem; text-align: center;
}
.callbar__text { font-size: 1rem; color: var(--ink-soft); }
.callbar__phone { font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.callbar__link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .5rem 1.2rem;
  background: var(--brand); color: var(--on-brand);
  border: 2px solid var(--brand); border-radius: 10px;
  font-size: 1.05rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.callbar__link:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.5rem; padding: .85rem 1.5rem;
  font: inherit; font-weight: 800; font-size: 1.05rem; line-height: 1.25;
  text-align: center; text-decoration: none;
  border-radius: var(--radius); border: 3px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.btn--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); }
.btn--call { background: var(--action); color: #fff; border-color: var(--action); }
.btn--call:hover { background: var(--action-dark); border-color: var(--action-dark); color: #fff; }
.btn--ghost { background: var(--bg); color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--surface); color: var(--brand-dark); }
.btn--block { width: 100%; }
.btn[disabled] {
  background: var(--surface-2); color: var(--ink);
  border-color: var(--border); cursor: default;
}

/* пошаговая подсказка под кнопкой установки */
.steps-inline {
  margin-top: 1rem; padding: 1.1rem 1.2rem;
  background: var(--bg); border: 3px solid var(--brand);
  border-radius: var(--radius);
}
.steps-inline:focus { outline: 4px solid var(--focus); outline-offset: 3px; }
.steps-inline__t { font-size: 1.05rem; margin-bottom: .6rem; }
.steps-inline .list { margin-bottom: .8rem; }

.ico { width: 1.4em; height: 1.4em; flex: none; fill: currentColor; }
.ico--big { width: 2.2rem; height: 2.2rem; color: var(--brand); }
html[data-contrast="on"] .ico--big { color: var(--brand-dark); }

.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.4rem 0 1rem; }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 2.75rem; }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.eyebrow {
  display: inline-block; margin: 0 0 .7rem;
  padding: .3rem .75rem; border-radius: 999px;
  background: var(--surface-2); border: 2px solid var(--border-soft);
  font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink);
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.lead--narrow { max-width: 50rem; }
.note { font-size: .95rem; color: var(--ink-soft); }
.note--center { max-width: 48rem; margin: 1.5rem auto 0; text-align: center; }

/* ---------- Карточки ---------- */
.card {
  background: var(--surface); border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.card--hero { border-color: var(--border); }
.card__title { font-size: 1.2rem; }
.card__hint { margin-top: .9rem; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Полосы ---------- */
.band { padding: 2.75rem 0; border-top: 2px solid var(--border-soft); }
.band--alt { background: var(--surface); }
.band--warn { background: var(--warn-bg); border-top: 3px solid var(--warn-border); border-bottom: 3px solid var(--warn-border); }

/* ---------- Факты ---------- */
.facts, .steps, .tags, .plans, .howto, .contacts, .rules, .faq {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.fact {
  background: var(--bg); border: 2px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 1.4rem;
}
.fact h3 { margin-top: .7rem; }
.fact p { color: var(--ink-soft); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: s; }
.step { background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; margin-bottom: .8rem;
  border-radius: 50%; background: var(--brand); color: var(--on-brand);
  font-size: 1.5rem; font-weight: 800;
}
.step p { color: var(--ink-soft); }

/* ---------- Теги ---------- */
.tags { display: flex; flex-wrap: wrap; gap: .75rem; }
.tags li {
  padding: .7rem 1.1rem; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--border-soft);
  font-size: 1rem; font-weight: 600;
}

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.plan {
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  display: flex; flex-direction: column; gap: .35rem; height: 100%;
}
.plan--main { border-width: 4px; border-color: var(--brand); }
.plan__badge {
  align-self: flex-start; margin: 0 0 .5rem; padding: .25rem .7rem;
  border-radius: 999px; background: var(--brand); color: var(--on-brand);
  font-size: .85rem; font-weight: 800;
}
.plan__name { margin: 0; font-size: 1.2rem; }
.plan__price { margin: 0; font-size: 2.1rem; font-weight: 800; line-height: 1.1; }
.plan__per { margin: 0 0 .5rem; font-size: .95rem; color: var(--ink-soft); }
.plan .btn { margin-top: auto; }

.list { margin: .5rem 0 1.1rem; padding: 0 0 0 1.6rem; }
.list li { margin-bottom: .45rem; }
.list--num { list-style: decimal; }
.list--no, .list--yes { list-style: none; padding-left: 0; }
.list--no li, .list--yes li { position: relative; padding-left: 2rem; }
.list--no li::before, .list--yes li::before {
  position: absolute; left: 0; top: -.05em;
  font-size: 1.3rem; font-weight: 800; line-height: 1.3;
}
.list--no li::before { content: "\00d7"; color: var(--no); }
.list--yes li::before { content: "\2713"; color: var(--yes); }

/* ---------- Правила безопасности ---------- */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.rule { background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.rule--no { border-left: 8px solid var(--no); }
.rule--yes { border-left: 8px solid var(--yes); }

/* ---------- Инструкция ---------- */
.howto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.howto .card { background: var(--bg); }

/* ---------- Вопросы ---------- */
.faq { display: grid; gap: .85rem; max-width: 56rem; }
details {
  background: var(--bg); border: 2px solid var(--border);
  border-radius: var(--radius); padding: .2rem 1.2rem;
}
summary {
  min-height: var(--tap);
  display: flex; align-items: center; gap: .6rem;
  padding: .85rem 0;
  font-size: 1.05rem; font-weight: 700;
  cursor: pointer;
}
summary::marker { color: var(--brand); }
details[open] summary { border-bottom: 2px solid var(--border-soft); margin-bottom: .8rem; }
details > p { padding-bottom: 1rem; color: var(--ink-soft); }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ccard {
  display: flex; flex-direction: column; gap: .3rem;
  padding: 1.5rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: background .2s ease, border-color .2s ease;
}
.ccard:hover { background: var(--surface-2); border-color: var(--brand); color: var(--ink); }
.ccard--main { border-width: 4px; border-color: var(--brand); background: var(--bg); }
.urgent {
  display: flex; align-items: flex-start; gap: .7rem;
  max-width: 48rem; margin: 1.5rem auto 0; padding: 1rem 1.25rem;
  background: var(--surface); border: 2px solid var(--border); border-left: 8px solid var(--brand);
  border-radius: var(--radius);
  font-size: 1rem; color: var(--ink);
}
.urgent .ico { color: var(--brand); margin-top: .15rem; }
.urgent a { font-weight: 800; white-space: nowrap; }
.ccard__t { font-size: 1.05rem; font-weight: 800; margin-top: .4rem; }
.ccard__v { font-size: 1.25rem; font-weight: 800; color: var(--brand); word-break: break-word; }
html[data-contrast="on"] .ccard__v { color: var(--brand-dark); }
.ccard__h { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Подвал ---------- */
.foot { border-top: 3px solid var(--border); background: var(--surface); padding: 2.25rem 0 1rem; }
.foot__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
.foot__brand { font-size: 1.35rem; font-weight: 800; margin-bottom: .4rem; }
.foot__h { font-size: 1.05rem; margin-bottom: .6rem; }
.foot__list { list-style: none; margin: 0; padding: 0; }
.foot__list li { margin-bottom: .35rem; }
.foot__list a, .foot__sites a { font-weight: 600; }
.foot__list a { display: inline-block; min-height: 2.6rem; padding: .55rem 0; line-height: 1.4; }
.foot__sites a, .foot__req a { display: inline-block; padding: .3rem 0; }
.foot__req { font-size: .95rem; color: var(--ink-soft); }
.foot__sites { font-size: .95rem; }
.foot__bottom { padding-top: 1.25rem; margin-top: 1.5rem; border-top: 2px solid var(--border-soft); }
.foot__bottom p { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Плашка про настройки ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--bg); border-top: 3px solid var(--border);
}
.cookie__in {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
}
.cookie__text { margin: 0; font-size: 1rem; max-width: 46rem; }

/* ---------- Кнопка «Задать вопрос» снизу ---------- */
.chatfab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3.5rem; padding: .8rem 1.3rem;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.05rem;
  border: 3px solid #fff; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.chatfab:hover { background: var(--brand-dark); color: #fff; }
html[data-contrast="on"] .chatfab { border-color: #000; box-shadow: none; }

/* ---------- Отдельные страницы ---------- */
.page { padding: 2.5rem 0 3rem; }
.page .prose { max-width: 50rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.6rem; }
.prose li { margin-bottom: .5rem; }
.back { display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap); font-weight: 700; }

/* ---------- Адаптив ---------- */
/* на большом экране телефон и так виден в шапке — плавающая кнопка не нужна */
@media (min-width: 1001px) {
  .callfab { display: none; }
  body { padding-bottom: 0; }
}

@media (max-width: 1000px) {
  .hero__in, .facts, .steps, .plans, .howto, .contacts, .rules, .foot__in {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 1.85rem; }
  .callfab span { display: none; }
  .callfab { padding: 1rem; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 1rem; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  .cta-row .btn { width: 100%; }
  .tools__label { display: none; }
  .callbar__in { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .top .tools, .callfab, .cookie, .skip { display: none !important; }
  body { padding-bottom: 0; font-size: 12pt; }
  a { color: #000; }
}

/* ======================================================================
   Кабинет, вход и разговор с наставником
   ====================================================================== */

.subnav { background: var(--surface); border-bottom: 2px solid var(--border-soft); }
.subnav__in { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; padding: .35rem 1.25rem; }
.subnav a {
  display: inline-flex; align-items: center; min-height: 2.9rem;
  font-weight: 700; text-decoration: none; color: var(--brand);
  border-bottom: 3px solid transparent;
}
.subnav a:hover { color: var(--brand-dark); border-bottom-color: var(--brand); }
.subnav__out { margin-left: auto; color: var(--ink-soft); }

/* ---------- формы ---------- */
.form { max-width: 32rem; margin: 1.5rem 0; }
.form--inline { margin-top: .75rem; }
.label { display: block; margin-bottom: .45rem; font-weight: 700; font-size: 1.05rem; }
.input {
  display: block; width: 100%; min-height: 3.5rem;
  padding: .8rem 1rem; margin-bottom: 1rem;
  font: inherit; font-size: 1.1rem; color: var(--ink);
  background: var(--bg); border: 3px solid var(--border); border-radius: var(--radius);
}
.input:focus { border-color: var(--brand); }
.input--code { font-size: 1.9rem; font-weight: 800; letter-spacing: .4em; text-align: center; }
.input--area { min-height: 7rem; resize: vertical; }

.alert {
  padding: 1rem 1.2rem; margin: 1.25rem 0; border-radius: var(--radius);
  border: 2px solid var(--border); border-left: 8px solid var(--brand);
  background: var(--surface); font-size: 1.05rem;
}
.alert--error { border-left-color: var(--no); background: var(--warn-bg); }
.alert--ok { border-left-color: var(--yes); }

/* ---------- прогресс ---------- */
.progress { margin: 1.75rem 0 1rem; }
.progress__bar {
  height: 1.4rem; background: var(--surface-2);
  border: 2px solid var(--border); border-radius: 999px; overflow: hidden;
}
.progress__bar span { display: block; height: 100%; background: var(--action); }
.progress__text { margin-top: .5rem; font-weight: 700; }

/* ---------- список модулей ---------- */
.modules { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1rem; }
.module {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem; background: var(--bg);
  border: 2px solid var(--border-soft); border-radius: var(--radius-lg);
}
.module--now { border-width: 4px; border-color: var(--brand); }
.module--done { background: var(--surface); }
.module__num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); font-size: 1.4rem; font-weight: 800;
}
.module--now .module__num { background: var(--brand); color: var(--on-brand); }
.module--done .module__num { background: var(--action); color: #fff; }
.module__title { font-size: 1.2rem; margin-bottom: .2rem; }
.module__short { color: var(--ink-soft); margin-bottom: .6rem; }
.module__summary { background: var(--bg); border: 2px solid var(--border-soft); border-radius: var(--radius); padding: .8rem 1rem; }
.module__state { font-weight: 700; color: var(--brand); }
.module__state--wait { color: var(--ink-soft); font-weight: 600; }
.module__link { display: inline-block; margin-top: .5rem; min-height: 2.6rem; padding: .5rem 0; font-weight: 700; }

/* ---------- разговор ---------- */
.chat { max-width: 52rem; }
.chat__head { margin-bottom: 1.25rem; }
.chat__step { font-weight: 800; color: var(--brand); margin-bottom: .2rem; }
.chat__title { font-size: 1.7rem; margin-bottom: .2rem; }
.chat__short { color: var(--ink-soft); }

.chat__log { display: grid; gap: 1rem; margin-bottom: 1.5rem; }
.msg { padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); border: 2px solid var(--border-soft); }
.msg--ai { background: var(--surface); border-left: 8px solid var(--brand); }
.msg--me { background: var(--bg); border-left: 8px solid var(--action); }
.msg--wait { color: var(--ink-soft); font-style: normal; }
.msg__who { font-size: .9rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: .35rem; }
.msg__text p { margin-bottom: .7rem; }
.msg__text p:last-child { margin-bottom: 0; }
.msg__list { margin: .3rem 0 .7rem; padding-left: 1.6rem; }
.msg__list li { margin-bottom: .4rem; }

.chat__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.chat__done {
  padding: 1.4rem; margin-top: 1rem;
  background: var(--surface); border: 4px solid var(--action); border-radius: var(--radius-lg);
}
.chat__done h2 { font-size: 1.3rem; }

/* ---------- план ---------- */
.plan__meta { color: var(--ink-soft); font-size: .95rem; }
.plan__block { margin: 1.75rem 0; padding-bottom: 1.25rem; border-bottom: 2px solid var(--border-soft); }
.plan__label { font-weight: 700; color: var(--brand); margin-bottom: .4rem; }
.plan__foot { margin-top: 2rem; font-size: .9rem; color: var(--ink-soft); }

@media print {
  .top, .subnav, .foot, .noprint, .chatfab { display: none !important; }
  .plan__block { break-inside: avoid; }
}

.tbtn--login { text-decoration: none; display: inline-flex; align-items: center; }
.tbtn--login:hover { color: var(--ink); }

/* оплата */
.plans--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 56rem; }
.plan--pay { max-width: 32rem; margin: 1.5rem 0; }
.module__state--pay { color: var(--brand); font-weight: 700; }
@media (max-width: 1000px) { .plans--two { grid-template-columns: 1fr; } }

/* страница установки */
.checks { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .6rem; max-width: 46rem; }
.check {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .8rem 1rem; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--border-soft);
}
.check__mark { font-weight: 800; font-size: 1.2rem; line-height: 1.35; flex: none; }
.check--ok { border-left: 8px solid var(--yes); }
.check--ok .check__mark { color: var(--yes); }
.check--bad { border-left: 8px solid var(--no); background: var(--warn-bg); }
.check--bad .check__mark { color: var(--no); }
.check--warn { border-left: 8px solid var(--warn-border); background: var(--warn-bg); }
.check--warn .check__mark { color: #8a5a00; }
code { background: var(--surface-2); padding: .1rem .35rem; border-radius: 6px; word-break: break-all; }

/* ---------- всплывающее окно установки ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: rgba(8, 18, 30, .6);
}
.modal[hidden] { display: none; }
.modal__box {
  width: 100%; max-width: 30rem; max-height: 90vh; overflow: auto;
  padding: 1.6rem 1.5rem;
  text-align: center;
  background: var(--bg); color: var(--ink);
  border: 3px solid var(--brand); border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.modal__icon { color: var(--brand); margin-bottom: .3rem; }
.modal__title { font-size: 1.35rem; margin-bottom: .5rem; }
.modal__text { color: var(--ink-soft); margin-bottom: 1rem; }
.modal__steps { text-align: left; margin: 0 0 .5rem; }
.modal__steps li { margin-bottom: .6rem; }
.modal__actions { display: grid; gap: .7rem; margin-top: 1.1rem; }
body.modal-open { overflow: hidden; }
html[data-contrast="on"] .modal__box { box-shadow: none; border-color: #000; }
html[data-contrast="on"] .modal { background: rgba(0, 0, 0, .75); }
