@import url(style_cs.1778573172.css);

:root {
  /* Основные цвета */
  --textarea-bg: #DBDBDB;
  --textarea-text: #666666;
  --textarea-border: #EEEEEE;
  --textarea-focus-border: #DBB8D9;
  --bg-quote: #DBDBDB;
  --text-quote-box: #666666;
  --button-bg: #DBB8D9;
  --button-text: #2B2B2B;
  --button-hover-bg: #5a6680;
  --button-hover-text: #888;
  --scrollbar-track: #CECECE;
  --scrollbar-thumb: #C8AFC6;
  --selection-bg: #969696;
  --selection-text: #2B2B2B;

  /* Типографика */
  --font-main: Verdana, Arial, sans-serif;
  --font-size: 9px;
  --line-height: 1.5;
  --table-font: 'Share Tech';
  --table-font-size: 20px;
  --table-font-color: #d9bedd;
  --table-plashka-bg: #d9bedd;

  /* Размеры и отступы */
  --padding-post-date: 20px;
  --nav-height-button: 24px;
  --radius-pill: 12px;
  --hh-height: 395px;
  --forum-spacing: 12px;

  /* Фоновые изображения */
  --bg-body: url('https://forumstatic.ru/files/000d/f3/d3/56358.jpg');
  --header: url('https://forumstatic.ru/files/000d/f3/d3/33884.png');
  --bg-category-a: url('https://forumstatic.ru/files/001c/82/d2/26465.png');
  --bg-category-b: url('https://forumstatic.ru/files/001c/82/d2/74481.png?v=1');
  --bg-category-c: url('https://forumstatic.ru/files/001c/82/d2/89643.png?v=1');
  --button-up: url('https://forumstatic.ru/files/001c/82/d2/84775.png');
  --button-down: url('https://forumstatic.ru/files/001c/82/d2/67429.png');
}

/* Базовые стили */
body {
  font-family: var(--font-main);
  font-size: var(--font-size);
  line-height: var(--line-height);
  margin: 0;
  padding: 0;
  background: var(--bg-body) no-repeat center top fixed;
  background-color: rgba(120, 120, 120);
  background-size: cover;
  display: flex;
  justify-content: center;
}

#pun {
  width: 900px;
  margin: 80px auto 0 auto;
  position: relative;
}

/* Шапка */
#pun-title table {
  background-image: var(--header);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  height: var(--hh-height);
  width: 100%;
}
#pun-title h1 span { display: none; }

/* Навигация */
#pun-navlinks {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin-top: -50px;
}
#pun-navlinks ul, #pun-ulinks ul {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0;
  gap: 12px;
}
#pun-ulinks ul { gap: 8px; }
#pun-navlinks li, #pun-ulinks li { list-style: none; }

#pun-navlinks a {
  display: inline-block;
  background-color: var(--bg-nav);
  color: var(--navlink-text);
  font-family: var(--font-main);
  font-size: var(--font-size);
  font-weight: 400;
  line-height: 1.45;
  padding: 0 12px;
  height: var(--nav-height-button);
  border-radius: var(--radius-pill);
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
#pun-navlinks a:hover {
  background-color: var(--bg-nav-hover);
  color: var(--navlink-hover-text);
}

/* Цитаты и код */
.punbb .quote-box, .punbb .code-box {
  padding: 4px;
  font-size: 8px;
  border: 1px solid var(--text-quote-box);
  margin: 0.4em 100px 1.4em 1.8em;
  padding-right: 30% !important;
}

/* Текстовая область */
#pun-main .formal textarea {
  font-family: var(--font-main);
  font-size: var(--font-size);
  border: 1px solid #969696;
  padding: 5px;
  width: 100%;
  box-sizing: border-box;
}

/* Кнопки вверх/вниз */
.go-up, .go-down {
  cursor: pointer;
  opacity: 1.2;
  z-index: 9999;
  display: none;
  position: fixed;
  box-sizing: border-box;
  transition: all .3s linear 0s;
}
.go-up {
  background: var(--button-up) no-repeat center top;
  top: 400px;
  height: 54px;
  width: 74px;
  margin-left: 940px !important;
}
.go-down {
  background: var(--button-down) no-repeat center top;
  top: 440px;
  height: 112px;
  width: 78px;
  margin-left: 940px !important;
}
.go-down:hover, .go-up:hover { opacity: 1; }

