/*
 * Инструкция для новичка. Опирается на landing-разметку (login.css):
 * здесь только то, чего там нет, — оглавление, шаги, врезки и таблицы чисел.
 */

.guide-main { max-width: 860px; margin: 0 auto; padding: 0 20px 60px; }

/* ───── Заголовок страницы ───── */

.guide-head { padding: 34px 0 30px; }

.guide-eyebrow {
  margin: 0 0 10px;
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--accent-bright);
  text-shadow: var(--glow-text);
}

.guide-title {
  margin: 0 0 16px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  letter-spacing: -1px;
  font-weight: 800;
}

.guide-lead { margin: 0; font-size: 15px; line-height: 1.65; color: var(--text-dim); max-width: 660px; }
.guide-lead b { color: var(--text); }

/* ───── Оглавление ───── */

.toc {
  margin: 26px 0 0;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glow-accent-soft);
}
.toc h2 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 7px 22px;
}
.toc li { counter-increment: toc; }
.toc a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  display: flex;
  gap: 9px;
  padding: 2px 0;
}
.toc a::before {
  content: counter(toc);
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-width: 16px;
}
.toc a:hover { color: var(--text); }

/* ───── Секции инструкции ───── */

.guide-section { padding: 42px 0 8px; border-top: 1px solid var(--border); position: relative; }
.guide-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: 0 0 10px rgba(121, 92, 235, 0.7);
}

.guide-section h2 {
  margin: 0 0 6px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.3px;
  scroll-margin-top: 20px;
}
.guide-section h3 {
  margin: 28px 0 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
}
.guide-section p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.guide-section p b, .guide-section li b { color: var(--text); font-weight: 600; }
.guide-section ul { margin: 0 0 16px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.guide-section ul li { font-size: 14px; line-height: 1.65; color: var(--text-dim); }
.guide-section ul li::marker { color: var(--accent); }

.guide-section a { color: var(--accent-bright); }

.lead-note { font-size: 14.5px; color: var(--text); margin-bottom: 20px; }

/* Числа и уровни набираем моноширинным — их сверяют глазами с биржей. */
code, .num { font-family: var(--mono); font-size: 0.93em; color: var(--fib-bright); }

/* ───── Пошаговые инструкции ───── */

.steps {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.steps > li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #8a6ff0, var(--accent));
  box-shadow: var(--glow-accent-soft);
}
.step-body { min-width: 0; flex: 1; }
.step-body > :last-child { margin-bottom: 0; }
.step-body p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; }
.step-body ul { margin: 8px 0 0; }
.step-body ul li { font-size: 13px; }

/* ───── Врезки ───── */

.callout {
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-dim);
}
.callout b { color: var(--text); }
.callout p { margin: 0 0 8px; font-size: 13.5px; }
.callout > :last-child { margin-bottom: 0; }

.callout-warn { background: rgba(224, 168, 46, 0.08); border-left: 2px solid rgba(224, 168, 46, 0.6); }
.callout-stop { background: rgba(255, 107, 134, 0.09); border-left: 2px solid rgba(255, 107, 134, 0.65); }
.callout-tip { background: rgba(47, 212, 189, 0.08); border-left: 2px solid rgba(47, 212, 189, 0.6); }
.callout-note { background: var(--accent-soft); border-left: 2px solid var(--accent); }

.callout-title {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  font-weight: 700;
}
.callout-warn .callout-title { color: #f0c674; }
.callout-stop .callout-title { color: #ff92a6; }
.callout-tip .callout-title { color: #6ff5de; }
.callout-note .callout-title { color: var(--accent-bright); }

/* ───── Таблицы чисел ───── */

.table-wrap { overflow-x: auto; margin: 0 0 18px; }

.num-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.num-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 10.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.num-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
}
.num-table tr:last-child td { border-bottom: none; }
.num-table td b { color: var(--text); }
.num-table .is-num { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.num-table .is-up { color: #5eead4; }
.num-table .is-down { color: #ff92a6; }

/* ───── Карточка уровня сетки ───── */

.levels { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }

.level {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--fib-dim);
  border-radius: var(--radius-sm);
}
.level-ratio { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--fib-bright); }
.level-text { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.level-text b { color: var(--text); }

.level.is-top { border-left-color: #ff6b86; }
.level.is-top .level-ratio { color: #ff92a6; }
.level.is-bottom { border-left-color: #2fd4bd; }
.level.is-bottom .level-ratio { color: #6ff5de; }
.level.is-buy { border-left-color: var(--accent); box-shadow: var(--glow-accent-soft); }

/* ───── Сравнение «руками / скринером» ───── */

.versus { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin: 0 0 20px; }

.versus-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.versus-card h3 { margin: 0 0 12px; font-size: 14.5px; }
.versus-card ul { margin: 0; padding-left: 16px; }
.versus-card li { font-size: 13px; }

.versus-hand { border-color: rgba(255, 107, 134, 0.35); }
.versus-hand h3 { color: #ff92a6; }
.versus-tool { border-color: rgba(47, 212, 189, 0.38); box-shadow: 0 0 14px rgba(47, 212, 189, 0.12); }
.versus-tool h3 { color: #6ff5de; }

.versus-time {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.versus-time small { display: block; font-family: inherit; font-size: 11px; font-weight: 400; color: var(--text-faint); margin-top: 3px; }

/* ───── Вопросы ───── */

.faq { display: flex; flex-direction: column; gap: 9px; margin: 0 0 18px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.faq summary {
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--accent-bright); font-weight: 700; }
.faq details[open] summary::before { content: '–'; }
.faq p { margin: 10px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--text-dim); }
.faq p:last-child { margin-bottom: 0; }

/* ───── Призыв в конце ───── */

.guide-cta {
  margin: 34px 0 0;
  padding: 26px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--glow-accent-soft);
}
.guide-cta h2 { margin: 0 0 8px; font-size: 20px; }
.guide-cta p { margin: 0 0 18px; }
.guide-cta .btn { padding: 11px 26px; font-size: 14px; text-decoration: none; display: inline-block; }

/* Ссылки на телеграм под кнопкой в блоке призыва. */
.guide-cta-links { margin: 16px 0 0; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.guide-cta-links a { font-size: 13px; color: var(--text-dim); text-decoration: none; }
.guide-cta-links a:hover { color: var(--accent-bright); }

@media (max-width: 620px) {
  .guide-head { padding: 24px 0 22px; }
  .guide-section { padding: 32px 0 6px; }
  .guide-section h2 { font-size: 20px; }
  .steps > li { padding: 12px 13px; gap: 11px; }
  .level { grid-template-columns: 48px 1fr; gap: 10px; padding: 10px 12px; }
  .toc ol { grid-template-columns: 1fr; }
}
