

/* Start:/local/templates/intrasevice/css/api-2026.css?179129086820809*/
/* ============================================================
   Раздел /api/ — редизайн в языке переработки 2026.
   Здесь собраны ВСЕ стили раздела: раньше они лежали двумя
   инлайновыми <style> в api/index.php и в шаблоне компонента
   catalog.section.list/api. Маркер: INTRA-MODERN-API-2026
   ============================================================ */

.api-page {
	--api-ink: #1b1726;
	--api-ink-soft: #5a5666;
	--api-accent: #9E0EC1;
	--api-accent-2: #d22bbf;
	--api-line: rgba(24, 12, 34, .08);
	--api-card-shadow: 0 8px 24px rgba(24, 12, 34, .06);
	--api-radius: 18px;

	display: grid;
	grid-template-columns: 290px minmax(0, 1fr);
	align-items: start;
	gap: 34px;
	max-width: 1400px;
	margin: 0 auto 70px;
	padding-top: 34px;
	color: var(--api-ink);
}
.api-page .api-doc {
	min-width: 0;
	max-width: 1060px;
}

/* страница раздела всегда во всю ширину контейнера */
.content--api .container--api {
	margin: 0;
	width: 100%;
	max-width: 100%;
	padding-left: 26px;
	padding-right: 26px;
}
@media (max-width: 640px) {
	.content--api .container--api {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ============================================================
   Шапка раздела
   ============================================================ */
.api-page .api-hero {
	margin: 0 0 26px;
}
.api-page .api-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	font-size: 13px;
	color: #8b8598;
}
.api-page .api-crumbs a {
	color: #8b8598;
	text-decoration: none;
	transition: color .18s ease;
}
.api-page .api-crumbs a:hover {
	color: var(--api-accent);
}
.api-page .api-crumbs__sep {
	opacity: .5;
}
.api-page .api-hero h1 {
	margin: 0;
	padding: 0;
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--api-ink);
}
.api-page .api-hero h1::after {
	content: "";
	display: block;
	width: 64px;
	height: 4px;
	border-radius: 3px;
	margin: 16px 0 0;
	background: linear-gradient(90deg, var(--api-accent), var(--api-accent-2));
}
.api-page .api-hero__lead {
	max-width: 720px;
	margin: 18px 0 0;
	padding: 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--api-ink-soft);
}
.api-page .api-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 22px;
}

/* кнопки */
.api-page .api-btn {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.api-page .api-btn--primary {
	background: linear-gradient(135deg, var(--api-accent), var(--api-accent-2));
	color: #fff;
	box-shadow: 0 8px 20px rgba(158, 14, 193, .25);
}
.api-page .api-btn--primary:hover {
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(158, 14, 193, .32);
}
.api-page .api-btn--ghost {
	background: #fff;
	border-color: var(--api-line);
	color: var(--api-ink);
}
.api-page .api-btn--ghost:hover {
	color: var(--api-accent);
	border-color: rgba(158, 14, 193, .35);
	text-decoration: none;
}
.api-page .api-btn svg {
	width: 16px;
	height: 16px;
	flex: none;
}

/* ============================================================
   Боковое меню разделов
   ============================================================ */
.api-page .catalog-section-list {
	min-width: 0;
	/* колонка тянется на всю высоту строки грида, иначе липкому меню
	   некуда двигаться: у элемента с align-items:start высота по контенту */
	align-self: stretch;
}
.api-page .api-menu {
	position: sticky;
	top: 104px;
	background: #fff;
	border: 1px solid var(--api-line);
	border-radius: var(--api-radius);
	box-shadow: var(--api-card-shadow);
	padding: 14px 12px;
	max-height: calc(100vh - 130px);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
}
.api-page .api-menu__toggle {
	display: none;
}
.api-page .api-menu .api-menu__body ul {
	list-style: none;
	margin: 0;
	padding: 0;
	background: none;
	border-radius: 0;
	max-width: none;
}
.api-page .api-menu .api-menu__body ul li {
	list-style: none;
	padding: 0;
	margin: 0;
}
.api-page .api-menu .api-menu__body ul ul {
	display: none;
	margin: 2px 0 6px 10px;
	padding-left: 10px;
	border-left: 1px solid var(--api-line);
}
.api-page .api-menu .api-menu__body ul ul.open {
	display: block;
}
.api-page .api-menu .api-header a {
	display: block;
	margin: 0 0 10px;
	padding: 4px 10px 12px;
	border-bottom: 1px solid var(--api-line);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #8b8598;
	text-decoration: none;
}
.api-page .api-menu .api-header a:hover {
	color: var(--api-accent);
	text-decoration: none;
}
.api-page .menu-button {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	margin: 1px 0;
	padding: 7px 8px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
	color: var(--api-ink);
	cursor: pointer;
	transition: background .16s ease;
}
.api-page .menu-button:hover {
	background: #f7f3fc;
}
.api-page .menu-button a {
	flex: 1 1 auto;
	min-width: 0;
	padding: 1px 0 1px 2px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--api-ink);
	text-decoration: none;
	overflow-wrap: break-word;
	transition: color .16s ease;
}
.api-page .menu-button:hover a {
	color: var(--api-accent);
}
.api-page .menu-button.selected {
	background: linear-gradient(90deg, rgba(158, 14, 193, .10), rgba(210, 43, 191, .05));
	box-shadow: inset 2px 0 0 var(--api-accent);
}
.api-page .menu-button.selected a {
	color: var(--api-accent);
	font-weight: 700;
	text-decoration: none;
}
/* треугольник-раскрывашка ветки */
.api-page .arrow-container {
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background .16s ease;
}
.api-page .arrow-container:hover {
	background: rgba(158, 14, 193, .12);
}
.api-page .arrow-container.is-empty {
	visibility: hidden;
}
.api-page .arrow {
	width: .38em;
	height: .38em;
	margin: 0 2px 0 0;
	border-right: .13em solid #8b8598;
	border-top: .13em solid #8b8598;
	transform: rotate(45deg);
	transition: transform .2s ease, border-color .2s ease;
}
.api-page .arrow-container.is-open .arrow,
.api-page .menu-button.selected .arrow {
	transform: rotate(135deg);
	border-color: var(--api-accent);
	margin: -2px 0 0 0;
}

