/* Служебные страницы и окна в стиле сайта: вход/кабинет, регистрация, профиль, ЛС, обратная связь, поиск, статистика */

/* SEO-блок без текста (на всех страницах, кроме главной) не показываем */
.site-desc:not(:has(*)) {display:none;}

/* ---------- Кнопки (были зелёные) ---------- */
html input[type="button"], input[type="reset"], input[type="submit"], .bbcodes, .ui-button, .fbutton, #loginbox button, .form-wrap button, .sep-submit button, #addcform button, .add-com button, #searchtable button, .search-page button, .ui-dialog-buttonset button {color:#1b1206; font-weight:700 !important; background:linear-gradient(180deg,#fff0a6 0%,#f3c94f 40%,#d4921a 100%); border:1px solid #1b1206; border-radius:6px; box-shadow:0 0 0 1px #c9962e;}
html input[type="button"]:hover, input[type="reset"]:hover, input[type="submit"]:hover, .bbcodes:hover, .ui-button:hover, .fbutton:hover, #loginbox button:hover, .form-wrap button:hover, .sep-submit button:hover, #addcform button:hover, .add-com button:hover, #searchtable button:hover, .search-page button:hover, .ui-dialog-buttonset button:hover {color:#1b1206; background:linear-gradient(180deg,#fff4b8 0%,#f6d15e 40%,#dca42a 100%);}
.fbutton {height:42px; padding:0 26px; font-size:15px !important;}

/* ---------- Поля ввода ---------- */
.middle-wrap input[type="text"], .middle-wrap input[type="password"], .middle-wrap input[type="email"], .middle-wrap .f_input, .middle-wrap .f_textarea, .middle-wrap .sep-textarea textarea, .middle-wrap .input select, .middle-wrap .sec-answer input, .middle-wrap .sec-capcha input, .middle-wrap #searchtable input[type="text"], .middle-wrap #searchtable select, .middle-wrap .pm select, .middle-wrap .xfields input, .middle-wrap .xfields textarea, .middle-wrap .xfields select {color:#222; background-color:#fff; border:1px solid #e0cfa8; border-radius:6px; box-shadow:none;}
.middle-wrap input[type="text"]:focus, .middle-wrap input[type="password"]:focus, .middle-wrap .f_input:focus, .middle-wrap .f_textarea:focus, .middle-wrap .sep-textarea textarea:focus, .middle-wrap .input select:focus, .middle-wrap #searchtable input[type="text"]:focus {background-color:#fff; border-color:#c9962e; box-shadow:0 0 0 3px rgba(242,193,102,.25);}

