/* INFO MESSAGES, ERRORS */
.message-info {line-height: 1.5; margin-bottom: 20px;
    background-color: var(--ui-bg-attention); box-shadow: 0 1px 3px rgba(0,0,0,.24), 0 1px 2px rgba(0,0,0,.36);
    border: 1px solid var(--ui-bd-attention); position: relative; padding: 15px 20px 15px 64px;}
.message-info__title {font-weight: var(--ui-fw-bolder);}
.message-info::before {content:"\f071"; font-family:'Font Awesome 5 Pro'; font-weight: var(--ui-fw-fa); font-size: 22px;
    color: #fff; background-color: var(--ui-bd-attention); position: absolute; left: 0; top: 0;
    width: 44px; height: 100%; display: grid; place-items: center;}


/* SERVICE PAGE COMMON, FORM
----------------------------------------------- */
.serv__title {font-size: 24px; font-weight: var(--ui-fw-bolder); margin-bottom: 30px;}
.serv__subtitle {font-size: 18px; font-weight: var(--ui-fw-bolder); margin-bottom: 20px; color: var(--tt);}
.serv__section {margin-bottom: 30px;}
.serv__gap {gap: 10px;}
.serv__links a {color: var(--ui-accent); border-bottom: 1px dotted var(--ui-accent);}
.serv__table-resp {overflow-y: hidden; overflow-x: auto;}
.serv__table table {width: 100%;}
.serv__table table thead tr {background-color: var(--ui-bg-black); color: #fff;}
.serv__table table td {padding: 10px 10px; font-size: 13px; border: 1px solid var(--ui-bdc);}
.serv__table table tbody tr:nth-child(2n) {background-color: var(--ui-bg-darker);}

/* Сетка строк формы */
.form__row + .form__row {margin-top: 20px;}
.form__row {display: grid; gap: 10px 20px; align-items: center; grid-template-columns: 200px minmax(200px,1fr); position: relative;}
.form__row--textarea, .form__row--textarea .form__label, .form__row--wide {display: block;}
.form__row--textarea .form__label {background-color: var(--ui-bg-black); color: #fff; padding: 15px; margin-bottom: 10px;}
.form__label--important::after {content: "*"; margin: 0 0 0 5px; color: var(--ui-red);}
.form__find-related {position: absolute; right: 0; top: 0; border-radius: 0 4px 4px 0;}
.form__content select, #category {width: 100% !important;}
.bb-pane + textarea {border-radius: 0 0 4px 4px;}
.xfieldsnote {color: var(--ui-tt-fade); font-size: 13px; margin-top: 5px;}

.form__table {width: 100%;}
.form__table tr + tr td {padding-top: 20px;}
.form__table .addnews {width: 220px;}
.xfields textarea, .xprofile textarea, .form__textarea--height {height:100px !important;}
.xfields .bb-editor, .xfields .wseditor {margin-top:10px;}
td.xfields {position: relative;}

.form__row--checkboxes-group {display: grid; grid-gap: 20px 20px; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); align-items: start;}
.form__sec-code > input {flex: 1 1 0; margin-right: 10px; height: 80px; line-height: 80px; text-align: center;}
.form__row--submit {display: flex !important; gap: 10px;}
.form__row--submit button {min-width: auto; white-space: nowrap;}
.form__btn {width: 220px;}

/* --- СПЕЦИАЛЬНОЕ ИСПРАВЛЕНИЕ ТАБЛИЦ UCOZ (Опции, SEO, Даты) --- */
.manTable, 
table[class*="manTable"], 
.ucoz-system-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 15px;
}
.manTable tr, 
table[class*="manTable"] tr {display: table-row !important;}

.manTable td, 
table[class*="manTable"] td {
    display: table-cell !important;
    padding: 10px 10px 10px 0 !important;
    vertical-align: top !important;
    border: none !important;
    background: transparent !important;
}
.manTable td:first-child {
    width: 200px !important;
    font-weight: 700;
    color: var(--tt) !important;
}

/* Запрещаем полям ввода в опциях растягиваться */
.manTable input[type="text"],
.manTable input[type="password"],
.manTable select {
    width: auto !important;
    min-width: 200px !important;
    max-width: 100% !important;
}