/* ============================================================
   Панель поиска и управления списком
   ============================================================ */
.api-page .api-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
}
.api-page .api-search {
	position: relative;
	flex: 1 1 280px;
	min-width: 220px;
}
.api-page .api-search__icon {
	position: absolute;
	left: 15px;
	top: 50%;
	width: 17px;
	height: 17px;
	transform: translateY(-50%);
	color: #8b8598;
	pointer-events: none;
}
.api-page .api-search input {
	width: 100%;
	height: 46px;
	padding: 0 40px 0 42px;
	border: 1px solid var(--api-line);
	border-radius: 13px;
	background: #fff;
	font-family: inherit;
	font-size: 15px;
	color: var(--api-ink);
	outline: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}
.api-page .api-search input::placeholder {
	color: #a9a4b6;
}
.api-page .api-search input:focus {
	border-color: rgba(158, 14, 193, .45);
	box-shadow: 0 0 0 4px rgba(158, 14, 193, .10);
}
.api-page .api-search__clear {
	position: absolute;
	right: 10px;
	top: 50%;
	width: 24px;
	height: 24px;
	transform: translateY(-50%);
	display: none;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #f0ecf6;
	color: #6f6a80;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}
.api-page .api-search.has-value .api-search__clear {
	display: flex;
}
.api-page .api-toolbar__count {
	font-size: 13px;
	color: var(--api-ink-soft);
}
.api-page .api-toolbar .api-btn {
	height: 46px;
}

/* ============================================================
   Список статей — аккордеон
   ============================================================ */
.api-page .api-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.api-page .api-item {
	background: #fff;
	border: 1px solid var(--api-line);
	border-radius: 16px;
	box-shadow: 0 4px 14px rgba(24, 12, 34, .04);
	transition: box-shadow .2s ease, border-color .2s ease;
}
.api-page .api-item:hover {
	box-shadow: 0 10px 26px rgba(24, 12, 34, .08);
}
.api-page .api-item.is-open {
	border-color: rgba(158, 14, 193, .3);
	box-shadow: 0 12px 30px rgba(24, 12, 34, .09);
}
.api-page .api-item.is-hidden {
	display: none;
}
.api-page .api-item__head {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 17px 20px;
	background: none;
	border: 0;
	border-radius: 16px;
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	text-align: left;
	color: var(--api-ink);
	cursor: pointer;
	transition: color .18s ease;
}
.api-page .api-item__head:hover,
.api-page .api-item.is-open .api-item__head {
	color: var(--api-accent);
}
.api-page .api-item__head:focus-visible {
	outline: 2px solid rgba(158, 14, 193, .5);
	outline-offset: 2px;
}
.api-page .api-item__chevron {
	flex: none;
	margin-left: auto;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f4f0f9;
	color: #6f6a80;
	transition: transform .22s ease, background .22s ease, color .22s ease;
}
.api-page .api-item__chevron svg {
	width: 13px;
	height: 13px;
}
.api-page .api-item.is-open .api-item__chevron {
	transform: rotate(180deg);
	background: linear-gradient(135deg, var(--api-accent), var(--api-accent-2));
	color: #fff;
}
.api-page .api-detail {
	display: none;
	padding: 0 20px 20px;
}
.api-page .api-item.is-open > .api-detail {
	display: block;
}
.api-page .api-detail__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 16px;
	padding-top: 4px;
	border-top: 1px solid var(--api-line);
	padding-top: 16px;
}
.api-page .api-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 14px;
	border: 1px solid var(--api-line);
	border-radius: 10px;
	background: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--api-ink-soft);
	text-decoration: none;
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.api-page .api-chip:hover {
	color: var(--api-accent);
	border-color: rgba(158, 14, 193, .35);
	background: #fdf7ff;
	text-decoration: none;
}
.api-page .api-chip svg {
	width: 14px;
	height: 14px;
	flex: none;
}
.api-page .api-chip.is-done {
	color: #2e9e5b;
	border-color: rgba(46, 158, 91, .4);
	background: #f2fbf5;
}
.api-page .api-chip--swagger {
	margin-left: auto;
}

