/*************************************************************
A - SETUP
**************************************************************/

/* A1 Import the colour scheme
-------------------------------------------------------------*/

/* A1.1 */
@import url(style_cs.1743203326.css);
@import url('https://fonts.googleapis.com/css?family=Forum');

/* A2 Deal with browser defaults and wonkiness
-------------------------------------------------------------*/

/* A2.1 */
html, body {margin: 0; padding: 0}

/* A2.2 */
.punbb * {margin: 0;}

/* A2.3 */
.punbb ul, .punbb dl, .punbb li, .punbb dd, .punbb dt {padding: 0; list-style: none;}

/* A2.4 */
.punbb img {border:none;}

/* A2.5 */
.punbb .main table {table-layout: fixed; width: 100%;}

/* A2.6 */
.checkfield input[type="checkbox"], .radiofield input[type="radio"] {margin: 0 0.3em;}

/* A2.7 */
p[class="checkfield"] *,
div[class="checkfield"] *,
fieldset[class="radiofield"] * {height: 1.8em; vertical-align: middle;}

 /* A3 Text setup + BACKGROUND
-------------------------------------------------------------*/
/* A3.1 */
html, body {
    background-position: 50% 0%;
    background-repeat: repeat;
    background-color: #969494;
    font-size: 100.01%;}

/* A3.2 */
.punbb {font: normal 68.75% verdana, arial, helvetica, sans-serif;}

/* A3.3 */
.punbb textarea, .punbb input, .punbb select, .punbb optgroup {font: 1em verdana, arial, helvetica, sans-serif;}

/* A3.4 */
.punbb h1, .punbb h2, .punbb h3, .punbb h4, .punbb table, .punbb th {
  font-size: 1em;
  font-weight: normal;}

/* A3.5 */
.punbb h1 span, .punbb h2 span, .punbb legend span {
  font-size: 1.1em;}

/* A3.6 */
.punbb pre {font: 1.1em/140% monaco, "bitstream vera sans mono", "courier new", courier, monospace}

/* A3.7 */
.punbb address, .punbb em {font-style: normal;}

/* A3.8 */
.punbb .post-content em {font-style: italic;}

/* A3.9 */
.punbb .post-content em.bbuline {font-style: normal; text-decoration: underline;}

/* A3.10 */
.punbb a {text-decoration: none;}

/* A3.11 */
.punbb optgroup {font-weight: bold;}


/* A4 Float clearing and hidden items
-------------------------------------------------------------*/
/* A4.1 */
#pun:after,
.punbb .container:after,
.punbb .post-links ul:after,
.punbb .main div.inline:after,
.punbb .post-box:after,
.punbb .linksb:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
  overflow:hidden;
  line-height: 0.0;
  font-size: 0;}

/* A4.2 */
.acchide,
#pun-index #pun-main h1,
#pun-navlinks h2,
#pun-pagelinks h2,
#pun-status h2,
#pun-ulinks h2,
.punbb .forum h2,
.punbb .multipage .topic h2,
.punbb dl.post-sig dt span,
.punbb p.crumbs strong,
.punbb .divider hr,
.punbb .required label em,
.punbb .formsubmit label,
.punbb .submitfield label,
.punbb .modmenu label,
#pun-userlist .main h2 {
  font-size: 0;
  height: 0;
  width: 0;
  line-height: 0.0;
  position:absolute;
  left: -9999px;
  overflow: hidden;}

/* A5 Basic page layout and borders
-------------------------------------------------------------*/
/* A5.1 *//***   ОСНОВНОЙ КОНТЕЙНЕР ФОРУМА   ***/
#pun {
  margin: 0 auto;
  width: 1000px;
  position: relative; /* Точка отсчёта для абсолютного позиционирования */
  background: transparent;
  /* Основной фон (два слоя) */
  background-image: 
    url("https://forumupload.ru/uploads/001c/49/d2/3/139689.png"),
    url("https://forumupload.ru/uploads/001c/49/d2/3/139689.png");
  background-position: 0 0, 0 1px;
  background-repeat: repeat-y;
  background-size: 100% auto;
  padding-top: 50px; /* Отступ под шапку */}
  
  /***   КОРРЕКТИРОВКА ОТСТУПОВ   ***/
.punbb { 
  margin-left: 40px!important;
  width: 930px !important;}

  
/*** ЦВЕТ АДМИНКИ ***/
.punbb-admin #pun-admain .adcontainer, #pun-admain {
background-color:#e4e4e4;}

#pun-navlinks li#navadmin a span {display: none;}
#pun-navlinks li#navadmin a:before {content: 'Админка';}

/* A5.2 */
.punbb {float: left; width: 100%; height: auto;}

/* A5.3 *//***   ПЕРЕАДРЕСАЦИЯ   ***/

#pun-redirect, #pun-maint {
  margin: 50px 20% 12px 20%;
  width: auto;
  float: none;
  text-align: center;}

