.wiki {
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px 16px 60px;
	color: var(--font-color, #111);
}

/* Top menu: first-level sections */
.wiki-top {
	border-bottom: 1px solid var(--color-gray-border, #e9e9e9);
	margin-bottom: 32px;
}

.wiki-top__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wiki-top__link {
	display: block;
	padding: 12px 0;
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.wiki-top__link:hover,
.wiki-top__link.is-active {
	border-bottom-color: var(--accent-color, #ffd400);
}

/* Grid: tree | article | table of contents */
.wiki__body {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

.wiki__body--detail {
	grid-template-columns: 280px minmax(0, 1fr) 240px;
}

.wiki__body--intro {
	grid-template-columns: minmax(0, 1fr);
}

.wiki__sidebar,
.wiki__toc-col {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

/* Subsection tree */
.wiki-tree__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wiki-tree__list--l2,
.wiki-tree__list--l3,
.wiki-tree__list--l4,
.wiki-tree__list--l5 {
	display: none;
	margin-left: 14px;
	padding-left: 12px;
	border-left: 1px solid var(--color-gray-border, #e9e9e9);
}

.wiki-tree__item.is-open > .wiki-tree__list {
	display: block;
}

.wiki-tree__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.wiki-tree__link {
	flex: 1 1 auto;
	padding: 6px 8px;
	border-radius: 6px;
	color: inherit;
	text-decoration: none;
	line-height: 1.3;
	font-size: 14px; /*Anton*/
}

.wiki-tree__link:hover {
	background: var(--color-gray-light, #f7f7f7);
}

.wiki-tree__link.is-active {
	background: var(--accent-color, #ffd400);
	font-weight: 600;
}

.wiki-tree__toggle {
	flex: 0 0 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.wiki-tree__toggle::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .15s;
}

.wiki-tree__toggle:hover {
	background: var(--color-gray-light, #f7f7f7);
}

.wiki-tree__item.is-open > .wiki-tree__row > .wiki-tree__toggle::before {
	transform: rotate(45deg);
}

/* Article */
.wiki__title,
.wiki-article__title {
	margin: 0 0 24px;
	font-size: 40px;
}

.wiki-article__body {
	line-height: 1.6;
}

.wiki-article__body h2,
.wiki-article__body h3,
.wiki-article__body h4 {
	margin: 32px 0 12px;
	scroll-margin-top: 24px;
}

.wiki-article__body img {
	max-width: 100%;
	height: auto;
}

.wiki-article__body iframe.wiki-video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	border: 0;
}

.wiki-article__body table {
	max-width: 100%;
	display: block;
	overflow-x: auto;
}

/* Lists inside article body */
.wiki-article__body ul,
.wiki-article__body ol {
	margin: 16px 0 20px;
	padding: 0;
	list-style: none;
}

.wiki-article__body ul ul,
.wiki-article__body ol ol,
.wiki-article__body ul ol,
.wiki-article__body ol ul {
	margin: 8px 0 0;
}

.wiki-article__body li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 36px;
	text-align: left;
}

.wiki-article__body li:last-child {
	margin-bottom: 0;
}

.wiki-article__body li > p {
	margin: 0;
	text-align: left;
}

/* Bullet marker */
.wiki-article__body ul > li::before {
	content: "";
	position: absolute;
	left: 8px;
	top: 0.55em;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent-color, #ffd400);
	box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.25);
}

.wiki-article__body ul ul > li::before {
	width: 8px;
	height: 8px;
	background: transparent;
	border: 2px solid var(--accent-color, #ffd400);
	box-shadow: none;
}

/* Numbered marker */
.wiki-article__body ol {
	counter-reset: wiki-ol;
}

.wiki-article__body ol > li {
	counter-increment: wiki-ol;
}

.wiki-article__body ol > li::before {
	content: counter(wiki-ol);
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--accent-color, #ffd400);
	color: #000;
	font-size: 13px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
}

.wiki-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wiki-list__link {
	display: block;
	padding: 8px 0;
	color: inherit;
}

/* Article table of contents */
.wiki-toc {
	border-left: 1px solid var(--color-gray-border, #e9e9e9);
	padding-left: 16px;
	font-size: 14px;
}

.wiki-toc__title {
	margin-bottom: 8px;
	font-weight: 600;
}

.wiki-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wiki-toc__link {
	display: block;
	padding: 4px 0;
	color: var(--color-gray-text, #999);
	text-decoration: none;
	line-height: 1.3;
}

.wiki-toc__link:hover,
.wiki-toc__link.is-active {
	color: var(--font-color, #111);
}

.wiki-toc__link.is-active {
	font-weight: 600;
}

.wiki-toc__item--h3 {
	padding-left: 12px;
}

.wiki-toc__item--h4 {
	padding-left: 24px;
}

html {
	scroll-behavior: smooth;
}

@media (max-width: 1199px) {
	.wiki__body--detail {
		grid-template-columns: 240px minmax(0, 1fr);
	}

	.wiki__toc-col {
		display: none;
	}
}

@media (max-width: 767px) {
	.wiki__body,
	.wiki__body--detail {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.wiki__sidebar {
		position: static;
		max-height: none;
	}
}
.wiki a{
	text-decoration:underline;
}