﻿/* =========== © 2024 Centroarts.com =========== */

@media (prefers-reduced-motion: no-preference) {
	:root { scroll-behavior: smooth; }
}

html.load * { transition: none !important; }

*, *::before, *::after { box-sizing: border-box; }
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; -webkit-tap-highlight-color: transparent; }

[tabindex="-1"]:focus { outline: 0 !important; }

hr { margin: 24px 0; color: inherit; border: 0; border-top: 1px solid; opacity: 0.1; }

h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; }
p { margin-top: 0; margin-bottom: 1.5em; }
p > br:first-child { display: none; }

abbr[title] {
	-webkit-text-decoration: underline dotted; text-decoration: underline dotted;
	cursor: help; -webkit-text-decoration-skip-ink: none; text-decoration-skip-ink: none;
}

address { margin-bottom: 1rem; font-style: normal; line-height: inherit; }
ol, ul, dl { list-style: none; padding: 0; margin: 0; }
ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; }
dt { font-weight: 700; }
dd { margin-bottom: .5rem; margin-left: 0; }
blockquote { margin: 0 0 1rem; }
b, strong { font-weight: bold; }
small, .small { font-size: .875em; }

sub, sup { position: relative; font-size: .75em; line-height: 0; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }

a:not([href]):not([class]), a:not([href]):not([class]):hover { color: inherit; text-decoration: none; }

pre, code, kbd, samp { font-family: var(--ft-mono); font-size: 1em; }
pre { margin-top: 0; margin-bottom: 1rem; overflow: auto; }
a > code { color: inherit; }

figure { margin: 0 0 1rem; }
img { vertical-align: middle; border-style: none; }
svg { overflow: hidden; vertical-align: middle; }

form { margin: 0; }
table { border-collapse: collapse; }
caption { padding-top: 0.75rem; padding-bottom: 0.75rem; color: #99999e; text-align: left; caption-side: bottom; }
th { text-align: inherit; }
label { display: inline-block; margin-bottom: 0.5rem; }
button { border-radius: 0; }
button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; }
input, button, select, optgroup, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit;  }
button, input { overflow: visible; }
button, select { text-transform: none; }
select { word-wrap: normal; }
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; outline: none !important; }
button:not(:disabled),[type="button"]:not(:disabled),[type="reset"]:not(:disabled),[type="submit"]:not(:disabled) { cursor: pointer;}
button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner { padding: 0; border-style: none; }
input[type="radio"],
input[type="checkbox"] { box-sizing: border-box; -webkit-box-sizing: border-box; padding: 0; }
textarea { resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: .5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal;}
progress { vertical-align: baseline; }
[type="search"] { outline-offset: -2px; -webkit-appearance: textfield; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; }
::-webkit-color-swatch-wrapper { padding: 0; }
::file-selector-button { font: inherit; -webkit-appearance: button; }

output { display: inline-block; }
summary { display: list-item; cursor: pointer; }
template { display: none; }
[hidden] { display: none !important; }

body, html { scrollbar-gutter: stable; }
body {
	font: normal var(--body-font-size)/var(--body-lineheight) var(--body-font);
	background-color: var(--body-bg-color);
	color: var(--text-color); text-rendering: optimizeLegibility;
	min-width: 320px; min-height: 100vh; margin: 0;
	display: flex; flex-direction: column;
}

a { color: var(--link-color); outline: none !important; text-decoration: none; }
a:hover { color: var(--link-hover-color); text-decoration: underline; }

