/*  ===================== СОДЕРЖАНИЕ ===================== 

I. РАЗНЫЕ ВАЖНЫЕ ИМПОРТЫ
II. ПЕРЕМЕННЫЕ
    II.a ОБЩЕЕ НА ДЕНЬ И НОЧЬ
    II.b СВЕТЛАЯ ТЕМА (ДЕНЬ)
    II.c ТЕМНАЯ ТЕМА (НОЧЬ)
III. МОБИЛЬНАЯ ВЕРСИЯ
*/

/* I. РАЗНЫЕ ВАЖНЫЕ ИМПОРТЫ
-----------------------------------------*/

/* шрифты */
@import url(/files/001b/ef/4a/80337.css?v=8);

/* style_cs.1768748934.css - здесь у нас десктопный стиль*/
@import url(style_cs.1768748934.css);

/* II. ПЕРЕМЕННЫЕ
-----------------------------------------*/

/* II.a ОБЩЕЕ НА ДЕНЬ И НОЧЬ */

:root {
  /* отступ от контента */
  --general-padding: 35px;
  --hover-transition: all 200ms cubic-bezier(0.2, 0.2, 0.2, 1);

  /* шрифты  */
  --mem-font-v1: "Alegreya Sans SC";
  --mem-font-v2: "arial";
  --mem-font-v3: "DINCondensed-Regular";
  --icon-font: "bootstrap-icons";
  --mem-font-v5: "Montserrat";
  --mem-font-v6: "Roboto Condensed";
  --mem-font-v7: "Raleway";
  --dis-font: "Playfair Display";

  /* картиночки */
  --foot: url(//forumstatic.ru/files/001b/ef/4a/45949.png);
  --header: url(https://forumstatic.ru/files/001b/ef/4a/96262.png);
  /*--header: url(//forumstatic.ru/files/001b/ef/4a/75831.png);*/
  --av_gost: url(//forumstatic.ru/files/001b/ef/4a/28338.png);
}

/* II.b СВЕТЛАЯ ТЕМА (ДЕНЬ) */

:root {
  /* ФОН И ТЕЛО ФОРУМА */

  --body: #d7d5e6 url(//forumstatic.ru/files/001b/ef/4a/65846.png);
  --body-mobile: #d7d5e6;
  --nav: url(//forumstatic.ru/files/001b/ef/4a/65846.png) no-repeat center
    bottom;
  --guest: url(//forumstatic.ru/files/001b/ef/4a/65846.png) no-repeat center
    bottom/cover;

  --pun-bg: #b9b7d6b3;
  --pun-border: 10px solid #00000010;
  --pun-outline: #ffffff30 1px solid;
  --pun-box-shadow: 0 0 0 1px inset #c0bdd3;

  --punbb-bg: #efedf5;
  --punbb-index-bg: transparent;
  --punbb-border: 1px solid #b7b3d2;
  --punbb-outline: 1px solid #efedf5;

  /* ТЕКСТ */

  /* основной */
  --text-color: #202031;
  /*  */
  --colored-text: #928bb0;
  --light-text: #f3f2fa;
  --contrast-text: #8786b2;

  /* ссылки */
  --links-color: #5d9d90;
  --links-hover: #8884a6;
  --index-links-color: #5d9d90;
  --index-links-hover: #8884a6;
  --ulinks-color: #ece9ff;
  --ulinks-hover: #8884a6;

  /* надписи с фоном: ссылки в подфоре, стата, тайтлы */
  --text-badge-bg: #b7b3d2;
  --text-badge-color: #f9f9f9;
  /* фон ссылок при наведении */
  --text-badge-hover-bg: #91c2b8;

  /* КАТЕГОРИИ И ПОДФОРУМЫ */
  --category-title: #f4f2fb;
  --category-title-shadow: #dfdbff;
  --topic-title: #8786b2;

  --forum-bg: #d8d5ebd9;
  --forum-box-shadow: #dddaef;
  --forum-text: #807eb4;

  /* иконочное */
  --icon-bg: #b1aecd;
  --icon-new-bg: #91c2b8;
  --icon-box-shadow: #67658945;

  /* ПРОФИЛЬ */
  --profile-bg: #efedf5;
  --profile-color: #868396;
  --profile-login: #fff;
  --profile-box-shadow: none;
  --profile-av-border: #fff;
  --profile-av-shadow: 0 0 8px 0 #a8a4c1;
  --profile-after-box-shadow:
    0 0 5px 1px #c9c7db, 0 0 0 6px #efedf5, 0 0 0 7px #e1deeb;

  /* иконка и анкета */
  --profile-anketa-bg: #cdcad8;
  --profile-anketa: #fff;
  --profile-icon-bg: #efedf5;
  --profile-links: #a8a4bf;

  /* ТЕМЫ, ШАБЛОНЫ, ЦИТАТЫ И ДР. КОНТЕЙНЕРЫ */

  /* всякие большие контейнеры текста, например цитаты, код, всякие модалки и тд */
  --container-bg: #dad8e7;
  --container-border: 1px solid #cfcce1;
  /* тут окантовка, сделанная на box-shadow - для тем */
  --container-stroke: 0 0 0 1px #c9c7db, 0 0 2px #f1f1fd inset;
  /* а здесь просто тень для модальных окошек */
  --container-shadow: 0 0 8px 0px #b7b3d2;
  --container-text: #6a6a81;
  --container-headline: #675a97;

  /* какие-нибудь мини-элементы внутри контейнера */
  --container-element-bg: #d7d6e5;
  --container-element-color: #928bb0;
  --container-element-box-shadow: 0 0 0px 1px #e3e1eb, inset 0 0 7px #cbc9db;

  /* полупрозрачные */
  --container-transparent: #0231363d;
  --container-transparent-text: #f3f2fa;
  --container-transparent-box-shadow: #fff;

  /* ЭЛЕМЕНТЫ УПРАВЛЕНИЯ */

  /* поля ввода, форма ответа */
  --input-bg: #f2f0f7;
  --input-border: 1px solid #d4d1df;
  --input-text: #928bb0;

  /* кнопки, стрелки и т.п. */
  --controls-1: #e4e5e55c;
  --controls-2: #83bbbc8c;
  --controls-3: rgb(155, 152, 192);
  --controls-4: white;

  /* прокрутка */
  --scrollbar-bg: #d7d5e6;
  --scrollbar-color: #aac2cd;
  --scrollbar-border: 0.5px solid #dbdbf1;

  /* ОСОБОЕ */

  /* большая обводка для гостевой и принятия и т.п. */
  --big-box-shadow:
    inset 0 0 12px 2px #b7b3d2, 0 0 0px 2px #e2e0ea, 0 0 9px 3px #b7b3d2,
    0 0 0px 12px #c9c7db;

  /* табличное */
  --table-container: #82b0b190;
  --table-container-text: #faf6f2;
  --table-links-bg: #5c538edb;
  --table-links-hover: #91c2b8;
  --table-links-color: #ffffff;
  --table-links-border: #dbdbf1d9;
}

/* II.c ТЕМНАЯ ТЕМА (НОЧЬ) */

:root .night {
  /* ФОН И ТЕЛО ФОРУМА */

  --body: #47436a url(//forumstatic.ru/files/001b/ef/4a/88981.png);
  --body-mobile: #47436a;
  --nav: url(//forumstatic.ru/files/001b/ef/4a/88981.png) no-repeat center
    bottom;
  --guest: url(//forumstatic.ru/files/001b/ef/4a/88981.png) no-repeat center
    bottom/cover;

  --pun-bg: #504c74b3;
  --pun-border: 10px solid #ffffff10;
  --pun-outline: #00000020 1px solid;
  --pun-box-shadow: 0 0 0 1px inset #66608d;

  --punbb-bg: #696261;
  --punbb-index-bg: transparent;
  --punbb-border: 1px solid #686193;
  --punbb-outline: 1px solid #78748d;

  /* ТЕКСТ */

  /* основной */
  --text-color: #dcd6d5;

  /*  */
  --colored-text: #383457;
  --light-text: #f3f2fa;
  --contrast-text: #d7d4e9;

  /* ссылки */
  --links-color: #2d3634;
  --links-hover: #504c74;
  --index-links-color: #7ea79e;
  --index-links-hover: #9991da;
  --ulinks-color: #afa9d6;
  --ulinks-hover: #9991da;

  /* надписи с подложкой/фоном: ссылки в подфоре, стата, тайтлы, уведы */
  --text-badge-bg: #69638b;
  --text-badge-color: #d8d8d8;
  /* фон ссылок при наведении */
  --text-badge-hover-bg: #728c9c;

  /* КАТЕГОРИИ И ПОДФОРУМЫ */

  --category-title: #e2e0ea;
  --category-title-shadow: #a39adb;
  --topic-title: #e2e0ea;

  --forum-bg: #3c375f;
  --forum-box-shadow: #00000010;
  --forum-text: #d7d4e9;

  /* иконочное */
  --icon-bg: #48426b;
  --icon-new-bg: #9ab2c2;
  --icon-box-shadow: #24213980;

  /* ПРОФИЛЬ */

  --profile-bg: #6d615e;
  --profile-color: #d6cfce;
  --profile-box-shadow: none;
  --profile-av-border: #c2b0ab;
  --profile-av-shadow: 0 0 7px #867773;
  --profile-after-box-shadow:
    0 0 5px 1px #7570a8, 0 0 0 6px #9993b3, 0 0 0 7px #8a83b0;

  /* иконка и анкета */
  --profile-anketa-bg: #8984ac;
  --profile-anketa: #d7d5e6;
  --profile-icon-bg: #908aab;
  --profile-links: #b0a7d8;
  --profile-login: #ebebeb;
  --container-bg: #847da1;

  /* ТЕМЫ, ШАБЛОНЫ, ЦИТАТЫ И ДР. КОНТЕЙНЕРЫ */

  /* всякие большие контейнеры текста, например цитаты, код, всякие модалки и тд */
  --container-bg: #847da1;
  --container-border: 1px solid #7b779590;
  /* тут окантовка, сделанная на box-shadow - для тем */
  --container-stroke: 0 0 0 1px #817b9d, 0 0 2px #d2cee5 inset;
  /* а здесь просто тень для модальных окошек */
  --container-shadow: 0 0 8px 0px #686193;
  --container-text: #3a354f;
  --container-headline: #37304f;

  /* какие-нибудь мини-элементы внутри контейнера */
  --container-element-bg: #908aab;
  --container-element-box-shadow: 0 0 0px 1px #8880af, inset 0 0 7px #87829b;
  --container-element-color: #c6c1de;

  /* полупрозрачные */
  --container-transparent: #0231363d;
  --container-transparent-text: #cdccd5;
  --container-transparent-box-shadow: #929dbf;

  /* ЭЛЕМЕНТЫ УПРАВЛЕНИЯ */

  /* поля ввода, форма ответа */
  --input-bg: #aea9c5;
  --input-border: 1px solid #bfbcd9;
  --input-text: #3f3d53;

  /* кнопки, стрелки и т.п. */
  --controls-1: #cacecb6b;
  --controls-2: #507a7b8c;
  --controls-3: rgb(84, 81, 117);
  --controls-4: #d8d8d8;

  /* прокрутка */
  --scrollbar-bg: #3c375f;
  --scrollbar-color: #819daf;
  --scrollbar-border: 1px solid #8985a9;

  /* ОСОБОЕ */

  /* большая обводка для гостевой и принятия и т.п. */
  --big-box-shadow:
    inset 0 0 12px 2px #686193, 0 0 0px 2px #7d7a8e, 0 0 9px 3px #686193,
    0 0 0px 12px #433c65;

  /* табличное */
  --table-container: #79aaab8c;
  --table-container-text: #faf6f2;
  --table-links-bg: #3c375f;
  --table-links-hover: #678192;
  --table-links-color: #fff;
  --table-links-border: #6b6b79d9;
}

/* III. МОБИЛЬНАЯ ВЕРСИЯ
-----------------------------------------*/

@media screen and (max-width: 540px) {
  body {
    background: var(--body-mobile);
  }

  #pun {
    margin-bottom: 134px;
    width: 100%;
  }

  #pun_wrap {
    padding: 0;
  }

  #pun-index #pun-main,
  #pun-stats {
    padding: 0 5px;
  }

  #pun-main {
    padding: 0 15px;
  }

  #pun .punbb {
    position: relative;
    margin-top: 52px;
  }

  #pun-ulinks {
    top: -60px;
    position: absolute;
  }

  /* шапка */

  #pun-title table {
    width: 100%;
    margin: 0;
    border-radius: 0;
    background-size: cover;
    z-index: -1;
    background: var(--header) no-repeat top center;
    top: -355px;
  }

  #pun-title table::before {
    display: none;
  }

  #pun-title table::after {
    right: -75px;
    top: -16px;
    transform: scale(0.5);
  }

  .mem-title {
    display: none;
  }

  /* подфорумы на главной */

  #pun-index .category h2 span,
  #pun-stats h2::after {
    font-size: 30px;
  }

  #pun-index .hasicon tr {
    margin: 20px 0;
    display: grid;
    grid-template-areas:
      "tcl tcl tcl tcl"
      "tc2 tc3 tcr tcr";
    grid-template-columns: 10% 10% 40% 40%;
    align-items: start;
    padding: 10px 10px 10px 20px;
    justify-content: space-between;
  }

  #pun-index .tcl {
    width: unset;
    grid-area: tcl;
  }

  .podf3 {
    text-align: right;
    max-height: 53px;
    overflow: auto;
  }

  .podf3::-webkit-scrollbar {
    width: 1px;
  }

  #pun-index .main .tcr {
    width: unset;
    grid-area: tcr;
    grid-template-areas:
      "topic icon"
      "author icon";
    grid-template-columns: 85% 15%;
    justify-items: end;
  }

  #pun-index .tcr a.lastpost-link {
    width: calc(100% - 25px);
    font-size: 7px;
    margin: 0;
    text-align: right;
  }

  #pun-index .tcr .user-avatar .avatar-image,
  #pun-index .user-avatar {
    height: 25px;
    width: 25px;
  }

  #pun-index .main .tc2 {
    grid-area: tc2;
    width: unset;
    justify-self: start;
    transform: scale(0.8);
  }

  #pun-index .main .tc3 {
    grid-area: tc3;
    width: unset;
    justify-self: start;
    transform: scale(0.8);
  }

  #pun-index table Div.icon {
    order: 0;
    margin-left: 0;
  }

  #pun-index table Div.icon::before,
  #pun-index TR.inew Div.icon::before {
    margin: -7px 0 0;
  }

  #pun-index .tcr .lastpost {
    font-size: 0.8cqh;
    margin: 0;
  }

  #pun-index .hasicon tr#forum_f19 {
    margin-bottom: unset;
  }

  #pun-index .hasicon tr#forum_f19 .tcl {
    height: 105px;
  }

  .banermem {
    width: 100%;
    right: initial;
    bottom: -64px;
  }

  #pun-about {
    width: 100%;
    left: 0;
    bottom: -151px;
    background-size: contain;
    background-repeat: no-repeat;
  }

  /* таблично-футеровое */

  #memors {
    display: none;
  }

  /* .js-random-block, */
  #randPost {
    left: 15%;
    right: 15%;
    bottom: -125px;
  }

  .texpostm {
    width: auto;
  }

  .tams {
    font-size: 0.35cqh;
    top: -259px;
    left: unset;
    right: -6px;
    color: transparent;
    background: 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 {
    white-space: break-spaces;
    font-size: 6px;
  }

  .table-news_wrapper {
    top: -261px;
    left: 0;
    width: 100px;
  }

  .table-news {
    height: 106px;
  }

  /* приветствие */

  #pun-status {
    top: -316px;
    left: 50%;
    box-shadow: none;
    background: none;
    width: max-content;
    text-align: right;
  }

  #pun-status .status_userava {
    display: none;
  }

  #pun-status span.item1 {
    padding: 1px 6px;
    background: #00000010;
    border-radius: 10px;
    background-blend-mode: soft-light;
    font-size: 0.8em;
  }

  #pun-status span.item2 {
    display: none;
  }

  /* навигация */

  #pun-navlinks .container {
    width: 100%;
    right: 0;
    top: -345px;
    justify-content: center;
  }

  #pun-ulinks .container {
    border-radius: 0 0 8px 8px;
    width: 90%;
    margin: 0 auto 0;
    top: 0px;
  }

  #pun-ulinks li {
    white-space: nowrap;
    line-height: 2em;
    display: inline-flex;
    align-items: center;
  }

  #pun-navlinks li {
    margin: 0;
  }

  #pun-navlinks li a {
    font-size: 0;
    padding: 0;
  }

  #pun-navlinks li a:before {
    font-family: var(--icon-font);
    font-size: 19px;
    width: 39px;
    padding-left: 0px;
    text-align: center;
  }

  #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;
  }

  #pun-stats .statscon {
    margin-top: 30px;
  }

  #loginPopup {
    top: -315px;
  }

  .tblnav1 {
    top: -315px;
    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;
  }

  .tblnav1 a:after {
    display: none;
  }

  .tblnav1:hover a {
    display: block;
  }

  #pun-navlinks li.nav-mobile-menu {
    margin-top: -7px;
    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;
  }

  /* подфорум внутри */

  #pun-main .forum thead {
    display: none;
  }

  #pun-main .forum .container tr {
    display: grid;
    grid-template-areas:
      "tcl tcl"
      "tcr tcr"
      "tc2 tc3";
  }

  #pun-main .forum td.tcl {
    grid-area: tcl;
    width: 100%;
  }

  #pun-main .forum td.tcr {
    grid-area: tcr;
    width: 100%;
    display: flex;
    gap: 0.5em;
    align-items: center;
  }

  #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: 10px auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "icon topic topic"
      "first  first second ";
  }

  #pun-main .forum .tclcon strong {
    display: unset;
  }

  #pun-main .forum .tclcon::before {
    width: 10px;
    height: 10px;
    margin-top: 3px;
  }

  #pun-main .forum .tclcon .byuser {
    left: 0;
  }

  #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;
    border-radius: 7px;
  }

  #pun-userlist .usertable .isonline {
    margin: 0 0 0 30px;
  }

  #pun-messages .user-avatar .isonline {
    margin: 3px 0 0 -4px;
  }

  #pun-main .forum .byuser {
    white-space: nowrap;
    width: unset;
    display: flex;
    align-items: center;
  }

  #pun-main .forum .tcr .user-avatar {
    order: 1;
    margin: 0;
  }

  #pun-main .forum td.tcr > a {
    order: 3;
  }

  #pun-main .forum .tcr .byuser {
    order: 2;
  }

  /*банк*/
  .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;
    width: 100%;
  }

  .post .container .post-links {
    grid-column: unset;
  }

  /*профиль*/
  .post .post-author {
    width: 100%;
    margin: 30px auto 20px;
  }

  .post .post-author ul {
    display: grid;
    gap: 5px;
    padding: 15px 10px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    width: 100%;
    box-sizing: border-box;
  }

  .post .pa-author {
    grid-column: 1 / 7;
    grid-row: 1;
    padding-bottom: 0;
    margin-top: 0;
  }

  .post .pa-title {
    background: unset;
    border: none;
    width: 90%;
    padding: 0;
    grid-column: 1 / 7;
    grid-row: 2;
    margin: 5px auto;
  }

  .post .pa-avatar {
    width: 90px;
    height: 90px;
    padding: 3px;
    grid-row: 3 / 5;
    grid-column: 1 / 3;
  }

  .post .pa-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .post .pa-fld5 {
    margin-left: -17px;
    background-size: cover;
  }

  .post .pa-fld5 a {
    margin: -18px 0 0 -15px;
  }

  .post .pa-fld4,
  .post .pa-fld4 .plashka {
    width: 100%;
  }

  /* заполненный профиль */

  .post .pa-fld1 {
    grid-row: 3 / 5;
    grid-column: 3 / 7;
  }

  .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 li:nth-of-type(4).pa-posts {
    grid-column: 4;
    grid-row: 3 / 5;
  }

  .post .post-author li:nth-of-type(5).pa-respect {
    grid-column: 5;
    grid-row: 3 / 5;
  }

  /* .pa-fld5 {
    position: relative;
    z-index: 2;
    margin: -42px 0 12px 0;
    top: 0;
    width: 100%;
  }

  .pa-fld5 a {
    margin: 0 0 0 -15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  }

  .pa-author {
    text-align: center;
    margin: -13px 0 25px;
    z-index: 2;
    width: 100%;
    padding-top: 15px;
  }

  .pa-author #tuser {
    top: -62px !important;
    left: -37px;
    z-index: 100;
  }

  .pa-avatar.item2 {
    position: absolute;
    left: 15px;
    width: 80px;
    height: 80px;
    margin: 0 !important;
    z-index: 1;
  }

  #pun-messages .pa-avatar.item2 {
    top: 60px;
  }

  .pa-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
  }

  .pa-fld1 {
    margin-left: 95px !important;
    min-height: 80px;
    width: calc(100% - 95px);
    box-sizing: border-box;
    word-wrap: break-word;
    margin-top: -12px;
  }

  pa-fld1 > * {
    max-width: 100%;
    display: inline;
  }

  .pa-fld4 {
    width: 100%;
    z-index: 0;
  }

  .pa-fld4 .plashka {
    padding-top: 0px;
  }

  .plashka,
  .plashka plone,
  .plashka pltwo {
    width: 100%;
    text-align: center;
  }

  .fon_icon {
    height: 35px;
    overflow: hidden;
    top: 39px;
    height: 35px;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: unset;
  }

  .fon_icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
  }

  .pa-title {
    margin: -12% 0 25px !important;
    width: 100%;
  } */

  .pa-ip {
    bottom: -18px;
  }

  /* в поиске */

  #pun-searchposts .post .post-author ul {
    padding: 0;
  }

  #pun-searchposts #pun-main .topic .post .post-author ul .pa-author {
    margin: 0 !important;
    padding: 0 !important;
  }

  #pun-searchposts .post-body {
    margin: 40px auto 0;
  }

  .indOnline,
  .indOffline {
    left: auto !important;
    right: 10px !important;
  }

  .permalink {
    margin-left: 16px;
  }

  /*биржа*/
  .proff_tabs > label {
    width: 38%;
  }

  #proff1,
  #proff2,
  #proff3,
  #proff4,
  #proff5,
  #proff6,
  #proff7,
  #proff8 {
    margin: -394px 0 0 44%;
    width: 52%;
  }

  /*биржа*/

  /*гостевая*/
  .gost {
    max-height: none;
    aspect-ratio: auto;
    grid-template:
      "welcome" auto
      "title" auto
      "descr" auto
      "right" auto
      "prid" auto
      "face1" auto
      "cost" auto
      "face2" auto
      "gost_claim" auto
      "nav" auto;
    padding-bottom: 15px;
  }

  .gost_welcome {
    margin-top: -24px;
    white-space: nowrap;
    width: auto;
    overflow: hidden;
    font-size: 0.6em;
  }

  .gost_title {
    grid-area: title;
    margin: 0 auto;
    text-align: center;
  }

  .gost_type {
    margin: 5px auto;
    text-align: center;
  }

  .gost_descr {
    text-align: center;
    width: 100%;
  }

  .gost_prid,
  .gost_cost {
    margin: 0;
  }

  .gost face1,
  .gost face2 {
    margin: 0;
    width: 100%;
  }

  .gost_title #first {
    font-size: clamp(30px, 8vw, 50px);
  }

  .gost_title #second {
    font-size: clamp(25px, 7vw, 41px);
    margin-top: -20px;
  }

  .gost_claim {
    text-align: center;
  }

  #appearance-input {
    width: 100%;
    font-size: 16px;
    margin-top: 5px;
  }

  /*гостевая*/

  /*аллея звезд*/

  .stat {
    max-width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto repeat(5, auto) auto;
    gap: 3px;
    padding: 5px;
    margin-top: -10%;
  }

  .stat stat1 {
    grid-column: 1 / 3;
    font-size: 1.2rem;
    padding: 5px 0;
    margin: -5px 0 0 -5px;
  }

  .stat stat4,
  .stat stat5 {
    grid-column: 1 / 3;
    display: flex;
    justify-content: center;
    padding-top: 5%;
  }

  .stat stat4 {
    grid-row: 2;
  }

  .stat stat5 {
    grid-row: 3;
  }

  .stat stat7 {
    grid-column: 1;
    grid-row: 4;
    padding-top: 8%;
  }

  .stat stat6 {
    grid-column: 2;
    grid-row: 4;
    margin-top: 16%;
    padding: 3px 4px;
  }

  .stat stat8 {
    grid-column: 1;
    grid-row: 5;
    margin-top: 1%;
  }

  .stat stat10 {
    grid-column: 2;
    grid-row: 5;
    margin-top: 1%;
  }

  .stat stat9 {
    grid-column: 1;
    grid-row: 6;
    margin-top: 5%;
    height: 40px;
    min-height: 40px;
  }

  .stat stat11 {
    grid-column: 2;
    grid-row: 6;
    margin-top: 5%;
    height: auto;
    min-height: 40px;
  }

  .stat stat3 {
    grid-column: 1 / 3;
    grid-row: 7;
    padding: 0px;
    padding-bottom: 10px;
    margin-top: 5px;
    min-height: 100px;
  }

  .stat stat6:after {
    margin-top: -12%;
  }

  .stat stat7:before {
    margin-top: 3%;
  }

  .stat stat4 a,
  .stat stat5 a {
    width: 35px;
    height: 35px;
  }

  .stat stat3:before {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 0;
    line-height: 1;
  }

  .stat stat3:after {
    font-size: 32px;
    order: 1;
    line-height: 1;
    margin-top: 0px !important;
  }

  .stat stat4:before,
  .stat stat5:before,
  .stat stat7:before,
  .stat stat8:after,
  .stat stat10:before,
  .stat stat6:after {
    font-size: 8px;
    padding: 2px 4px;
  }

  .stat stat7 a:after,
  .stat stat8 a:before,
  .stat stat10 a:after {
    font-size: clamp(8px, 3vw, 9px);
    padding: 3px 4px;
  }

  .stat stat4::before {
    margin-left: 21%;
  }

  .stat stat5::before {
    margin: 0% 14% 0 0;
  }

  .stat stat7 a::after,
  .stat stat6 a::before {
    margin-top: 8%;
  }

  .stat stat8::after,
  .stat stat10:before {
    margin-top: 2%;
  }

  .stat stat10 a::after {
    top: 0;
  }

  .stat stat9,
  .stat stat11 {
    font-size: clamp(8px, 3vw, 9px);
    padding: 4px 5px;
  }

  /*аллея звезд*/

  #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;
  }

  #tags .container#video-area,
  #tags .container#image-area {
    left: 0;
    right: 0;
    width: unset;
  }

  #keyboard-span br {
    display: none;
  }

  .hvStickerPackModalContainer {
    right: 0 !important;
    margin: 170px 0 0 5% !important;
    left: 0 !important;
    width: 90% !important;
  }

  p.formsubmit {
    text-align: center;
  }

  .memneed {
    grid-template-columns: 1fr 1fr;
  }

  .memneed memnd2 {
    z-index: 1;
    width: 145%;
    font-size: 12px;
  }

  .memneed memnd1 {
    margin: -12px -10px 5px 0;
    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;
  }

  .block-wrap {
    width: 96%;
  }

  .prin prin3 a {
    text-transform: lowercase;
  }

  .prin::after {
    left: 5%;
    right: 5%;
  }

  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 plone,
  .shop_stock .plashka pltwo {
    font-size: 9px;
  }

  .graf_stores {
    grid-template-columns: 1fr;
  }

  #pun-index .tclcon {
    grid-template-columns: auto minmax(min-content, 110px);
    margin-bottom: 15px;
    justify-content: space-between;
  }

  /* внутри профиля */

  #viewprofile tr {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #viewprofile td#profile-left {
    margin: 0 auto;
  }

  #profile-right {
    width: 100% !important;
  }

  #viewprofile #profile-right li {
    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: 26px;
  }

  #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;
  }

  .gid1 #pun-profile input#fld4,
  .gid1 #pun-profile input#fld1,
  .gid2 #pun-profile input#fld4,
  .gid1 #pun-profile input#fld5,
  .gid2 #pun-profile input#fld1,
  .gid2 #pun-profile input#fld5 {
    max-width: 100%;
  }

  .punbb-admin #pun-adnav {
    float: none;
    width: 100%;
    margin-left: 0;
    display: block;
  }

  .punbb-admin .adminmain {
    padding: 0;
    margin: 0;
  }

  /*для челленджа*/
  .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 {
    content: "";
    font-family: var(--icon-font);
    font-size: 13px;
    padding-left: 0px;
    text-align: center;
    color: var(--controls-3);
  }

  #pun-viewtopic .post-links .pl-email.profile a::before {
    content: "\F4E1";
  }

  #pun-viewtopic .post-links .pl-email.pm a::before {
    content: "\F268";
  }

  #pun-viewtopic .post-links .pl-email a::before {
    content: "\F503";
  }

  #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";
  }

  /*кнопки внизу постов*/

  .linkst,
  .linksb,
  #pun-searchposts .post-links {
    font-size: 0.7em;
  }

  .linkst,
  .linksb {
    flex-wrap: wrap;
    justify-content: end;
  }

  .pagelink {
    width: 100%;
  }

  /*анкета*/

  .anketa anketa2 {
    width: 90%;
    font-size: 10px;
  }

  .anketa anketa4,
  .anketa anketa3,
  .anketa anketa5 {
    padding-top: 18%;
  }

  .anketa anketa3 {
    width: 31%;
    margin-left: 28%;
  }

  .anketa anketa3::before,
  .anketa anketa4::before,
  .anketa anketa5::before {
    font-size: 8px;
  }

  .anketa anketa5 {
    width: 42%;
    transform: translateX(20%);
  }

  .anketa anketa8 {
    height: 80%;
    margin-top: 23%;
  }

  /*анкета*/

  /*хронология и отношения*/
  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: 15px;
  }

  .toBlock {
    position: relative;
  }

  .blockButton {
    top: 19px !important;
  }

  .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 .tcl a {
    font-size: 15px;
    text-transform: uppercase;
  }

  #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,
  #wysi-reply {
    font-size: 16px;
    width: 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: 1;
    justify-self: start;
  }

  .subscribelink {
    grid-column: 2;
    grid-row: 2;
    justify-self: unset;
  }

  /* не уверена зачем это надо.... но это факпило  #isk */
  /* i[class^="icons-"]::before,
  i[class*=" icons-"]::before,
  .i[class*=" icons-"]::before,
  .i[class^="icons-"] {
    margin-left: 7px !important;
  } */

  #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,
  .go-down {
    transform: scale(0.8);
    right: -1px;
    top: unset;
    z-index: 100;
  }

  .go-up {
    top: 50%;
  }

  .go-down {
    top: calc(50% + 30px);
  }

  #pun-index .go-up,
  #pun-index .go-down {
    transform: scale(0.6);
    right: -8px;
  }

  #pun-index .hasicon tr .tclcon::before {
    width: 20px;
    height: 20px;
    left: -30px;
  }

  .menu,
  .memlane_shop,
  .tem,
  .epizod,
  .tembank,
  .guide,
  .vn,
  .proff,
  .stat,
  .memneed,
  #bank-app,
  .graf {
    width: 100%;
    box-sizing: border-box;
  }

  .vn-M-first,
  .vn-M-second,
  .vn-W-first,
  .vn-W-second {
    margin: 0;
  }

  .nickname-claim {
    grid-template-columns: unset;
  }

  /* шлем нахуй ебланов с фиксированной шириной чего-либо в постах */

  .punbb .post-content {
    overflow-x: hidden;
  }

  .punbb .post-content * {
    max-width: 100% !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);
  }

  .tblnav1 a {
    background: var(--text-badge-bg);
    color: var(--text-badge-color);
  }

  /* страница личных соо */

  #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;
  }

  #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 #messages td.tc2.pmtc22 > a {
    position: absolute;
    top: 7px;
    left: 47px;
    font-weight: 900;
  }

  #pun-messages #messages .inew td.tc2.pmtc22 > a {
    left: 60px;
  }

  #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;
  }

  #pun-messages #messages td.tcl.pmtcl1 .tclcon > a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #pun-messages #messages td.tcl.pmtcl1 .tclcon {
    grid-template-columns: unset;
    margin-top: -4px;
  }

  #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;
  }

  #pun-navlinks li#navpm span.num_msg {
    transform: scale(0.7);
    margin-top: -22px !important;
    margin-left: -17px !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;
  }
}
