/* ============================================================
   udonobr.ru — единая дизайн-система сайта
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  --brand:        #ACD3F8;
  --brand-soft:   #EAF3FB;
  --brand-line:   #D9E7F5;
  --navy:         #123A5F;
  --navy-deep:    #0E2F4D;
  --blue:         #2D6FA8;
  --blue-bright:  #4A90D9;
  --teal:         #2F7F73;
  --warm-amber:   #FFC96B;
  --warm-honey:   #FFE8A3;
  --warm-coral:   #FF9E80;
  --warm-terra:   #D98A5B;
  --ink:          #203247;
  --muted:        #637A91;
  --card:         #FFFFFF;
  --bg:           #F6FAFE;
  --line:         #E5E7EA;

  --radius:       18px;
  --radius-sm:    12px;
  --shadow:       0 10px 26px rgba(18, 58, 95, 0.06);
  --shadow-sm:    0 6px 16px rgba(18, 58, 95, 0.06);

  --speed:        0.2s ease;
}

/* ============================================================
   General Style
   ============================================================ */
#middle {
  background: var(--bg);
  width: 100%;
  max-width: 1280px;
  margin: auto;
  box-shadow: 0 2px 12px rgba(18, 58, 95, 0.10);
}

#allEntries table { padding: 10px; }

html, body {
  width: 100%;
  min-width: 1280px;
  background: var(--bg);
}

#header {
  background:
    linear-gradient(180deg, #FFFFFF 0%, var(--brand-soft) 55%, var(--brand) 100%);
  width: 1280px;
  margin: auto;
  border-bottom: 1px solid var(--brand-line);
  box-shadow: 0 6px 18px rgba(18, 58, 95, 0.06);
}

#header div { align: left; width: 100%; }
#logo, #gerb { float: left; margin-left: 5px; }

div.celi {
  background: linear-gradient(180deg, var(--warm-honey), var(--warm-amber));
  padding: 5px;
  border-radius: var(--radius-sm);
}

div.celi p {
  margin-left: 40px;
  text-align: justify;
  font-size: 14px;
  font-family: Georgia, serif;
  color: var(--navy-deep);
}

#headmiddle {
  text-align: center;
  font-size: 18pt;
  width: 100%;
  height: 107px;
  align: left;
}

#headmiddle span { display: inline-block; margin: 45px 0 0; }

#menu_container {
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  clear: both;
}

#god { float: right; height: 95px; margin-right: 50px; }

/* Ссылки */
a:link      { text-decoration: underline; color: var(--blue); }
a:active    { text-decoration: underline; color: var(--blue-bright); }
a:visited   { text-decoration: underline; color: #6e278d; }
a:hover     { text-decoration: underline; color: var(--blue-bright); }

.top_menu a:link,
.top_menu a:active,
.top_menu a:visited {
  text-decoration: none;
  color: #B8D8F0;
  transition: color var(--speed);
}
.top_menu a:hover { text-decoration: none; color: #FFFFFF; }
.top_menu { color: #FFFFFF; }

td, body {
  font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 12pt;
  color: var(--ink);
  line-height: 1.55;
}

form { padding: 0; margin: 0; }

input, textarea, select {
  vertical-align: middle;
  font-size: 8pt;
  font-family: 'Roboto', system-ui, sans-serif;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 6px 8px;
  transition: border-color var(--speed), box-shadow var(--speed);
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid transparent;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 111, 168, 0.20);
}

.copy { font-size: 7pt; color: var(--muted); }

a.noun:link, a.noun:active, a.noun:visited {
  text-decoration: none;
  color: var(--blue);
  transition: color var(--speed);
}
a.noun:hover { text-decoration: none; color: var(--blue-bright); }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-line) 20%, var(--brand-line) 80%, transparent);
}

label { cursor: pointer; }

