﻿/* =========== © 2026 Centroarts - https://m1r.ru =========== */

/* --- Загрузчик AJAX --- */
#loading-layer {
	width: 64px; height: 64px; border-radius: 50%;
	background-color: hsla(var(--c-text),0.8); z-index: 9999 !important;
	position: fixed; top: calc(50% - 32px); left: calc(50% - 32px); text-indent: -9999px;
	overflow: hidden; white-space: nowrap; 
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
#loading-layer:before, #loading-layer:after {
	content: ""; width: 48px; height: 48px; position: absolute; left: 50%; top: 50%;
	margin-left: -24px; margin-top: -24px;
}
#loading-layer:before { border: 4px solid hsla(var(--c-body),0.3); border-radius: 50%; }
#loading-layer:after {
  border: 4px solid;
  border-color: hsla(var(--c-body)) hsl(var(--c-body)) transparent transparent;
  border-radius: 50%;
}
#loading-layer:after { animation: load_rotate .6s infinite linear; }
@keyframes load_rotate { 100% { transform: rotate(360deg); } }

/* --- DLE PUSH Уведомления --- */
.DLEPush { z-index: 2001; position: fixed; max-width: 400px; width: 100%; right: 0; top: 0; padding: 12px; pointer-events: none; }
.DLEPush-notification.wrapper {
	animation-name: DLEPush-show; animation-duration: .75s;
	position: relative; color: #222; margin-bottom: 8px;
	width: 100%; min-width: 280px; box-shadow: 0 10px 15px rgb(0 0 0 / 20%);
	background-color: #fff; border-radius: 12px; padding: 12px 16px; padding-left: 28px;
	pointer-events: auto;
}
@keyframes DLEPush-show {
	0% { transform: translateY(100%); opacity: 0; }
	100% { transform: translateY(0); opacity: 1; }
}
.DLEPush-notification .DLEPush-icon {
	position: absolute; inset: 0; right: auto; color: #fff; width: 12px; height: 100%;
	border-top-left-radius: inherit; border-bottom-left-radius: inherit;
}
.DLEPush-notification .DLEPush-icon svg { display: none; }
.DLEPush-notification .DLEPush-header {
	font-weight: bold; font-size: var(--fs-3);
}
.DLEPush-notification .DLEPush-header:empty { display: none; }
.DLEPush-notification .DLEPush-message { font-size: var(--fs-1); }
.DLEPush-notification .DLEPush-message li,
.DLEPush-notification .DLEPush-message ul { list-style-type: none; padding-left: 0; }
.DLEPush-notification .DLEPush-close {
	float: right; margin-right: -4px; margin-left: 12px; 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::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.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; }