/* смысловые блоки статьи */
.api-page .api-block {
	position: relative;
	margin: 0 0 16px;
	padding: 20px 22px;
	border: 1px solid var(--api-line);
	border-radius: 16px;
	background: #fff;
}
.api-page .api-block--task {
	background: #f7f4fc;
	border-color: rgba(158, 14, 193, .16);
}
.api-page .api-block--params {
	background: #fbf8fd;
}
.api-page .api-block:last-child {
	margin-bottom: 0;
}
.api-page .api-block__label {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 14px;
	padding: 0;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--api-accent);
}
.api-page .api-block__label::before {
	content: "";
	width: 20px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--api-accent), var(--api-accent-2));
}

/* ============================================================
   Типографика содержимого статей (приходит из инфоблока)
   ============================================================ */
.api-page .content-body h2,
.api-page .api-block > h2:not(.api-block__label),
.api-page .api-block h3,
.api-page .api-block h4 {
	padding-left: 0;
	color: var(--api-ink);
}
.api-page .api-block h2:not(.api-block__label) {
	margin: 26px 0 12px;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.api-page .api-block h3 {
	margin: 22px 0 10px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
}
.api-page .api-block h4 {
	margin: 20px 0 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
}
.api-page .api-block > h2:first-child,
.api-page .api-block > h3:first-child,
.api-page .api-block > h4:first-child {
	margin-top: 0;
}
.api-page .api-block p {
	margin: 0 0 12px;
	padding-left: 0;
	font-size: 15px;
	line-height: 1.65;
	color: var(--api-ink-soft);
}
.api-page .api-block p:last-child {
	margin-bottom: 0;
}
.api-page .api-doc .api-block ul,
.api-page .api-doc .api-block ol {
	margin: 0 0 14px;
	padding-left: 22px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--api-ink-soft);
}
.api-page .api-doc .api-block ul li,
.api-page .api-doc .api-block ol li {
	margin-bottom: 7px;
	padding-top: 0;
	font-size: 15px;
	line-height: 1.65;
}
.api-page .api-doc .api-block ul ul,
.api-page .api-doc .api-block ol ol,
.api-page .api-doc .api-block ul ol,
.api-page .api-doc .api-block ol ul {
	margin: 7px 0 0;
}
.api-page .api-block a {
	color: var(--api-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}
.api-page .api-block a:hover {
	color: var(--api-accent-2);
}
.api-page .api-block img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 6px 0;
	border: 1px solid var(--api-line);
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(24, 12, 34, .07);
}
.api-page .api-block table {
	width: 100%;
	margin: 0 0 16px;
	border-collapse: collapse;
	font-size: 14px;
}
.api-page .api-block table td,
.api-page .api-block table th {
	padding: 9px 12px;
	border: 1px solid var(--api-line);
	text-align: left;
	vertical-align: top;
}
.api-page .api-block table th {
	background: #f7f4fc;
	font-weight: 700;
}

/* ============================================================
   Код: тёмная карточка, бейдж языка, кнопка копирования
   ============================================================ */
.api-page .code-block {
	position: relative;
	margin: 14px 0 18px;
	border-radius: 14px;
	overflow: hidden;
	background: #1c1830;
	border: 1px solid rgba(24, 12, 34, .3);
	box-shadow: 0 10px 26px rgba(24, 12, 34, .16);
}
.api-page .code-block__bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px 9px 16px;
	background: rgba(255, 255, 255, .04);
	border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.api-page .code-block__lang {
	font-family: 'Poppins', ui-monospace, monospace;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #cba6ff;
}
.api-page .code-block__copy {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-left: auto;
	padding: 5px 11px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 8px;
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, .72);
	cursor: pointer;
	transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.api-page .code-block__copy:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, .32);
	background: rgba(255, 255, 255, .07);
}
.api-page .code-block__copy.is-done {
	color: #8fe3a6;
	border-color: rgba(143, 227, 166, .45);
}
.api-page .code-block__copy svg {
	width: 13px;
	height: 13px;
}
.api-page .code-block pre {
	margin: 0;
	padding: 16px 18px;
	overflow-x: auto;
	background: none;
	border: 0;
}
.api-page .code-block pre code,
.api-page .api-block pre code {
	display: block;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
	font-size: 13px;
	line-height: 1.65;
	color: #e7e2f7;
	white-space: pre;
	tab-size: 2;
}
/* пока JS не обработал блок — код не должен выглядеть сломанным */
.api-page .api-block pre {
	margin: 14px 0 18px;
	padding: 16px 18px;
	border-radius: 14px;
	background: #1c1830;
	overflow-x: auto;
}