/* A5.4 */
.punbb .section, .punbb .main {margin-bottom: 1em;}

/* A5.5 */
.punbb .category, .punbb .post {
  margin-top: 0.4em;}

/* A5.6 */
.punbb #pun-category1, .punbb .toppost, .punbb .topicpost {margin-top: 0;}

/* A5.7 */
#pun-post .topic {margin-top: 1em;}

/* A5.8 */
.punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info,
.punbb .category, .punbb .post {
  border-style: none none solid none;
  border-width: 0px 0px 2px 0px}

/* A5.9 */
.punbb .container {
  border-style: solid;
  border-width: 1px;}

/* A5.10 */
.punbb .section h2, #pun-main h1, #pun-main h2, #pun-stats h2, #pun-debug h2 {
  padding: 0.5em 1em;
  border-style: none solid solid none;
  border-width: 0 1px 1px 0;}
  
  #pun-stats {
  margin: 0 auto;
  max-width: 1150px;
  padding: 0 20px;}


/*************************************************************
B - MAIN CONTENT - GENERAL
**************************************************************/
/* B1 Parsed Content, Signatures and Scroll Boxes
-------------------------------------------------------------*/
/* B1.1 */
.punbb .post-content {width:100%; margin:0; padding:0; overflow:hidden;}

/* B1.2 *//***   ПОДПИСЬ   ***/
.punbb .post-sig dt {
display: block; 
width: 70%; 
height: 1px;
margin: 10px auto;
border: 0; 
background: rgba(0,0,0,0.3);}

/* B1.3 */
.punbb .post-content p {
  margin: 0;
  padding: 0 0 1em 0;
  line-height: 150%;}

/* B1.4 */
.punbb .post-content img {
  vertical-align: text-bottom;}
  
/* B1.5 */
.punbb .post-content img.postimg {vertical-align:middle; width:auto; max-width:100%; height:auto;}

/* B1.6 */
.punbb .post-content .blockcode, .punbb .post-content blockquote {width: 100%; overflow: hidden;}

/* B1.7 */
.punbb .post-content .scrollbox {width: 100%; max-height:190px; overflow: auto;}

/* B1.8 */
.punbb .post-content .quote-box, .punbb .post-content .code-box {
  margin: 0em 1em 1em 0.1em;
  padding: 1em;
  border-style: solid;
  border-width: 1px;
  border-radius: 13px 13px 13px 13px;
-moz-border-radius: 13px 13px 13px 13px;
-webkit-border-radius: 13px 13px 13px 13px;
    -moz-box-shadow:inset 0px 0px 8px #555453;
    -webkit-box-shadow:inset 0px 0px 8px #555453;
    box-shadow:inset 0px 0px 8px #555453;
color: #473c33 !important;}

/* B1.9 *//***   ИМЯ ПОЛЬЗОВАТЕЛЯ В ЦИТАТЕ И КОДЕ   ***/
.punbb .quote-box cite, .punbb .code-box strong.legend {
  display: block;
margin: auto auto 8px auto;
padding: 0px 1.05em 0.5em 1.05em;
font-weight: 600;
font-style: normal;
font-size: 1.1em;
text-align: left;
border-bottom: 1px dashed rgba(0,0,0,0.2);}

/* B2 Information boxes
-------------------------------------------------------------*/
/* B2.1 */
.punbb .info-box {
  padding: 1.1em 1.7em 1em 1.7em;
  border-style: solid;
  border-width: 1px;
  margin: 0 0 1.1em 0;}

/* B2.2 */
.punbb .info-box * {padding: 0 0 0.7em 0;}

/* B2.3 */
.punbb #pun-main .info-box .legend {font-size: 1.1em; font-weight: bold;}


/* B3 Pagination and posting links
-------------------------------------------------------------*/
/* B3.1 */
.punbb .linkst {
  float: left;
  position: relative;
  width: 100%;
  font-size: 1.1em;
  height: 0;}

/* B3.2 */
.multipage { margin-top: 3em;}

/* B3.3 */
.linkst .pagelink {
  position: absolute;
  top: -4em;
  left: 1em;
  width: 24em;}

/* B3.4 */
.linkst .postlink {
  position: absolute;
  top: -4em;
  right: 1em;
  width: 16em;
  text-align: right;
  font-weight: bold;}

/* B3.5 */
.punbb .linksb {
  text-align: right;
  padding: 0.4em 1em 0.5em 1em;
  font-size: 1.1em;}

/* B3.6 */
.linksb .pagelink {
  float: left;
  width: 24em;
  text-align: left;}

/* B3.7 */
.linksb .postlink {
  float: right;
  width: 16em;
  font-weight: bold;}

/* B3.8 */
.subscribelink {
  clear:both;
  padding-top: 0.3em;
  padding-bottom: 0.5em;}
  
.punbb .linksb .subscribelink {font-size:11px !important; text-align:center;}

/*** НОМЕР АКТИВНОЙ СТРАНИЦЫ ***/
.linkst .pagelink strong, .linksb .pagelink strong {
padding: 0 0.2em;
font-weight:700;}


/*************************************************************
C - MAIN CONTENT - SPECIFIC
**************************************************************/
/* C1 Form layout
-------------------------------------------------------------*/
/* C1.1 */
.punbb .formal .container {padding: 1.7em 2.3em 1.1em 2.3em;}

/* C1.2 */
.punbb .formsubmit {margin: 1em 0 0 0; padding: 0 0 0 1.7em;}

/* C1.3 */
.punbb .formsubmit input, .punbb .formsubmit a, .punbb .formsubmit span {margin: 0 0.6em 0 0;}

/* C1.4 */
.punbb fieldset {
  border-style: solid;
  border-width: 1px;
  padding: 0 18px 0 18px;
  margin: 0 0 1em 0;}

/* C1.5 */
.punbb fieldset legend {
margin: 0 0 0 10px;
padding: 0;  
font-size: 1.2em; 
font-family: Arial, sans-sefir;}

.punbb legend span, #viewprofile h2 span, .punbb-admin #pun-admain legend span {
font-weight: 600;}

