/*  ===================== СОДЕРЖАНИЕ ===================== 

I. РАЗНЫЕ ВАЖНЫЕ ИМПОРТЫ
II. ПЕРЕМЕННЫЕ
    II.a ОБЩЕЕ НА ДЕНЬ И НОЧЬ
    II.b СВЕТЛАЯ ТЕМА (ДЕНЬ)
    II.c ТЕМНАЯ ТЕМА (НОЧЬ)
III. МОБИЛЬНАЯ ВЕРСИЯ
*/

/* I. РАЗНЫЕ ВАЖНЫЕ ИМПОРТЫ
-----------------------------------------*/

/* style_cs.1787955289.css - здесь у нас десктопный стиль*/
@import url(style_cs.1787955289.css);

/* шрифт с иконками - нужны всегда */

@font-face {
  font-display: block;
  font-family: "bootstrap-icons";
  src:
    url("/files/001b/ef/4a/38279.woff2") format("woff2"),
    url("/files/001b/ef/4a/37401.woff") format("woff");
}

/* шрифты для дизайна */

/* Montserrat тут только для админки */

@font-face {
  font-family: "Montserrat";
  src: url("/files/001b/ef/4a/59400.woff") format("woff");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "MintSpirit";
  src: url("/files/001b/ef/4a/61233.otf") format("opentype");
}

@font-face {
  font-family: "Thing It";
  src: url("https://forumstatic.ru/files/001b/ef/4a/95180.otf") format("opentype");
}

@font-face {
  font-family: "Thing Reg";
  src: url("/files/001b/ef/4a/70830.otf") format("opentype");
}

@font-face {
  font-family: "Milkalte";
  src: url("/files/001b/ef/4a/85941.otf") format("opentype");
}

@font-face {
  font-family: "Remark";
  src: url("/files/001b/ef/4a/73566.otf") format("opentype");
}

@font-face {
  font-family: "kurut";
  src: url("/files/001b/ef/4a/11928.ttf") format("truetype");
}

/* II. ПЕРЕМЕННЫЕ
-----------------------------------------*/

/* II.a ОБЩЕЕ НА ДЕНЬ И НОЧЬ */

:root {
  /* отступ от контента */
  --general-padding: 35px;
  --hover-transition: all 200ms cubic-bezier(0.2, 0.2, 0.2, 1) 200ms;
  --punbb-extra-bottom: 52px;/* для тела снизу */

  /* шрифты  */
  --icon-font: "bootstrap-icons";
  --regular-font: "Montserrat";
  --big-titles-font: 'Thing Reg';
  --small-titles-font: "MintSpirit";
  --categ-titles-font: "Milkalte";
  --tem-font: "Remark";
  --tem-name: "kurut";

  --mem-font-v7: "Raleway";

  /* картиночки */
  --foot: url(/files/001b/ef/4a/47889.png);
  --nav: url(/files/001b/ef/4a/66778.png) no-repeat center bottom;
  --alley: url(/files/001b/ef/4a/89360.jpg);
}

/* II.b СВЕТЛАЯ ТЕМА (ДЕНЬ) */