/* тема подсветки под палитру сайта */
.api-page .hljs-comment,
.api-page .hljs-quote {
	color: #7d7699;
	font-style: italic;
}
.api-page .hljs-attr,
.api-page .hljs-attribute,
.api-page .hljs-property {
	color: #d9a8ff;
}
.api-page .hljs-string,
.api-page .hljs-symbol,
.api-page .hljs-bullet,
.api-page .hljs-addition {
	color: #a8e08a;
}
.api-page .hljs-number,
.api-page .hljs-literal,
.api-page .hljs-variable,
.api-page .hljs-template-variable,
.api-page .hljs-type {
	color: #ffc46b;
}
.api-page .hljs-keyword,
.api-page .hljs-selector-tag,
.api-page .hljs-name,
.api-page .hljs-built_in {
	color: #ff87dd;
}
.api-page .hljs-title,
.api-page .hljs-section,
.api-page .hljs-selector-id {
	color: #8fd7ff;
}
.api-page .hljs-meta,
.api-page .hljs-meta .hljs-keyword {
	color: #9d97b8;
}
.api-page .hljs-deletion {
	color: #ff8c8c;
}
.api-page .hljs-emphasis {
	font-style: italic;
}
.api-page .hljs-strong {
	font-weight: 700;
}

/* ============================================================
   Пустой результат поиска + всплывающее уведомление
   ============================================================ */
.api-page .api-empty {
	display: none;
	padding: 34px 24px;
	border: 1px dashed var(--api-line);
	border-radius: 16px;
	text-align: center;
	color: var(--api-ink-soft);
	font-size: 15px;
}
.api-page .api-empty.is-visible {
	display: block;
}
.api-toast {
	position: fixed;
	left: 50%;
	bottom: 32px;
	z-index: 1200;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 20px;
	border-radius: 12px;
	background: #241f38;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 14px 34px rgba(24, 12, 34, .3);
	transform: translate(-50%, 14px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.api-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1100px) {
	.api-page {
		grid-template-columns: 250px minmax(0, 1fr);
		gap: 26px;
	}
}

@media (max-width: 900px) {
	.api-page {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
	.api-page .api-menu {
		position: static;
		max-height: none;
		padding: 0;
		overflow: visible;
	}
	.api-page .api-menu__toggle {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		padding: 14px 16px;
		border: 0;
		border-radius: var(--api-radius);
		background: none;
		font-family: inherit;
		font-size: 15px;
		font-weight: 700;
		color: var(--api-ink);
		cursor: pointer;
	}
	.api-page .api-menu__toggle svg {
		width: 14px;
		height: 14px;
		margin-left: auto;
		transition: transform .2s ease;
	}
	.api-page .api-menu.is-open .api-menu__toggle svg {
		transform: rotate(180deg);
	}
	.api-page .api-menu__body {
		display: none;
		padding: 0 12px 14px;
	}
	.api-page .api-menu.is-open .api-menu__body {
		display: block;
	}
	.api-page .api-hero {
		margin-top: 0;
	}
}

@media (max-width: 640px) {
	.api-page {
		margin-bottom: 46px;
	}
	.api-page .api-item__head {
		padding: 15px 16px;
		font-size: 16px;
		gap: 10px;
	}
	.api-page .api-detail {
		padding: 0 14px 16px;
	}
	.api-page .api-block {
		padding: 16px 15px;
		border-radius: 14px;
	}
	.api-page .api-detail__tools .api-chip--swagger {
		margin-left: 0;
	}
	.api-page .code-block pre {
		padding: 14px;
	}
	.api-page .code-block pre code {
		font-size: 12.5px;
	}
	.api-page .api-toolbar {
		gap: 10px;
	}
	.api-page .api-toolbar .api-btn {
		flex: 1 1 auto;
		justify-content: center;
	}
}

/* на телефоне слева под шапкой висит кнопка-бургер сайта (position:absolute,
   45x45) — сдвигаем содержимое раздела, чтобы она ни на что не наезжала */
@media (max-width: 480px) {
	.api-page {
		padding-top: 54px;
	}
}

/* End */
/* /local/templates/intrasevice/css/api-2026.css?179129086820809 */
