/* Стратегии автоследования Solocapitalist. Шрифт наследуется от темы. */
.afs {
	--afs-text: #121614;
	--afs-text-2: #3B4541;
	--afs-muted: #5B6661;
	--afs-line: #E2E6E4;
	--afs-soft: #F3F5F4;
	--afs-bg: #FFFFFF;
	--afs-pos: #157A47;
	--afs-neg: #B83A22;
	--afs-accent: #157A47;
	--afs-accent-text: #FFFFFF;
	--afs-radius: 16px;
	color: var(--afs-text);
	line-height: 1.55;
	margin: 0 0 1.5em;
}
.afs *, .afs *::before, .afs *::after { box-sizing: border-box; }

.afs-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.afs-pos { color: var(--afs-pos); font-weight: 700; }
.afs-neg { color: var(--afs-neg); font-weight: 700; }
.afs-muted { color: var(--afs-muted); }
.afs-small { font-size: 13px; }
.afs-r { text-align: right; }
.afs-source { margin: 12px 0 0; font-size: 13px; color: var(--afs-muted); }

/* Таблица */
.afs-table-wrap { overflow-x: auto; border: 1px solid var(--afs-line); border-radius: 14px; background: var(--afs-bg); }
.afs-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 15px; margin: 0; }
.afs-table th { padding: 14px 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--afs-muted); background: var(--afs-soft); border: 0; border-bottom: 1px solid var(--afs-line); }
.afs-table th.afs-r { text-align: right; }
.afs-table td { padding: 16px; border: 0; border-bottom: 1px solid var(--afs-line); vertical-align: middle; }
.afs-table tr:last-child td { border-bottom: 0; }
.afs-name { display: block; font-weight: 700; }
.afs-sub { display: block; font-size: 13px; color: var(--afs-muted); }
.afs-link { font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--afs-accent); }
.afs-link:hover { text-decoration: underline; }

/* Карточки */
.afs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.afs-card { background: var(--afs-bg); border: 1px solid var(--afs-line); border-radius: var(--afs-radius); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.afs-card-sub { margin: 0 0 -10px; font-size: 13px; color: var(--afs-muted); }
.afs-card-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
.afs-card-text { margin: 0; color: var(--afs-text-2); }
.afs-modes { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.afs-modes p { margin: 0; }
.afs-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 14px; background: var(--afs-soft); border-radius: 10px; }
.afs-metrics div { margin: 0; }
.afs-metrics dt { margin: 0; font-size: 12px; color: var(--afs-muted); font-weight: 400; }
.afs-metrics dd { margin: 0; font-weight: 700; }
.afs-card-note { margin: 0; font-size: 13px; color: var(--afs-muted); }
.afs-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.afs-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid #C9D0CD; color: var(--afs-text); background: var(--afs-bg); font-weight: 600; text-decoration: none; }
.afs-btn:hover { border-color: var(--afs-text); color: var(--afs-text); }
.afs-btn-primary { background: var(--afs-accent); border-color: var(--afs-accent); color: var(--afs-accent-text); font-weight: 700; }
.afs-btn-primary:hover { filter: brightness(0.92); color: var(--afs-accent-text); }

/* Короткий список */
.afs-summary { background: var(--afs-soft); border: 1px solid var(--afs-line); border-radius: var(--afs-radius); padding: 24px; }
.afs-summary-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.afs-summary-head span { font-size: 13px; color: var(--afs-muted); }
.afs-summary ul { list-style: none; margin: 0; padding: 0; }
.afs-summary li { margin: 0; border-bottom: 1px solid var(--afs-line); }
.afs-summary li:last-child { border-bottom: 0; }
.afs-summary a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; color: var(--afs-text); text-decoration: none; }
.afs-summary a:hover span:first-child { text-decoration: underline; }

/* ---------- Статичные блоки страницы (.afs-page) ---------- */
.afs-page {
	--afs-text: #121614;
	--afs-text-2: #3B4541;
	--afs-muted: #5B6661;
	--afs-line: #E2E6E4;
	--afs-soft: #F3F5F4;
	--afs-bg: #FFFFFF;
	--afs-pos: #157A47;
	--afs-neg: #B83A22;
	--afs-accent: #157A47;
	--afs-accent-text: #FFFFFF;
	color: var(--afs-text);
	line-height: 1.55;
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 0 0;
}
.afs-page *, .afs-page *::before, .afs-page *::after { box-sizing: border-box; }
.afs-page p { margin: 0; }
.afs-page .afs-sec { margin: 0 0 72px; scroll-margin-top: 80px; }
.afs-page .afs-sec .afs { margin-bottom: 0; }
.afs-page .afs-eyebrow { margin: 0 0 16px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--afs-accent); }
.afs-page h1.afs-h1 { margin: 0 0 24px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--afs-text); }
.afs-page h2.afs-h2 { margin: 0 0 8px; font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; color: var(--afs-text); }
.afs-page h3.afs-h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.25; font-weight: 800; color: var(--afs-text); }
.afs-page .afs-intro { margin: 0 0 28px; color: var(--afs-muted); max-width: 760px; }
.afs-page .afs-lead { margin: 0 0 32px; font-size: 19px; color: var(--afs-text-2); max-width: 620px; }