:root {
  /* ФОН И ТЕЛО ФОРУМА */

  --body: #d2d2d2 url(/files/001b/ef/4a/33091.png);
  --body-mobile: linear-gradient(90deg, #eeeeed, #d6d8d8), #e2e2e1;
  --header: url(/files/001b/ef/4a/43152.png);
  --header-mobile: url(/files/001b/ef/4a/23051.jpg);
  --body-color: #d2d2d2;

  --pun-bg: #c98691;
  --pun-border: none;
  --pun-outline: none;
  --pun-box-shadow:
    0 0 0 1px #f1efee, 
inset 0 0 0 7px #cccccc, 
inset 0 0 0 8px #beb0b0;

  --punbb-bg: #fbfaf8;
  --punbb-index-bg: #f0eeed;
  --punbb-border: none;
  --punbb-outline: 1px solid transparent;
  --punbb-box-shadow:
    inset 0 0 18px 1px #e8e4e1;
  --punbb-tr-border: 1px solid #d8d1cf66;


  /* ТЕКСТ */
  /* основной */
  --text-color: #6e6260;
  --colored-text: #9b6064;
  --light-text: #ffffff;
  --contrast-text: inherit;

  /* ссылки */
  --links-color: #7098b4;
  --links-hover: #ad1d32;
  --ulinks-color: #b64d54;
  --ulinks-hover: #4d728c;

  /* надписи с фоном: ссылки в подфоре, стата, тайтлы */
  --text-badge-bg: #a6333f;
  --text-badge-color: #f6f1f1;
  /* фон ссылок при наведении */
  --text-badge-hover-bg: #b5c5d5;

  /* КАТЕГОРИИ И ПОДФОРУМЫ */
  --category-title: #a0c0d7;
  --category-title-shadow: #ffffff;
  --category-title-stroke: #d7e9f0;
  --category-bg: #f5f4f3;
  --category-box-shadow: 0 0 0 1px #d5d5d5, 0 0 0 2px #f9f9f9, 0 0 0 7px #ebeae8, 0 0 0 8px #d5d5d5, 0 0 0 9px #f9f9f9;

  --forum-bg: transparent;
  --forum-box-shadow: none;
  --forum-text: #a49088;
  --forum-border: 1px solid #e2dedb;

  --topic-title: inherit;

  /* иконочное */
  --icon-bg: #adbbc4;
  --icon-new-bg: #ad1d32;
  --icon-box-shadow: 0 0 7px 0px #7a76763b, 0 0 10px 4px #aaa5a51a, inset 0 0 0px #70707073;

  /* ПРОФИЛЬ */
  --profile-bg: #f4f1ef;
  --profile-border: #ffffff;
  --profile-color: #8a7a78;
  --profile-login: #6c6c6c;
  --profile-box-shadow: none;
  --profile-av-border: #eef5f8;
  --profile-av-shadow: 0 0 5px 0 #9fa8aa;
  --profile-av-bg: #c5c5c4;
  --profile-after-box-shadow:
    0 0 5px 1px #93c1d9, 0 0 0 6px #fbfaf8, 0 0 0 7px #cfe2ea;
  --profile-sub: #f2f1f0;
  --profile-sub-bord: 1px solid #eee9e6;

  /* иконка и анкета */
  --profile-anketa: #939393;
  --profile-anketa-bg: #e2e2e2;
  --profile-anketa-border: 1px solid #cfe2ea;
  --profile-anketa-box-shadow: 0 0 4px inset #ffffff;
  --profile-icon-bg: #dcecf2;
  --profile-links: #4d728c;

  /* ТЕМЫ, ШАБЛОНЫ, ЦИТАТЫ И ДР. КОНТЕЙНЕРЫ */

  /* всякие большие контейнеры текста, например цитаты, код, всякие модалки и тд */
  --container-bg: #fbfaf8;
  --container-border: 1px solid #e4e4e4;
  /* тут окантовка, сделанная на box-shadow - для тем */
  --container-stroke: 0 0 0 1px #d8d1cf, 0 0 3px #cfe2ea inset;
  /* а здесь просто тень для модальных окошек */
  --container-shadow: 0 0 8px 0px #99999980;
  --container-text: #6e6260;
  --container-headline: #9b6064;

  /* какие-нибудь мини-элементы внутри контейнера */
  --container-element-bg: #ffffff;
  --container-element-color: #5f5352;
  --container-element-box-shadow: 0 0 0px 1px #d8d1cf, inset 0 0 7px #e8e4e1;

  /* полупрозрачные */
  --container-transparent: #93c1d936;
  --container-transparent-text: #ffffff;
  --container-transparent-box-shadow: #ffffff;

  /* ЭЛЕМЕНТЫ УПРАВЛЕНИЯ */

  /* поля ввода, форма ответа */
  --input-bg: #f9f7f4;
  --input-border: 1px solid #d8d1cf;
  --input-text: #6e6260;

  /* кнопки */

  --button-bg: #93c1d9;
  --button-hover: #ad1d32;
  --button-border: #ffffff;
  --button-text: #ffffff;

  /* кнопки, стрелки и т.п. */
  --controls-1: #889ab5;
  --controls-2: #ffffff;
  --controls-3: #d4d8da;
  --controls-contrast: #4d728c;
  --controls-colorful: #a64a53;

  /* прокрутка */
  --scrollbar-bg: #d7d8d8;
  --scrollbar-color: #ad1d32;
  --scrollbar-border: 0.5px solid #bdbdbd;

  /* ОСОБОЕ */

  /* большая обводка для гостевой и принятия и т.п. */
  --big-box-shadow:
    0 0 0 2px #fcfbfb;

  /* табличное */
  --table-container: #93b3ca;
  --table-container-text: #a5515a;
  --table-container-highlight: #93c1d9;
  --table-container-border: #ffffff59;
  --table-container-box-shadow: #ffffffb3;

  --table-popup: #4d3f408c;
  --table-popup-text: #ffffff;

  --table-links-bg: #9d202c;
  --table-links-hover: #93c1d9;
  --table-links-color: #eeeeee;
  --table-links-border: #ffffff80;

  /* цвет ошибок вприложениях */
  --apps-error: #ad1d32;
}

/* II.c ТЕМНАЯ ТЕМА (НОЧЬ) */

:root .night {
  /* ФОН И ТЕЛО ФОРУМА */

  --body: #292828 url(/files/001b/ef/4a/76863.png);
  --body-mobile: linear-gradient(90deg, #1d2328, #11171b), #171d21;
  --header: url(/files/001b/ef/4a/74083.png);
  --header-mobile: url(/files/001b/ef/4a/65807.jpg);
  --body-color: #292828;

  --pun-bg: #353535;
  --pun-border: none;
  --pun-outline: none;
  --pun-box-shadow:
     0 0 0 1px #f1efee, 
inset 0 0 0 7px #cccccc, 
inset 0 0 0 8px #beb0b;

  --punbb-bg: #353535;
  --punbb-index-bg: #272727;
  --punbb-border: none;
  --punbb-outline: 1px solid #46525b;
  --punbb-box-shadow:
    inset 0 0 18px 1px #ffffff12;
  --punbb-tr-border: 1px solid #ffffff1f;

  /* ТЕКСТ */

  /* основной */
  --text-color: #e7e0dc;
  --colored-text: #c56c75;
  --light-text: #ffffff;
  --contrast-text: inherit;

  /* ссылки */
  --links-color: #b0becd;
  --links-hover: #d2cfcf;
  --ulinks-color: #a0c0d7;
  --ulinks-hover: #cfe2ea;

  /* надписи с фоном: ссылки в подфоре, стата, тайтлы */
  --text-badge-bg: #531419;
  --text-badge-color: #dfd2d2;
  /* фон ссылок при наведении */
  --text-badge-hover-bg: #6d8baa;

  /* КАТЕГОРИИ И ПОДФОРУМЫ */

  --category-title: #8ea9c6;
  --category-title-shadow: #000000b3;
  --category-title-stroke: #4d728c;
  --category-bg: #333131;
  --category-box-shadow: 0 0 0 1px #201e1e, 0 0 0 2px #6e6e6e63, 0 0 0 7px #323232, 0 0 0 8px #464646, 0 0 0 9px #00000017;

  --forum-bg: transparent;
  --forum-box-shadow: none;
  --forum-text: #bbbbbb;
  --forum-border: 1px solid #ffffff24;

  --topic-title: inherit;

  /* иконочное */
  --icon-bg: #9ca7b8;
  --icon-new-bg: #b64d54;
  --icon-box-shadow: 0 0 7px 0px #0000004a, 0 0 10px 4px #0000001f, inset 0 0 0px #ffffff22;

  /* ПРОФИЛЬ */

  --profile-bg: #353535;
  --profile-border: #53606a;
  --profile-color: #e0d7d4;
  --profile-box-shadow: none;
  --profile-av-border: #6f6f6fc4;
  --profile-av-shadow: 0 0 5px #090b0dcc;
  --profile-av-bg: #333333;
  --profile-after-box-shadow:
    0 0 5px 1px #93c1d9, 0 0 0 6px #2f363b, 0 0 0 7px #b64d54;
  --profile-sub: #2c2a28;
  --profile-sub-bord: 1px solid #464342;

  /* иконка и анкета */
  --profile-anketa: #ffffff;
  --profile-anketa-bg: #4b4b4b;
  --profile-anketa-border: 1px solid #253f50;
  --profile-anketa-box-shadow: 0 0 4px inset #385563;
  --profile-icon-bg: #4d728c;
  --profile-links: #93c1d9;
  --profile-login: #c8c8c8;

  /* ТЕМЫ, ШАБЛОНЫ, ЦИТАТЫ И ДР. КОНТЕЙНЕРЫ */

  /* всякие большие контейнеры текста, например цитаты, код, всякие модалки и тд */
  --container-bg: #3e3e3e;
  --container-border: 1px solid #53606a;
  /* тут окантовка, сделанная на box-shadow - для тем */
  --container-stroke: 0 0 0 1px #53606a, 0 0 3px #93c1d9 inset;
  /* а здесь просто тень для модальных окошек */
  --container-shadow: 0 0 10px 0px #000000cc;
  --container-text: #bcbcbc;
  --container-headline: #d0848b;

  /* какие-нибудь мини-элементы внутри контейнера */
  --container-element-bg: #2c2b2b;
  --container-element-box-shadow: 0 0 0px 1px #53606a, inset 0 0 7px #1d2328;
  --container-element-color: #f2ece9;

  /* полупрозрачные */
  --container-transparent: #4d728c66;
  --container-transparent-text: #ffffff;
  --container-transparent-box-shadow: #93c1d9;

  /* ЭЛЕМЕНТЫ УПРАВЛЕНИЯ */

  /* поля ввода, форма ответа */
  --input-bg: #2c2e2fa3;
  --input-border: 1px solid #53606a;
  --input-text: #e7e0dc;

  /* кнопки */

  --button-bg: #5d7283;
  --button-hover: #ad1d32;
  --button-border: #b1c4ce61;
  --button-text: #e7f0f5;

  /* кнопки, стрелки и т.п. */
  --controls-1: #93c1d9;
  --controls-2: #d9dfe8;
  --controls-3: #5d5f61;
  --controls-contrast: #cfe2ea;
  --controls-colorful: #b64d54;

  /* прокрутка */
  --scrollbar-bg: #171d21;
  --scrollbar-color: #ad1d32;
  --scrollbar-border: 1px solid #53606a;

  /* ОСОБОЕ */

  /* большая обводка для гостевой и принятия и т.п. */
  --big-box-shadow:
    0 0 0 2px #55585b;

  /* табличное */
  --table-container: #8e9eb8;
  --table-container-text: #b2b7bd;
  --table-container-highlight: #93c1d9;
  --table-container-border: #0000004a;
  --table-container-box-shadow: #ffffff52;

  --table-popup: #15191db0;
  --table-popup-text: #ffffff;

  --table-links-bg: #8f0915;
  --table-links-hover: #4d728c;
  --table-links-color:  #e4dbdb;
  --table-links-border: #ffffff66;

  /* цвет ошибок вприложениях */
  --apps-error: #d0848b;
}
/* III. МОБИЛЬНАЯ ВЕРСИЯ
-----------------------------------------*/

@media screen and (max-width: 540px) {
  body {
background: var(--body-mobile);
  background-size: auto;
  background-repeat: repeat;
  background-attachment: fixed;
  background-position: top center;
  }

#pun {
	width: 100%;
	margin: 0 auto 80px;
	padding: 232px 0px 8px;
	box-sizing: border-box;
	border-radius: 0 0 32px 32px;
}

#pun .punbb {
	border-radius: 0 0 42px 42px;
padding-top: 10px;
}

  #pun_wrap {
  padding: 0;
  box-sizing: border-box;
width:100%;
}

  #pun-index #pun-main {
    padding: 0 1px;
  }

  #pun-main {
    padding: 0 8px;
  }

  /* шапка */