/* Типографика и выравнивание */
#pun > * { text-align: justify; }
.punbb h1, .punbb h2, .punbb h3, .punbb h4, .punbb table, .punbb th {
  font-size: 1em;
  font-weight: normal;
}
.punbb h1 span, .punbb h2 span, .punbb legend span { font-size: 1.1em; }
.punbb .post-content em { font-style: italic; }
.punbb .post-content em.bbuline {
  font-style: normal;
  text-decoration: underline;
}
.punbb a { text-decoration: underline; }

/* Таблицы */
.punbb .main table {
  table-layout: fixed;
  width: 100%;
  padding-bottom: 6px;
  text-align: justify;
}
.punbb .main .tcl { width: 50%; overflow: hidden; text-overflow: ellipsis;
  padding-bottom: 25px;
}
.punbb .main .tc2,
.punbb .main .tc3 {
  width: 10%;
  text-align: center;
}
.punbb .main .tcr {
  width: 30%;
  white-space: nowrap;
  text-align: right;
  padding-right: 25px;
}
.punbb .main thead { display: none; }

/* Категории с фоновыми изображениями */
#pun-category1 h2,
#pun-category4 h2,
#pun-category7 h2,
#pun-category2 h2,
#pun-category5 h2,
#pun-category8 h2,
#pun-category3 h2,
#pun-category6 h2,
#pun-category9 h2 {
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'Arial Black', sans-serif;
  font-size: 12px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  letter-spacing: 0.5px;
  padding: 10px;
  margin: 0;
  height: 20px;
}

#pun-category1 h2,
#pun-category4 h2,
#pun-category7 h2 { background-image: var(--bg-category-a); }
#pun-category2 h2,
#pun-category5 h2,
#pun-category8 h2 { background-image: var(--bg-category-b); }
#pun-category3 h2,
#pun-category6 h2,
#pun-category9 h2 { background-image: var(--bg-category-c); }

/* Очистка от браузерных стилей */
.punbb ul,
.punbb dl,
.punbb li,
.punbb dd,
.punbb dt { list-style: none; }
.punbb img,
li.pa-avatar { border: none; }

/* Clearfix — объединённая реализация */
#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;
  font-size: 0;
}

/* Скрытие элементов */
.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;
  position: absolute;
  left: -9999px;
  overflow: hidden;
}

/* Основной контент */
.punbb .post-content {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}
.punbb .post-content p {
  margin: 0;
  padding: 0 0 1em 0;
  line-height: 150%;
}
.punbb .post-content img { vertical-align: text-bottom; }
.punbb .post-content img.postimg { vertical-align: middle; }
.punbb .post-content .blockcode,
.punbb .post-content blockquote,
.punbb .post-content .scrollbox {
  width: 100%;
  overflow: auto;
}

/* Формы */
.punbb .formal .container { padding: 1.7em 2.3em 1.1em 2.3em; }
.punbb .formsubmit input,
.punbb .formsubmit a,
.punbb .formsubmit span { margin: 0 0.6em 0 0; }
.punbb .datafield span.input a { font-weight: normal; }
#pun-post .formal .info-box li {
  padding-left: 4px;
  list-style-type: square;
  list-style-position: inside;
  line-height: 1.5;
  margin: 0;
}

/* Посты */
.punbb .post .container {
  margin-top: -1px;
  padding-bottom: 1px;
}
.punbb .post h3 span {
  padding: 0.5em 1em;
  display: block;
  margin-left: 19em;
}
.punbb .post h3 strong {
  float: right;
  width: 5em;
  text-align: right;
  font-weight: normal;
}
.punbb .post .post-author {
  float: left;
  width: 19em;
  overflow: hidden;
}
.punbb .post .post-author ul,
.punbb .post .post-author p {
  padding: 0 1em 1em 1em;
  line-height: 140%;
}
.punbb .post-body {
  margin-left: 200px;
  padding: 2px 4px;
  background-color: var(--bg-posts-alt);
}
.punbb .post-links { margin-left: 19em; }
.punbb .post-links ul {
  padding: 0 1em 0 0;
  height: 2em;
  line-height: 2em;
  margin-left: -19em;
  background: transparent;
  text-align: right;
}
.punbb .post-links li {
  display: inline;
  padding-left: 1em;
}

/* Профиль */
#profile .container { padding-left: 18.6em; }
#profilenav {
  float: left;
  width: 14em;
  margin-left: -180px;
  display: inline;
}
#profilenav li {
  padding-bottom: 0.8em;
  font-weight: bold;
}

/* Медиа-запрос — скрытие кнопок на мобильных */
@media (max-width: 768px) {
  .go-up,
  .go-down,
  #ToTop,
  #OnBottom {
    display: none !important;
  }
  body {
    display: block !important;
  }
}