/* Убираем черные точки у списков в опциях (Модификаторы Ucoz) */
.manTable ul, .ucoz-system-table ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 0 !important;
}
.manTable li, .ucoz-system-table li {
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: flex-start !important;
}
.manTable input[type="checkbox"], .ucoz-system-table input[type="checkbox"] {
    margin: 4px 8px 0 0 !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}
.manTable label, .ucoz-system-table label {
    font-weight: 400 !important;
    color: var(--tt-fade-2) !important;
    line-height: 1.4 !important;
}

/* CHECKBOXES, RADIO BUTTONS
----------------------------------------------- */
.has-radiobox label {position: relative; padding-left: 32px; display: block; cursor: pointer;}
.has-radiobox input {appearance: none; -webkit-appearance: none; display: block; width: 22px; height: 22px; cursor: pointer;
    border: 1px solid var(--ui-bdc); background: var(--ui-bg); border-radius: 50%;
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);}
.has-radiobox label input:checked::before {content: ''; background-color: var(--ui-accent);
    width: 12px; height: 12px; border-radius: 50%; position: absolute; left: 4px; top: 4px;}
.has-checkbox, .checkbox {display: block; position: relative; padding-left: 50px; cursor: pointer;}
.has-checkbox, .checkbox label {cursor: pointer; display: block;}
.has-checkbox input, .checkbox input {
    appearance: none; -webkit-appearance: none; display: inline-block; transition: all .2s linear;
    height: 22px; width: 40px; border-radius: 11px; background-color: var(--ui-bg-darker); cursor: pointer;
    box-shadow: var(--ui-bsh-inset); position: absolute; left: 0; top: 50%; margin-top: -11px;}
.has-checkbox input::before, .checkbox input::before {content: ''; width: 20px; height: 20px; border-radius: 10px;
    position: absolute; left: 1px; top: 1px; background-color: var(--ui-bg); transition: all .2s linear;}
.has-checkbox input:checked, .checkbox input:checked {background-color: var(--ui-green);}
.has-checkbox input:checked::before, .checkbox input:checked::before {left: 19px;}


/* SEARCH PAGE
----------------------------------------------- */
.search-page__simple-form {gap: 10px; margin-bottom: 20px;}
.search-page__ext-form {display: grid; gap: 20px 30px; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); margin-bottom: 20px;}
.search-page__ext-form-label {margin-bottom: 10px; font-size: 13px; color: var(--ui-tt-fade);}
.search-page__ext-form-content, .search-page__ext-form-input {gap: 10px;}
.search-page__ext-form-input input {width: 40px; padding: 0; text-align: center;}
.search-page__ext-form-row .has-checkbox {margin-top: 10px; font-size: 13px; color: var(--ui-tt-fade);}
.search-page__ext-form-row--category {grid-row: span 2;}
.search-page__ext-form-row--category select {height: 126px;}
.search-page__ext-form-row--wide {grid-column: 1 / -1;}
.search-page__ext-form-row--btns input {min-width: auto; padding: 0 40px;}

/*--- AJAX LOADER ---*/
#loading-layer {background-color: rgba(0,0,0,0.7); border-radius: 10px; box-shadow: var(--ui-bsh);
    padding: 20px; color: #fff; line-height: 1.6; max-width: calc(100vw - 30px);}
#loading-layer::before {content: ''; width: 80px; height: 80px; border-radius: 50%;
    border: 10px solid rgba(255,255,255,0.15); border-left-color: var(--green);
    display: block; box-sizing: border-box; animation: rotate 1s linear infinite;}
@keyframes rotate { 100% {transform: rotate(360deg);} }
#loading-layer svg {display: none;}
#loading-layer.withtext {position: relative; padding: 15px 20px 15px 80px; min-height: 60px;}
#loading-layer.withtext::before {width: 40px; height: 40px; border-width: 5px;
    position: absolute; left: 20px; top: 50%; margin-top: -20px;}