#pun-title table {
	position: absolute;
	top: 30px;
	left: -7px;
	width: calc(100% + 7px) !important;
	height: 203px;
	margin: 0;
	border-radius: 0;
	background: var(--header-mobile) no-repeat top center / cover;
	z-index: 0;
}

.chicago {
	display: none;
}

  /* подфорумы на главной */


.category {
	margin: -10px 0;
}

.category .container {
	padding-top: 40px;
	box-shadow: none;
}

#pun-index .category h2 span, 
#pun-stats h2::after {
	font-size: 27px;
	position: absolute;
	top: 34px;
	z-index: 1;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	right: 0;
	margin: 0 13px 0 0px;
	width: max-content;
}

#pun-stats h2::after {
	top: 23px;
}

#pun-index .category h2,
#pun-stats h2 {
  position: relative;
  height: 42px;
  margin: 0;
  line-height: 1;
  isolation: isolate;
}

  #pun-index .hasicon tr {
    display: grid;
    grid-template-areas:
      "tcl tcl tc2 tc3"
      "tcr tcr tcr tcr";
    grid-template-columns: minmax(0, 1fr) 34px 34px 34px;
    column-gap: 1px;
    row-gap: 0;
    width: 100%;
    margin: 0;
    padding: 18px 10px 22px;
    box-sizing: border-box;
    align-items: start;
  }

  #pun-index .hasicon .tcl {
    grid-area: tcl;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
  }

#pun-index .hasicon .tcl .intd {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-left: 0;
}

#pun-index .hasicon .tcl .icon {
  position: relative;
}

#pun-index .hasicon .tclcon {
  flex: 1;
  min-width: 0;
}

#pun-index .hasicon .tclcon h3 {
  margin: 0;
  font-size: 19px;
  line-height: 25px;
  white-space: normal;
}

#pun-index .hasicon .tclcon h3 a {
  display: inline;
}

#pun-index .category .tc2,
#pun-index .category .tc3 {
  align-self: start;
  justify-self: center;
  width: 34px;
  padding: 0;
  text-align: center;
  line-height: 1;
}

#pun-index .category .tc2::before,
#pun-index .category .tc3::before {
  display: block;
  margin: 0 0 3px;
  font-size: 13px;
  line-height: 16px;
}

#pun-index .hasicon .tcl .icon {
  order: -1;
}

#pun-index .hasicon .tcr {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-areas:
    "avatar topic"
    "avatar author";
  gap: 2px 9px;
  width: 100%;
  margin: 18px 0 0;
  text-align: left;
  justify-items: start;
  align-items: start;
}

#pun-index .hasicon .tcr .user-avatar {
  grid-area: avatar;
  width: 30px;
  height: 30px;
  margin: 0;
}

#pun-index .hasicon .tcr .user-avatar img,
#pun-index .hasicon .tcr .user-avatar .avatar-image {
  width: 30px;
  height: 30px;
  object-fit: cover;
}

#pun-index .hasicon .tcr a.lastpost-link {
  grid-area: topic;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 9px;
  line-height: 14px;
}

#pun-index .hasicon .tcr .lastpost {
  grid-area: author;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-align: left;
  white-space: wrap;
  text-overflow: ellipsis;
  font-size: 8px;
  line-height: 13px;
}

#pun-index .hasicon tr#forum_f19 .tcl {
  height: 105px;
}

  .podf3 {
    max-height: 55px;
    overflow: auto;
  }

  .podf3::-webkit-scrollbar {
    width: 1px;
  }

#pun #pun-ulinks li,
#pun #pun-ulinks a {
  color: var(--ulinks-color);
}


  .banermem {
    width: 100%;
    right: 0;
    bottom: -105px;
  }

  #pun-about {
    width: 100%;
    left:0;
/* background: none;
    background-size: contain;*/
    background-repeat: no-repeat;
    background-position: 36% top;
  }


  #memors {
    display: none;
  }

  /* .js-random-block, */
  #randPost {
    left: 3%;
    right: 3%;
    bottom: -18px;
    width: auto;
  }

  .texpostm {
    width: auto;
height: 35px;
    padding-top: 0;
  }

  .tams {
    display: none;
  }

  .location,
  .lokk,
  .telegram,
  .table_mem,
  #pun #BookmCntToggle.default-style {
    display: none;
  }

  .tblplaski_wrapper {
    top: -50px;
    max-width: unset;
    width: 100%;
    height: 53px;
    left: 0;
    box-sizing: border-box;
    border-radius: 0;
    bottom: 0;
    padding: 5px 0 5px 4px;
  }

  .tblplaski {
    height: 100%;
    box-shadow: unset;
    width: auto;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: nowrap;
    padding-right: 3px;
    justify-content: center;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
  }

  .ob {
    box-shadow: unset;
    background: #00000030;
    font-size: 1.2cqh;
    line-height: 1.2cqh;
    padding: 0.4cqh 1cqh;
    width: unset;
    white-space: nowrap;
    margin: unset;
  }

.table-news-link {
	font-size: 8px;
	background-clip: padding-box;
	flex: 0 0 auto;
	width: 130px;
	white-space: nowrap;
	padding: 0px 2px;
align-content: center;
}

.table-news_wrapper {
	top: 204px;
	left: 2%;
	width: calc(100% - 12px);
	box-sizing: border-box;
	height: 28px;
}

.table-news {
	height: 28px;
	display: flex;
	gap: 3px;
}

  /* приветствие */

#pun-status {
	top: 94px;
	left: 3%;
	right: 0;
	width: 23%;
	font-size: 7px;
}

  #pun-status .status_userava {
    display: none;
  }


  /* навигация */

#pun-navlinks .container {
	width: 100%;
	right: 0;
	left: 0;
	justify-content: space-evenly;
	align-items: center;
	gap: 0;
	top: 0px;
	background: var(--table-container);
	height: 30px;
	box-sizing: border-box;
}

  #navadmin {
    position: relative;
    top: unset;
    left: unset;
right: unset;
  }

#settingsDropdown {
	top: 30px;left: 10%;
}

#pun-ulinks {
	width: 90%;
	top: -3px;
	margin: 0 auto;
}

  #pun-ulinks .container {
    width: 90%;
    margin: 0 auto 0;
    font-size: 0.6em;
  }

  #pun-ulinks li {
    white-space: nowrap;
    line-height: 1.5em;
    display: inline-flex;
    align-items: center;
  }

#pun-ulinks li:not(:last-child)::after {
	margin: 0 4px;
}

  #pun-navlinks li {
    margin: 0;
  }

  #pun-navlinks li a, 
#pun-navlinks li.nav-mobile-menu a {
    font-size: 0;
    padding: 0;
color: var(--light-text);
letter-spacing: 0;
  }

  #pun-navlinks li a:before {
    font-family: var(--icon-font);
    font-size: 19px;
    width: auto;
    padding-left: 0px;
    text-align: center;
        margin-top: 10px;
  }

#pun-navlinks li:after {display: none;}

  #pun-navlinks li#navindex a:before {
    content: "\F424";
  }

  #pun-navlinks li#navuserlist a:before {
    content: "\F4CF";
  }

  #pun-navlinks li#navsearch a:before {
    content: "\F52A";
  }

  #pun-navlinks li#navprofile a:before {
    content: "\F4DA";
  }

  #pun-navlinks li#navpm a:before {
    content: "\F32C";
  }

  #pun-navlinks li#navlogout a:before {
    content: "\F1C3";
  }

  #pun-navlinks li#navlogin a:before {
    content: "\F1BE";
  }

  #pun-navlinks li#navregister a:before {
    content: "\F4F9";
  }

  #pun-navlinks li#navpiar a:before {
    content: "\F189";
  }

  #pun-navlinks li#navsettings a:before {
    content: "\F789";
  }

  #navlogout {
    position: relative;
    right: 0;
    top: 0;
  }

  #nav-mobile-menu {
    display: block;
  }

  #pun-stats li.item1,
  #pun-stats li.item2,
  #pun-stats li.item3,
  #pun-stats li.item4 {
    width: 100%;
    max-width: 100%;
    margin: 5px;
  }

  #loginPopup {
    left: unset;
    right: 0;