.c-primary { color: var(--primary-color) !important; }
.c-dark { color: var(--text-color) !important; }
.c-muted { color: var(--text-muted-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-grey { background-color: var(--grey-bg) !important; }
.bg-dark { color: var(--dark-color-text); background-color: var(--dark-bg) !important; }
.bg-dark a { color: inherit; }

.muted { opacity: .7; }

.ic { display: block; fill: currentColor; }

.cover { background-position: 50% 50%; background-repeat: no-repeat; background-size: cover; }
.fit-cover { position: relative; display: flex; overflow: hidden; flex-direction: column; flex-grow: 1; }
.fit-cover img {
	position: absolute; top: 0; left: 50%; display: block;
	min-width: calc(100% + 1px); width: auto; height: 100%; transform: translateX(-50%);
	object-fit: cover; object-position: center center;
	-o-object-position: center center; -o-object-fit: cover;
}

/* --- FORMS --- */
.form-group + .form-group { margin-top: 20px; }
.form-group > label, .label-group { font-size: 14px; line-height: 20px; margin-bottom: 8px; display: block; }

@media (min-width: 992px) {
	.form-group-combo { display: flex; flex-wrap: wrap; }
	.form-group-combo .form-group { flex: 1; }
	.form-group-combo .form-group + .form-group { margin-left: 16px; margin-top: 0; }
}

.label-group { display: flex; }
.label-group-title { margin-bottom: 0; }
.label-group-info { margin-left: auto; padding-left: 8px; font-weight: bold; }

select, textarea, input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not(.dpm-search) {
	display: inline-block; width: 100%; height: 48px; line-height: 24px; font-size: var(--field-font-size); background-clip: padding-box;
	padding: 11px 15px; background-color: transparent !important; border: 1px solid rgba(var(--text-color-rgb),0.15); border-radius: var(--field-radius);
	outline: none !important; transition: background-color .2s ease, border-color .2s ease; color: inherit;
}
select:focus, textarea:focus, input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):focus { border-color: rgba(var(--text-color-rgb),0.3); }
textarea { margin: 0; overflow: auto; vertical-align: top; resize: vertical; }
input[type="radio"], input[type="checkbox"] { line-height: normal; margin: -2px 6px 0 0; vertical-align: middle; }
input[type="file"], input[type="image"],
input[type="submit"], input[type="reset"],
input[type="button"], input[type="radio"],
input[type="checkbox"] { width: auto; }
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
select[multiple], select { -webkit-appearance: none; appearance: none; }
select[multiple], select[size], textarea { height: auto; }
::-moz-placeholder, :-moz-placeholder, ::-webkit-input-placeholder { opacity: 0.6; }
select[multiple] { width: 100% !important; }
select:not([multiple]) {
	padding-right: 2rem;
	background-position: calc(100% - 6px) 50%; background-size: 24px 24px; background-repeat: no-repeat;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237E7E7E' style='opacity: 0.7' d='m16.59,8.59l-4.59,4.58-4.59-4.58-1.41,1.41,6,6,6-6-1.41-1.41Z'/%3E%3C/svg%3E");
}

input:focus { outline: none;  }
input[type="file"], input[type="image"] { padding: 12px 0 0 0; border-width: 0; background: none; box-shadow: none; }

/*---Дополнительные поля---*/
.xfields textarea, .xprofile textarea { width: 100%; height: 186px; margin-top: 5px; }
.xfieldsnote { color: #838383; font-size: .9em; }
.xfields_table td { vertical-align: top; }
.xfieldsrow { padding-top: 12px; clear: both; }
.xfieldscolleft { font-size: var(--fs-sm); margin-bottom: 8px; }

.xfieldsrow { margin-top: 12px; }
.xfieldsrow > b { display: block; font-size: var(--fs-md); }
.xfieldsrow > b + .bb-editor { margin-top: 8px; }

/* --- Поля форм --- */
table.xfields input { width: 100%; }
table.xfields tr > td:first-child { padding-right: 10px; }

/* - Buttons - */
.btn-reset { border: 0 none !important; background: none !important; padding: 0; color: inherit; }
.btn, .bbcodes, .ui-dialog-buttonpane .ui-button, .checkbox-btn-label {
	height: 48px; line-height: 24px; padding: 12px 16px; border-radius: var(--btn-radius); font-size: var(--btn-font-size);
	white-space: nowrap; text-align: center; display: block; font-weight: bold;
	cursor: pointer; outline: none; text-decoration: none !important; background: none; border: 0 none;
	transition: background-color .2s ease, transform .2s ease;
}

.bbcodes { box-shadow: inset 0 0 0 1px rgba(var(--primary-color-rgb), 0.2); color: var(--btn-tone-color); }
.bbcodes:hover { box-shadow: inset 0 0 0 1px rgba(var(--primary-color-rgb), 0.4); color: var(--primary-color) !important; }
.bbcodes:active { box-shadow: inset 0 0 0 2px rgba(var(--primary-color-rgb), 0.6); }

/* - BTNS - */
.btn-fill, .bbcodes.applychanges, .ui-dialog-buttonpane .ui-button {
	background-color: var(--btn-fill-color); color: var(--btn-fill-text-color) !important;
}
.btn-fill:hover, .bbcodes.applychanges:hover, .ui-dialog-buttonpane .ui-button:hover { background-color: var(--btn-fill-hover-color); }
.btn-fill:active, .bbcodes.applychanges:active,
.btn-tone:active, .bbcodes.cancelchanges:active,
.ui-dialog-buttonpane .ui-button:active { transform: scale(0.97); }

.btn-tone, .bbcodes.cancelchanges { box-shadow: none; background-color: rgba(var(--btn-tone-color-rgb), 0.1); color: var(--btn-tone-color) !important; }
.btn-tone:hover, .bbcodes.cancelchanges:hover { background-color: rgba(var(--btn-tone-color-rgb), 0.2); }

.bbcodes.applychanges { box-shadow: none !important; }

.btn-group, .btn-group-wide { display: flex; flex-wrap: wrap; margin-top: 24px; }
.btn-group .btn-block, .btn-group-wide .btn { flex: 1; }
.btn-group-wide .btn-block { flex: 0 0 100% !important; }
.btn-group-wide .btn-block + .btn-block { margin-top: 8px !important; margin-left: 0 !important; }
.btn-group .btn + .btn, .btn-group .btn-block + .btn-block, .btn-group-wide .btn + .btn { margin-left: 8px; }

.btn-group-right { justify-content: flex-end; }

@media (max-width: 575px) {
	.btn-group-wide .btn { flex: 1; }
	.btn-group .btn-block { flex: 0 0 100%; }
	.btn-group .btn-block + .btn-block { margin-top: 8px; margin-left: 0; }
}

/* - Checkbox - */
.checkbox { display: inline-block; vertical-align: middle; margin: 0; position: relative; color: var(--text-color); cursor: pointer; }
.checkbox, .checkbox-mark { width: 24px; height: 24px; }
.checkbox > input, .checkbox-mark svg { position: absolute; top: 0; left: 0; opacity: 0; }
.checkbox-mark { display: block; padding: 3px; position: relative; }
.checkbox-mark::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 4px; background-color: var(--text-color); opacity: .2; }
.checkbox-mark svg { width: 100%; height: 100%; }
.checkbox-mark::after, .checkbox-mark svg { transition: var(--opacity-animation); }

.checkbox:hover .checkbox-mark::after { opacity: .3; }
.checkbox > input:checked ~ .checkbox-mark::after { opacity: 0; }
.checkbox > input:checked ~ .checkbox-mark svg { opacity: 1; }

.checkbox-btn { position: relative; font-size: var(--fs-sm); }
.checkbox-btn > input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.checkbox-btn-label {
	margin: 0; background-color: transparent; box-shadow: inset 0 0 0 1px rgba(var(--btn-tone-color-rgb), 0.1);
	color: var(--btn-tone-color); font-weight: normal; font-size: inherit;
	transition: background-color .2s ease, box-shadow .2s ease;
}
.checkbox-btn-label:hover { box-shadow: inset 0 0 0 1px rgba(var(--btn-tone-color-rgb), 0.2); }

.checkbtn-off { display: inline; }
.checkbtn-on { display: none; }

.checkbox-btn > input:checked + .checkbox-btn-label { background-color: rgba(var(--btn-tone-color-rgb), 0.1); box-shadow: none; }
.checkbox-btn > input:checked + .checkbox-btn-label .checkbtn-off { display: none !important; }
.checkbox-btn > input:checked + .checkbox-btn-label .checkbtn-on { display: inline !important; }

/* --- Стандартное поле загрузки файлов --- */
.file-attachment { position: relative; }
.file-attachment > input { opacity: 0; position: absolute; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; cursor: pointer;  }
.file-attachment > label {
	display: flex; flex-wrap: wrap; align-items: center; cursor: pointer;
	border-radius: var(--field-radius); margin: 0; padding: 11px; line-height: 20px;
	border: 1px dashed rgba(var(--text-color-rgb), 0.2);
	transition: background-color .2s ease;
}
.file-attachment > label * { pointer-events: none; }
.file-attachment > label > svg { width: 24px; height: 24px; margin-right: 8px; }
.fileadd-name {  font-weight: bold; text-transform: uppercase; font-size: 12px; }
.file-name { font-size: 12px; }
.file-name:empty { display: none; }

@media (min-width: 440px) {
	.file-name { margin-left: auto; }
}
@media (max-width: 439px) {
	.file-name { margin-top: 4px; width: 100%; }
}

/* - PC / Mobile - */
@media (max-width: 991px) {
	.only-pc { display: none !important; }
	.only-mobile { display: var(--display, block); }
}
@media (min-width: 992px) {
	.only-pc { display: var(--display, block); }
	.only-mobile { display: none !important; }
}

/* - Visability - */
.cv-auto { content-visibility: auto; }

.w-100 { width: 100%; }
.circle { border-radius: 50%; }
.dashed { position: relative; display: inline-block; }
.dashed::after { content: ""; position: absolute; left: 0; top: 100%; width: 100%; height: 0; border-top: 1px dashed #9D9FA4; }

.truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uppercase { text-transform: uppercase; }
.text-wrap { white-space: normal !important; }
.text-nowrap { white-space: nowrap !important; }
.fw-b { font-weight: bold; }
.fw-n { font-weight: normal; }
.lh-norm { line-height: normal; }
.f-right { float: right; }
.f-left { float: left; }
.ww-break-word { word-wrap: break-word; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.t-left { text-align: left !important; }
.t-center { text-align: center !important; }
.t-right { text-align: right !important; }

/* Headings */
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5 { font-weight:bold; line-height: 1.3em; }
h1, .h1 { font-size: 1.777777em; }
h2, .h2 { font-size: 1.333333em; }
h3, .h3 { font-size: 1.111111em; }
h4, .h4 { font-size: 1em; }
h5, .h5 { font-size: .777777em; text-transform: uppercase; }

@media (min-width: 992px) {
	h2, .h2 { font-size: 1.555555em; }
	h3, .h3 { font-size: 1.333333em; }
}

/* - Загрузчик AJAX - */
#loading-layer {
	display: block !important;
	background-color: rgba(0,0,0,.6); z-index: 9999 !important;
	position: fixed; top: 0; left: 0; right: 0; bottom: 0; text-indent: -9999px;
	overflow: hidden; white-space: nowrap;
}
#loading-layer:before, #loading-layer:after {
	content: ""; width: 64px; height: 64px; position: absolute; left: 50%; top: 50%;
	margin-left: -32px; margin-top: -32px;
}
#loading-layer:before { border: 4px solid #ffffff; border-radius: 50%; opacity: .2; }
#loading-layer:after {
	background-repeat: no-repeat;
	background-position: 50% 50%; background-size: 100% 100%;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23ffffff' d='M4,16.5c2.8-5.1,6.9-9.2,11.7-12C20.6,1.6,26.2,0,32,0v4c-5.1,0-10,1.4-14.2,3.9C13.6,10.4,10,14,7.5,18.4L4,16.5z'/%3E%3C/svg%3E");
}
#loading-layer:after { animation: load_rotate .6s infinite linear; }
@keyframes load_rotate { 100% { transform:rotate(360deg); } }

