/* Документация — использует переменные из /style.css (--black, --white, --gray-*,
   --accent, --green, --radius-*), ничего не переопределяет, только добавляет
   компоненты, специфичные для этой страницы. */

.docs-page {
	padding-top: 100px;
	padding-bottom: 80px;
	background: var(--white);
}

/* Тонкая линия/тень под шапкой на этой странице — не дожидаясь скролла и is-sticky */
#header.headroom {
	-webkit-box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.06);
	box-shadow: 0 2px 28px 0 rgba(0, 0, 0, 0.06);
	padding-bottom: .938rem;
}

.docs-search-wrap {
	padding: 14px;
	border-bottom: 1px solid var(--gray-100);
}
.docs-search-box {
	display: flex;
	align-items: center;
	gap: 10px;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-sm);
	padding: 10px 14px;
	background: var(--white);
	transition: border-color .2s ease;
}
.docs-search-box:focus-within { border-color: var(--green); }
.docs-search-box svg { color: var(--gray-400); flex-shrink: 0; }
.docs-search-box input {
	border: none;
	outline: none;
	flex: 1;
	font-family: 'Montserrat', sans-serif;
	font-size: .875rem;
	background: transparent;
	color: var(--black);
}

/* ── Тело: сайдбар + контент ── */
.docs-body {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.docs-sidebar {
	width: 300px;
	flex-shrink: 0;
	border: 1.5px solid var(--gray-200);
	border-radius: var(--radius-lg);
	background: var(--white);
	overflow: hidden;
	position: sticky;
	top: 100px;
}

.docs-category { border-bottom: 1px solid var(--gray-100); }
.docs-category:last-child { border-bottom: none; }
.docs-category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 18px;
	cursor: pointer;
	user-select: none;
}
.docs-category-header:hover { background: var(--gray-100); }
.docs-category-title {
	font-size: .875rem;
	font-weight: 600;
	color: var(--black);
}
.docs-category-header svg { color: var(--gray-400); flex-shrink: 0; transition: transform .2s ease; }

.docs-article-list { padding-bottom: 6px; display: none; }
.docs-article-list.open { display: block; }

.docs-article-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 18px 10px 30px;
	cursor: pointer;
	font-size: .813rem;
	color: var(--gray-600);
	transition: color .2s ease;
}
.docs-article-item:hover { color: var(--black); }
.docs-article-item.active {
	background: var(--gray-50);
	color: var(--green);
	font-weight: 600;
	border-left: 3px solid var(--green);
	padding-left: 27px;
}
.docs-article-category { font-size: .688rem; color: var(--gray-400); margin-top: 2px; }
.docs-soon-dot { width: 6px; height: 6px; border-radius: 3px; background: #e0a030; flex-shrink: 0; }

/* ── Контент статьи ── */
.docs-content { flex: 1; min-width: 0; padding-top: 4px; }

.docs-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 100px 20px;
	color: var(--gray-400);
}
.docs-placeholder svg { margin-bottom: 12px; color: var(--gray-400); }
.docs-placeholder-title { font-size: 1rem; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.docs-placeholder-text { font-size: .813rem; color: var(--gray-400); max-width: 320px; }

.docs-article { max-width: 720px; }
.docs-article-title { font-size: 1.75rem; font-weight: 700; color: #0e314c; margin: 0 0 1.5rem; }
.docs-block-heading { font-size: 1.125rem; font-weight: 600; color: #0e314c; margin: 1.75rem 0 .625rem; }
.docs-block-p { font-size: .938rem; color: #6084a4; line-height: 1.9; margin: 0 0 .75rem; }

.docs-note {
	background: #eeecff;
	border-radius: var(--radius-md);
	padding: 16px 18px;
	margin: 14px 0;
	font-size: .875rem;
	color: #423ba3;
	line-height: 1.7;
}
.docs-warning {
	background: #fff3e0;
	border-radius: var(--radius-md);
	padding: 16px 18px;
	margin: 14px 0;
	font-size: .875rem;
	color: #e65100;
	line-height: 1.7;
}

.docs-steps { margin: 14px 0; padding: 0; list-style: none; counter-reset: step; }
.docs-steps li {
	counter-increment: step;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
	font-size: .938rem;
	color: #365267;
	line-height: 1.7;
}
.docs-steps li::before {
	content: counter(step);
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--green);
	color: var(--white);
	font-size: .75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.docs-list { margin: 14px 0; padding: 0; list-style: none; }
.docs-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	font-size: .938rem;
	color: #365267;
	line-height: 1.7;
}
.docs-list li::before { content: "✓"; color: var(--green); font-weight: 700; }

.docs-table-wrap {
	overflow-x: auto;
	margin: 14px 0;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-md);
}
.docs-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.docs-table th {
	text-align: left;
	padding: 10px 14px;
	background: var(--gray-50);
	border-bottom: 1px solid var(--gray-200);
	color: var(--black);
	font-weight: 600;
}
.docs-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--gray-100);
	color: #6084a4;
}
.docs-table tr:last-child td { border-bottom: none; }

/* ── Мобильная адаптация ── */
@media (max-width: 900px) {
	.docs-body { flex-direction: column; gap: 24px; }
	.docs-sidebar { width: 100%; position: static; }
	.docs-page { padding-top: 90px; }
}
@media (max-width: 575px) {
	.docs-page { padding-top: 80px; }
}