top: 32px;
  }

  .tblnav1 {
    top: 31px;
    position: absolute;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 30%;
    left: 17%;
    padding: 5px;
    display: none;
    z-index: 100;
    border-radius: 5px;
  }

  .tblnav1 a {
    display: block;
    width: 100%;
    text-align: left;
    z-index: 2;
    padding: 2px 6px;
    position: relative;
    border-radius: 10px;
    margin: 5px 0;
    box-sizing: border-box;
    opacity: 1;
  }

  .tblnav1 a:after {
    display: none;
  }

  .tblnav1:hover a {
    display: block;
  }

  #pun-navlinks li.nav-mobile-menu {
    margin-top: -15px;
    text-align: center;
  }

  #pun-navlinks li.nav-mobile-menu a {
    display: block;
    font-size: 20px;
    width: 28px;
  }

  #pun-navlinks li.nav-mobile-menu:hover .tblnav1,
  .tblnav1:hover {
    display: flex;
  }

  .nav-mobile-menu a i::before {
    font-family: var(--icon-font);
    content: "\F479";
    font-style: normal;
  }

  /* подфорум внутри */

  #pun-main .forum {
    width: calc(100% + 32px);
    margin-left: -16px;
  }

  #pun-main .forum thead {
    display: none;
  }

  #pun-main .forum .container tr {
    display: grid;
    grid-template-areas:
      "tcl tcl"
      "tcr tcr"
      "tc2 tc3";
    padding: 15px 20px;
  }

  #pun-main .forum td {
    padding: 0 !important;
  }

  #pun-main .forum td.tcl {
    grid-area: tcl;
    width: 100%;
  }

  #pun-main .forum td.tcr {
    grid-area: tcr;
    width: 100%;
    grid-template-columns: 22px 3fr 1fr;
    grid-template-rows: unset;
    gap: 0.5em;
    align-items: center;
    margin: 15px 0 10px;
  }

  #pun-main .forum td.tc2 {
    grid-area: tc2;
    text-align: left;
    width: auto;
  }

  #pun-main .forum td.tc3 {
    grid-area: tc3;
    width: 100%;
    text-align: right;
  }

  #pun-main .forum .tclcon {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "topic topic"
      "first second ";
  }

  #pun-main .forum .tclcon strong {
    display: grid;
  }

  #pun-main .forum .tclcon::before {
    width: 10px;
    height: 10px;
    margin-top: 3px;
  }

  #pun-main .forum .tclcon .byuser {
    bottom: -7px;
  }

  #pun-viewforum .tcr .user-avatar,
  #pun-searchtopics .tcr .user-avatar,
  #pun-viewforum .tcr .user-avatar .avatar-image,
  #pun-searchtopics .tcr .user-avatar .avatar-image {
    width: 20px;
    height: 20px;
  }

  #pun-userlist .usertable .isonline {
    margin: 0 -1px 0 30px;
  }

  #pun-messages .user-avatar .isonline {
    margin: 3px 0 0 -4px;
  }

  #pun-main .forum .byuser {
    width: unset;
    display: flex;
    align-items: center;
  }

  #pun-main .forum .tcr .user-avatar {
    grid-column: 1;
    margin: 0;
  }

  #pun-main .forum td.tcr > a {
    grid-column: 3;
    text-align: right;
    grid-row: 1;
  }

  #pun-main .forum .tcr .byuser {
    grid-column: 2;
  }

  #pun-crumbs1 {
    margin: 20px 10px 20px;
  }

  /*банк*/
  .tembank tem1 {
    margin-left: -4.5% !important;
  }

  bank1 pl,
  bank2 mn {
    width: 72%;
  }

  bank2 mn sm,
  bank1 pl sm {
    width: 49%;
    margin: -13px 0 0 78%;
    height: 30px;
    padding-right: 10px;
  }

  .bank-right {
    margin: 0 auto;
  }

  /* пост в теме */

  .post > .container {
    grid-template-columns: 1fr !important;
    width: 100%;
  }

  .post .container .post-links {
    grid-column: unset;
    grid-row: unset;
  }

  .post .post-box .bookmark {
    right: -16px;
  }


  /*профиль*/
  .post .post-author {
    width: 100%;
    margin: 30px auto 20px;
  }

  .post .post-author ul {
    display: grid;
    gap: 5px;
    padding: 15px 10px;
    grid-template-columns: 1fr 2fr 2fr 2fr 2fr 1fr;
    width: 100%;
    box-sizing: border-box;
  }

  .post .pa-author {
    grid-column: 1 / 7;
    grid-row: 1;
    padding-bottom: 0;
    margin-top: 0;
  }

  .pa-author #tuser,
  .blockButton:before,
.pp-ams-profile-edit-btn {
    font-size: 7px !important;
    width: 7px !important;
    height: 7px !important;
    line-height: 7px !important;
  }

  .pa-author #tuser {
    left: 0;
    top: -23px;
  }

  .blockButton {
    left: 26px;
    top: 8px !important;
  }

.pp-ams-profile-edit-btn {
	top: -23px;
	left: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

#pp-ams-click-panel {
          right: 10px;
          left: 10px;
          bottom: 10px;
          width: auto;
          max-height: calc(100vh - 20px);
        }

        #pp-ams-click-panel.pp-ams-collapsed {
          width: auto;
          max-width: none;
        }

        #pp-ams-click-panel .pp-ams-actions {
          flex-direction: column;
        }

        #pp-ams-click-panel .pp-ams-actions button {
          width: 100%;
        }

  .post .post-author:not(:has(.pa-fld5)) {
    margin-top: 20px;
  }

  .post .toBlock:not(:has(.pa-fld5)) .blockButton {
    top: 3px !important;
  }

  .post .post-author ul:not(:has(.pa-fld5)) #tuser {
    top: -18px !important;
  }

  /* профиль гостя */
  .post[data-group-id="2"] .post-author.no-avatar ul {
    grid-template-columns: auto;
  }

  .post[data-group-id="2"] .post-author.no-avatar ul li {
    grid-column: unset !important;
  }

  .post .pa-title {
    background: unset;
    border: none;
    width: 90%;
    padding: 0;
    grid-column: 1 / 7;
    grid-row: 2;
    margin: 5px auto;
  }

  .post .pa-avatar {
    max-width: 90px;
    padding: 3px;
    grid-row: 3 / 5;
    grid-column: 1 / 3;
    width: auto;
    border-radius: 5px;
    margin: 0 auto;
  }

  .pa-respect,
  .pa-posts,
  .pa-fld2,
  .pa-fld3 {
    margin-top: 10px;
  }

  .post .pa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .post .pa-fld5 {
    margin-left: -17px;
    background-size: cover;
  }

  .post .pa-fld5:has(.fon_icon) a {
    margin: -18px 0 0 -15px;
  }

  .post .pa-fld4,
  .post .pa-fld4 .plashka {
    width: 100%;
  }

  .pa-fld5,
  .fon_icon img,
  .fon_test img {
    object-fit: cover;
  }

  /* заполненный профиль */

  .post .pa-fld1 {
    grid-row: 3 / 5;
    grid-column: 3 / 7;
    margin: 0 -10px 0 10px;
  }

  .post .pa-fld1 .lz {
    margin: 0;
  }

  .post .post-author li:nth-of-type(6).pa-posts {
    grid-column: 2;
    grid-row: 5;
  }

  .post .post-author li:nth-of-type(7).pa-respect {
    grid-column: 3;
    grid-row: 5;
  }

  .post .post-author li:nth-of-type(8).pa-fld3 {
    grid-column: 4;
    grid-row: 5;
  }

  .post .post-author li:nth-of-type(9).pa-fld2 {
    grid-column: 5;
    grid-row: 5;
  }

  /* смена - без лз, но с иконками */

  .post .post-author li:nth-of-type(5).pa-posts {
    grid-column: 4;
    grid-row: 3;
  }

  .post .post-author li:nth-of-type(6).pa-respect {
    grid-column: 5;
    grid-row: 3;
  }

  .post .post-author li:nth-of-type(7).pa-fld3 {
    grid-column: 4;
    grid-row: 4;
  }

  .post .post-author li:nth-of-type(8).pa-fld2 {
    grid-column: 5;
    grid-row: 4;
  }

  /* для профиля без лз но с постами и звездами - сменщики */
  .post .post-author:not(:has(.pa-fld1)):has(.pa-fld3) .pa-avatar {
    grid-column: 1 / 4;
  }

  /* вообще пустой профиль */

  .post .post-author:not(:has(.pa-fld1)):not(:has(.pa-fld3)) .pa-posts {
    grid-column: 4;
    grid-row: 3 / 5;
  }

  .post .post-author:not(:has(.pa-fld1)):not(:has(.pa-fld3)) .pa-respect {
    grid-column: 5;
    grid-row: 3 / 5;
  }

  .post .post-author:not(:has(.pa-fld1)):not(:has(.pa-fld3)) .pa-avatar {
    grid-column: 2 / 4;
  }

  .pa-ip {
    bottom: -18px;
    left: 40%;
  }

  /* в поиске */

  #pun-searchposts .post-body {
    margin: 0;
  }

  #pun-searchposts .post-author {
    margin-bottom: 0;
  }

  #pun-searchposts #pun-main .topic .post .post-author ul {
    margin-top: 6px;
    min-height: unset;
  }

  .indOnline,
  .indOffline {
    left: auto !important;
    right: 10px !important;
  }