/*--- BB EDITOR ---*/
.bb-pane {border: 1px solid var(--ui-bdc); background: var(--ui-bg-darker); padding: 5px 10px; margin-bottom: 1px;
    border-radius: 4px 4px 0 0; gap: 5px 5px; position: relative; z-index: 10; border-bottom: 0;
    display: grid; grid-template-columns: repeat(auto-fill,minmax(30px,1fr));}
.bb-btn {display: grid; place-items: center; height: 30px; cursor: pointer; font-size: 14px; border-radius: 3px; color: var(--tt);}
.bb-btn:hover {background-color: var(--ui-bg-black); color: #fff;}
@font-face {font-family: 'bb-editor-font'; src: url(../webfonts/bb-editor.woff) format('woff'); font-weight: normal; font-style: normal;}
[class^="bb-btn"], [class*=" bb-btn"] {font-family: 'bb-editor-font'; font-style: normal;
    font-weight: normal; font-variant: normal; text-transform: none; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;}
#b_b:before {content: "\f032";}
#b_i:before {content: "\f033";}
#b_u:before {content: "\f0cd";}
#b_s:before {content: "\f0cc";}
#b_img:before {content: "\f03e";}
#b_up:before {content: "\e930";}
#b_emo:before {content: "\f118";}
#b_url:before {content: "\f0c1";}
#b_leech:before {content: "\e98d";}
#b_mail:before {content: "\f003";}
#b_video:before {content: "\e913";}
#b_audio:before {content: "\e911";}
#b_hide:before {content: "\e9d1";}
#b_quote:before {content: "\e977";}
#b_code:before {content: "\f121";}
#b_left:before {content: "\f036";}
#b_center:before {content: "\f037";}
#b_right:before {content: "\f038";}
#b_color:before {content: "\e601";}
#b_spoiler:before {content: "\e600";}
#b_fla:before {content: "\ea8d";}
#b_yt:before {content: "\f166";}
#b_tf:before {content: "\ea61";}
#b_list:before {content: "\f0ca";}
#b_ol:before {content: "\f0cb";}
#b_tnl:before {content: "\ea61";}
#b_br:before {content: "\ea68";}
#b_pl:before {content: "\ea72";}
#b_size:before {content: "\f034";}
#b_font:before {content: "\f031";}
#b_header:before {content: "\f1dc";}
#b_sub:before {content: "\f12c";}
#b_sup:before {content: "\f12b";}
#b_justify:before {content: "\f039";}
.bb-pane h1 {font-size: 36px; margin-top: 5px; margin-bottom: 5px;}
.bb-pane h2 {font-size: 30px; margin-top: 5px; margin-bottom: 5px;}
.bb-pane h3 {font-size: 24px; margin-top: 5px; margin-bottom: 5px;}
.bb-pane h4 {font-size: 18px; margin-top: 5px; margin-bottom: 5px;}
.bb-pane h5 {font-size: 14px; margin-top: 5px; margin-bottom: 5px;}
.bb-pane h6 {font-size: 12px; margin-top: 5px; margin-bottom: 5px;}
.bb-pane-dropdown {position: absolute; top: 100%; left: 0; z-index: 1000; display: none; float: left; min-width: 180px; padding: 5px 0; margin: 2px 0 0;
    list-style: none; font-size: 11px; border: 1px solid var(--ui-bdc); border-radius: 4px;
    background: var(--ui-bg); box-shadow: 0 2px 6px rgba(0,0,0,0.3);}
.bb-pane-dropdown > li > a {display: block; padding: 3px 10px; clear: both; font-weight: normal; line-height: 1.42857; color: var(--tt); white-space: nowrap;}
.bb-pane-dropdown > li > a:hover, .bb-pane-dropdown > li > a:focus {text-decoration: none; color: #fff; background-color: var(--green);}
.bb-pane-dropdown .color-palette div .color-btn {width: 17px; height: 17px; padding: 0; margin: 0; border: 1px solid var(--ui-bdc); cursor: pointer;}
.bb-pane-dropdown .color-palette {padding: 0px 5px;}
.bb-editor textarea {margin-top: -1px;}

/*--- DROP MENU ---*/
#dropmenudiv {font: 13px 'Manrope', sans-serif; padding: 10px; display: none; background: var(--ui-bg);
    border: 1px solid var(--ui-bdc); border-radius: 8px; box-shadow: 0 0 50px 0 rgba(0,0,0,0.4); z-index: 200 !important;}
#dropmenudiv a {display: block; text-decoration: none; padding: 5px 8px; width: 154px; color: var(--tt);}
#dropmenudiv a:hover {background-color: var(--ui-bg-darker);}

/*--- TAGS CLOUD ---*/
.clouds_xsmall, .clouds_small, .clouds_medium, .clouds_large, .clouds_xlarge {display: inline-block;
    border-radius: 6px; margin: 0 3px 6px 0;}
.clouds_xsmall {font-size: 1em;}
.clouds_small {font-size: 1.1em; font-weight: bold;}
.clouds_medium {font-size: 1.2em; font-weight: bold;}
.clouds_large {font-size: 1.3em;}
.clouds_xlarge {font-size: 1.4em;}
.cloud-tags span a {display: block; padding: 5px 7px; border: 1px solid var(--ui-bdc);}
.cloud-tags span a:hover {background-color: var(--ui-accent); box-shadow: 0 0 10px 0 rgba(0,0,0,0.3); color: var(--tt-btn);}
.tags_more {margin-top: 10px;}

/*--- SEARCH SUGGESTIONS ---*/
#searchsuggestions {z-index: 99998; word-wrap: break-word; max-height: 60vh; overflow-x: hidden; overflow-y: auto;
    border-radius: var(--ui-bdrs); background: var(--ui-bg); box-shadow: 0 10px 20px rgba(0,0,0,0.5); width: var(--searchWidth, 300px);}