/* Первый экран */
.afs-page .afs-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.afs-page .afs-hero-main { flex: 999 1 520px; min-width: 0; }
.afs-page .afs-hero-side { flex: 1 1 340px; min-width: 0; }
.afs-page .afs-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.afs-page .afs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.afs-page .afs-facts > div { border-top: 2px solid var(--afs-accent); padding-top: 12px; }
.afs-page .afs-facts b { display: block; margin-bottom: 4px; }
.afs-page .afs-facts span { font-size: 14px; color: var(--afs-muted); }

/* Кнопки (те же, что в карточках) */
.afs-page .afs-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 1px solid #C9D0CD; color: var(--afs-text); background: var(--afs-bg); font-weight: 600; text-decoration: none; }
.afs-page .afs-btn:hover { border-color: var(--afs-text); color: var(--afs-text); }
.afs-page .afs-btn-primary { background: var(--afs-accent); border-color: var(--afs-accent); color: var(--afs-accent-text); font-weight: 700; }
.afs-page .afs-btn-primary:hover { filter: brightness(0.92); color: var(--afs-accent-text); }

/* Серые плашки и сетки */
.afs-page .afs-box { background: var(--afs-soft); border-radius: 14px; padding: 20px; }
.afs-page .afs-box b { display: block; margin-bottom: 6px; }
.afs-page .afs-box span { font-size: 15px; color: var(--afs-muted); }
.afs-page .afs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.afs-page .afs-note-box { margin-top: 20px; background: var(--afs-soft); border-radius: 16px; padding: 24px; }
.afs-page .afs-note-box p + p { margin-top: 8px; }
.afs-page .afs-small-muted { font-size: 13px; color: var(--afs-muted); }

/* Как подключиться */
.afs-page .afs-band { background: var(--afs-soft); border-radius: 20px; padding: 48px clamp(20px, 4vw, 48px); }
.afs-page .afs-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.afs-page .afs-steps li { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.afs-page .afs-step-n { font-weight: 800; font-size: 28px !important; color: var(--afs-accent)!important; font-variant-numeric: tabular-nums; }
.afs-page .afs-steps b { font-size: 18px; }
.afs-page .afs-steps span { color: var(--afs-muted); font-size: 15px; }
.afs-page .afs-band .afs-cols { margin-top: 40px; }
.afs-page .afs-band .afs-box { background: var(--afs-bg); border: 1px solid var(--afs-line); }
.afs-page .afs-big { display: block; font-size: 22px; font-weight: 800; margin: 2px 0 6px; }

/* Автор */
.afs-page .afs-author { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.afs-page .afs-author-photo { flex: 0 0 160px; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: var(--afs-soft); }
.afs-page .afs-author-text { flex: 999 1 480px; min-width: 0; }
.afs-page .afs-author-text p { color: var(--afs-text-2); max-width: 720px; margin-bottom: 12px; }
.afs-page .afs-author .afs-cta { margin: 20px 0 0; }

/* FAQ */
.afs-page .afs-faq { border-top: 1px solid var(--afs-line); }
.afs-page .afs-faq details { border-bottom: 1px solid var(--afs-line); padding: 18px 0; }
.afs-page .afs-faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; }
.afs-page .afs-faq summary::-webkit-details-marker { display: none; }
.afs-page .afs-faq summary::after { content: "+"; float: right; color: var(--afs-muted); font-weight: 400; }
.afs-page .afs-faq details[open] summary::after { content: "−"; }
.afs-page .afs-faq p { margin-top: 12px; color: var(--afs-muted); max-width: 820px; }

/* Покупка робота и дисклеймер */
.afs-page .afs-robots { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--afs-soft); border-radius: 16px; padding: 32px; }
.afs-page .afs-robots > div { flex: 999 1 460px; min-width: 0; }
.afs-page .afs-robots p { color: var(--afs-muted); }
.afs-page .afs-disclaimer { border-top: 1px solid var(--afs-line); padding: 24px 0 48px; font-size: 13px; color: var(--afs-muted); max-width: 900px; }