/*гостевая*/
.gost {
  height: auto;        
  min-height: 0;
  max-width: 100%;
  margin: 0 auto;
  grid-template:
    "title" auto
    "prid"  auto
    "face1" auto
    "cost"  auto
    "face2" auto
    "descr" auto
    "claim" auto
    "nav"   auto;
  grid-template-columns: 1fr;
  grid-template-rows: none;
  column-gap: 0;
  row-gap: 0;
  padding: 10px 10px 8px;
  border-radius: 18px;
  overflow: hidden;
}

.gost::before {
  content: none;
  display: none;
}


.gost::after {
  content: "" !important;
  display: block !important;
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  grid-column: 1 / -1;
  grid-row: descr-start / claim-end;
  width: auto;
  height: auto;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  z-index: 0;
  pointer-events: none;
  filter: none;
  box-shadow: none;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.52),
      rgba(0, 0, 0, 0.55)
    ),
    var(--nav);
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
}

.gost_title {
  grid-area: title;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 8px 12px 4px;
  text-align: center;
  display: block;
  aspect-ratio: 2.2 / 1;   
  max-height: 160px;
  background-color: var(--category-title);
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-size: min(78%, 280px) auto;
  mask-size: min(78%, 280px) auto;
  filter: none;
  z-index: 2;
}

.gost_title::before,
.gost_title::after {
  content: none !important;
}

.gost_prid,
.gost_cost {
  margin: 0;
  padding: 12px 14px 8px;
  text-align: center;
  border-radius: 14px 14px 0 0;
}

.gost_prid {
  margin-top: 4px;
}

.gost_cost {
  margin-top: 10px;   
}

.gost_prid::before,
.gost_cost::after {
  display: none;        
}

.gost face1,
.gost face2 {
  width: 100%;
  height: auto;
  max-height: 140px;
  min-height: 0;
  margin: 0 0 0;
  margin-top: -1px;     
  padding: 2px 14px 12px;
  border-radius: 0 0 14px 14px;
}

.gost face2 {
  margin-bottom: 12px;       
}

.gost_descr,
.gost_claim {
  position: relative;
  z-index: 2;
  color: var(--light-text);
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
}

.gost_descr::before,
.gost_claim::before {
  content: none;
  display: none;
}

.gost_descr {
  grid-area: descr;
  margin: 0;
  padding: 16px 16px 12px;
  border-radius: 14px 14px 0 0;
  font-size: clamp(9px, 2.8vw, 10.5px);
  line-height: 1.7;
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
}


.gost_type {
  font-size: clamp(10px, 3vw, 11px);
  margin: 0 0 10px;
}

.gost_claim {
  grid-area: claim;
  margin: 0 0 8px;
  padding: 4px 16px 16px; 
  border-radius: 0 0 14px 14px;
  font-size: clamp(9px, 2.8vw, 10.5px);
  line-height: 1.6;
  letter-spacing: 0.5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
}

#appearance-input,
.gost_claim .appearance-input {
  font-size: 16px;     
  margin-top: 8px;
}

.appearance-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

select#appearance-action,
input#appearance-payment-weeks {
  flex: 1 1 100%;
}

.appearance-submit {
  flex: 1 1 auto;
  min-width: 140px;
}

/*гостевая конец*/

  /*аллея звезд*/

  .stat {
    grid-template-columns: 1fr 1fr;
    grid-template-rows:
      120px
      36px
      64px
      64px
      42px
      24px
      30px
      42px
      116px
      30px
      30px
      30px
      66px;
    width: calc(100% - 24px);
    min-height: 0;
    background:
      linear-gradient(
        to bottom,
        transparent 0,
        transparent 350px,
        var(--table-links-color) 350px,
        var(--table-links-color) 380px,
        transparent 380px
      ),
      var(--punbb-bg);
    border-radius: 6px;
  }

  .stat::before {
    height: 120px;
  }

  .stat::after {
    height: 28px;
  }

  .stat stat1 {
    grid-column: 1 / 3;
    grid-row: 1;
    height: 120px;
  }

  .stat stat1::before {
    right: 5%;
    left: 5%;
    height: 120px;
  }

  .stat stext1,
  .stat stext2,
  .stat stext3 {
    padding: 0 3px;
    font-size: 6px;
  }

  .stat stext1 {
    grid-column: 1 / 3;
    grid-row: 2;
  }

  .stat stat4,
  .stat stat5 {
    grid-column: 1 / 3;
    grid-template-columns: 29px repeat(5, minmax(0, 1fr)) 29px;
    gap: 5px;
  }

  .stat stat4 {
    grid-row: 3;
    height: 64px;
  }

  .stat stat5 {
    grid-row: 4;
    height: 64px;
  }

  .stat stat4::before,
  .stat stat5::before {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    height: 4px;
    margin: 0;
    font-size: 7px;
  }

  .stat stat4::before {
    margin-left: 22px;
  }

  .stat stat5::before {
    margin-right: 22px;
  }

  .stat stat4 a,
  .stat stat5 a {
    height: 40px;
  }

  .stat stext2 {
    grid-column: 1 / 3;
    grid-row: 5;
  }

  .stat stat7 {
    grid-column: 1 / 3;
    grid-row: 7;
    padding: 0 6px;
    background: var(--table-links-color);
  }

  .stat stat7 a {
    min-width: 100%;
    font-size: 10px;
    line-height: 30px;
    white-space: nowrap;
  }

  .stat stat8 {
    grid-column: 1;
    grid-row: 8;
  }

  .stat stat10 {
    grid-column: 2;
    grid-row: 8;
  }

  .stat stat8 a,
  .stat stat10 a {
    font-size: 10px;
  }

  .stat stat9,
  .stat stat11 {
    height: 116px;
    padding: 7px 8px 0;
    font-size: 10px;
    line-height: 1.35;
  }

  .stat stat9 {
    grid-column: 1;
    grid-row: 9;
  }

  .stat stat11 {
    grid-column: 2;
    grid-row: 9;
  }

  .stat stat8::after,
  .stat stat10::after {
    top: 158px;
    font-size: 7px;
  }

  .stat stat6 {
    grid-column: 1 / 3;
    grid-row: 11;
    height: 30px;
    padding: 0 6px;
    background: var(--table-links-color);
  }

  .stat stat6 a {
    flex: 0 0 auto;
    font-size: 10px;
    line-height: 30px;
    white-space: nowrap;
  }

  .stat stext3 {
    grid-column: 1 / 3;
    grid-row: 12;
  }

  .stat stat3 {
    grid-column: 1 / 3;
    grid-row: 10 / 14;
    height: 116px;
  }

  .stat stat3::before {
    top: -137%;
    left: 50%;
    width: 34px;
    height: 34px;
  }

  .stat stat3 s1,
  .stat stat3 s2 {
    font-size: 10px;
  }

  .stat stat3 s1 {
    left: 12px;
  }

  .stat stat3 s2 {
    right: 12px;
  }

  /*аллея звезд конец */

  #form-buttons tr {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .button.hotkeys_help {
    display: none;
    justify-content: center;
  }

  #symbol-counter {
    border-bottom: 1px solid #00000020 !important;
    width: 100% !important;
    height: unset !important;
    margin-bottom: 5px;
  }

  #pun-messages #form-buttons td:not(#symbol-counter) {
    margin-top: -5px !important;
  }

  #symbol-counter span {
    display: unset;
    font-size: unset;
  }

  #pun-messages #form-buttons table {
    width: 100%;
    padding: 0;
  }

  #tags .container {
    top: 30% !important;
  }

  #tags .container#spoiler-area {
    right: 0;
    left: 0;
    width: unset;
  }

  #tags .container#video-area,
  #tags .container#image-area {
    left: 0;
    right: 0;
    width: unset;
  }

  #keyboard-span br {
    display: none;
  }

  .hvStickerPackModalContainer {
    top: 110px;
  }

  p.formsubmit {
    text-align: center;
  }

  .memneed {
    grid-template-columns: 1fr 1fr;
  }

  .memneed memnd2 {
    z-index: 1;
    font-size: 12px;
  }

  .memneed memnd1 {
    width: 100%;
    text-align: right;
  }

  .memneed memnd4::before {
    content: "внешность";
    left: 0px;
  }

  .memneed memnd5::before {
    left: 0px;
  }

  .memneed memnd6::before {
    left: 0px;
  }

  .memneed memnd4 {
    width: 100%;
  }

  .memneed memnd5 {
    margin-bottom: 5px;
  }

  .memneed memnd6 {
    margin-bottom: 5px;
  }