#searchsuggestions span {display: block; font-size: 14px;}
#searchsuggestions span.notfound {padding: 20px; border-bottom: 1px solid var(--ui-bdc); text-align: center;}
#searchsuggestions span.seperator a {padding: 20px; text-align: center; background-color: var(--ui-bg-darker); display: block;}
.fs-result {padding: 10px; border-bottom: 1px solid var(--ui-bdc);}
.fs-result__img {width: 60px; height: 60px; margin-right: 10px; border-radius: var(--ui-bdrs);}
.fs-result__title {font-weight: var(--ui-fw-bolder); font-size: 14px;}
.fs-result__meta {margin-top: 6px; color: var(--ui-tt-fade); font-size: 12px; gap: 10px;}
.fs-result__rating {border-radius: 10px; font-weight: var(--ui-fw-bolder); display: grid; place-items: center;
    background: var(--ui-green); color: #fff; width: 20px; height: 20px;}

/*--- FIELDS / XFIELDS ---*/
.emoji {border: none; vertical-align: middle; width: 22px; height: 22px;}
.xfieldsrow {padding-top: 5px; clear: both;}
.xfieldscolleft {float: left; width: 30%;}
.xfieldscolright {float: left; width: 70%;}
.file-box {width: 95%; max-width: 437px; border: 1px solid var(--ui-bdc); border-radius: 3px;
    background-color: var(--ui-bg-darker); padding: 10px; margin-top: 10px;}
.qq-uploader {position: relative; width: 100%;}
.qq-upload-drop-area {position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
    max-width: 437px; background: rgba(95,168,63,0.35); text-align: center; border: 2px dashed var(--green); border-radius: 4px;}
.qq-upload-drop-area span {display: block; position: absolute; top: 50%; width: 100%; margin-top: -8px; font-size: 16px; color: var(--tt);}
.qq-upload-drop-area-active {background: rgba(192,57,43,0.35); border-color: var(--red);}

div[id*=uploadedfile], .file-preview-box {display: grid !important; gap: 10px !important; padding: 0 !important;
    grid-template-columns: repeat(auto-fill,minmax(115px,1fr)); margin-bottom: 10px;}
.uploadedfile {background-color: var(--ui-bg); border: 1px solid var(--ui-bdc); font-size: 13px;
    box-shadow: 0px 1px 4px rgba(0,0,0,0.25); text-align: center; padding: 10px; border-radius: 4px;}
.uploadedfile .uploadimage {height: 90px; margin: 10px 0; cursor: move;}
.uploadedfile .uploadimage img {width: 100%; height: 100%; object-fit: contain;}
.sortable-ghost {opacity: 0.4;}
.uploadedfile .info {white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.uploadedfile .info a {display: block; padding: 5px; background-color: var(--ui-bg-darker);}
.uploadedfile .info a + br + a {background-color: var(--ui-red); color: #fff;}
.btn.disabled, .btn[disabled], fieldset[disabled] .btn {cursor: not-allowed; pointer-events: none; opacity: 0.66;}
span[id*=uploadedfile] {margin: 10px 0; display: block;}
.file-preview-card, .folder-preview-card {width: 100% !important; padding: 0 !important;}

.progress {overflow: hidden; margin-top: 10px; margin-bottom: 10px; height: 10px;
    border-radius: 4px; background: var(--ui-bg-darker); box-shadow: var(--ui-bsh-inset);}
.progress .progress-bar {float: left; width: 0%; font-size: 13px; line-height: 20px; color: #fff;
    text-align: center; background-color: var(--green); transition: width 0.6s ease; border-radius: 4px; height: 8px;}
.progress-bar span {position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0;}

/* --- ADAPTIVE --- */
@media screen and (max-width: 760px) {
    .serv__gap, .form__row--submit {gap: 10px;}
    .form__row {grid-template-columns: minmax(200px,1fr);}
    .form__table, .form__table tr, .form__table td, .form__table tbody {display: block; width: 100%; min-height: 22px; padding: 0 !important;}
    .form__table tr + tr {padding-top: 20px !important;}
    .form__table .addnews {width: 100%; padding: 0 0 10px 0 !important;}
    .form__find-related {position: static; width: 100%; border-radius: 4px;}
    .qq-upload-button {width: 100% !important;}
    .form__btn {width: 100%;}
}
@media screen and (max-width: 590px) {
    .form__sec-code img {height: 60px; width: 120px;}
    .form__sec-code > input {height: 60px; line-height: 60px;}
}


/* =========================================================
   ЖЕСТКОЕ ИСПРАВЛЕНИЕ ВЫПАДАЮЩЕГО СПИСКА КАТЕГОРИЙ UCOZ
   ========================================================= */

/* 1. Перебиваем инлайн-стили скрипта _uMenu и возвращаем в поток */
div[id^="uCatsMenu"] {
    position: relative !important; /* Отменяет absolute */
    left: 0 !important;            /* Отменяет left: 270px */
    top: 0 !important;             /* Отменяет top: 407px */
    z-index: 99999 !important;     /* Поверх всего */
    visibility: visible !important;
    
    /* Красим в темную тему */
    background-color: var(--ui-bg) !important;
    border: 1px solid var(--ui-bdc) !important;
    border-radius: var(--ui-bdrs) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.6) !important;
    padding: 10px !important;
    margin-top: 5px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* 2. Стилизуем сам список (класс из кода, который вы скинули) */
.u-combolist {
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Делаем ровные строки с радио-кнопками */
.u-combolist > div {
    display: flex !important;
    align-items: center !important;
    padding: 8px 10px !important;
    border-bottom: 1px solid var(--ui-bdc) !important;
    transition: background-color 0.2s;
}

.u-combolist > div:last-child {
    border-bottom: none !important;
}

.u-combolist > div:hover {
    background-color: var(--ui-bg-darker) !important; /* Подсветка при наведении */
    border-radius: 4px;
}

/* 4. Текст и радио-кнопки */
.u-combolist input[type="radio"] {
    margin: 0 10px 0 0 !important;
    cursor: pointer;
    flex-shrink: 0;
}

.u-combolist label {
    color: var(--tt) !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* 5. Ломаем таблицу-обертку, чтобы она не мешала растягиваться блоку */
table.u-combo {
    display: block !important;
    width: 100% !important;
}
table.u-combo tbody, table.u-combo tr, table.u-combo td {
    display: block !important;
    width: 100% !important;
}

/* 6. Красим саму кнопку выбора категории */
.u-comboedit {
    width: 100% !important;
    background-color: var(--green) !important;
    color: #fff !important;
    padding: 10px 15px !important;
    border-radius: var(--ui-bdrs) !important;
    cursor: pointer;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border: none;
}