/* ============================================================
   MASTERVISION DOCS — CSS DESIGN SYSTEM
   docs.mastervision.space
   ============================================================ */
 
/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
/* --- ТОКЕНЫ --- */
:root {
  /* Цвета */
  --ink:        #1a1a1a;   /* основной текст */
  --ink-2:      #3d3d3d;   /* вторичный текст */
  --ink-3:      #777;      /* третичный / лейблы */
  --ink-4:      #aaa;      /* placeholder, мета */
 
  --bg:         #fafaf8;   /* фон страницы */
  --bg-2:       #F3F5F8;   /* фон карточек, TOC */
  --bg-3:       #e8e6e0;   /* браузер-бар мокапов, hover */
 
  --accent:     #53f;   /* основной акцент (зелёный) */
  --accent-2:   #ddd6ff;   /* светлый фон акцента */
  --accent-3:   #bbadff;   /* граница акцента */
 
  --warn:       #ffe6b3;   /* предупреждение */
  --warn-bg:    #fff2d9;
  
  --danger:     #363e4a;   /* ошибка */
  --danger-bg:  #e7ebf1;
  --danger-border: #cfd7e3;
  
  --success:     #004736;   
  --success-bg:  #ccf0e7;
  --success-border: #99e0cf;
 
  --border:     rgba(0, 0, 0, .175);   /* основная граница */
 
  /* Шрифты */
  --font-head:  "Wix Madefor Display", sans-serif;   /* заголовки */
  --font-body:  "Wix Madefor Display", sans-serif;  /* тело */
 
  /* Прочее */
  --radius:     8px;
}
 
/* --- БАЗОВЫЕ СТИЛИ --- */

 
/* --- META ROW (тег + время чтения) --- */
article .meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
article .tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--accent-2);
  color: var(--accent);
  font-family: var(--font-body);
}
article .read-time { font-size: 12px; color: var(--ink-4); }
 
/* --- ЗАГОЛОВКИ --- */
article h1 {
  font-family: var(--font-head);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
 
/* Лид-абзац под h1 */
article .lead {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 36px;
  border-left: 3px solid var(--accent-3);
  padding-left: 16px;
}
 
article h2 {
  font-family: var(--font-head);
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 600;
  color: var(--ink);
  margin-top: 48px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Нумерованный бейдж у h2: <span class="h2-num">01</span> */
article .h2-num {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-2);
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.04em;
}
 
article h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 28px;
  margin-bottom: 8px;
}
 
article p { margin-bottom: 16px; }
article p:last-child { margin-bottom: 0; }
 
article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}
 
/* --- ОГЛАВЛЕНИЕ (TOC) --- */
article .toc {
  background: var(--bg-2);
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .1);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 40px;
}
article .toc-title {
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
article .toc ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 0;
}
.toc li { font-size: 0.92rem; }
.toc li::marker{
	
}
.toc a { color: var(--accent); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
 
/* --- CALLOUT-БЛОКИ --- */
.callout {
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 28px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout-info { background: var(--accent-2); border-left: 3px solid var(--accent); }
.callout-warn { background: var(--warn-bg);   border-left: 3px solid var(--warn);   }
.callout-icon { font-size: 1rem; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.callout-text { font-size: 0.92rem; line-height: 1.6; color: var(--ink-2); }
.callout-text strong { color: var(--ink); }
.callout-text a { color: var(--accent); }
 
/* --- BEFORE / AFTER --- */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
@media (max-width: 500px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-col { border-radius: var(--radius); padding: 16px; box-shadow: 0 5px 5px 0 rgba(0, 0, 0, .1);}
.ba-before { background: var(--danger-bg);  border: 1px solid var(--danger-border); color: var(--danger);}
.ba-after  { background: var(--success-bg);   border: 1px solid var(--success-border); color: var(--success);}
.ba-label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ba-before .ba-label { color: var(--danger); }
.ba-after  .ba-label { color: var(--accent); }
.ba-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ba-list li {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-2);
  display: flex;
  gap: 7px;
  align-items: flex-start;
}
.ba-list li::before { font-size: 13px; flex-shrink: 0; margin-top: 1px; }
.ba-before .ba-list li::before { content: '✕'; color: var(--danger); }
.ba-after  .ba-list li::before { content: '✓'; color: var(--accent); }
 
/* --- КАРТОЧКИ РОЛЕЙ --- */
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--bg);
  transition: box-shadow 0.15s, transform 0.15s;
}
.role-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-1px); }
.role-icon { font-size: 22px; margin-bottom: 8px; }
.role-name { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-family: var(--font-head); }
.role-desc { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
 
/* --- НУМЕРОВАННЫЕ ШАГИ --- */
.steps { display: flex; flex-direction: column; margin: 24px 0; }
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-family: var(--font-head);
}
.step-body h4 { font-size: 0.92rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; font-family: var(--font-head); }
.step-body p  { font-size: 13px; color: var(--ink-2); margin-bottom: 0; line-height: 1.55; }
 
/* --- МОКАП-СКРИНШОТ --- */
.screenshot {
  margin: 32px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.screenshot.sc-mobile{
	max-width: 348px;
}
.screenshot.sc-mobile img{
	width: 100%;
}
.screenshot-bar {
  background: var(--bg-3);
  padding: 9px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 5px; }
.dot  { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #e06c6c; }
.dot-y { background: #e0c36c; }
.dot-g { background: #6cbf7b; }
.screenshot-url {
  flex: 1;
  background: var(--bg);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: var(--ink-3);
  font-family: monospace;
}
.screenshot-body { background: var(--bg); padding: 14px; font-size: 12px; }
.screenshot-caption {
  padding: 8px 14px;
  font-size: 11px;
  color: var(--ink-4);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  font-style: italic;
}
 
/* --- СВЯЗАННЫЕ СТАТЬИ --- */
.related { margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--border); }
.related-title {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-item {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: background 0.12s, border-color 0.12s;
}
.related-item:hover { background: var(--bg-2); border-color: var(--accent-3); }
.related-item-icon   { font-size: 1rem; flex-shrink: 0; }
.related-item-text   { font-size: 13px; color: var(--ink-2); }
.related-item-arrow  { margin-left: auto; font-size: 0.92rem; color: var(--ink-4); }
 
/* --- CTA-КНОПКА --- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  font-family: var(--font-head);
  transition: opacity 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { opacity: 0.88; }
 