.prin {
  padding: 0 0 14px;
  min-height: auto;
}

.prin::before {
  height: 72px;
  border-radius: 12px 12px 0 0;
}

.prin::after {
  top: 48px;
  border-radius: 14px;
}

.prin__title {
  width: 92%;
  margin: 34px auto 6px;
  font-size: 12px;
}

.prin__text {
  padding: 12px 7% 6px;
  font-size: 10px;
  line-height: 1.65;
}

.prin__links {
  gap: 6px;
  padding: 10px 5% 16px;
}

.prin__links a {
  text-transform: lowercase;
}

  a.memory_button {
    padding: 3px;
  }

  .shop_tabs > div {
    width: 90%;
  }

  .shop_tabs > label {
    transform: translateX(0%);
    min-width: max-content;
  }

  .memlane_shop .plashka {
    width: 60%;
  }

  .shop_stock td {
    width: 100%;
    display: block;
  }

  .shop_stock .plashka {
    width: 100%;
  }

  .shop_stock .plashka pltwo {
    font-size: 9px;
  }

.graf {
  padding: 0 12px;
}

.graf_stores {
  grid-template-columns: 1fr;
  gap: 14px;
}

.graf_store {
  padding: 12px;
  border-radius: 12px;
}

.graf_store:hover,
.graf_store:focus-within {
  transform: none;
}

.graf_store .store_head {
  cursor: pointer;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
}

.graf_store .store_head::after {
  content: "свернуть";
  display: block;
  width: fit-content;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.4;
  opacity: 0.65;
  background: rgba(128, 128, 128, 0.10);
}

.graf_store.store_podr_closed .store_head::after {
  content: "раскрыть";
}

.graf_store .store_podr {
  display: block !important;
  max-height: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;

  margin-top: 10px !important;
  padding: 10px 11px !important;
  transform: none !important;

  border-radius: 10px;
  line-height: 1.45;
  font-size: 12px;
  background: rgba(128, 128, 128, 0.08);
}

.graf_store.store_podr_closed .store_podr {
  display: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

  .shop-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .shop-actions .memory_button {
    font-size: 11px;
  }

  .shop-actions .memory_button:nth-child(5) {
    grid-column: 1 / -1;
  }

  /* внутри профиля */

  #viewprofile tr {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  #viewprofile td#profile-left {
    margin: 0 auto;
  }

  #profile-right {
    width: 100% !important;
  }

  #viewprofile #profile-right li:not(#pa-fld4) {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
  }

  #viewprofile #profile-right li span {
    width: 50%;
    padding: 0;
    box-sizing: border-box;
    margin: 0;
    padding-right: 10px;
  }

  #viewprofile #profile-right li#pa-fld1 span,
  #viewprofile #profile-right li#pa-fld4 span {
    display: none;
  }

  #profile-right li strong {
    display: block;
    width: 50%;
    /*box-sizing: border-box;*/
    margin: 0;
    padding: 0 !important;
  }

  #profile-right li#pa-fld4 strong {
    width: 250px;
    margin: 0 auto;
  }

  #profile-right li#pa-fld1 strong .lz {
    margin-top: 6px;
  }

  #profile-right li#pa-fld5 strong {
    left: 47%;
    top: -12px;
    overflow: hidden;
  }

  #profilenav,
  #pun-adnav {
    float: none;
    margin-bottom: 10px;
    width: auto;
    margin-left: 0;
  }

  #profilenav ul,
  #pun-adnav ul {
    text-align: center;
    margin-bottom: 10px;
  }

  #profilenav li,
  #pun-adnav li {
    display: inline-block;
  }

  #profilenav li.isactive {
    margin: 0;
  }

  #profilenav li.isactive a::before {
    transform: rotate(90deg);
    transform-origin: center;
  }

  #profilenav li a:hover::before {
    transform: scaleX(0);
  }

  #profilenav li a:hover {
    padding-left: unset;
  }

  .punbb-admin #pun-adnav {
    float: none;
    width: 100%;
    margin-left: 0;
    display: block;
  }

  .punbb-admin .adminmain {
    padding: 0;
    margin: 0;
  }

  #pun-viewforum .modmenu a {
    font-size: 0.5rem;
  }

  /*для челленджа*/
  .tembank tbody {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .tembank tr {
    display: contents;
  }

  /*для челленджа*/

  /*кнопки внизу постов*/
  #pun-viewtopic .post-links {
    /*padding-bottom: 10px;*/
    top: 10px;
  }

  #pun-viewtopic .post-links a {
    font-size: 0;
    padding: 0 2px;
  }

  #pun-viewtopic .post-links a::before,
  .js-welcome::before {
    font-family: var(--icon-font);
    font-size: 13px;
    color: var(--controls-contrast);
    font-weight: normal;
    transition: var(--hover-transition);
  }

  #pun-viewtopic .post-links .pl-email.profile a::before {
    content: "\F4E1";
  }

  #pun-viewtopic .post-links .pl-email.pm a::before {
    content: "\F6C0";
  }

  #pun-viewtopic .post-links .pl-email a::before {
    content: "\F3E5";
  }

  #pun-viewtopic .post-links .pl-advlink a::before {
    content: "\F484";
  }

  #pun-viewtopic .post-links .pl-delete a::before {
    content: "\F78B";
  }

  #pun-viewtopic .post-links .pl-edit a::before {
    content: "\F4CA";
  }

  #pun-viewtopic .post-links .pl-quote a::before {
    content: "\F255";
  }

  #pun-viewtopic .post-links .pl-quote2 a::before {
    content: "\F25A";
  }

  .js-welcome::before {
	content: "\F407";
  }

  .linkst,
  .linksb {
    flex-wrap: wrap;
    justify-content: end;
    gap: 20px 5px;
    align-items: center;
  }

  /*анкета*/

  .anketa {
    grid-template-columns: 125px 1fr;
    grid-template-rows: auto auto auto auto auto;
    gap: 10px;
  }

  .anketa anketa1 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .anketa anketa8 {
    grid-column: 1;
    grid-row: 2 / 5;
    margin-top: 0 !important;
    justify-self: center;
    margin-left: 15px;
  }

  .anketa anketa4 {
    grid-column: 2;
    grid-row: 2;
  }

  .anketa anketa3 {
    grid-column: 2;
    grid-row: 3;
  }

  .anketa anketa5 {
    grid-column: 2;
    grid-row: 4;
  }

  .anketa anketa3,
  .anketa anketa4,
  .anketa anketa5 {
    width: 100% !important;
    margin: 0 !important;
    transform: none !important;
    justify-self: stretch;
    max-height: none;
    box-sizing: border-box;
    text-align: center;
  }

  .anketa anketa2 {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100% !important;
  }

  .anketa anketa10 {
    grid-column: 1 / -1;
    grid-row: 6;
    width: 100% !important;
  }

  .anketa anketa9 {
    grid-column: 1 / -1;
    grid-row: 7;
    height: auto;
    max-height: 365px;
  }

  .anketa anketa2,
  .anketa anketa10 {
    height: auto !important;
    min-height: 15px;
    box-sizing: border-box;
  }

  .anketa::before {
    grid-column: 1 / -1;
    grid-row: 1 / 5;
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
  }

  .anketa anketa3::before,
  .anketa anketa4::before,
  .anketa anketa5::before {
    font-size: 8px;
  }