.punbb legend span, .punbb legend strong {
font-family: Arial, sans-sefir;
border-bottom: 1px solid rgba(0,0,0,0.2);}

/* C1.6 */
.punbb fieldset legend span {margin: 0 0 0 -15px; padding: 0 5px;}

/* C1.7 */
.punbb fieldset fieldset {margin: 0; padding: 0 0 8px 0; border-style:none;}

/* C1.8 */
.punbb .fs-box {padding: 1em 0 0.8em 0;}

/* C1.9 */
.punbb .fs-box p, .punbb .fs-box fieldset {padding: 0 0 0.8em 0;}

/* C1.10 */
.punbb .inline .inputfield, .punbb .inline .selectfield, .punbb .inline .passfield {float: left; margin-right: 1em;}

/* C1.11 */
.punbb .inline .infofield {clear:both;}

/* C1.12 */
.punbb .datafield br {display:none;}

/* C1.13 */
.punbb .required label, .punbb .datafield span.input {font-weight: bold;}

/* C1.14 */
.punbb .datafield span.input a {font-weight: normal;}

/* C1.15 */
.punbb .areafield span.input, .punbb p.longinput span.input {display: block; padding: 0 12em 0 0;
  height: 100%; /* For IE */  }

/* C1.16 */
.punbb textarea, .punbb .longinput input {width: 64%; margin: 0;}

/* C1.17 */
.punbb .hashelp {position: relative;}

/* C1.18 */
.punbb .helplinks {display: block; position: absolute; top: 1em; right: 0; width: 36%; font-weight: normal;}

/* c1.19 */
.punbb #profile .helplinks {top: 1.5em;}

/* C1.20 */
.punbb .helplinks span {display: block; padding-bottom: 0.2em;}

/* C1.21 */
#pun-post .formal .info-box li {margin: 0; padding-left: 4px; list-style-type: square; list-style-position: inside; line-height: 1.5;}


/* C2 Table layout
-------------------------------------------------------------*/
/* C2.1 */
.punbb .main .tcl {
  overflow: hidden;
  text-align: left;
  width: 50%;}

/* C2.2 */
.punbb .main .tc2, .punbb .main .tc3, .punbb .main .tcmod {
  text-align: center;
  width: 10%;}

/* C2.3 */
.punbb .main .tcr {
  overflow: hidden;
  text-align: left;
  width: 30%;}

/* C2.4 */
#pun-userlist .main .tcl,
#pun-searchtopics .main .tcl,
#pun-modviewforum .main .tcl {
  width: 40%;}
  
  /* C2.4 */
#pun-userlist .main .tcl, #pun-searchtopics .main .tcl, #pun-modviewforum .main .tcl {width: 28%;}
#pun-searchtopics .main .tcl, #pun-searchtopics .main .tcr {font-size:1em;}

/* C2.5 */
#pun-userlist .main .tc2 {width: 20%; vertical-align:middle; text-align: left;}
#pun-searchtopics .main .tc2 {width: 20%; vertical-align:top; text-align: left;}

/* C2.6 */
#pun-debug table .tcl {width: 15%; white-space:normal;}

/* C2.7 */
#pun-debug .tcr {width: 90%; white-space: normal;}

/* C2.8 */ /* ВОЗМОЖНО, КНОПКА */
#pun-index .tcl h3 {
  font-size: 1.2em;
  font-weight: bold;
    background-image: url(https://forumupload.ru/uploads/001c/49/d2/3/781983.png);
  background-repeat: no-repeat;
  font-family: Forum;
  font-size: 28px;
  text-align: center;
  color: wheat !important;
  margin-left: -14px;
  height: 48px;
  position: absolute;
  width: 434px;
  margin-top: -49px;
  padding-top: 7px;}