/* - Alert - */
.alert { padding: 20px 0; background-color: rgba(var(--alert-bg-rgb),0.1); }
.alert-in { font-size: var(--fs-sm); }
.alert-icon {
	width: 48px; height: 48px; margin-right: 16px; padding: 12px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	box-shadow: inset 0 0 0 2px rgba(var(--alert-bg-rgb),0.2); color: var(--alert-bg);
}
.alert-title { font-weight: bold; margin-bottom: 4px; font-size: var(--fs-md); line-height: 1.3; }

@media (max-width: 767px) {
	.alert-icon { margin-left: auto; margin-right: auto; display: block; margin-bottom: 8px; }
	.alert-in { text-align: center; }
}
@media (min-width: 768px) {
	.alert-in { display: flex; align-items: center; }
}

/* FancyBox */
html.with-fancybox body.hide-scrollbar { margin-right: 0 !important; }
@media (min-width: 992px) {
	.fancybox__container { right: var(--fancybox-scrollbar-compensate); }
}

/* - Modules - */
/* Titles */
.title { line-height: var(--title-lh); font-size: var(--title-fs); font-weight: bold; /* hyphens: auto; */ word-wrap: break-word; }

.heading { font-size: var(--fs-xl); font-weight: bold; line-height: 1.25; margin: 0 0 16px 0; }
@media (min-width: 576px) {
	.heading { font-size: var(--fs-xxl); margin: 0 0 20px 0; }
}

