/* EasyInfo — shared instruction pages (easyinfo.pro/instrukcii) */

:root {
  --bg: #141215;
  --panel: #201d22;
  --panel2: #27232a;
  --text: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.62);
  --label: #a3adbc;
  --border: rgba(255, 255, 255, 0.06);
  --accent: #8f7cff;
  --accent-soft: rgba(143, 124, 255, 0.16);
  --orange: #f59e0b;
  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius-lg: 14px;
  --radius-md: 10px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.14), 0 18px 40px rgba(0, 0, 0, 0.24);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.ei-guide {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.ei-breadcrumb {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--muted);
}

.ei-breadcrumb a { color: var(--accent); }

.ei-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.ei-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(245, 158, 11, 0.12));
  box-shadow: inset 0 0 0 1px var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.ei-logo--rt {
  font-size: 15px;
  letter-spacing: -0.04em;
}

.ei-topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.ei-topbar p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.ei-lead {
  margin: 0 0 24px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.ei-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.ei-card--plain {
  padding: 18px 22px;
}

.ei-card__head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.ei-card__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 6px;
}

.ei-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.ei-card__hint {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.ei-card__body {
  padding: 18px 22px 22px;
}

.ei-doc-grid {
  display: grid;
  gap: 12px;
}

.ei-doc-link {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--panel2);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ei-doc-link:hover {
  border-color: rgba(143, 124, 255, 0.4);
  background: rgba(143, 124, 255, 0.08);
  text-decoration: none;
}

.ei-doc-link h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.ei-doc-link p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.ei-doc-link__tag {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--label);
}

.ei-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.ei-steps > li {
  position: relative;
  padding: 0 0 20px 44px;
  counter-increment: step;
}

.ei-steps > li:last-child { padding-bottom: 0; }

.ei-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(143, 124, 255, 0.35);
}

.ei-steps > li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.ei-steps > li:last-child::after { display: none; }

.ei-steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.ei-steps span,
.ei-steps p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 6px;
}

.ei-kbd {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--panel2);
  border: 1px solid var(--border);
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
}

.ei-nav-map { display: grid; gap: 10px; }

.ei-nav-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--panel2);
  border: 1px solid var(--border);
}

.ei-nav-glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ei-nav-item h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.ei-nav-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.ei-callout {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 14px;
}

.ei-callout--warn {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: rgba(255, 255, 255, 0.88);
}

.ei-callout--ok {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.25);
}

.ei-callout--info {
  background: rgba(143, 124, 255, 0.1);
  border: 1px solid rgba(143, 124, 255, 0.28);
}

.ei-faq dt {
  font-weight: 600;
  font-size: 14px;
  margin: 16px 0 6px;
  color: var(--text);
}

.ei-faq dt:first-child { margin-top: 0; }

.ei-faq dd {
  margin: 0;
  padding: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.ei-faq dd:last-child { border-bottom: none; padding-bottom: 0; }

.ei-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ei-pill {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--panel2);
  border: 1px solid var(--border);
  color: var(--muted);
}

.ei-pill--accent {
  border-color: rgba(143, 124, 255, 0.35);
  background: var(--accent-soft);
  color: var(--text);
}

ul.ei-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

ul.ei-list li { margin-bottom: 6px; }

.ei-checklist {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.ei-checklist li {
  position: relative;
  padding: 8px 0 8px 24px;
  font-size: 14px;
  color: var(--muted);
}

.ei-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--label);
  border-radius: 3px;
  background: var(--panel2);
}

.ei-tree {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: var(--panel2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  white-space: pre;
  overflow-x: auto;
}

.ei-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ei-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  text-decoration: none;
}

.ei-btn--primary {
  background: var(--accent-soft);
  border-color: rgba(143, 124, 255, 0.45);
}

.ei-btn:hover { text-decoration: none; filter: brightness(1.08); }

a { color: var(--accent); text-decoration: none; }

a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--panel2);
}

.ei-footer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.ei-footer a { margin: 0 6px; }