/* C2.9 */
.punbb td span.youposted {position: absolute; margin-left: -1em; font-weight: bold;}

/* C2.10 СКРЫВАЕМ МОДЕРАТОРОВ В ОПИСАНИИ ФОРУМА */
.punbb td .modlist {display: none; padding-top: 0.3em;}

/* C2.11 */ /*Влияет на ячейки таблицы?*/
.punbb .main td {
  border-style: solid none none solid;
  border-width: 1px 0 0 1px;
  padding: 0.8em 1em;}

/* C2.12 *//*Влияет на заголовки таблицы*/
.punbb .main th {
  border-style: none none none solid;
  border-width: 0 0 0 1px;
  padding: 0.4em 1em 0.4em 1em;} /* для заголовка таблицы (где надписи "форум", "тем", "сообщений") */

/* C2.13 */
.punbb .main .tcl {
  border-left-style: none;
  border-left-width: 0;}

/* C2.14 */
.punbb tbody.hasicon td.tcl {
   display: inline-block;
   width: 98%;} 

/* C2.15 */
.punbb div.icon {
  height: 60px;
  width: 63px;
  float: left;
  display: block;
  margin-left: -7px !important;
  margin-top: -41px;
  margin-bottom: -10px;
  position: absolute;
z-index: 1;}

#pun-main .forum .container table .hasicon tr .tcl .icon {
    float: right;
    margin-left: -35px !important;
    margin-top: 0px;
  position: absolute;}

/* C2.16 */ /* Тут цвет и форма контейнеров на главной */
.punbb  table div.icon {
  font-size: 1.05em;
  position: absolute;
  margin-left: -2.2em;}

#pun-index .category tr {
 display: inline-block;
    margin-left: 31px;
  margin-bottom: 49px;
    width: 430px;
    vertical-align: top! important;
    color: #555453;
          background-color: rgba(188, 168, 153, 0.24);
  border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 55px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
    -moz-box-shadow:inset 0px 0px 8px #555453;
    -webkit-box-shadow:inset 0px 0px 8px #555453;
    box-shadow:inset 0px 0px 8px #555453;}

/* C3 Topics - ПОСТЫ
-------------------------------------------------------------*/
/* C3.1 */
.punbb .post .container {
  border-style: none solid solid solid;
  border-width: 1px;
  margin-top: -1px;
  padding-bottom: 1px;}

/* C3.2 */
.punbb .post h3 {
  border-style: solid solid none solid;
  border-width: 0px;}

/* C3.3 */
.punbb .post h3 span {
  padding: 0.5em 1em;
  display: block;
  margin-left: 22em;
  margin-bottom: -7px;
  margin-top: 15px;
  border-left-style: solid;
  border-left-width: 1px;
  font-size: 11px;
  font-weight: bold;}

/* C3.4 */
.punbb .post h3 strong {float: right; width: 5em; font-weight: 600; text-align: right;}

/* C3.5 */
.punbb .post .post-author {
  float: left;
  width: 22em;
  margin-top: -1.5em;
  overflow: hidden;
  margin-left: 3px;}