/* ---------- Формы (.form-wrap): регистрация, восстановление пароля, обратная связь, ЛС ---------- */
.form-wrap {margin-bottom:20px; overflow:hidden; background:#fffdf8; border:1px solid #eadcc0; border-radius:8px; box-shadow:0 6px 20px rgba(120,90,30,.07);}
.form-title {padding:14px 18px; background:linear-gradient(180deg,#fffaf0,#fdf5e4);}
.form-title h1, .sub-title h1, .sluzh-title h1, .static-title h1 {display:inline-flex; align-items:center; gap:10px; margin:0; color:#222; font:700 24px/1.2 'Roboto Condensed', Arial, sans-serif;}
.form-title h1:before, .sub-title h1:before, .sluzh-title h1:before, .static-title h1:before {content:""; flex:none; width:4px; height:24px; background:linear-gradient(#f6d15e,#c9962e); border-radius:2px;}
.sub-title h1, .sluzh-title h1, .static-title h1 {margin-bottom:15px;}
.form-wrap > div {border-top:1px solid #f0e4c8; background-color:#fffdf8;}
.form-wrap > div:nth-child(2n) {background-color:#fffaf0;}
.label label {color:#5e5443; font-weight:600;}
.impot {color:#c9962e;}
.textarea-title {color:#f2c166; font:700 16px/40px 'Roboto Condensed', Arial, sans-serif; background:linear-gradient(180deg,#2b2721,#171410); border-radius:6px 6px 0 0;}
.secur .label label {color:#f2c166; background:linear-gradient(180deg,#2b2721,#171410); border-radius:6px;}
.sec-label {color:#3a2e1a;}
.sep-submit {text-align:left;}
.full-text.sep-textarea, .form-wrap .full-text {color:#3a2e1a;}

/* ---------- Сообщения DLE (ошибки, информация) ---------- */
.berrors {color:#3a2e1a; background:#fffaf0; border:1px solid #eadcc0; border-left:4px solid #c9962e; border-radius:8px;}
.berrors a {color:#a5781f;}

/* ---------- Окно входа / «Мой кабинет» ---------- */
.overlay {background-color:rgba(5,4,2,.82);}
.overlay-close {color:#f2c166;}
#loginbox {width:340px; margin-left:-170px; color:#d9cfb6; background:linear-gradient(180deg,#2b2721 0%,#171410 100%); border:1px solid #9c7424; border-radius:10px; box-shadow:0 0 0 1px #000, 0 24px 70px rgba(0,0,0,.7);}
#loginbox .login-title {color:#f6d15e; font:700 21px/1.2 'Roboto Condensed', Arial, sans-serif; background:transparent; border-bottom:1px solid #3a3020;}
.login-form ul li label {color:#cfc5ab;}
.login-form ul li a, .login-form ul li a:visited {color:#f2c166;}
.login-form ul li input {color:#f3e6c4; background:#0f0d09; border:1px solid #4a3d25; border-radius:6px;}
.login-form ul li input:focus {border-color:#c9962e; box-shadow:0 0 0 3px rgba(242,193,102,.2);}
.log-check label {color:#a89f88; font-size:12px !important;}
.log-check input + label:before {border-color:#6b5630; background:#0f0d09;}
.log-check input:checked + label:before {background:#f2c166; border-color:#f2c166;}
#loginbox .log-register {color:#f2c166 !important; font-weight:700; background:rgba(255,255,255,.04); border-top:1px solid #3a3020;}
#loginbox .log-register:hover {color:#fff4b8 !important; background:rgba(255,255,255,.08);}
.sociallogin {padding:0 12px;}
#loginbox .login-avatar {color:#fff !important; background:transparent; border-bottom:1px solid #3a3020;}
.avatar-box {box-shadow:0 0 0 2px #c9962e;}
.name-box {color:#fff;}
.name-box a, .name-box a:visited {color:#f2c166; border-bottom-color:#f2c166;}
.login-menu li a, .login-menu li a:visited {color:#e6dcc4; border-left:4px solid transparent;}
.login-menu li a:hover, .login-menu li:nth-child(2) a {color:#fff4b8; background:rgba(255,255,255,.05); border-color:#f2c166;}
.login-menu li:last-child a {color:#a89f88; background:rgba(0,0,0,.25); border-top:1px solid #3a3020;}
.login-menu li:last-child a:hover {color:#f2c166;}

/* ---------- Профиль пользователя ---------- */
.user-wrap {overflow:hidden; border:1px solid #eadcc0; border-radius:8px; box-shadow:0 6px 20px rgba(120,90,30,.07);}
.user-main {color:#e6dcc4; background:linear-gradient(180deg,#2b2721,#15120d); border-bottom:2px solid #c9962e;}
.user-main a {color:#f2c166;}
.user-avatar {box-shadow:0 0 0 3px #c9962e, 0 0 0 10px rgba(242,193,102,.15);}
.user-info div {background:#fffdf8; border-right-color:#f0e4c8;}
.user-info span {color:#8a8171;}
.user-info b {color:#222;}
.user-connect div {background:#1d1914; border-right-color:#3a3020;}
.user-connect a, .user-connect a:visited {color:#f2c166;}
.user-connect a:hover {color:#fff4b8;}
div.u-info {color:#3a2e1a; background:#fffaf0; border-right-color:#f0e4c8;}
.user-edit a, .user-edit a:visited {color:#1b1206; background:linear-gradient(180deg,#fff0a6 0%,#f3c94f 40%,#d4921a 100%); border:1px solid #1b1206; border-radius:6px; box-shadow:0 0 0 1px #c9962e;}

/* ---------- Поиск, опрос, таблицы (статистика, ЛС) ---------- */
#dle-poll-list, #searchtable, .pm_status {background:#fffaf0; border:1px solid #eadcc0; border-radius:8px;}
#searchtable fieldset {border-color:#eadcc0; background:#fffdf8;}
table.userstop, table.pm {width:100%; background:#fffdf8; border:1px solid #eadcc0;}
table.userstop td, table.pm td, table.userstop th, table.pm th {padding:8px 10px; border-bottom:1px solid #f0e4c8;}
table.userstop thead td, table.pm thead td, table.pm tr:first-child td {color:#a5781f; font-weight:700; background:#fdf5e4;}

/* ---------- Расширенный поиск: поля и список разделов на всю ширину ---------- */
#searchtable table {width:100%; border-collapse:separate; border-spacing:0;}
#searchtable td.search {padding:0 6px 6px 0;}
#searchtable fieldset {margin:0 0 8px !important; padding:12px 14px 14px; font-size:13px; color:#3a2e1a;}
#searchtable legend {padding:0 6px; color:#a5781f; font:700 12px/1.3 Arial, Helvetica, sans-serif; letter-spacing:.05em; text-transform:uppercase;}
#searchtable #searchinput, #searchtable #searchuser {width:100% !important; max-width:100%; height:38px; margin:4px 0 8px; box-sizing:border-box;}
#searchtable select {height:36px; max-width:100%; padding:0 8px; margin:2px 4px 2px 0; color:#222; border:1px solid #e0cfa8; border-radius:6px; box-sizing:border-box;}
#searchtable #titleonly {width:100% !important;}
#searchtable input#replylimit {width:70px; height:36px; display:inline-block; vertical-align:middle;}
#searchtable select[multiple], #searchtable #catlist {width:100% !important; height:318px !important; min-height:0; padding:6px; font-size:14px; line-height:1.5;}
#searchtable #catlist option {padding:3px 6px; border-radius:4px;}
#searchtable #catlist option:checked {color:#1b1206; background:linear-gradient(#f6d98a,#f6d98a);}
#searchtable .form-check-label {display:inline-flex; align-items:center; gap:6px; margin-right:12px; cursor:pointer;}
#searchtable .bbcodes {height:40px !important; padding:0 22px; font-size:14px !important;}
@media screen and (max-width: 760px) {
	#searchtable table, #searchtable tbody, #searchtable tr, #searchtable td.search {display:block; width:100% !important;}
	#searchtable td.search {padding-right:0;}
	#searchtable select[multiple], #searchtable #catlist {height:220px !important;}
}

/* ---------- Результаты поиска ---------- */
.sres-wrap, .sres-wrap:visited {display:flex; gap:16px; margin:0 0 10px; padding:14px; color:#3a2e1a; text-decoration:none; background:#fffdf8; border:1px solid #eadcc0; border-radius:8px; box-shadow:0 4px 14px rgba(120,90,30,.06); transition:border-color .2s, box-shadow .2s;}
.sres-wrap:nth-child(2n) {background:#fffaf0;}
.sres-wrap:after {display:none;}
.sres-wrap:hover {z-index:1; border-color:#d9b76a; box-shadow:0 0 0 3px rgba(242,193,102,.25), 0 8px 20px rgba(120,90,30,.12); text-decoration:none;}
.sres-img {float:none; flex:none; width:120px; height:160px; margin:0; overflow:hidden; background:#eee; border-radius:6px;}
.sres-img img {display:block; width:100%; height:100%; object-fit:cover; object-position:center top;}
.sres-text {float:none; position:static; flex:1; min-width:0; width:auto; padding:0; color:#3a2e1a; background:none;}
.sres-text h2 {margin:2px 0 8px; color:#222; font:700 22px/1.2 'Roboto Condensed', Arial, sans-serif;}
.sres-wrap:hover .sres-text h2 {color:#a5781f;}
.sres-meta {display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-bottom:8px;}
.sres-pc {padding:1px 9px; color:#a5781f; font:600 12px/1.6 Arial, Helvetica, sans-serif; background:#fff4e0; border:1px solid #eadcc0; border-radius:10px; white-space:nowrap;}
.sres-cat {color:#8a8171; font-size:12px;}
.sres-desc {display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; color:#6d6556; font-size:13px; line-height:1.55;}
.sres-go {display:inline-block; margin-top:10px; color:#a5781f; font:700 13px/1.3 Arial, Helvetica, sans-serif;}
.sres-wrap:hover .sres-go {color:#1b1206;}
.search-page {margin-bottom:18px;}
@media screen and (max-width: 760px) {
	.sres-wrap, .sres-wrap:visited {gap:12px; padding:10px;}
	.sres-img {width:90px; height:120px;}
	.sres-text {position:static; padding:0; color:#3a2e1a; background:none;}
	.sres-text h2 {margin-bottom:6px; color:#222; font-size:19px;}
	.sres-desc {display:-webkit-box; -webkit-line-clamp:2;}
	.sres-go {display:none;}
}

/* ---------- Статистика сайта ---------- */
.st-grid {display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-bottom:12px;}
.st-card {padding:0 16px 14px; background:#fffdf8; border:1px solid #eadcc0; border-radius:8px; box-shadow:0 6px 20px rgba(120,90,30,.07); overflow:hidden;}
.st-h {display:flex; align-items:center; gap:8px; margin:0 -16px 12px; padding:11px 16px; color:#222; font:700 18px/1.2 'Roboto Condensed', Arial, sans-serif; background:linear-gradient(180deg,#fffaf0,#fdf5e4); border-bottom:1px solid #f0e4c8;}
.st-h:before {content:""; flex:none; width:4px; height:18px; background:linear-gradient(#f6d15e,#c9962e); border-radius:2px;}
.st-h i {color:#c9962e; font-size:16px;}
.st-nums {display:flex; justify-content:space-between; gap:8px; text-align:center;}
.st-nums span {flex:1; color:#8a8171; font-size:12px; line-height:1.3;}
.st-nums b {display:block; margin-bottom:2px; color:#a5781f; font:700 28px/1.1 'Roboto Condensed', Arial, sans-serif;}
.st-list {margin:0; padding:0; list-style:none;}
.st-list li {display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:7px 0; color:#5e5443; font-size:14px; border-top:1px solid #f0e4c8; list-style:none;}
.st-list li:first-child {border-top:0; padding-top:0;}
.st-list b {color:#222; font:700 18px/1 'Roboto Condensed', Arial, sans-serif;}
.st-list a, .st-list a:visited {color:#a5781f; font-weight:700; font-size:13px;}
.st-list a:hover {color:#1b1206;}
.st-top {margin-bottom:20px; padding-bottom:16px;}
.st-table {overflow-x:auto;}
.st-table table.userstop {width:100%; border:1px solid #eadcc0; border-radius:6px; border-collapse:separate; border-spacing:0; overflow:hidden; background:#fffdf8;}
.st-table table.userstop td, .st-table table.userstop th {padding:9px 10px; color:#3a2e1a; font-size:13px; font-weight:400; text-align:center; background:transparent; border:0; border-bottom:1px solid #f0e4c8;}
.st-table table.userstop thead td, .st-table table.userstop thead th {color:#a5781f; font-weight:700; background:#fdf5e4; white-space:nowrap;}
.st-table table.userstop tbody tr:nth-child(2n) td {background:#fffaf0;}
.st-table table.userstop tbody tr:last-child td {border-bottom:0;}
.st-table table.userstop td:first-child {text-align:left; font-weight:700;}
.st-table table.userstop a, .st-table table.userstop a:visited {color:#a5781f; text-decoration:none;}
.st-table table.userstop a:hover {color:#1b1206; text-decoration:underline;}
@media screen and (max-width: 760px) {
	.st-grid {grid-template-columns:1fr;}
	.st-table table.userstop {min-width:560px;}
}
/* статистика: таблица активности, компактная таблица пользователей */
.st-act {margin-bottom:12px; padding-bottom:6px;}
.st-acttable {width:100%; border-collapse:collapse;}
.st-acttable td {padding:9px 8px; text-align:center; border-top:1px solid #f0e4c8;}
.st-acttable thead td {padding-top:0; color:#8a8171; font-size:12px; border-top:0;}
.st-acttable td:first-child {text-align:left; color:#5e5443; font-size:14px; font-weight:600; white-space:nowrap;}
.st-acttable b {color:#a5781f; font:700 24px/1 'Roboto Condensed', Arial, sans-serif;}
.st-table table.userstop td, .st-table table.userstop th {padding:8px 6px; font-size:12px;}
.st-table table.userstop thead td, .st-table table.userstop thead th {white-space:normal;}

/* ---------- Персональные сообщения ---------- */
.sluzh > .form-title {margin:22px 0 12px; padding:0; background:none;}
.sluzh > .form-title h1 {font-size:21px;}
.sluzh > .form-title h1:before {height:20px;}
.pm_menu {display:flex; flex-wrap:wrap; gap:8px; height:auto; margin:0 0 14px; padding:0; list-style:none;}
.pm_menu * {float:none;}
.pm_menu li {margin:0; list-style:none;}
.pm_menu a, .pm_menu a:visited {display:inline-flex; align-items:center; height:38px; margin:0; padding:0 16px; color:#3a2e1a; font:700 15px/1 'Roboto Condensed', Arial, sans-serif; background:#fffdf8; border:1px solid #eadcc0; border-radius:8px; transition:background .2s, border-color .2s;}
.pm_menu a:hover {color:#1b1206; background:#fdf1d6; border-color:#d9b76a;}
.pm_menu li:last-child a, .pm_menu li:last-child a:visited {color:#1b1206; background:linear-gradient(180deg,#fff0a6 0%,#f3c94f 40%,#d4921a 100%); border-color:#1b1206; box-shadow:0 0 0 1px #c9962e;}
.pm_menu li:last-child a:hover {background:linear-gradient(180deg,#fff4b8 0%,#f6d15e 40%,#dca42a 100%);}
.pm_status {margin-bottom:18px; padding:14px 16px; color:#5e5443; font-size:13px; box-shadow:0 6px 20px rgba(120,90,30,.07);}
.pm_progress_bar {padding:3px; background:#fff; border:1px solid #e0cfa8; border-radius:8px;}
.pm_progress_bar span {min-width:6px; height:10px; background:linear-gradient(90deg,#f6d15e,#c9962e); border-radius:5px;}
.pm-lists {margin-bottom:20px;}
table.pm {width:100%; background:#fffdf8; border:1px solid #eadcc0; border-radius:8px; border-collapse:separate; border-spacing:0; overflow:hidden; box-shadow:0 6px 20px rgba(120,90,30,.07);}
.pm tr td, .pm tr th {padding:11px 12px; color:#3a2e1a; font-size:13px; text-align:left; vertical-align:middle; border:0; border-bottom:1px solid #f0e4c8;}
.pm thead tr:nth-child(1), .pm thead tr:nth-child(1) th {color:#a5781f !important; font:700 13px/1.3 Arial, Helvetica, sans-serif !important; background-color:#fdf5e4 !important;}
.pm tbody tr:nth-child(1) {color:#3a2e1a; font-size:13px !important; background-color:#fffdf8 !important;}
.pm tbody tr:nth-child(2n+2) {background-color:#fffaf0;}
.pm tbody tr:hover, .pm tbody tr:nth-child(1):hover {background-color:#fdf1d6 !important;}
.pm tbody tr:last-child td {border-bottom:0;}
.pm td.pm_list {cursor:pointer;}
.pm td.pm_icon {width:20px; color:#c9bda4;}
.pm td.pm-unread-image {color:#c9962e;}
.pm td.pm-reply-image {color:#8a8171;}
.pm a.pm_list, .pm a.pm_list:visited {color:#222; text-decoration:none;}
.pm a.pm_list:hover {color:#a5781f;}
.pm .pm_subj a.pm_list {font:400 16px/1.3 'Roboto Condensed', Arial, sans-serif;}
.pm .pm_subj a.pm_list b {font-weight:700;}
.pm .pm_last_message {margin-top:3px; color:#8a8171; font-size:12px; line-height:1.4;}
.pm .pm_with_user {margin-top:3px; color:#8a8171; font-size:12px;}
.pm .pm_with_user a.pm_list, .pm .pm_last_user a.pm_list {color:#a5781f; font-weight:700;}
.pm .pm_last_date {margin-top:2px; color:#8a8171; font-size:11px; white-space:nowrap;}
.pm td.pm_checkbox, .pm th.pm_checkbox {text-align:center;}
.pm_navigation {margin-top:12px;}
.pm_navigation td {vertical-align:middle;}
.pm_navigation select {width:auto; min-width:170px; height:36px; margin:0 6px 0 0; padding:0 8px; color:#222; background:#fff; border:1px solid #e0cfa8; border-radius:6px;}
.pm_navigation .bbcodes {height:36px !important;}
.pm-no-messages {display:block; padding:16px 18px; color:#5e5443; background:#fffaf0; border:1px solid #eadcc0; border-left:4px solid #c9962e; border-radius:8px;}
/* чтение переписки */
.sluzh .comm-item {margin-bottom:10px; padding:14px 14px 10px 84px; background:#fffdf8; border:1px solid #eadcc0; border-radius:8px; box-shadow:0 4px 14px rgba(120,90,30,.06);}
.sluzh .comm-item:nth-of-type(2n) {background:#fffaf0;}
.sluzh .comm-left {float:left; width:56px; margin-left:-70px;}
.sluzh .comm-left img {display:block; width:56px; height:56px; object-fit:cover; border-radius:50%; box-shadow:0 0 0 2px #c9962e;}
.sluzh .comm-right {float:none; width:auto;}
.sluzh .comm-top-info {height:auto; margin-bottom:6px; line-height:1.4;}
.sluzh .comm-author, .sluzh .comm-author a {color:#222; font:700 16px/1.3 'Roboto Condensed', Arial, sans-serif;}
.sluzh .comm-author a:hover {color:#a5781f;}
.sluzh .comm-date {color:#8a8171; font-size:12px;}
.sluzh .comm-text {color:#2b2b2b; font-size:14px; line-height:1.55;}
.sluzh .signature {color:#8a8171; border-top-color:#eadcc0;}
.sluzh .comm-bottom-info ul {padding-top:10px;}
.sluzh .comm-bottom-info ul li a {color:#a5781f; font-size:12px; font-weight:700;}
.sluzh .comm-bottom-info ul li a:hover {color:#1b1206; text-decoration:none;}
.sluzh .sep-checks label {color:#5e5443;}
#dle-pm-preview {margin-bottom:14px;}
@media screen and (max-width: 760px) {
	.pm tr td, .pm tr th {padding:9px 8px;}
	.pm th.pm_last_user, .pm td.pm_last_user {width:96px;}
	.pm_navigation, .pm_navigation tbody, .pm_navigation tr, .pm_navigation td {display:block; width:100%; text-align:left;}
	.pm_navigation td {padding:4px 0;}
	.sluzh .comm-item {padding:12px 12px 8px 68px;}
	.sluzh .comm-left {width:44px; margin-left:-56px;}
	.sluzh .comm-left img {width:44px; height:44px;}
}
/* переписка: компактнее, ссылки действий в один ряд */
.sluzh .comm-info-line {display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px;}
.sluzh .comm-author {float:none; margin:0;}
.sluzh .comm-date {float:none; width:auto;}
.sluzh .comm-text {min-height:0; padding:2px 0 0;}
.sluzh .comm-bottom-info ul {display:flex; flex-wrap:wrap; gap:6px 16px; padding-top:10px; text-align:left;}
.sluzh .comm-bottom-info ul li, .sluzh .comm-bottom-info ul li:first-child {display:block; float:none; margin:0;}
.sluzh .comm-bottom-info ul li:empty {display:none;}