.anketa-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.anketa-row.cols-3,
.anketa-row.cols-3-strong {
  grid-template-columns: 1fr !important;
}

  /*анкета*/

  /*хронология и отношения*/
  mrelat {
    grid-template-columns: auto;
  }

  /* инпуты и всякие поля */

  fieldset .fs-box.inline {
    display: grid;
  }

  /* #punbbsearch fieldset:nth-child(2) .fs-box.inline .selectfield,
  fieldset .fs-box.inline .infofield {
    grid-column: 1 / -1;
  } */

  .FNTslider {
    margin-right: 100px;
    margin-top: 6px;
  }

  Div.icon:before {
    display: block;
    margin-top: 0px;
  }

  .toBlock {
    position: relative;
  }

  .post-sig dd span[style*="display: block"] {
    display: block !important;
    text-align: center;
  }

  .sigimage {
    max-width: 45%;
    max-height: 120px;
    margin: 5px;
  }

  .sigimage + .sigimage {
    margin-left: 5px;
  }

  /* участники */

  #pun-userlist .usertable .container thead {
    display: none;
  }

  #pun-userlist #pun-main .usertable .container tr {
    display: grid !important;
    align-items: center;
    grid-template-areas:
      "username user_title"
      "relation num_posts"
      "registered last_visit";
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    margin: 15px 0;
    width: 100%;
    box-sizing: border-box;
  }

  #pun-userlist .usertable .container tr .tcl.username {
    grid-area: username;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row-reverse;
    width: unset;
  }

  #pun-userlist .usertable .tcl {
    text-align: right;
  }

  #pun-userlist .usertable .container tr .user_title {
    grid-area: user_title;
    text-align: left;
    font-size: 1.15cqh;
    line-height: 1;
    width: unset;
  }

  #pun-userlist .usertable .container tr .relation {
    grid-area: relation;
    text-align: right;
    width: unset;
  }

  #pun-userlist .usertable .container tr .relation::before {
    content: "уважение: ";
    text-align: left;
  }

  #pun-userlist .usertable .container tr .num_posts {
    grid-area: num_posts;
    text-align: left;
    width: unset;
  }

  #pun-userlist .usertable .container tr .relation,
  #pun-userlist .usertable .container tr .num_posts {
    padding: 5px 0;
  }

  #pun-userlist .usertable .container tr .num_posts::before {
    content: "сообщений: ";
  }

  #pun-userlist .usertable .container tr .registered {
    grid-area: registered;
    text-align: right;
    width: unset;
  }

  #pun-userlist .usertable .container tr .registered::before {
    content: "зарегистрирован: ";
    display: block;
  }

  #pun-userlist .usertable .container tr .last_visit {
    grid-area: last_visit;
    text-align: left;
    width: unset;
  }

  #pun-userlist .usertable .container tr .last_visit::before {
    content: "был: ";
  }

  /* убираем зум на айфонах, нужновое */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  textarea,
  select,
  #main-reply,
  .punbb textarea,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus,
#main-reply:focus,
.punbb textarea:focus {
    font-size: 16px !important;
    width: 100%;
-webkit-text-size-adjust: 100%;
  }

  #pun-viewtopic .linksb {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  #pun-viewtopic .pagelink {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
  }

  /*найти на странице*/
  #s-block {
    grid-row: 2;
    grid-column: 2;
    justify-self: start;
  }

  #sTheme {
    width: 100% !important;
    text-overflow: ellipsis;
  }

  #isk::before {
    margin-left: 3px !important;
  }

  .subscribelink {
    grid-column: 1;
    grid-row: 2;
    justify-self: unset;
  }

  #pun-admain .postlink {
    float: left;
    margin-left: 2px;
    margin-top: 10px;
  }

  /* для чс */

  #panel-sticker {
    display: none;
  }

  .panel-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
  }

  /* уведы */

  .bubble {
    position: relative !important;
    width: 14px;
    height: 14px;
    top: unset !important;
    right: unset !important;
    line-height: 14px !important;
    margin: 0 0 0 5px !important;
    border-radius: 50% !important;
    padding: 0 !important;
  }

  .bubble:after {
    display: none !important;
  }

  #pun-report .inner,
  #pun-reputation .inner,
  #pun-admin-award-form .inner {
    box-sizing: border-box;
  }


  .go-up:after,
  .go-down:after{
    display: none;
  }

  .go-up,
  .go-down {
    transform: scale(0.6);
    right: -0.5%;
    top: unset;
    z-index: 100;
  }

  .go-up {
    top: 50%;
  }

  .go-down {
    top: calc(50% + 30px);
  }


  .menu,
  .memlane_shop,
  .tem,
  .epizod,
  .tembank,
  .guide,
  .vn,
  .proff,
  .stat,
  .memneed,
  #bank-app,
  .graf {
    width: 100%;
    box-sizing: border-box;
  }

  .tem .tem5 {
    width: 100%;
    aspect-ratio: 580 / 222;
  }

  .tem .tem5 .tem_name {
    font-size: clamp(72px, 14vw, 107px);
  }

  .tem .tem5 .tem_descr,
  .tem .tem5 .tem_award1,
  .tem .tem5 .tem_award2 {
    min-width: 0;
    padding: 3px 9px;
    font-size: 9px;
  }

  .tem .tem5 .tem_descr {
    top: 9%;
    left: 12%;
  }

  .tem .tem5 .tem_award1 {
    top: 57%;
    right: 8%;
  }

  .tem .tem5 .tem_award2 {
    right: 22%;
    bottom: 6%;
  }

  .vn {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
    padding: 40px 14px 40px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    background-size: 100% 80px, 100% 80px, auto;
  }

  .vn::before {
    top: 24px;
    bottom: 24px;
    left: 8px;
    right: 8px;
  }

  .vn .vn_name {
    max-width: calc(100% - 12px);
    margin: 0 auto 8px;
    padding: 4px 10px;
    font-size: 20px;
  }

  .vn .vn_descr,
  .vn-search,
  .vn-M_name,
  .vn-W_name,
  .vn-M-first,
  .vn-M-second,
  .vn-W-first,
  .vn-W-second,
  .vn-S_name,
  .vn .wrp {
    grid-column: 1;
    grid-row: auto;
  }

  .vn-M-first::before,
  .vn-M-second::before {
    display: none;
  }

  .vn-M-first,
  .vn-M-second,
  .vn-W-first,
  .vn-W-second {
    width: 100%;
    height: 130px;
  }

  .vn-S {
    column-count: 2;
  }

  .proff {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin-top: 40px;
    padding: 40px 14px 40px;
    background-size: 100% 80px, 100% 80px, auto;
  }

  .proff::before {
    top: 24px;
    bottom: 24px;
    left: 8px;
    right: 8px;
  }

  .proff .proff_name {
    max-width: calc(100% - 12px);
    margin: 0 auto 12px;
    padding: 4px 10px;
    font-size: 20px;
  }

  .proff_tabs {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .proff_tabs > label {
    grid-column: 1;
    grid-row: auto !important;
  }

  .proff_tabs > div {
    grid-column: 1;
    grid-row: auto;
    min-height: 220px;
    max-height: 280px;
  }

  #proff1,
  #proff2,
  #proff3,
  #proff4,
  #proff5,
  #proff6,
  #proff7,
  #proff8 {
    width: auto !important;
    margin: 0 !important;
  }
  .punbb .post-content p,
  .punbb .post-content .scrollbox {
    margin: 6px 0;
  }

  /* цвета */

  #pun-userlist #pun-main .usertable .container tr {
    background: var(--container-bg);
    border: var(--container-border);
  }

  #pun-userlist .usertable .container tr .relation,
  #pun-userlist .usertable .container tr .num_posts {
    border-block: var(--container-border);
  }

  .tblnav1 {
    background: var(--container-bg);
    border: var(--container-border);
    white-space: normal;
  }

  .tblnav1 span {
    background: unset;
    box-shadow: unset;
    border: unset;
    padding: unset;
    margin: unset;
  }

  .tblnav1 a {
    background: var(--text-badge-bg);
    color: var(--text-badge-color);
    white-space: normal;
  }

 