/* C3.6 */
.punbb .post .post-author ul, .punbb .post .post-author p {
  padding: 0 1em 1em 1em;
  line-height: 130%;
  text-align: center;
  width: 223px;
  color: #969494;}

/* C3.7 */
.pa-author {
  font-size: 1.1em;
  font-weight: bold;
    margin-top: -1px !important;
  margin-bottom: 16px;}

/* C3.8 */
.pa-author a {
  text-decoration: none;
    color: #d7ba89 !important;
  font-size: 22px !important;
  font-family: "Forum";
  text-shadow: 2px 1px 1px rgba(69, 38, 9, 1);
  color: #a38874 !important;}

/* C3.9 */
li.pa-title {
  padding-bottom: 2em;
  font-weight: bold;
padding-top: 1px;}

li.pa-online {
  line-height: 0.8em;
  border-left-style: solid;
  border-left-width: 0.7em;
  padding-left: 0.4em;
  margin-top: 0.7em;}

/* C3.11 */
.punbb .post-body {
  margin-left: 21em;
  border-left-style: solid;
  border-left-width: 1px;
  padding: 0 0 1px 0;}

/* C3.12 */ /*Контейнер с текстом поста*/
.punbb .post-box {
  padding: 1em;
  margin-left: 26px;}

/*C3.13 */
.punbb fieldset .post-box {margin-bottom: 0.8em;}

/* C3.14 */
.punbb .post-links {
  margin-left: 19em;
  border-left-style: solid;
  border-left-width: 1px;}

/* C3.15 */
.punbb .post-links ul {
  padding: 0 1em 0 0;
  height: 2em;
  line-height: 2em;
  margin-left: -19em;
  background: transparent;
  text-align: right;
  font-weight: bold;
font-size: 11px;
  margin-left: -210px;
  margin-top: 8px;
  margin-bottom: 8px;}

/* C3.16 */
.punbb .post-links li {
  display: inline;
  padding-left: 1em;}

/* C3.17 */
.pl-email, .pl-website {float: left;}

/* C3.18 */
.punbb .clearer {clear: both; height: 0; font-size: 0;}

.pa-avatar img, .punbb img.avatardemo {
    border: 1px solid #c0ad9e !important;
  margin-bottom: 10px;
box-shadow: 0px 0px 3px #666;}


/* C4 Moderator menu
-------------------------------------------------------------*/
/* C4.1 */
.punbb .modmenu .container {padding: 0.5em 1em; text-align: right;}

/* C4.2 */
.punbb .modmenu strong, .punbb .modmenu a {height: 1.8em; line-height: 1.8em;}

/* C4.3 */
.punbb .modmenu .container strong {float: left;}

/* C4.4 */
.punbb .modmenu input {margin-left: 1em;}


/* C5 Message boxes
-------------------------------------------------------------*/
/* C5.1 */
.punbb .info .container {padding: 0.8em 1em;}

/* C5.2 */
.punbb .info .container .backlink {padding-top: 0.8em !important;}


/* C6 Profile
-------------------------------------------------------------*/
/* C6.1 */
#profile .container {
  padding-left: 18.6em;}

/* C6.2 */
#profilenav {
  float: left;
  width: 14em;
  margin-left: -16.3em;
  display: inline;}

/* C6.3 */
#profilenav li {
  padding-bottom: 0.8em;
  font-weight: bold;}

/* C6.4 */
#viewprofile ul, #profilenav ul {
  border-style: solid;
  border-width: 1px;
  padding: 1.5em 18px 0.8em 18px;
  margin: 0 0 1em 0;}

/* C6.5 */
#viewprofile h2, #profilenav h2 {
  background: transparent;
  border: none;
  padding: 0 0 0 0;
  margin: 0 14px -0.6em 14px;}

/* C6.6 */
#viewprofile h2 span, #profilenav h2 span {
  padding: 0 5px;
  position: relative;}

/* C6.7 */
#viewprofile li, #setmods dl {margin-bottom: 0.2em; padding: 0 0 0 16em;}

/* C6.8 */
#viewprofile li span {
  float: left;
  width: 14em;
  margin-left: -16em;
  padding: 0.5em 1em;
  font-weight: bold;}

/*C6.9 */
#setmods dt {float:left; display:inline; width: 14em; margin-left: -16em; padding: 0.8em 1em; font-weight: bold;}

/* C6.10 */
#viewprofile li strong, #viewprofile li div, #setmods dd {display:block; padding: 0.5em 1em; font-weight: normal;}

/* C6.11 */
.punbb img.avatardemo {
  float: right;
  margin: 0 0 0.8em 1.8em;}
  

/* C7 User list - СПИСОК ПОЛЬЗОВАТЕЛЕЙ
-------------------------------------------------------------*/
/* C7.1 */
#pun-userlist .formal, #pun-userlist .formal .container {margin-bottom: 0; border-bottom: none;}

/* C7.2 */
#pun-userlist .usertable .container {padding: 0 2.3em 2.3em 2.3em; border-top: none;}

/* C7.3 */
/***   ПОЛОСА-РАЗДЕЛИТЕЛЬ ПОЛЬЗОВАТЕЛЕЙ   ***/
#pun-userlist .usertable table {border: none;}
#pun-userlist .usertable td, #pun-message .forum td, #pun-messages .main td {
border-bottom: 1px solid rgba(0,0,0,0.07);}


/*************************************************************
D - PUNBB SECTIONS OTHER THAN MAIN CONTENT
**************************************************************/

/* D1 Logo and description
-------------------------------------------------------------*/
/* D1.1 ШАПКА ФОРУМА - КАРТИНКА*/
#pun-title.section {
    background-color: transparent;
    background-image: url("https://forumupload.ru/uploads/001c/49/d2/3/47244.png");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 1100px auto; /* Добавлено */
    width: 1100px; /* Оставлено */
    height: 300px;
    margin: 0 auto; /* Изменено */
    padding: 0; /* Добавлено */
    position: relative; /* Добавлено */
    left: -80px; /* Смещение влево */
    transform: translateX(-30px); /* Точная корректировка */
    overflow: visible; /* Добавлено */}

/* Добавьте этот блок для контейнера */
#pun-title {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;}
    