.sep-title { display: flex; justify-content: center; }
.sep-title > span {
	height: 36px; padding: 8px 16px; line-height: 20px; border-radius: 18px; font-weight: bold;
	font-size: var(--fs-sm); color: rgba(var(--text-color-rgb),0.7); box-shadow: inset 0 0 0 1px rgba(var(--text-color-rgb),0.1);
}
@media (max-width: 575px) {
	.sep-title { padding: 20px; }
}

/* ITEMS */
.item { position: relative; }
.item-link { text-decoration: none !important; }
.item-link::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%; }

/* Banner Blocks */
.banner-block { text-align: center; }
.banner-block img { max-width: 100%; vertical-align: top; }

/* - Modal - */
.modal {
	--drop-color: var(--drop-light-color);
	--drop-color-rgb: var(--drop-light-color-rgb);
	--drop-text-color: var(--text-color);
	--drop-gap: 32px;
}
.modal.dark, .dark .modal {
	--drop-color: var(--drop-dark-color);
	--drop-color-rgb: var(--drop-dark-color-rgb);
}
.modal {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1050; display: none; outline: 0;
	overflow: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal-box {
	position: relative; z-index: 1051; width: 100%; max-width: var(--drop-maxwidth);
	outline: 0; transform: scale(0.95); opacity: 0; pointer-events: auto;
	border-radius: var(--drop-radius); background-color: var(--drop-color); box-shadow: var(--drop-shadow);
	transition: opacity .2s ease, transform .2s ease;
	color: var(--drop-text-color);
}
.modal-head { height: 0; display: flex; justify-content: flex-end; }
.modal-cont { padding: var(--drop-gap); }
.modal-title { font-size: var(--drop-title); font-weight: bold; line-height: 1.3; margin-bottom: 24px; user-select: none !important; }
.modal-close {
	padding: 8px; width: 40px; height: 40px; margin: 8px; cursor: pointer;
	opacity: .5; transition: opacity .2s ease;
}
@media (min-width: 992px) {
	.modal-close:hover { opacity: .7; }
}

.modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1040; background-color: #000; }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: .3; }

.modal-out {
	display: flex; align-items: center; justify-content: center; position: relative;
	pointer-events: none; margin: 0 auto; min-height: 100%; padding: 16px; 
}
.modal-over {
	position: fixed; top: 0; bottom: 0; right: 0; left: 0;
	background-color: var(--drop-overlay); opacity: 0;
	transition: opacity .2s ease; pointer-events: auto;
}

/* Login & User Modal */
html.lo body { overflow: hidden; }
html.lo #udialog.modal .modal-box { transform: scale(1); opacity: 1; }
html.lo #udialog.modal .modal-over { opacity: 1; }

/* DLE PUSH Уведомления */
.DLEPush { z-index: 2001; position: fixed; max-width: 432px; width: 100%; right: 0; top: 0; padding: 16px; pointer-events: none; }
.DLEPush-notification.wrapper {
	animation-name: DLEPush-show; animation-duration: .75s;
	position: relative; display: grid; grid-template-columns: auto 1fr;
	align-items: center; color: #222; margin-bottom: 10px;
	width: 100%; min-width: 280px; box-shadow: 0 10px 15px rgb(0 0 0 / 20%);
	background-color: #fff; border-radius: 10px;
	pointer-events: auto;
}
@keyframes DLEPush-show {
	0% { transform: translateY(100%); opacity: 0; }
	100% { transform: translateY(0); opacity: 1; }
}
.DLEPush-notification .DLEPush-icon {
	grid-column: 1; grid-row: 1 / span 2;
	display: flex; align-items: center; justify-content: center;
	color: #fff; width: 45px; height: 100%;
	border-top-left-radius: 10px; border-bottom-left-radius: 10px;
	text-align: center;
}
.DLEPush-notification .DLEPush-icon svg { scale: .8; }
.DLEPush-notification .DLEPush-header {
	font-weight: bold; grid-column: 2; grid-row: 1;
	font-size: 1rem; margin-left: 1rem; margin-top: .5rem;
}
.DLEPush-notification .DLEPush-header:empty { margin-top: 0; }
.DLEPush-notification .DLEPush-message { grid-column: 2; grid-row: 2; font-size: .875rem; margin: 1rem; }
.DLEPush-notification .DLEPush-message li,
.DLEPush-notification .DLEPush-message ul { list-style-type: none; padding-left: 0; }
.DLEPush-notification .DLEPush-close {
	position: absolute; top: 8px; right: 10px; font-weight: 300;
	background: none; border: 0; font-size: 1.15rem; cursor: pointer;
	line-height: 1; padding: 0; color: inherit; outline: 0; opacity: 0.75;
}
.DLEPush-notification .DLEPush-close:hover { opacity: 1; }
.DLEPush-notification.wrapper.push-success { background-color: #e0f2f1; }
.DLEPush-notification.wrapper.push-success .DLEPush-icon { background-color: #00897b; }
.DLEPush-notification.wrapper.push-warning { background-color: #FFF3E0; }
.DLEPush-notification.wrapper.push-warning .DLEPush-icon { background-color: #FF9800; }
.DLEPush-notification.wrapper.push-error { background-color: #FBE9E7; }
.DLEPush-notification.wrapper.push-error .DLEPush-icon { background-color: #FF5722; }