/* Общие элементы форм CMS; в модулях остаётся только компоновка страниц.
   Подключается последним в design.php. Фокус меняет одну рамку без внешней обводки. */
/* Единый диалог подтверждения и сообщения использует общие кнопки и палитру сайта. */
/* Старый контроллер создаёт контейнер вне фирменной оболочки даже без открытого окна. */
.popup-conteiner:not(.act) {
    display: none;
}
dialog.site-dialog {
    width: min(480px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 1px solid var(--line, #dcded5);
    border-radius: var(--radius, 8px);
    background: var(--white, #fff);
    color: var(--ink, #202a2b);
    box-shadow: 0 24px 80px #14201b33;
    font: inherit;
    text-align: left;
}
.site-dialog::backdrop {
    background: #202a2b99;
}
.site-dialog__header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 2px solid var(--blue, #184077);
    background: #edf2f8;
}
.site-dialog--danger .site-dialog__header {
    background: #fff0ee;
    border-bottom-color: #b42318;
}
.site-dialog__body {
    padding: 24px;
}
.site-dialog .site-dialog__body > p {
    margin-top: 0;
}
.site-dialog__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 50%;
    background: #edf2f8;
    color: var(--blue, #184077);
    font-size: 24px;
}
.site-dialog--danger .site-dialog__icon {
    background: #fff0ee;
    color: #b42318;
}
.site-dialog h2 {
    margin: 0;
    padding-right: 0;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.03em;
}
.site-dialog p {
    margin: 12px 0 0;
    color: var(--muted, #69716e);
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.site-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
}
.body.kanzexpo .site-dialog [hidden] {
    display: none !important;
}
.body.kanzexpo .site-dialog .site-dialog__close {
    position: static;
    display: grid;
    place-items: center;
    width: 30px;
    min-height: 30px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted, #69716e);
    font-size: 16px;
}
.body.kanzexpo .site-dialog .site-dialog__close:is(:hover, :focus-visible) {
    background: var(--paper, #f7f5ef);
    color: var(--ink, #202a2b);
}
.site-dialog-error {
    position: fixed;
    z-index: 1000;
    bottom: 20px;
    left: 20px;
    max-width: calc(100% - 40px);
    padding: 14px 18px;
    border: 1px solid #b42318;
    border-radius: 6px;
    background: #fff0ee;
    color: #922b25;
    font-size: 14px;
}
@media (max-width: 540px) {
    .site-dialog__header {
        grid-template-columns: 34px minmax(0, 1fr) 28px;
        gap: 10px;
        padding: 16px;
    }
    .site-dialog__header .site-dialog__icon {
        width: 34px;
        height: 34px;
        font-size: 21px;
    }
    .site-dialog__body {
        padding: 20px 16px;
    }
    .site-dialog h2 {
        font-size: 19px;
    }
}

:root { --site-control-height: 44px; --site-control-radius: 6px; --site-control-font-size: 14px; --site-control-line: var(--line, #dcded5); --site-control-paper: var(--paper, #f7f5ef); --site-control-ink: var(--ink, #202a2b); --site-control-focus: var(--blue, #184077); }
/* Общая точечная ручка отделяет сортировку записи от раскрытия и редактирования. */
.body.kanzexpo button.site-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    width: 30px;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: #9a9d9a;
    line-height: 1;
    cursor: grab;
    touch-action: none;
    user-select: none;
}
.body.kanzexpo button.site-drag-handle::before {
    display: none;
    content: none;
}
.body.kanzexpo button.site-drag-handle .site-drag-handle__icon {
    display: block;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -3px;
    padding-right: 3px;
}
.body.kanzexpo button.site-drag-handle:where(:hover, :focus-visible):not(:disabled) {
    border-color: var(--site-control-focus);
    background: #edf2fa;
    color: var(--site-control-focus);
}
.body.kanzexpo button.site-drag-handle:active:not(:disabled) {
    cursor: grabbing;
}
.body.kanzexpo button.site-drag-handle:disabled {
    cursor: default;
    opacity: .4;
}
/* Удаление использует общие размеры кнопок и цвет ошибки сайта. */
.body.kanzexpo .btn.secondary.danger{color:#b42318;border-color:#b42318;background:transparent}
.body.kanzexpo .btn.secondary.danger:is(:hover,:focus-visible,:active){color:#922b25;border-color:#922b25;background:#fff0ee}
/* При фокусе второстепенная кнопка сохраняет контраст светлого текста. */
.body.kanzexpo .btn.secondary:not(.danger):focus-visible {
    border-color: var(--ink);
    background: var(--ink);
    color: #fff;
}
/* Действия удаления остаются контрастными на тёмной и цветной шапках редактора. */
.body.kanzexpo .btn.secondary.danger.article-delete-action {
    background: #fff;
    white-space: nowrap;
}
.body.kanzexpo .btn.secondary.danger.article-delete-action:is(:hover, :focus-visible, :active) {
    background: #fff0ee;
}
/* Фирменные стили обычных кнопок CMS, включая прежние имена классов.
   Низкая специфичность сохраняет компоновку и состояния компонентов.
   Псевдоэлементы нужны переключателям и спискам: не сбрасываем их глобально. */
body :where(button, .button, .button-2, .button-3, .button-4, input[type="submit"], input[type="button"], input[type="reset"]):not(:where(.cke *, .cke_dialog *)) { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: auto; margin: 0; padding: 10px 16px; border: 1px solid var(--site-control-ink); border-radius: 4px; background: transparent; color: var(--site-control-ink); font: inherit; font-size: var(--site-control-font-size); font-weight: 600; line-height: 1.5; letter-spacing: normal; text-transform: none; text-decoration: none; text-align: center; vertical-align: middle; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
body :where(button, .button, .button-2, .button-3, .button-4, input[type="submit"], input[type="button"], input[type="reset"]):where(:hover, :focus-visible, .cur):not(:where(.cke *, .cke_dialog *, :disabled)) { background: var(--site-control-ink); border-color: var(--site-control-ink); color: #fff; text-decoration: none; }
body :where(button, input[type="submit"], input[type="button"], input[type="reset"]):disabled { opacity: .55; cursor: not-allowed; }
/* Слой плавающих ссылок не позволяет им перекрывать соседние формы CMS. */
body :where(.button, .button-2, .button-3, .button-4) { position: relative; z-index: 1; }
/* Сохраняем контраст кнопок поверх общего цвета ссылок при наведении. */
.body.kanzexpo a.button { color: var(--site-control-ink); }
.body.kanzexpo a.button:where(:hover, :focus-visible, .cur) { color: #fff; }
.body.kanzexpo a:is(.button-2, .button-3, .button-4) { color: #fff; }
body :where(.button-3) { background: var(--site-control-focus); border-color: var(--site-control-focus); color: #fff; }
body :where(.button-3):where(:hover, :focus-visible, .cur) { background: #102e58; border-color: #102e58; color: #fff; }
body :where(.button-2) { background: transparent; border-color: #fff; color: #fff; }
body :where(.button-2):where(:hover, :focus-visible, .cur) { background: var(--site-control-focus); border-color: var(--site-control-focus); color: #fff; }
body :where(.button-4) { padding: 4px 8px; font-size: 12px; background: #b42318; border-color: #b42318; color: #fff; }
body :where(.button-4):where(:hover, :focus-visible, .cur) { background: #922b25; border-color: #922b25; color: #fff; }
body :where(.button-4.-act-1) { background: #2d7a48; border-color: #2d7a48; color: #fff; }
body :where(.button-4.-act-1):where(:hover, :focus-visible, .cur) { background: #23643b; border-color: #23643b; color: #fff; }
body :where(.button-4.-act-0) { background: var(--muted, #69716e); border-color: var(--muted, #69716e); color: #fff; }
body :where(.button-4.-act-0):where(:hover, :focus-visible, .cur) { background: #505954; border-color: #505954; color: #fff; }
body :where(.button-4.-act--1) { background: #8a5c12; border-color: #8a5c12; color: #fff; }
body :where(.button-4.-act--1):where(:hover, :focus-visible, .cur) { background: #70490d; border-color: #70490d; color: #fff; }
body :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"], select, textarea):not(.select2-offscreen):not(.site-select-source):not(.js-equipment-search):not(.header-search-input):not(.select2-input):not(.select2-focusser):not(.cke_dialog *):not([hidden]) { box-sizing: border-box; max-width: 100%; font-family: inherit; font-size: var(--site-control-font-size); line-height: 1.5; }
body :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"], select):not(.select2-offscreen):not(.site-select-source):not(.js-equipment-search):not(.header-search-input):not(.select2-input):not(.select2-focusser):not(.cke_dialog *):not([hidden]) { min-height: var(--site-control-height); }
body textarea:not(.cke_dialog *) { resize: vertical; }
/* Ползунки сохраняют штатное управление клавиатурой и общий акцентный цвет. */
body input[type="range"] { width: 100%; min-height: 20px; padding: 0; border: 0; background: transparent; accent-color: var(--site-control-focus); cursor: pointer; outline: 0 !important; box-shadow: none !important; }
body input[type="range"]:focus-visible { accent-color: #0f2f59; }
body input[type="range"]:disabled { opacity: .55; cursor: not-allowed; }
body :is(input, select, textarea):not(.select2-offscreen):not(.site-select-source):not(.js-equipment-search):not(.header-search-input):not(.select2-input):not(.cke_dialog *):disabled { cursor: not-allowed; }
/* Общее оформление действует и на уже инициализированные списки AJAX и тегов. */
body .select2-container:not(.cke_dialog *) { box-sizing: border-box; max-width: 100%; min-width: 0; margin: 0; border-radius: 0; color: var(--site-control-ink); font: inherit; text-align: left; }
body .select2-container.site-select { display: block; width: 100% !important; }
body .select2-container.site-select.site-select-inline { display: inline-block; width: var(--site-select-inline-width, auto) !important; vertical-align: middle; }
body .select2-container .select2-choice,
body .select2-container .select2-choices { box-sizing: border-box; width: 100%; font-family: inherit; font-size: var(--site-control-font-size); font-weight: 400; line-height: 1.5; text-decoration: none; filter: none; }
body .select2-container .select2-choice { display: flex; align-items: center; }
body .select2-container .select2-choice > .select2-chosen { display: block; width: 100%; min-width: 0; padding: 0; line-height: 1.5; text-overflow: ellipsis; }
body .select2-container .select2-choice .select2-arrow { display: flex; align-items: center; justify-content: center; top: 0; right: 13px; width: 14px; height: 100%; border-radius: 0; filter: none; }
body .select2-container .select2-choice .select2-arrow b { display: flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin: 0; padding: 0; transition: transform .18s ease; }
body .select2-container .select2-choice .select2-arrow b::before { content: '\f078'; display: block; font: normal normal normal 12px/1 FontAwesome; color: currentColor; }
body .select2-container.select2-dropdown-open .select2-choice .select2-arrow b { transform: rotate(180deg); }
/* Очистка и раскрытие списка занимают отдельные места на общей средней линии. */
body .select2-container .select2-choice > abbr.select2-search-choice-close {
    top: 50%;
    right: 36px;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 0;
    background: none !important;
    color: var(--muted, #69716e);
    font-size: 12px;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    transform: translateY(-50%);
}
body .select2-container .select2-choice > abbr.select2-search-choice-close::before {
    content: '\f00d';
    font: normal normal normal 12px/24px FontAwesome;
}
body .select2-container .select2-choice > abbr.select2-search-choice-close:is(:hover, :focus-visible) {
    background: none;
    color: var(--orange, #de632a);
}
body .select2-container .select2-choice > abbr.select2-search-choice-close:focus-visible {
    outline: 2px solid var(--site-control-focus);
    outline-offset: 1px;
    border-radius: 3px;
}
body .select2-container.select2-container-disabled > :is(.select2-choice, .select2-choices) { opacity: .6; cursor: not-allowed; }
body .select2-container .select2-choices { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; list-style: none; }
body .select2-container .select2-choices .select2-search-field { float: none; flex: 1 0 var(--site-picker-search-width, 24px); min-width: 0; max-width: 100%; margin: 0; padding: 0; }
/* Поиск делит строку с выбранными чипами. Прежнее правило полной ширины
   должно занимать свободное место, не создавая лишнюю строку. */
body .select2-container .select2-choices .select2-search-field input.select2-input { display: block; box-sizing: border-box; width: 100% !important; max-width: 100%; }
body .select2-container .select2-choices .select2-search-choice { float: none; margin: 0; padding: 4px 24px 4px 10px; border: 1px solid var(--site-control-line); border-radius: 4px; background: #edf2f8; color: var(--site-control-ink); box-shadow: none; font-size: var(--site-control-font-size); line-height: 1.5; }
body .select2-container .select2-choices .select2-search-choice .select2-search-choice-close { left: auto; right: 6px; top: 50%; margin: 0; transform: translateY(-50%); }
/* В flex-строке float не меняет компоновку, но сообщает jQuery UI о горизонтальных чипах. */
body .select2-container.site-select-sortable .select2-search-choice {
    float: left;
    cursor: grab;
}
body .select2-container.site-select-sortable .select2-search-choice.ui-sortable-helper {
    cursor: grabbing;
    opacity: .85;
}
body .select2-container.site-select-sortable .select2-search-choice:focus-visible {
    border-color: var(--site-control-focus);
    outline: 0;
    background: #fff;
}
body .select2-container.site-select-sortable .site-picker-sort-placeholder {
    box-sizing: border-box;
    flex: 0 0 auto;
    margin: 0;
    border: 2px dashed #c4a000;
    border-radius: 4px;
    /* Та же заметная жёлтая подсветка места вставки, что у страниц меню Expo. */
    background: #fff7c0;
    visibility: visible !important;
    opacity: 1;
    pointer-events: none;
}
body .select2-container.site-select-sortable.select2-container-disabled .select2-search-choice {
    cursor: not-allowed;
}
body .select2-container.visitor-city .select2-search-choice { padding: 4px 24px 4px 4px; border: 0; background: transparent; }
/* Оставляем место для курсора; длинный поисковый запрос переносится естественно. */
body .select2-container.visitor-city.select2-container-multi .select2-choices { flex-wrap: wrap; gap: 6px; }
body .select2-container.visitor-city .select2-choices .select2-search-choice { flex: 0 1 auto; min-width: 0; max-width: calc(100% - 30px); }
body .select2-container.visitor-city .select2-search-choice > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .select2-container.visitor-city .select2-choices .select2-search-field { flex: 1 0 var(--site-picker-search-width, 24px); }
/* Внутренний поиск — часть списка, без отдельной рамки поля. */
body .select2-container input.select2-input,
body .select2-container input.select2-focusser { font: inherit; }
body .select2-drop { box-sizing: border-box; max-width: calc(100vw - 24px); margin-top: 4px; padding: 4px; color: var(--site-control-ink); font-family: Manrope, Arial, sans-serif; font-size: var(--site-control-font-size); line-height: 1.5; }
body .select2-drop.select2-drop-above { margin-top: -4px; }
body .select2-drop .select2-results { max-height: 260px; margin: 0; padding: 0; }
/* Результаты выровнены с поиском; между полем и подсветкой остаётся воздух. */
body .select2-drop .select2-search:not(.select2-search-hidden) + .select2-results {
    margin: 6px 4px 0;
}
body .select2-drop .select2-results li { margin: 0; padding: 0; list-style: none; background-image: none; }
body .select2-drop .select2-results li::before { display: none; content: none; }
body .select2-drop .select2-result-label { min-height: 36px; padding: 9px 11px; border-radius: 4px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
body .select2-drop .select2-highlighted { border-radius: 4px; }
body .select2-drop .select2-disabled { background: var(--site-control-paper); color: var(--muted, #69716e); }
body .select2-drop .select2-results > :is(.select2-no-results, .select2-searching, .select2-ajax-error, .select2-selection-limit, .select2-more-results) { min-height: 36px; padding: 9px 11px; border-radius: 4px; background-color: var(--site-control-paper); color: var(--muted, #69716e); line-height: 1.5; }
body .select2-drop .select2-search input.select2-input { color: var(--site-control-ink); font: inherit; }
.expo-leads-select:has(.site-select) > .fa { display: none; }
/* Цвет состояния показывает, опубликована или скрыта страница. */
body .select2-container.page-state-select[data-state="active"] { --site-control-paper: #eaf4e8; --site-control-ink: #28653d; --site-control-line: #b8d5ba; }
body .select2-container.page-state-select[data-state="hidden"] { --site-control-paper: #edf2fa; --site-control-ink: #294f85; --site-control-line: #c3d1e5; }
body .select2-container.page-state-select[data-state="inactive"] { --site-control-paper: #f1f1ee; --site-control-ink: #656b68; --site-control-line: #d4d7d2; }

/* Поиск города: компоновка и подсказка без второй рамки элемента управления. */
.form .visitor-city.select2-container{font:inherit;font-size:14px;font-weight:600;min-width:0}
.form .visitor-city.select2-container-multi .select2-choices{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--paper);background-image:none;border-radius:3px;min-height:48px;padding:12px;box-shadow:none}
.form .visitor-city.select2-container-active .select2-choices,.form .visitor-city.select2-dropdown-open .select2-choices,.form .visitor-city:focus-within .select2-choices{border-color:var(--blue);background:#fff}
.form .visitor-city .select2-choices .select2-search-field{float:none;flex:1;min-width:0;margin:0;padding:0;line-height:inherit}
.form .visitor-city .select2-choices .select2-search-field input{display:block;width:100%!important;max-width:100%;border:0;outline:none;outline-offset:0;background:transparent;padding:0;border-radius:0;box-shadow:none;font:inherit;color:var(--ink);margin:0;height:auto;min-height:0;line-height:inherit}
.form .visitor-city .select2-choices .select2-search-field input:focus{background:transparent}
.form .visitor-city .select2-input::placeholder,.form .visitor-city .select2-default{color:var(--muted);opacity:1}
.form .visitor-city .select2-choices .select2-search-choice{float:none;flex:0 1 auto;min-width:0;max-width:100%;margin:0;background:var(--sage);border:0;border-radius:3px;box-shadow:none;color:var(--ink);font:inherit;line-height:inherit;padding:0 24px 0 8px}
/* Сохраняем штатный слой Select2 над его прозрачной маской закрытия. */
.visitor-city-drop{font-family:Manrope,Arial,sans-serif;font-size:14px}
.visitor-city-drop .select2-results .select2-highlighted{background:var(--blue)}
.form-position-field { display: grid; align-content: start; gap: 12px; min-width: 0; }
.form-position-field > label { margin: 0; }
[data-expo-position-other-group][hidden] { display: none !important; }
/* Общие подписи загрузчика не должны сливаться в одну строку. */
.media-tile__label { display: block; margin-bottom: 6px; font-weight: 600; }
.media-tile__hint { display: block; margin-bottom: 10px; color: var(--muted, #69716e); font-size: 13px; line-height: 1.5; }
body .form-field-error { display: block; margin-top: 9px; color: #b42318; font-size: 12px; font-weight: 400; line-height: 1.5; }
.check:has(> .form-field-error) { flex-wrap: wrap; }
.check > .form-field-error { flex-basis: 100%; }
/* Своя должность занимает отдельную строку; список остаётся слева. */
.form-grid > .form-position-field:has(> [data-expo-position-other-group]:not([hidden])) { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
@media (max-width: 640px) {
 .form-grid > .form-position-field:has(> [data-expo-position-other-group]:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
}

/* Прежний список CMS сохраняет множественный выбор, ограничения и колонки. */
.-select { 
	position: relative; 
	display: inline-block;
	background: #fff;
	border: 1px solid #E5E5E5; 
	outline: none;
	box-shadow: 0 3px 90px 0 rgba(0,0,0,0.09);
	width: 100%; 
	cursor: pointer; 
	font-size: 12px;
	line-height: 16px;
	text-align: left;
}
.-select:before { content: ''; display: block; width: 100%; height: 5px; bottom:-5px; position: absolute; z-index: 1; }
.-select.-selected { background: #ed7001; color: #fff; }
.-select > b { 
	display: block; 
	font-weight: normal; 
	white-space: nowrap; 
	overflow: hidden; 
	text-overflow: ellipsis; 
	height: 32px; 
	line-height: 32px; 
	padding: 0 32px  0 16px; 
}
.-select.-selected.-multi > b, .-select.-selected.-minmax > b { padding-right: 58px; }
.-select > i { 
	position: absolute; 
	top:0; 
	right: 0; 
	font-size: 20px; 
	cursor: pointer; 
	height: 32px; 
	line-height: 32px; 
	width: 30px; 
	text-align: center; 
}
.-select.hover > i { transform: rotate(180deg); }
.-select > span {
	position: absolute;
	top:0; 
	right: 30px; 
	font-size: 16px; 
	cursor: pointer; 
	height: 32px; 
	line-height: 32px; 
	width: 20px; 
	text-align: center;
	color: #fff;
	display: none;
}
.-select > span:hover { transform: rotate(360deg); color: #F9CDD0; }
.-select.-selected.-multi > span, .-select.-selected.-minmax > span { display: block; }
.-select > ul, .-select > div { 
	max-height: 0; 
	opacity: 0; 
	position: absolute; 
	z-index: 2; 
	top: 35px; 
	list-style: none; 
	padding: 0; 
	margin: 0; 
	border: 1px solid #E5E5E5;
	box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
	overflow: hidden; 
	min-width: 150px;
	width: 100%;
	margin-top: 2px; 
	background: #fff; 
	color: #222222;
}
.-select.-row-2 > ul { min-width: 300px; }
.-select.-row-3 > ul { min-width: 450px; }
.-select.-row-4 > ul { min-width: 600px; }
.-select.-row-5 > ul { min-width: 750px; }
.-select > ul > li { margin: 0; padding: 9px 15px; white-space: nowrap; display: inline-block; width: 100%; vertical-align: top; }
.-select.-multi > ul > li.-i-0 { display: none; }
.-select.-row-2 > ul > li { width: 50%; }
.-select.-row-3 > ul > li { width: calc(100% / 3); }
.-select.-row-4 > ul > li { width: 25%; }
.-select.-row-5 > ul > li { width: 20%; }
.-select > ul > li:first-child { font-weight: bold; }
.-select > ul > li:hover, .-select > ul > li.cur { background: #ed7001; color:#fff; }
.-select.hover > ul, .-select.hover > div { max-height: 2000px; opacity: 1; }

.-select.-multi > ul > li:before {
	content: "\f096";
	display: inline-block;
	font: normal normal normal 14px/1 FontAwesome;
	text-rendering: auto;
	vertical-align: bottom;
	line-height: inherit;
	font-size: 18px;
	margin-right: 10px;
	color: #C00510;
}
.-select.-multi > ul > li.cur:before { content: "\f14a"; color: #fff; }
.-select.-multi > ul > li:hover:before { color: #fff; }

.-select > div { padding: 0 8px; }
.-select > div > label { display: block; margin: 5px 0; }
.-select > div > label > span { display: inline-block; padding-bottom: 2px; width: 30px; text-align: right; padding-right: 5px; }
.-select > div > label > input { display: inline-block; width: calc(100% - 30px); padding: 4px 8px; }
.-select > div > button { width: 100%; padding: 0 3px; margin: 8px 0; line-height: 30px; height: 30px; font-size: 12px; }


body .-select {font:inherit;font-size:var(--site-control-font-size);border-radius:var(--site-control-radius);box-shadow:none;background:var(--site-control-paper);color:var(--site-control-ink)}
body .-select > b {height:var(--site-control-height);line-height:var(--site-control-height);padding-left:12px}
body .-select > i {height:var(--site-control-height);line-height:var(--site-control-height);right:8px;width:22px;font-size:12px}
body .-select > ul, body .-select > div {top:calc(100% + 2px);border:1px solid var(--site-control-focus);border-radius:6px;box-shadow:none}
body .-select.-selected, body .-select > ul > li:hover, body .-select > ul > li.cur {background:var(--site-control-focus);color:#fff}

/* Сохраняем прежние классы списков и переключателей для обработчиков CMS. */
body .cselect { position: relative; min-width: 0; }
body .cselect .cselect__btn { box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: var(--site-control-height); height: var(--site-control-height); padding: 10px 14px 10px 12px; font-family: inherit; font-size: var(--site-control-font-size); font-weight: 500; line-height: 1.5; text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; cursor: pointer; transform: none; }
body .cselect .cselect__btn::before { content: none; display: none; }
body .cselect .cselect__btn::after { content: '\f078'; display: block; position: static; flex: 0 0 auto; width: 14px; height: 14px; margin: 0; border: 0; background: none; color: currentColor; font: normal normal normal 12px/14px FontAwesome; text-align: center; transform: none; transition: transform .18s ease; }
body .cselect.is-open .cselect__btn::after { transform: rotate(180deg); }
body .cselect .cselect__list { box-sizing: border-box; position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; max-height: 260px; overflow: auto; margin: 0; padding: 4px; border: 1px solid var(--site-control-focus); border-radius: var(--site-control-radius); background: #fff; color: var(--site-control-ink); font-family: inherit; font-size: var(--site-control-font-size); line-height: 1.5; list-style: none; box-shadow: none; }
body .cselect .cselect__list[hidden] { display: none !important; }
body .cselect .cselect__list li { min-height: 36px; margin: 0; padding: 9px 11px; border-radius: 4px; background-image: none; color: inherit; font: inherit; line-height: 1.4; overflow-wrap: anywhere; cursor: pointer; }
body .cselect .cselect__list li::before { content: none; display: none; }
body .cselect .cselect__list li:hover { background: var(--site-control-paper); }
body .cselect .cselect__list li.is-on { background: var(--site-control-focus); color: #fff; }
body button.toggle { box-sizing: border-box; position: relative; display: inline-block; flex: 0 0 auto; width: 36px; min-width: 36px; max-width: 36px; height: 20px; min-height: 20px; margin: 0; padding: 0; border: 0; border-radius: 999px; appearance: none; background: #bcc2bd; cursor: pointer; line-height: 1; text-transform: none; letter-spacing: 0; vertical-align: middle; transform: none; transition: background-color .15s ease; }
body button.toggle::before { content: none; display: none; }
body button.toggle::after { content: ''; display: block; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; margin: 0; border: 0; border-radius: 50%; background: #fff; transform: none; transition: transform .15s ease; }
body button.toggle.is-on::after { transform: translateX(16px); }
body button.toggle:disabled { opacity: .55; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { body .cselect .cselect__btn::after, body button.toggle, body button.toggle::after { transition: none; } }

/* Этот слой перекрывает прежние правила модулей с !important.
   Он меняет оформление полей и внутреннего поиска; компоновка задана выше. */
@layer site-form-policy {
    body input:is([type="checkbox"], [type="radio"]):not(.cke_dialog *):not(.site-switch__input) { box-sizing: border-box; width: 17px !important; min-width: 17px !important; max-width: 17px !important; height: 17px !important; min-height: 17px !important; max-height: 17px !important; flex: 0 0 17px; margin: 0; padding: 0 !important; appearance: auto !important; -webkit-appearance: auto !important; accent-color: var(--site-control-focus); vertical-align: middle; cursor: pointer; outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; }
    body input:is([type="checkbox"], [type="radio"]):not(.cke_dialog *):not(.site-switch__input):focus-visible { accent-color: #0f2f59; filter: brightness(.85); outline: 0 !important; box-shadow: none !important; }
    body input:is([type="checkbox"], [type="radio"]):not(.cke_dialog *):not(.site-switch__input):disabled { cursor: not-allowed; opacity: .55; }
    body .cselect .cselect__btn { height: var(--site-control-height) !important; min-height: var(--site-control-height) !important; padding: 10px 14px 10px 12px !important; border: 1px solid var(--site-control-line) !important; border-radius: var(--site-control-radius) !important; background: var(--site-control-paper) !important; color: var(--site-control-ink) !important; font-size: var(--site-control-font-size) !important; font-weight: 500 !important; line-height: 1.5 !important; text-transform: none !important; letter-spacing: 0 !important; transform: none !important; outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; }
    body .cselect .cselect__btn:is(:hover, :focus, :focus-visible), body .cselect.is-open .cselect__btn { border-color: var(--site-control-focus) !important; background: #fff !important; color: var(--site-control-ink) !important; transform: none !important; outline: 0 !important; box-shadow: none !important; }
    body .cselect .cselect__btn::before, body button.toggle::before { content: none !important; display: none !important; }
    body button.toggle { width: 36px !important; min-width: 36px !important; max-width: 36px !important; height: 20px !important; min-height: 20px !important; max-height: 20px !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: #bcc2bd !important; transform: none !important; text-transform: none !important; letter-spacing: 0 !important; outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; }
    body button.toggle.is-on { background: var(--ea-ok, var(--ok, #2d7b48)) !important; }
    body button.toggle:not(.is-on):is(:hover, :focus-visible) { background: #919b93 !important; }
    body button.toggle.is-on:is(:hover, :focus-visible) { background: #23643b !important; }
    body :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"], select:not([multiple]):not([size]), select[size="1"]):not(.select2-offscreen):not(.site-select-source):not(.js-equipment-search):not(.header-search-input):not(.select2-input):not(.select2-focusser):not(.cke_dialog *):not([hidden]) { height: var(--site-control-height) !important; min-height: var(--site-control-height) !important; }
    /* Единственная рамка принадлежит обёртке поиска; внутреннее поле её не добавляет. */
    body :is(.js-equipment-search, .header-search-input) { outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; }
    body :is(.catalog-tools .search, .header-search):focus-within { border-color: var(--site-control-focus) !important; }
    body input[type="file"] { max-width: 100%; font-family: inherit; font-size: var(--site-control-font-size); outline: 0 !important; box-shadow: none !important; }
    body input[type="file"]::file-selector-button { padding: 9px 12px; border: 1px solid var(--site-control-line) !important; border-radius: var(--site-control-radius) !important; background: var(--site-control-paper) !important; color: var(--site-control-ink) !important; font: inherit; cursor: pointer; }
    body input[type="file"]:focus-visible::file-selector-button { border-color: var(--site-control-focus) !important; background: #fff !important; }
    body :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"], select, textarea):not(.select2-offscreen):not(.site-select-source):not(.js-equipment-search):not(.header-search-input):not(.select2-input):not(.select2-focusser):not(.cke_dialog *):not([hidden]) { border: 1px solid var(--site-control-line) !important; border-radius: var(--site-control-radius) !important; background: var(--site-control-paper) !important; color: var(--site-control-ink) !important; padding: 10px 12px !important; outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; }
    body :is(input, select, textarea):not(.select2-offscreen):not(.site-select-source):not(.js-equipment-search):not(.header-search-input):not(.select2-input):not(.select2-focusser):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not(.cke_dialog *):not([aria-invalid="true"]):not(.is-invalid):is(:focus, :focus-visible) { border-color: var(--site-control-focus) !important; background: var(--site-control-focus-paper, #fff) !important; outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; }
    body :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"], select, textarea):not(.select2-offscreen):not(.site-select-source):not(.js-equipment-search):not(.header-search-input):not(.select2-input):not(.select2-focusser):not(.cke_dialog *):not([hidden]):disabled { color: var(--muted, #69716e) !important; }
    body :is(input:not([type]), input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="url"], input[type="search"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"], select, textarea):not(.select2-offscreen):not(.site-select-source):not(.js-equipment-search):not(.header-search-input):not(.select2-input):not(.select2-focusser):not(.cke_dialog *):not([hidden]):is([aria-invalid="true"], .is-invalid) { border-color: #b42318 !important; }
    /* Общее оформление действует и на уже инициализированные списки AJAX и тегов. */
body .select2-container:not(.cke_dialog *) { border: 0 !important; background: none !important; outline: 0 !important; box-shadow: none !important; }
    body .select2-container .select2-choice,
body .select2-container .select2-choices { min-height: var(--site-control-height) !important; margin: 0 !important; border: 1px solid var(--site-control-line) !important; border-radius: var(--site-control-radius) !important; background: var(--site-control-paper) !important; background-image: none !important; color: var(--site-control-ink) !important; outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; }
    body .select2-container .select2-choice { height: var(--site-control-height) !important; padding: 10px 40px 10px 12px !important; }
    body .select2-container.select2-allowclear .select2-choice { padding-right: 72px !important; }
    body .select2-container .select2-choice > .select2-chosen { margin: 0 !important; }
    body .select2-container .select2-choice .select2-arrow { border: 0 !important; background: none !important; }
    body .select2-container .select2-choice .select2-arrow b { background: none !important; background-image: none !important; background-size: auto !important; }
    body .select2-container:is(.select2-container-active, .select2-dropdown-open) > :is(.select2-choice, .select2-choices),
body .select2-container > :is(.select2-choice, .select2-choices):hover { border-color: var(--site-control-focus) !important; background: #fff !important; outline: 0 !important; box-shadow: none !important; }
    body .select2-container[aria-invalid="true"] > :is(.select2-choice, .select2-choices) { border-color: #b42318 !important; }
    body .select2-container .select2-choices { height: auto !important; padding: 5px 8px !important; }
    /* Внутренний поиск — часть списка, без отдельной рамки поля. */
body .select2-container input.select2-input,
body .select2-container input.select2-focusser { min-height: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 4px !important; color: var(--site-control-ink) !important; outline: 0 !important; box-shadow: none !important; }
    body .select2-drop { border: 1px solid var(--site-control-focus) !important; border-radius: var(--site-control-radius) !important; background: #fff !important; background-image: none !important; box-shadow: none !important; }
    body .select2-drop.select2-drop-above { border-radius: var(--site-control-radius) !important; }
    body .select2-drop .select2-highlighted { background: var(--site-control-focus) !important; color: #fff !important; }
    body .select2-drop .select2-search input.select2-input { min-height: 36px !important; padding: 7px 10px !important; border: 1px solid var(--site-control-line) !important; border-radius: 4px !important; background: var(--site-control-paper) !important; background-image: none !important; outline: 0 !important; box-shadow: none !important; }
    body .select2-drop .select2-search input.select2-input:focus { border-color: var(--site-control-focus) !important; }
    /* Перекрываем прежние ширины и отступы с !important, сохраняя POST исходных полей. */
body .select2-offscreen,
body .select2-container input.select2-focusser.select2-offscreen { position: absolute !important; left: 0 !important; top: 0 !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px !important; min-height: 0 !important; max-height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; overflow: hidden !important; }
    /* У прежних списков сохраняются существующие прикладные обработчики. */
body .body.kanzexpo :is(.-select, .cselect__btn) { border: 1px solid var(--site-control-line) !important; border-radius: var(--site-control-radius) !important; background: var(--site-control-paper) !important; color: var(--site-control-ink) !important; box-shadow: none !important; outline: 0 !important; }
    body .body.kanzexpo :is(.-select, .cselect__btn):is(:focus, :focus-visible),
body .body.kanzexpo .cselect.is-open .cselect__btn { border-color: var(--site-control-focus) !important; background: #fff !important; outline: 0 !important; box-shadow: none !important; }
    body select.site-select-source { display: block !important; position: absolute !important; left: 0 !important; top: 0 !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px !important; min-height: 0 !important; max-height: 1px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; overflow: hidden !important; }
}

/* Компактные действия в таблицах и редакторах используют общие состояния .btn. */
.body.kanzexpo .btn.btn--compact {
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}
/* Уменьшенный вариант компактных действий для плотных списков. */
.body.kanzexpo .btn.btn--compact.btn--small {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
}
/* Нативный переключатель для сохраняемых форм: значение передаёт сам checkbox. */
.body.kanzexpo .site-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--site-control-ink);
    font-size: var(--site-control-font-size);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
}
.body.kanzexpo input[type="checkbox"].site-switch__input {
    position: relative;
    display: inline-block;
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 999px;
    appearance: none;
    background: #b9c1bc;
    cursor: pointer;
}
.body.kanzexpo .site-switch__input::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .15s ease;
}
.body.kanzexpo input[type="checkbox"].site-switch__input:checked {
    background: var(--ok, #2d7b48);
}
.body.kanzexpo .site-switch__input:checked::after {
    transform: translateX(16px);
}
.body.kanzexpo .site-switch__input:focus-visible {
    box-shadow: inset 0 0 0 2px var(--site-control-focus);
}
@media (prefers-reduced-motion: reduce) {
    .body.kanzexpo .site-switch__input::after {
        transition: none;
    }
}
/* Ссылки согласий различимы без добавления inline-стилей к сохранённому HTML. */
.form-consent__text a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Кнопка выбора в прежнем загрузчике использует общую палитру кнопок сайта. */
.body.kanzexpo .qq-upload-button {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.body.kanzexpo .qq-upload-button-hover,
.body.kanzexpo .qq-upload-button:hover {
    background: #102e58;
    border-color: #102e58;
    color: #fff;
}