/* Создаем подложку под контентом */
#pun::before {
    content: '';
    position: absolute;
    top: -50px; /* Начинаем от верхнего края #pun */
    left: 0;
    width: 100%;
    height: 300px; /* Высота зоны перекрытия */
    background: #969494; /* Цвет фона зоны */
    z-index: 1; /* Убедитесь, что это значение меньше z-index элементов контента */}

/* Корректируем основной контейнер */
#pun {
    position: relative;
    z-index: 2; /* Поднимаем основной контент выше подложки */}

/* Скрываем лишнее под шапкой */
#pun-title.section {
    position: relative;
    z-index: 3; /* Шапка выше всех */}

/* D1.2 */
#pun-title h1 {
  display : block;
  height : 40px;
  padding: 2em 1em 0 1em;}

/* D1.3 */
#pun-title .container {border-style: none;}

/* D1.4 */
#pun-title h1 span  {
  font-size: 1.5em;
  display: none;}

#pun-title table {
	border: none;
	height: 40px;
	width: 100%;}

#pun-title td.title-logo-tdl {
	border: none;
	width: 100%;}

#pun-title td.title-logo-tdr {
	border: none;
	width: 468px;}
	

/* D2 Page navigation
-------------------------------------------------------------*/
/* D2.1 */
#pun-pagelinks {position: absolute; width: 100%; top: -15px; left: 0; margin: 0; padding: 0; border: none; }

/* D2.2 */
#pun-pagelinks .container {padding: 0; border: none; background: transparent;}

/* D2.3 */
#pun-pagelinks .container li {display: inline;}

/* D2.4 */
#pun-pagelinks li a, #pun-pagelinks a:link, #pun-pagelinks a:hover {
float:left; display: block; width: 100%; height: 2em; margin-left: -9999px; padding: 0; line-height: 2em; font-size: 1.2em; }

/* D2.5 */
#pun-pagelinks a:active, #pun-pagelinks a:focus {position:relative; margin: 0;}
#pun-pagelinks li a span {display:block; margin: 0 1em;}


/* D3 Forum navigation
-------------------------------------------------------------*/
/* ==============================
   БЛОК НАСТРОЕК ПОЗИЦИОНИРОВАНИЯ 
   ============================== */

/* Общие настройки для всех меню */
.nav-container {
    position: relative;
    z-index: 4; /* Выше зоны перекрытия (z-index:1) */}

/* 1. Основная навигация (D3) */
#pun-navlinks {
    position: absolute;
    top: 210px; /* Позиция от верха шапки */
    left: 64%;
    transform: translateX(-50%);
    z-index: 5;
    margin: 0 !important; /* Убираем старые отступы */}

/* 2. Пользовательская навигация (D4) */
#pun-ulinks {
    position: absolute;
    top: 520px; /* Ниже основной навигации */
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    margin: 0 !important;}

/* ==============================
   ИСПРАВЛЕНИЕ "СЛИПШЕЙСЯ" НАВИГАЦИИ 
   ============================== */

/* Основное меню */
#pun-navlinks .container {
    display: flex;
    flex-direction: row;
    gap: 20px; /* Добавляем промежутки между пунктами */
    padding: 0 20px;}

#pun-navlinks li {
    position: static !important; /* Убираем абсолютное позиционирование */
    margin: 0 !important;}

/* ==============================
   ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ + ULINKS
   ============================== */

/* Фикс для зоны перекрытия */
#pun::before {
    z-index: 1; /* Убедитесь что это значение ниже меню */}
    
/* Исправление расположения ulinks */
#pun-ulinks {
    position: absolute;
    top: 245px; /* 240px (navlinks) + 40px отступ */
    left: -54px; /* Выравнивание по левому краю */
    transform: none; /* Убираем центрирование */
    margin-left: 20px; /* Отступ слева */
    z-index: 5;}

/* Исправление flex-контейнера */
#pun-ulinks .container {
    display: flex;
    flex-direction: row;
    gap: 12px; /* Расстояние между пунктами */
    justify-content: flex-start; /* Выравнивание влево */
    padding: 0 455px;
    width: 100%;}

/* Убираем старые стили */
#pun-ulinks li {
    display: inline-block !important;
    margin: 0 !important;
    position: static !important;}

/* Для элементов внутри #pun-ulinks */
#pun-ulinks #h-unanswered,
#pun-ulinks #h-uploads,
#pun-ulinks #h-recent {
    display: none !important;}
    
    
/* D5 Welcome box and Top Breadcrumbs
-------------------------------------------------------------*/
/* ==============================
   БЛОК НАСТРОЕК ДЛЯ PUN-STATUS
   ============================== */

/* 5.1 Позиционирование контейнера */
#pun-status {
    position: absolute;
    top: 165px; /* Выше основной навигации (240px) */
    left: 38.7%;
    z-index: 6; /* Выше навигации */
    width: 100%;
    text-align: left;}
    

/* 5.2 Скрываем все элементы по умолчанию */
#pun-status span {
    display: none;}
    