/*коллекции*/
#collection-request-app {
    padding: 10px;
    border-radius: 14px;
  }


  .cr-panel,
  .cr-preview {
    padding: 10px;
    border-radius: 12px;
  }

  .cr-proof-dual {
    grid-template-columns: 1fr;
  }

  .cr-buttons,
  .cr-preview-actions {
    flex-direction: column;
  }

  .cr-btn {
    width: 100%;
  }

  .cr-preview-card-title {
    flex-direction: column;
    align-items: stretch;
  }

.cr-grid { grid-template-columns: 1fr; } 

.cr-buttons, 
.cr-preview-actions { flex-direction: column; } 

 /* страница личных соо */

  #profile .container:not(.container[id$="-area"]) {
    padding-left: 0 !important;
  }

  #pun-messages #messages > fieldset > legend {
    margin: 10px auto;
  }

  #pun-messages #messages thead {
    display: none;
  }

  #pun-messages .hasicon tr {
    display: grid !important;
    align-items: start !important;
    grid-template-areas:
      "user . date check"
      "user topic topic topic";
    grid-template-columns: 40px 1fr 1fr auto;
    position: relative;
    padding: 10px;
    width: calc(100% + 10px);
    margin-left: -15px;
    gap: 5px;
  }

  #pun-messages #messages td.tc2.pmtc22 {
    grid-area: user;
    position: relative;
    width: 100% !important;
    overflow: visible !important;
  }

  #pun-messages .user-avatar .avatar-image {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
  }

  #pun-messages .user-avatar::before {
    border-radius: 50%;
  }

  #pun-messages #messages td.tc2.pmtc22 > a {
    position: absolute;
    top: 3px;
    left: 47px;
    font-weight: 600;
  }

  #pun-messages table tr div.icon.inew {
    left: 0;
    top: -15px;
  }

  #pun-messages #messages .inew td.tc2.pmtc22 > a {
    left: 60px;
  }

  #pun-messages #messages td {
    padding: 0;
  }

  #pun-messages #messages td.tc3.pmtc33 {
    grid-area: date;
    width: 100% !important;
    justify-content: flex-end;
  }

  #pun-messages #messages td.tcl.pmtcl1 {
    grid-area: topic;
    width: 100% !important;
    font-size: 0.8em;
    display: unset;
  }

  #pun-messages #messages td.tcl.pmtcl1 .tclcon > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  #pun-messages #messages td.tcl.pmtcl1 .tclcon {
    margin-top: -8px;
  }

  #pun-messages #messages td.tcl.pmtcl1 .tclcon:before {
    width: 8px;
    height: 8px;
    position: absolute;
    top: 19px;
    display: none;
  }

  #pun-messages #messages .inew td.tcl.pmtcl1 .tclcon:before {
    display: initial;
  }

  #pun-messages #messages td.tc2.pmtc24 {
    grid-area: check;
    width: 100% !important;
  }

  div#pun-navlinks li#navpm span.num_msg {
    transform: scale(0.7);
    margin-top: -22px !important;
    margin-left: -17px !important;
    font-size: 10px !important;
  }

  span.num_msg:before {
    margin-left: 3px !important;
  }

  p.formsubmit,
  p.selectfield,
  p.inputfield {
    margin: 2px 0;
  }

  #pun-messages .pmtc22 a,
  #pun-messages .pmtc33 {
    white-space: nowrap;
  }

  .permalink {
    margin-left: 0 !important;
  }

  .punbb img.avatardemo {
    margin: 10px auto;
    float: unset !important;
  }

  .collection_section {
    word-break: break-word;
  }

  .menu {
    border: 10px solid transparent;
    box-shadow: none;
    padding: 10px;
  }

  .sns_ochka {
    width: 287px !important;
    background-size: contain !important;
  }

  #addition-area span.hotkey {
    display: none;
  }

  #pun-online #pun-main thead {
    display: none;
  }

  #pun-online #pun-main .container tr {
    display: grid;
    gap: 5px 10px;
    justify-content: space-between;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    padding: 10px;
  }

  #pun-online #pun-main .container td.tcl.username {
    width: unset !important;
    grid-row: 1 / 3;
    grid-column: 1;
    padding: 0;
  }

  #pun-online #pun-main .container td.tcl.action {
    width: unset !important;
    grid-row: 1;
    grid-column: 2;
    padding: 0;
    text-align: right;
  }

  #pun-online #pun-main .container td.tc3 {
    width: unset !important;
    grid-row: 2;
    grid-column: 2;
    padding: 0;
    text-align: right;
  }

/*.tipsy-inner #showt{
display:none !important;
bottom:0 !important;
right:0 !important;
left: unset !important;
top: unset !important;
height: 0 !important;
width:  0 !important;
}*/

.rating_theme .modal-inner {width:100% !important; box-sizing: border-box;}

	/* ФОНД ФОРУМА */
#pun-status p span.item3 {
	display: block;
	width: 30%; 
	left: 65%;
	font-size: 8px;
	top: 0px;
}

}

@media screen and (min-width: 541px) and (max-width: 1100px) {

  body {
    background: var(--body-color);
  }

  #pun_wrap {
    position: relative;
    width: 1095px;
    min-width: 1095px;
    margin: 0;
    padding: 0 15px;
    box-sizing: border-box;
    isolation: isolate;
  }

  #pun {
    position: relative;
    left: auto;
    right: auto;
    transform: none;
    margin-left: auto;
    margin-right: auto;
  }

  .go-up,
  .go-down {
    position: fixed !important;
    left: auto !important;
    right: 8px !important;
    margin: 0 !important;
    z-index: 1000 !important;
  }

  .go-up {
    top: calc(50% - 32px) !important;
    bottom: auto !important;
    transform: none !important;
  }

  .go-down {
    top: calc(50% + 4px) !important;
    bottom: auto !important;
    transform: none !important;
  }
}