/* --- Modal --- */
.modal-overlay {
  position: fixed; z-index: 200; inset: 0; display: none; opacity: 0; background-color: var(--modal-overlay);
  visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.modal {
  --modal-pad: 24px;
  
  position: relative;
  pointer-events: all; touch-action: manipulation;
  width: 100%; max-width: var(--modal-w);
  border-radius: var(--modal-rd); background-color: hsl(var(--modal-bg));
  transform: scale(.98); transition: transform .3s ease;
}
@media (min-width: 576px) {
  .modal { --modal-pad: 32px; }
}

.modal-inner {
  display: flex; justify-content: center; align-items: center;
  width: 100%; min-height: 100%; pointer-events: none;
  padding: 8px;
}
.modal::after {
  pointer-events: none; content: ""; position: absolute; z-index: 1;
  inset: 0; border-radius: inherit; border: 1px solid; opacity: 0.07;
}
.modal-cont-pad { padding: var(--modal-pad); }

@media (max-width: 767px) {
  .modal-side-pic { display: none !important; }
}

@media (min-width: 768px) {
  .modal-side { display: flex; max-width: var(--modal-pc-w); }
  .modal-side-pic {
    position: relative; z-index: 1; color: hsl(var(--c-text-white));
    flex: 0 0 48%; max-width: 280px;
    overflow: hidden; border-radius: calc(var(--modal-rd) - 8px);
    border-top-right-radius: 12px; border-bottom-right-radius: 12px;
  }
  .modal-side-pic .cover {
    position: absolute; inset: 8px; right: 0; z-index: -1; margin: 0;
    pointer-events: none; user-select: none; border-radius: inherit;
    background-color: var(--c-body-tone);
  }
  .modal-logo { display: block; padding: 32px; }
  .modal-logo.im {
    --i-size: 32px;
    --i-color: hsl(var(--c-text-white));
  }
  .modal-cont { flex: 1 1 auto; }
}

.modal-open .modal-overlay { display: block; opacity: 1; visibility: visible; }
.modal-open .modal { transform: scale(1); }
.modal-open body { overflow: hidden; }

.modal-cont .title { font-size: 20px; font-weight: bold; margin-bottom: 16px; }

/* Form Login */
.sep-text {
  display: flex; justify-content: center; align-items: center;
  font-size: var(--fs-3); line-height: 20px; height: 1px;
  margin: var(--modal-pad) 0; text-transform: uppercase;
}
.sep-text > span { margin: 0 8px; }
.sep-text > span::after { content: attr(title); opacity: .5; }
.sep-text::after, .sep-text::before { content: ""; height: 1px; flex: 1 1 auto; background-color: var(--c-border); }

.modal-cont .social-links { justify-content: center; }

/* Toc */
.modal-toc { --modal-w: 420px; }
ul.modal-toc-list { list-style: none; font-size: var(--fs-1); }
ul.modal-toc-list li { margin: 0; }
ul.modal-toc-list li a {
  display: block; padding: 4px 0 4px 12px;
  border-left: 1px solid var(--c-border); margin-left: 2px;
  opacity: .7;
}
ul.modal-toc-list li a:hover { border-left-color: hsl(var(--c-text)); opacity: 1; }
ul.modal-toc-list li.active a { border-left-color: hsl(var(--c-primary)); opacity: 1; }

@media (max-width: 575px) {
  .modal-toc.modal-overlay { overflow: hidden; }
  .modal-toc .modal-inner { padding: 0; align-items: center; justify-content: end; flex-direction: column; }
  .modal-toc .modal {
    max-width: 100%; width: 100%;
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    transform: scale(.98) translateY(24px);
  }
  html.modal-open .modal-toc .modal { transform: scale(1) translateY(0px); }
  .modal-cont-pad { max-height: calc(100vh - 128px); overflow: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* Share Block in Modal */
.share-modal { --modal-pad: 24px; }
.share-title { font-weight: bold; margin-bottom: 16px; }
.share-modal-buttons, .share-modal-qr { padding: var(--modal-pad); text-align: center; }
.share-modal .sepwave { margin: 0; }
.qrcode-link { max-width: 220px; margin: 0 auto; }
.qrcode-link * { width: 100%; height: auto; display: block; aspect-ratio: 1/1; pointer-events: none; }
.qrcode-text {
  font-size: var(--fs-1); color: var(--c-text-mute); max-width: 200px;
  margin-left: auto; margin-right: auto; margin-top: var(--modal-pad);
  text-wrap: balance;
}

/* Search Drop */
.modal-search { --modal-overlay: hsl(var(--c-body)); }
.modal-search .modal-inner { align-items: start; padding: 0; pointer-events: all; }
.modal-search .modal { --modal-pad: var(--wrp-p); max-width: calc(var(--wrp-w) + var(--wrp-p) * 2); box-shadow: none !important; background: none !important; }
.modal-search .modal::after { display: none; }

/* - DropDown - */
.open > .dropdown-box {
  visibility: visible; opacity: 1; transform: translateY(0);
}

.dropdown { position: relative; touch-action: manipulation; }
#dropmenudiv { display: none; }
#dropmenudiv, .dropdown-box {
  --dropdown-p: 12px;
  position: absolute; z-index: 100; left: 0; border-radius: var(--dropdown-rd); margin-top: 4px; padding: var(--dropdown-p);
  background-color: hsl(var(--dropdown-bg)); box-shadow: var(--dropdown-sw);
  font-size: var(--fs-2); font-weight: normal; opacity: 1 !important;
}
.dropdown-box {
  visibility: hidden; opacity: 0; transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  touch-action: manipulation;
}
.dropdown-menu > a, #dropmenudiv > a { display: block; line-height: 20px; padding: 6px 12px; border-radius: 16px; color: inherit; }
.dropdown-menu > a:hover, #dropmenudiv > a:hover { color: hsl(var(--c-link-hover)) !important; background-color: hsla(var(--c-primary),0.1); }
.dropdown-menu > a { min-width: 130px; }

#dropmenudiv > a:nth-child(1), #dropmenudiv > a:nth-child(3) { display: none; }