#pun-status span:not(.item1):not(.item2) {
    display: none !important;}

/* 5.3 Показываем только нужные элементы */
#pun-status span.item1,
#pun-status span.item2 {
    display: inline-block;
    margin: 0 10px;
    padding: 4px;}

#pun-status .status-right,
#pun-status .item3 {
    display: none !important;}
    
#pun-status span.item2 { 
    display: none !important; 
    visibility: hidden !important;}

/* 5.4 Стилизация видимых элементов */
#pun-status .container {
    display: inline-block;
    padding: 0 !important;
    background: transparent;
    color: #CD4645;}

/* 5.5 Скрываем оригинальный контейнер */
#pun-status.original-container {
    display: none;;}

/* 5.6 Адаптивность */
@media (max-width: 768px) {
    #pun-status {
        top: 180px;
        flex-direction: column;}
    
    #pun-status span.item1,
    #pun-status span.item2 {
        margin: 5px 0;}}


/***   АКТИВНЫ И ПОСЕТИЛИ ЗА СУТКИ   ***/
li#onlinelist {
float: left;
width: 100%;
margin-top: 1em;
padding: 0.5em 0 0 0;
border-top-style: none;
border-top-width: 0px;
line-height: 130%;}

#onlinelist {text-align:left;}


/* D8 Quick Jump - About - Bottom Breadcrumbs
-------------------------------------------------------------*/
/* D8.1 */
#pun-qjump {position: relative; float: left; width: 50%; margin: 0; border: none;}

/* D8.2 */
#pun-qjump .container {padding: 0.8em 1em; border: none; background: transparent;}

/* D8.3 */
#pun-about {margin-top: 0;}

/* D8.4 */
#pun-about .container {
  border-top-style: none;
  text-align: right;
  line-height: 150%;
  padding: 0.8em 1em;}

/* D8.5 */
#pun-about p span {display:block; padding-left: 50%;}

/* D8.6 */
#pun-crumbs2 {
  font-weight: bold;
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: none;}

/* D8.7 */
#pun-crumbs2 .container {
  border-bottom: none;
  padding: 0.8em 1em;
  font-size: 1.1em;}

/* D8.8 */
#pun-break4 {
  margin: -2px 1em;
  border-style: solid none;
  border-width: 1px 0;
  position: relative;
  height: 0;
  z-index: 1;}

/* D8.9 */
div.punbb-admin #pun-about .container {
  border-top-style: solid;
  border-top-width: 1px;}
  
/* Скрываем все элементы breadcrumbs */
#pun-crumbs1, 
#pun-crumbs2,
.punbb .pun-crumbs {
    display: none !important;}

/* Скрываем связанные контейнеры */
#pun-crumbs1 + #pun-break4,
#pun-crumbs2 + #pun-break4 {
    display: none !important;}

/* Удаляем пустые отступы */
#pun-about .container {
    padding-top: 0 !important;
    margin-top: 0 !important;}


/* D9 Help file
-------------------------------------------------------------*/
/* D9.1 */
#pun-help .formal .info-box h3.legend {margin-bottom: 0.8em; padding-bottom: 0; border-bottom-style: none; border-bottom-width: 0px;}

/* D9.2 */
#pun-help .formal .info-box h3.legend span {display: block; padding-bottom: 0.6em; border-bottom-style: none; border-bottom-width: 0px; font-size: 1.1em;}

/* D9.3 */
#pun-help .formal p, #pun-help .formal dd {margin-bottom: 1em;}

  
/* D9.4 */
#pun-help .formal ul, #pun-help .formal dl {padding: 0 0 0 1em;}

/* D9.5 */
#pun-help .formal li {padding: 0; line-height: 130%;}

/* D9.6 */
#pun-help .formal li * {vertical-align: text-top;}

/* D9.7 */
#pun-help .formal dt span {font: 1.4em/120% monaco, "bitstream vera sans mono", "courier new", courier, monospace;}

/* D9.8 */
#pun-help .formal .parsedmsg, #pun-help .formal .parsedmsg .incode {padding-bottom: 0;}

#pun th {display: none;}

.pa-fld1 {margin-bottom: 4px;
margin-top: 5px; 
background-color: rgba(139, 123, 112, 0.2);
  line-height: 130%;
  width: 224px;}


/*************************************************************
E - ПРОЧЕЕ
**************************************************************/

/***  Это убирает большую часть линий ***/

#pun-main div.catleft, #pun-main div.catright {display: none}

.punbb #pun-main .info-box .legend, .punbb .info-box, #setmods dd, #viewprofile li div, #viewprofile li strong, .punbb .formal fieldset .post-box, .punbb .post-body, .punbb .post-links, .punbb td.tc2, .punbb td.tc3, .punbb .post .container, .punbb .main .container {background: transparent}

.offline li.pa-online strong {font-weight: normal;}