.blocktitle {
  font-family: 'Roboto', system-ui, sans-serif;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

a.menu1:link, a.menu1:active, a.menu1:visited {
  text-decoration: underline;
  color: #FAFAFA;
  transition: color var(--speed);
}
a.menu1:hover { text-decoration: underline; color: #B8E0FF; }

.menuTd {
  padding-left: 12px;
  padding-right: 10px;
  background: url('/.s/t/271/12.gif') no-repeat 0 3px;
}

.mframe { border-left: 1px solid var(--brand-line); border-right: 1px solid var(--brand-line); }
.colgray { border-right: 1px solid var(--brand-line); }
.colwhite { border-right: 1px solid #FAFAFA; }
.msep { border-top: 1px solid #FAFAFA; }

/* ============================================================
   Menus
   ============================================================ */
ul.uz,
ul.uMenuRoot {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

li.menus {
  position: relative;
  padding: 6px 10px 6px 26px;
  background: none;
  margin-bottom: 0.4em;
  border-radius: 10px;
  color: var(--navy);
  font-weight: 650;
  transition: background var(--speed), color var(--speed), transform var(--speed);
}

li.menus::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
  transition: background var(--speed), transform var(--speed);
}

li.menus:hover {
  background: linear-gradient(180deg, #FFFDF8 0%, #F4F9FE 100%);
  color: var(--blue);
  transform: translateX(3px);
}

li.menus:hover::before {
  background: var(--blue);
  transform: translateY(-50%) scale(1.4);
}

/* ============================================================
   Site Menus
   ============================================================ */
.uMenuH li { float: left; padding: 0 5px; }

.uMenuV .uMenuItem { font-weight: normal; }

.uMenuV li a:link, .uMenuV li a:active, .uMenuV li a:visited {
  text-decoration: none;
  color: var(--navy);
  transition: color var(--speed);
}
.uMenuV li a:hover { text-decoration: none; color: var(--blue); }

.uMenuV a.uMenuItemA:link, .uMenuV a.uMenuItemA:visited {
  text-decoration: none;
  color: var(--navy);
}
.uMenuV a.uMenuItemA:hover {
  text-decoration: none;
  color: var(--blue);
}

.uMenuV .uMenuArrow {
  position: absolute;
  width: 10px;
  height: 10px;
  right: 0;
  top: 3px;
  background: url('/.s/img/wd/1/ar1.gif') no-repeat 0 0;
}

.uMenuV li {
  position: relative;
  padding: 6px 10px 6px 24px;
  background: none;
  margin-bottom: 0.3em;
  border-radius: 10px;
  transition: background var(--speed), transform var(--speed);
}

.uMenuV li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
  transition: background var(--speed), transform var(--speed);
}

.uMenuV li:hover {
  background: linear-gradient(180deg, #FFFDF8 0%, #F4F9FE 100%);
  transform: translateX(3px);
}

.uMenuV li:hover::before {
  background: var(--blue);
  transform: translateY(-50%) scale(1.4);
}

/* ============================================================
   Module Part Menu
   ============================================================ */
.catsTd {
  position: relative;
  padding: 6px 10px 6px 24px;
  background: none;
  margin-bottom: 0.3em;
  border-radius: 10px;
  transition: background var(--speed), transform var(--speed);
}

.catsTd::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
  transition: background var(--speed), transform var(--speed);
}

.catsTd:hover {
  background: linear-gradient(180deg, #FFFDF8 0%, #F4F9FE 100%);
  transform: translateX(3px);
}

.catsTd:hover::before {
  background: var(--blue);
  transform: translateY(-50%) scale(1.4);
}

.catNumData { font-size: 7pt; color: var(--blue); font-weight: 700; }
.catDescr   { font-size: 7pt; padding-left: 10px; color: var(--muted); }

a.catName:link, a.catName:visited {
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  transition: color var(--speed);
}
a.catName:hover, a.catName:active {
  text-decoration: none;
  color: var(--blue);
}

a.catNameActive:link, a.catNameActive:visited {
  text-decoration: none;
  color: var(--navy-deep);
  font-weight: 800;
}
a.catNameActive:hover { text-decoration: none; color: var(--blue); }
a.catNameActive:active { text-decoration: none; color: var(--blue); }

/* ============================================================
   Entries Style
   ============================================================ */
.eTitle { text-align: center; }

.eTitle a:link, .eTitle a:visited {
  text-decoration: underline;
  color: var(--blue);
  transition: color var(--speed);
}
.eTitle a:hover, .eTitle a:active {
  text-decoration: underline;
  color: var(--navy-deep);
}

.eMessage {
  text-align: justify;
  padding-bottom: 5px;
  color: var(--ink);
}

.eMessage a img {
  border-radius: var(--radius-sm);
  margin: 5px !important;
  box-shadow: 0 6px 16px rgba(18, 58, 95, 0.10);
  transition: transform var(--speed), box-shadow var(--speed);
}

.eMessage a img:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(18, 58, 95, 0.16);
}

.eText {
  text-align: justify;
  padding: 8px 0 5px;
  border-top: 1px solid var(--brand-line);
}

.eDetails, .eDetails1 {
  border-top: 1px dashed var(--brand-line);
  border-bottom: 1px dashed var(--brand-line);
  color: var(--muted);
  padding: 5px 0 6px;
  text-align: left;
  font-size: 8pt;
}

.eDetails2 {
  border-bottom: 1px dashed var(--brand-line);
  color: var(--muted);
  padding: 5px 0 6px;
  text-align: left;
  font-size: 8pt;
}

.eRating { font-size: 7pt; color: var(--muted); }

.eAttach {
  margin: 16px 0 0;
  padding: 0 0 0 15px;
  background: url('/.s/t/271/15.gif') no-repeat 0 0;
}

/* ============================================================
   Entry Manage Table
   ============================================================ */
.manTdError { color: #B00020; font-weight: 700; }

/* ============================================================
   Comments Style
   ============================================================ */
.cAnswer {
  padding-left: 15px;
  padding-top: 4px;
  font-style: italic;
  color: var(--muted);
  border-left: 3px solid var(--brand);
}

.cBlock1, .cBlock2 {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--brand-soft) 100%);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   Comments Form Style
   ============================================================ */
.commTd1 { color: var(--ink); }

.commFl {
  color: var(--navy);
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  padding: 8px 10px;
  transition: border-color var(--speed), box-shadow var(--speed);
}

.commFl:focus {
  outline: 2px solid transparent;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 111, 168, 0.20);
}

.smiles { border: 1px inset var(--brand-line); background: #FFFFFF; border-radius: 8px; }

.commReg { padding: 10px 0; text-align: center; }
.commError { color: #B00020; font-weight: 700; }

.securityCode {
  color: var(--navy);
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 6px 8px;
}

/* ============================================================
   Archive Menu / Archive Style
   ============================================================ */
.archUl { list-style: none; margin: 0; padding-left: 0; }

.archLi {
  position: relative;
  padding: 4px 0 4px 20px;
  background: none;
  transition: transform var(--speed);
}

.archLi::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
}

.archLi:hover { transform: translateX(3px); }

a.archLink:link, a.archLink:visited {
  text-decoration: underline;
  color: var(--blue);
  transition: color var(--speed);
}
a.archLink:hover, a.archLink:active {
  text-decoration: none;
  color: var(--navy-deep);
}

.archiveCalendars { text-align: center; color: var(--blue); }
.archiveDateTitle {
  font-weight: 850;
  color: var(--navy-deep);
  padding-top: 15px;
  font-size: 15px;
}

.archEntryHr {
  width: 250px;
  border: 0;
  height: 1px;
  background: var(--brand-line);
}

.archiveeTitle li {
  margin-left: 15px;
  padding: 4px 0 4px 18px;
  background: none;
  position: relative;
  margin-bottom: 0.6em;
}

.archiveeTitle li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
}

.archiveEntryTime { width: 65px; font-style: italic; color: var(--muted); }
.archiveEntryComms { font-size: 9px; color: var(--muted); }

a.archiveDateTitleLink:link, a.archiveDateTitleLink:visited {
  text-decoration: none;
  color: var(--blue);
  transition: color var(--speed);
}
a.archiveDateTitleLink:hover, a.archiveDateTitleLink:active {
  text-decoration: underline;
  color: var(--navy-deep);
}

.archiveNoEntry { text-align: center; color: var(--muted); }

/* ============================================================
   Calendar Style
   ============================================================ */
.calMonth {
  border: 1px solid var(--brand-line);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--brand-soft) 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.calWday {
  color: var(--navy-deep);
  background: var(--brand);
  width: 18px;
  font-weight: 800;
}

.calWdaySe, .calWdaySu {
  color: #7A2A1A;
  background: var(--warm-coral);
  width: 18px;
  font-weight: 800;
}

.calMday {
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 6px;
  transition: background var(--speed), transform var(--speed);
}

.calMdayA { background: var(--brand); font-weight: 800; }
.calMdayIs { background: #C6F5D6; font-weight: 800; color: #1F6A3E; }

.calMdayIsA {
  border: 1px solid #99F684;
  background: #E7FBEF;
  font-weight: 800;
  color: #1F6A3E;
}

a.calMonthLink:link, a.calMdayLink:link,
a.calMonthLink:visited, a.calMdayLink:visited {
  text-decoration: none;
  color: var(--blue);
  transition: color var(--speed);
}
a.calMonthLink:hover, a.calMdayLink:hover {
  text-decoration: underline;
  color: var(--blue-bright);
}
a.calMonthLink:active, a.calMdayLink:active {
  text-decoration: underline;
  color: var(--navy-deep);
}

/* ============================================================
   Poll styles
   ============================================================ */
.pollBut { width: 110px; }

.pollBody {
  padding: 10px;
  margin: 0;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-line);
}

.textResults { background: var(--brand-soft); }
.textResultsTd { background: #FFFFFF; }

.pollNow {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.totalVotesTable {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.totalVotesTd { background: #FFFFFF; }

/* ============================================================
   User Group Marks
   ============================================================ */
a.groupModer:link, a.groupModer:visited, a.groupModer:hover { color: var(--blue); }
a.groupAdmin:link, a.groupAdmin:visited, a.groupAdmin:hover { color: #B00020; }
a.groupVerify:link, a.groupVerify:visited, a.groupVerify:hover { color: var(--teal); }

/* ============================================================
   Other Styles
   ============================================================ */
.replaceTable {
  background: var(--brand-soft);
  height: 100px;
  width: 300px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.legendTd { font-size: 7pt; color: var(--muted); }

/* ============================================================
   Forum
   ============================================================ */
.gTable { background: var(--brand); }

.gTableTop {
  padding: 6px 12px;
  color: #FFFFFF;
  font-weight: 850;
  height: 34px;
  font-size: 10pt;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  border-radius: 10px 10px 0 0;
}

.gTableSubTop {
  padding: 4px 10px;
  background: var(--brand-soft);
  color: var(--navy);
  height: 26px;
  font-size: 10px;
  font-weight: 700;
}

.gTableBody, .gTableBody1 { padding: 6px 10px; background: #FFFFFF; }

.gTableBottom {
  padding: 6px 10px;
  background: var(--brand-soft);
  border-radius: 0 0 10px 10px;
}

.gTableLeft {
  padding: 6px 10px;
  background: #FFFFFF;
  font-weight: 800;
  color: var(--navy);
}

.gTableRight { padding: 6px 10px; background: var(--brand-soft); }
.gTableError { padding: 6px 10px; background: #FFEDED; color: #B00020; font-weight: 700; }

.forumNameTd, .forumLastPostTd { padding: 6px 10px; background: #FFFFFF; }
.forumIcoTd, .forumThreadTd, .forumPostTd { padding: 6px 10px; background: var(--brand-soft); }
.forumLastPostTd, .forumArchive { padding: 6px 10px; font-size: 7pt; color: var(--muted); }

a.catLink:link, a.catLink:visited {
  text-decoration: none;
  color: #FFFFFF;
  transition: color var(--speed);
}
a.catLink:hover { text-decoration: underline; color: #FFFFFF; }
a.catLink:active { text-decoration: underline; color: #FFFFFF; }

.lastPostGuest, .lastPostUser, .threadAuthor { font-weight: 700; color: var(--navy-deep); }

.archivedForum { font-size: 7pt; color: #B00020; font-weight: 700; }

.forum { font-weight: 850; font-size: 9pt; color: var(--navy-deep); }
.forumDescr, .forumModer { color: var(--muted); font-size: 7pt; }
.forumViewed { font-size: 9px; color: var(--muted); }

a.forum:link, a.lastPostUserLink:link, a.forumLastPostLink:link, a.threadAuthorLink:link,
a.forum:visited, a.lastPostUserLink:visited, a.forumLastPostLink:visited, a.threadAuthorLink:visited {
  text-decoration: none;
  color: var(--blue);
  transition: color var(--speed);
}
a.forum:hover, a.lastPostUserLink:hover, a.forumLastPostLink:hover, a.threadAuthorLink:hover {
  text-decoration: underline;
  color: var(--blue-bright);
}
a.forum:active, a.lastPostUserLink:active, a.forumLastPostLink:active, a.threadAuthorLink:active {
  text-decoration: underline;
  color: var(--navy-deep);
}

.forumNamesBar { font-weight: 850; font-size: 7pt; color: var(--navy); }
.forumBarKw { font-weight: normal; }

a.forumBarA:link, a.forumBarA:visited {
  text-decoration: none;
  color: var(--ink);
  transition: color var(--speed);
}
a.forumBarA:hover { text-decoration: none; color: var(--blue); }
a.forumBarA:active { text-decoration: underline; color: var(--blue); }

.fastNav, .fastSearch, .fastLoginForm { font-size: 7pt; }

.fastNavMain { background: var(--brand); }
.fastNavCat { background: var(--brand-soft); }
.fastNavCatA { background: var(--brand-soft); color: var(--blue); }
.fastNavForumA { color: var(--blue); }

.switches { background: var(--navy); }

.pagesInfo {
  background: var(--brand-soft);
  padding-right: 10px;
  font-size: 7pt;
  color: var(--navy);
}

.switch {
  background: var(--brand-soft);
  width: 15px;
  font-size: 7pt;
  color: var(--navy);
}

.switchActive {
  background: var(--blue);
  font-weight: 850;
  color: #FFFFFF;
  width: 15px;
  border-radius: 6px;
}

a.switchDigit:link, a.switchBack:link, a.switchNext:link,
a.switchDigit:visited, a.switchBack:visited, a.switchNext:visited {
  text-decoration: none;
  color: var(--ink);
  transition: color var(--speed);
}
a.switchDigit:hover, a.switchBack:hover, a.switchNext:hover {
  text-decoration: underline;
  color: var(--blue);
}
a.switchDigit:active, a.switchBack:active, a.switchNext:active {
  text-decoration: underline;
  color: var(--navy-deep);
}

.threadNametd, .threadAuthTd, .threadLastPostTd { padding: 6px 10px; background: #FFFFFF; }
.threadIcoTd, .threadPostTd, .threadViewTd { padding: 6px 10px; background: var(--brand-soft); }
.threadLastPostTd { padding: 6px 10px; font-size: 7pt; color: var(--muted); }
.threadDescr { color: var(--muted); font-size: 7pt; }
.threadNoticeLink { font-weight: 850; }

.threadsType {
  padding: 6px 10px 6px 40px;
  background: #FFFFFF;
  height: 28px;
  font-weight: 850;
  font-size: 7pt;
  color: var(--navy);
}

.threadsDetails {
  padding: 6px 10px;
  background: #FFFFFF;
  height: 28px;
  color: var(--navy);
}

.forumOnlineBar {
  padding: 6px 10px;
  background: var(--brand-soft);
  height: 28px;
  color: var(--navy);
  border-radius: 8px;
}

a.threadPinnedLink:link, a.threadPinnedLink:visited {
  text-decoration: none;
  color: var(--blue);
  transition: color var(--speed);
}
a.threadPinnedLink:hover { text-decoration: none; color: var(--blue-bright); }
a.threadPinnedLink:active { text-decoration: underline; color: var(--navy-deep); }

a.threadLink:link, a.threadLink:visited {
  text-decoration: none;
  color: var(--blue);
  transition: color var(--speed);
}
a.threadLink:hover { text-decoration: underline; color: var(--navy-deep); }
a.threadLink:active { text-decoration: underline; color: var(--navy-deep); }

.postpSwithces { font-size: 7pt; }
.thDescr { font-weight: normal; color: var(--muted); }
.threadFrmBlock { font-size: 7pt; text-align: right; color: var(--muted); }

.postTable { background: var(--brand); }
.postPoll { background: var(--brand-soft); text-align: center; }

.postFirst {
  background: #FFFFFF;
  border-bottom: 3px solid var(--brand);
}

.postRest1 { background: var(--brand-soft); }
.postRest2 { background: #FFFFFF; }
.postSeparator { height: 3px; background: var(--navy); }

.postTdTop, .postBottom {
  background: linear-gradient(180deg, var(--brand-soft), var(--brand));
  height: 26px;
  color: var(--navy-deep);
  font-weight: 700;
}

.postUser { font-weight: 850; color: var(--navy-deep); }
.postTdInfo { background: #FFFFFF; text-align: center; padding: 6px; }
.postRankName { margin-top: 5px; color: var(--navy); }
.postRankIco { margin-bottom: 5px; }
.reputation { margin-top: 5px; color: var(--muted); }

.signatureHr {
  margin-top: 20px;
  border: 0;
  height: 1px;
  background: var(--brand-line);
}

.posttdMessage { background: #FFFFFF; padding: 12px; }

.pollQuestion { text-align: center; font-weight: 850; color: var(--navy-deep); }
.pollButtons, .pollTotal { text-align: center; }
.pollSubmitBut, .pollreSultsBut { width: 140px; font-size: 7pt; }
.pollSubmit { font-weight: 850; }
.pollEnd { text-align: center; height: 30px; }

.codeMessage {
  background: #FFFFFF;
  font-size: 9px;
  border-left: 3px solid var(--blue);
  padding: 6px 10px;
  border-radius: 0 8px 8px 0;
}

.quoteMessage {
  background: #F3FAF8;
  font-size: 9px;
  border-left: 3px solid var(--teal);
  padding: 6px 10px;
  border-radius: 0 8px 8px 0;
  color: #24514A;
}

.signatureView { font-size: 7pt; color: var(--muted); }

.edited { padding-top: 30px; font-size: 7pt; text-align: right; color: var(--muted); }
.editedBy { font-weight: 850; font-size: 8pt; }

.statusBlock { padding-top: 3px; }
.statusOnline { color: var(--blue); font-weight: 700; }
.statusOffline { color: #B00020; font-weight: 700; }

.newThreadBlock, .newPollBlock {
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.newThreadItem, .newPollItem {
  position: relative;
  padding: 6px 10px 6px 20px;
}

.newThreadItem::before, .newPollItem::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-50%);
}

.codeButtons {
  font-size: 7pt;
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--navy);
  transition: background var(--speed), border-color var(--speed);
}

.codeButtons:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.codeCloseAll {
  font-size: 7pt;
  color: var(--navy);
  font-weight: 850;
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 8px;
  padding: 4px 8px;
}

.postNameFl, .postDescrFl, .postPollFl, .postQuestionFl,
.postResultFl, .postAnswerFl, .postUserFl {
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 10px;
  padding: 6px 10px;
  width: 400px;
  transition: border-color var(--speed), box-shadow var(--speed);
}

.postNameFl:focus, .postDescrFl:focus, .postPollFl:focus,
.postQuestionFl:focus, .postResultFl:focus, .postAnswerFl:focus,
.postUserFl:focus {
  outline: 2px solid transparent;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 111, 168, 0.20);
}

.postResultFl { width: 50px; }
.postAnswerFl { width: 300px; }

.postTextFl {
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  padding: 8px 10px;
  width: 550px;
  height: 150px;
  font-family: 'Roboto', system-ui, sans-serif;
  transition: border-color var(--speed), box-shadow var(--speed);
}

.postTextFl:focus {
  outline: 2px solid transparent;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 111, 168, 0.20);
}

.pollHelp { font-weight: normal; font-size: 7pt; padding-top: 3px; color: var(--muted); }
.smilesPart { padding-top: 5px; text-align: center; }

/* ============================================================
   Горизонтальное меню (#menu)
   ============================================================ */
#menu, #menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu { width: 1280px; margin: auto; }

#menu:before, #menu:after { content: ""; display: table; }
#menu:after { clear: both; }
#menu { zoom: 1; }

#menu li {
  float: left;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

#menu a {
  float: left;
  padding: 12px 20px;
  color: #E8F3FE;
  text-transform: uppercase;
  font: bold 12px system-ui, Arial, Helvetica;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  transition: color var(--speed), background var(--speed);
  border-radius: 8px;
}

#menu li:hover > a { color: #FFFFFF; }

#menu ul {
  margin: 20px 0 0 20px;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 38px;
  left: 0;
  z-index: 9999;
  background: linear-gradient(180deg, var(--navy-deep), var(--navy));
  border-radius: 10px;
  box-shadow: 0 16px 30px rgba(18, 58, 95, 0.30);
  -webkit-transition: all .2s ease-in-out;
  -moz-transition: all .2s ease-in-out;
  -ms-transition: all .2s ease-in-out;
  -o-transition: all .2s ease-in-out;
  transition: all .2s ease-in-out;
  padding: 6px;
}

#menu li:hover > ul {
  opacity: 1;
  visibility: visible;
  margin: 0;
}

#menu ul ul {
  top: 0;
  left: 250px;
  margin: 20px 0 0 20px;
}

#menu ul li {
  float: none;
  display: block;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#menu ul li:last-child { border-bottom: 0; }

#menu ul a {
  padding: 10px;
  width: 230px;
  display: block;
  white-space: nowrap;
  float: none;
  text-transform: none;
  border-radius: 8px;
  font-weight: 650;
}

#menu ul a:hover {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #FFFFFF;
}

#menu ul li:first-child > a {
  border-radius: 8px 8px 0 0;
}

#menu ul li:first-child > a:after {
  content: '';
  position: absolute;
  left: 40px;
  top: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--navy-deep);
}

#menu ul ul li:first-child a:after {
  left: -6px;
  top: 50%;
  margin-top: -6px;
  border-left: 0;
  border-bottom: 6px solid transparent;
  border-top: 6px solid transparent;
  border-right: 6px solid var(--navy-deep);
}

#menu ul li:last-child > a {
  border-radius: 0 0 8px 8px;
}

/* ============================================================
   Закладки (menu1Holder)
   ============================================================ */
.menu1Holder {
  position: relative;
  float: left;
  overflow: hidden;
  font: normal bold 11px/35px 'Roboto', sans-serif;
}

.menu1Holder .shadow {
  height: 10px;
  width: 90%;
  left: 5%;
  top: -9px;
  position: absolute;
  z-index: 100;
  background: var(--brand);
  -webkit-box-shadow: 0 0 20px rgba(18, 58, 95, 0.35);
  -moz-box-shadow: 0 0 20px rgba(18, 58, 95, 0.35);
  box-shadow: 0 0 20px rgba(18, 58, 95, 0.35);
}

ul.menu1 {
  margin: 0;
  list-style: none;
  display: block;
  float: left;
  height: 50px;
  position: relative;
  padding: 0 60px;
}

ul.menu1 li { margin: 0 5px 0 0; float: left; }

ul.menu1 li a {
  color: #FFFFFF;
  padding: 0 10px;
  display: block;
  text-decoration: none;
  background: var(--navy);
  -webkit-box-shadow: 0 4px 10px rgba(18, 58, 95, 0.25);
  -moz-box-shadow: 0 4px 10px rgba(18, 58, 95, 0.25);
  box-shadow: 0 4px 10px rgba(18, 58, 95, 0.25);
  border-radius: 0 0 12px 12px;
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  font-weight: 850;
}

ul.menu1 li a.red     { background: #C94A4A; }
ul.menu1 li a.orange  { background: var(--warm-terra); }
ul.menu1 li a.yellow  { background: var(--warm-amber); color: var(--navy-deep); }
ul.menu1 li a.green   { background: var(--teal); }
ul.menu1 li a.blue    { background: var(--blue); }
ul.menu1 li a.indigo  { background: var(--navy); }
ul.menu1 li a.violet  { background: #7C5BC2; }

ul.menu1 li a:hover {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  color: #FFFFFF;
  padding: 10px 10px 0 10px;
}

ul.menu1 li a.red:hover    { background: linear-gradient(180deg, #E06060, #B23A3A); }
ul.menu1 li a.orange:hover { background: linear-gradient(180deg, var(--warm-coral), var(--warm-terra)); }
ul.menu1 li a.yellow:hover { background: linear-gradient(180deg, var(--warm-amber), var(--warm-coral)); color: var(--navy-deep); }
ul.menu1 li a.green:hover  { background: linear-gradient(180deg, #47A897, var(--teal)); }
ul.menu1 li a.blue:hover   { background: linear-gradient(180deg, var(--blue-bright), var(--blue)); }
ul.menu1 li a.indigo:hover { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); }
ul.menu1 li a.violet:hover { background: linear-gradient(180deg, #9A78DA, #7C5BC2); }

/* ============================================================
   Форма поиска (оранжевая кнопка)
   ============================================================ */
.poick_os {
  float: left;
  padding: 4px;
  background: #FFFFFF;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--speed), border-color var(--speed);
}

.poick_os:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 111, 168, 0.20);
}

.poick_os input {
  float: left;
  margin: 0;
  vertical-align: middle;
  font: 11px Verdana, Arial, Helvetica, sans-serif;
}

.poick_pole {
  color: var(--ink);
  height: 15px;
  border: none;
  padding: 6px 8px;
  background: transparent;
}

.poick_pole:focus { outline: none; }

.poick_knopka {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.20);
  width: 80px;
  height: 30px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--warm-coral), var(--warm-terra));
  border: 0;
  color: #FFFFFF;
  font-weight: 850 !important;
  border-radius: 8px;
  transition: transform var(--speed), box-shadow var(--speed), filter var(--speed);
}

.poick_knopka:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(217, 138, 91, 0.35);
  filter: saturate(1.05);
}

.poick_knopka:active {
  transform: translateY(0) scale(0.98);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ============================================================
   Новостные блоки (mtr)
   Карточка строго внутри родителя, без выхода за края.
   .inim — квадрат 180×180, картинка вписана целиком.
   ============================================================ */

/* Карточка — не выходит за ширину родителя */
.mtr {
  position: relative;
  display: block;

  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;

  padding: 20px 22px 22px;
  margin: 0 0 16px;

  overflow: hidden;

  background: linear-gradient(180deg, #FFFFFF 0%, #FCFEFF 100%);
  border: 1px solid var(--brand-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}

.mtr::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--brand), var(--warm-amber), var(--warm-coral), var(--teal), var(--brand));
  opacity: 0.9;
  pointer-events: none;
}

.mtr:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 14px 32px rgba(18, 58, 95, 0.12);
}

/* Clearfix — карточка охватывает float-квадрат */
.mtr::after {
  content: "";
  display: table;
  clear: both;
}

/* ---------- Квадрат с картинкой (float: left) ---------- */
.mtr .im {
  display: block;
  float: left;

  box-sizing: border-box;
  width: 180px;
  max-width: 100%;
  min-width: 0;

  margin: 0 18px 14px 0;
  padding: 0;
}

.mtr .inim {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  width: 180px;
  max-width: 100%;
  height: 180px;

  margin: 0;
  padding: 0;
  overflow: hidden;

  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #FFFFFF 0%, var(--brand-soft) 100%);
  box-shadow: 0 8px 22px rgba(18, 58, 95, 0.12);
  transition: box-shadow var(--speed), transform var(--speed);
}

.mtr .inim:hover {
  box-shadow: 0 14px 30px rgba(18, 58, 95, 0.18);
  transform: translateY(-2px);
}

.mtr .inim a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 0;
  text-decoration: none;
}

.mtr .inim img {
  display: block;

  width: auto !important;      /* перебивает width="150" в HTML uCoz */
  height: auto !important;

  max-width: 100%;
  max-height: 100%;

  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
  vertical-align: middle;
  transition: transform 0.4s ease;
}

.mtr:hover .inim img { transform: scale(1.05); }

/* ---------- Текстовая колонка (справа от float) ---------- */
.mtr .mtr_td {
  display: block;

  overflow: hidden;
  min-width: 0;
  max-width: 100%;

  padding: 0;
  box-sizing: border-box;
}

/* Заголовок */
.mtr .name_mtr {
  margin: 0 0 10px;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 850;
  line-height: 1.3;
  color: var(--navy-deep);
  letter-spacing: -0.005em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mtr .name_mtr a {
  color: var(--navy-deep);
  text-decoration: none;
  transition: color var(--speed);
}
.mtr .name_mtr a:hover {
  color: var(--blue);
  text-decoration: underline;
}

/* Мета-пилюли */
.mtr .article_counters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  min-width: 0;
}

.mtr .article_counters span,
.mtr .article_counters a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: background var(--speed), color var(--speed), transform var(--speed);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.mtr .article_counters a:hover {
  background: var(--brand);
  color: var(--navy-deep);
  text-decoration: none;
  transform: translateY(-1px);
}

.mtr .article_counters .dats::before    { content: "🕒"; }
.mtr .article_counters .views::before   { content: "👁"; }
.mtr .article_counters .coms::before    { content: "💬"; }
.mtr .article_counters .catalog::before { content: "📁"; }
.mtr .article_counters .user::before    { content: "👤"; }

.mtr .article_counters ::before {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1;
}

/* Описание */
.mtr .mtr_d {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mtr .mtr_descr { margin: 0; position: absolute; top: -9000px; }

/* Если картинки нет — текст занимает всю ширину */
.mtr:not(:has(.inim img[src]:not([src=""]))) .im {
  display: none;
}

/* Планшет — уменьшаем квадрат */
@media (max-width: 900px) {
  .mtr { padding: 16px 16px 18px; }

  .mtr .im,
  .mtr .inim {
    width: 160px;
    height: 160px;
  }
  .mtr .im { margin-right: 14px; }
}

/* Мобильные — квадрат переезжает наверх */
@media (max-width: 620px) {
  .mtr .im {
    float: none;
    width: 100%;
    margin: 0 0 14px;
  }
  .mtr .inim {
    width: 100%;
    height: 220px;
  }
  .mtr .inim img {
    max-width: 100%;
    max-height: 100%;
  }
}

/* ============================================================
   ui-menu (jQuery UI)
   ============================================================ */
.ui-menu .ui-menu-item { float: left; }
.ui-menu .ui-menu-item a { text-decoration: none; }

.ui-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
  outline: 0;
}

.ui-widget-content {
  background: #FFFFFF;
  color: var(--ink);
}

.ui-widget.ui-widget-content {
  background-color: #FFFFFF;
  height: 34px;
  border: 1px solid var(--brand-line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2px;
}

.ui-menu .ui-menu-item {
  margin: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background var(--speed), color var(--speed);
}

.ui-menu .ui-menu-item:hover { background: var(--brand-soft); }

.ui-menu .ui-menu-item-wrapper {
  position: relative;
  padding: 8px 1em 8px 0.8em !important;
}

.ui-widget-content a {
  color: var(--navy);
  font-weight: 650;
  transition: color var(--speed);
}
.ui-widget-content a:hover { color: var(--blue); }

.ui-state-active, .selected {
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  border-radius: 8px;
}

.ui-state-active a, .selected a {
  color: #FFFFFF;
}

/* ============================================================
   Дополнительно (2020)
   ============================================================ */
#document-viewer iframe {
  width: 98%;
  height: 700px;
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-sm);
  padding: 7px;
  margin-top: 15px;
  box-shadow: var(--shadow-sm);
}

.news__info-icon {
  color: var(--muted);
  font-size: 12pt;
  margin: 0 5px 0 0;
}

.fa-download:before { content: "\f019"; }

.eBlockCentr ol li { font-size: 12pt; color: var(--ink); }

.eMessage table, .catAllEntries table { margin: 2px auto !important; }

.eMessage table img { padding: 2px !important; }

#allEntries #pagesBlock1 { clear: none !important; }

/* ============================================================
   prefers-reduced-motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}