.punbb .formal fieldset .post-box, .punbb .info-box, .punbb .divider, 
.punbb .container, .punbb .post, .punbb .post-body, #pun-title, .punbb .section, .punbb .forum, .punbb .formal, .punbb .modmenu, .punbb .info, .punbb .category, #pun-ulinks li, #pun-ulinks li a,
#pun-announcement h2 span, #pun-announcement h2, li#onlinelist, li#onlinelist div, #pun-help .formal .info-box h3.legend, #pun-help .formal .info-box h3.legend span {border-color: transparent;}

.punbb td, #viewprofile ul, #profilenav ul, .punbb .post .post-body, .post-links ul, .post-links, .usertable table {border: none;}

.punbb-admin #pun-admain h2 {text-align:center; font-family: Tahoma, Arial; font-size: 1.1em !important; color:#fff; background:#212121;}

.punbb .main .tcr span {overflow: hidden;}

#topic-users-in a:after {content: ',';}
#topic-users-in a:last-child:after {display: none;}

#keyboard-span input, #keyboard-span input[type="button"] {
text-shadow:none; box-shadow:none; 
background:#fff; color:#333 !important; 
border: 1px solid #a7a7a7 !important; 
font-family: Tahoma, Verdana, sans-serif !important; 
font-weight:400 !important;}
#imageupload-left input[type=button] { width:auto !important; } 

/***  ЗАПЛАТКА ДЛЯ ПОЛЯ ОТВЕТА ***/
textarea#main-reply {
text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
-moz-text-size-adjust: 100%; 
-webkit-text-size-adjust: 100%;}

.lastedit, li#navawards, .pl-share, .sharelink, .pa-invites, #pun-live-rusff, .pa-gifts {display:none;}

/***   ФИКС ДЛЯ СПОЙЛЕРА - ОТСТУП СТРОК   ***/
.spoiler-box>div[onclick]>p {
display:inline-block;
margin:0!important;
padding:0!important;}


/***   ПЕРЕМЕЩЕНИЕ СООБЩЕНИЙ - РАЗДЕЛИТЕЛЬ   ***/
div.Select_Topics .container tr {border-bottom: 1px solid rgba(0,0,0,0.15); }


/***   ЗАПЛАТКИ ДЛЯ ЗАКЛАДКИ   ***/
#MyBookmarks .container, .editBookmark {
border: 1px solid #b9b9b9;
background: #d4d4d4;
box-shadow: 0 1px 5px #000;}

#MyBookmarks .container {padding: 2em 1em 1em !important;}
#MyBookmarks {max-height: 300px; margin-top: 5%;}


/***   ЦВЕТНАЯ ВСТАВКА НА ИКОНКЕ ЗАКЛАДКИ   ***/
#BookmCntToggle.default-style {color: #CD4645 !important;}


/***   ЗАГОЛОВОК ЗАКЛАДОК   ***/
#MyBookmarks h2, #MyBookmarks h1 {
margin: auto;
padding: 8px 1em !important; 
background-image: none;
background-color: #CD4645;} 


/*** ЦВЕТ ПОЛОС В ГОЛОСОВАНИИ ***/
table.poll2 {margin-left:40px;}
#poll-special td h1 {
margin: auto 0 !important; 
padding:1px !important;
background: #ECE9E0 !important;}


/***   ФОН ДЛЯ ВЫСКАКИВАЮЩИХ ОКОН   ***/
#pun_wrap #post .container[id$="-area"] {max-height:264px; overflow:auto;}
#pun_wrap #post .container[id$="-area"], #video-area-tinp, #image-area-tinp, .pun-modal .modal-inner, .inner, #post-sig .container[id$="-area"] {
outline:none; 
border: 1px solid #9c9c9c;
background: url(https://forumupload.ru/uploads/001c/49/d2/3/139689.png) 50% 0% repeat #e4e4e4;}



/***   КНОПКИ   ***/
#viewprofile-next #pa-edit a,
input[class="button"], input[type="button"] {
padding: 5px 8px;
border: 1px solid #a2a3a5;
font-weight: 700 !important;
font-size: 11px !important;
background: #e4e4e4;
box-shadow: 1px 1px 5px rgba(0,0,0, 0.15);}


/***   КНОПКИ ПРИ НАВЕДЕНИИ   ***/
#viewprofile-next #pa-edit a:hover, input[class="button"]:hover, input[type="button"]:hover {
background: #f3f3f3;
box-shadow: 1px 1px 2px rgba(0,0,0, 0.2);
cursor: pointer;}


/***   ЦВЕТНОЙ СКРОЛЛ   ***/
*::-webkit-scrollbar {
width:10px;
height:8px;
background: rgba(0,0,0, 0.1);}

*::-webkit-scrollbar-thumb {
background: #CD4645;}
*::-webkit-scrollbar-corner {background: transparent;}