@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&display=swap&subset=cyrillic,cyrillic-ext,latin-ext");

:root {
  color-scheme: dark;
  font-family: "Open Sans", Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --page: #30303a;
  --content: #2d2d3e;
  --blue: #005bbb;
  --blue-deep: #004791;
  --blue-bright: #027eff;
  --card: #474747;
  --card-hover: #676767;
  --muted: #aaa;
}

* { box-sizing: border-box; }

html { min-width: 320px; min-height: 100%; scroll-behavior: smooth; }

body {
  background: var(--page);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", Tahoma, sans-serif;
  font-size: 16px;
  font-weight: 300;
  margin: 0;
  min-height: 100vh;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }

.container {
  align-items: center;
  display: flex;
  flex-flow: row wrap;
  height: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 30px;
  width: 100%;
}

header { background: linear-gradient(#005bbb, #004791); color: #fefefe; }
.brandbar { height: 100px; }
.brandbar__inner { align-items: center; }
.logo { align-items: center; display: flex; flex: 0 0 auto; height: 100%; max-height: 100%; }
.logo img { display: block; height: 100px; object-fit: contain; width: 100px; }
.title { display: inline-block; font-size: 32px; font-weight: 300; margin-left: 20px; }
.loginbox {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 2px;
  color: inherit;
  cursor: default;
  font-family: inherit;
  font-size: 16px;
  font-weight: inherit;
  margin-left: auto;
  opacity: 1;
  padding: 8px;
}

.menu { background: var(--blue-deep); color: #fff; }
.menu__inner { justify-content: space-between; min-height: 30px; }
.menu__links { align-items: stretch; display: flex; flex-wrap: nowrap; min-height: 30px; }
.menu__links a { align-items: center; color: #fff; display: flex; font-weight: 400; padding: 4px 16px; text-decoration: none; white-space: nowrap; }
.menu__links a:hover { background: #0067b1; }
.menu__links a.active { background: #027eff; }
.menu__language { align-items: center; display: flex; gap: 8px; font-weight: 400; white-space: nowrap; }
.menu__language-flag { border: 1px solid #fff; display: inline-block; line-height: 22px; margin: -1px; min-width: 28px; text-align: center; }

.content { background: var(--content); color: #fff; flex: 1 0 auto; }
.content__inner { align-items: stretch; display: block; padding: 30px; }
.loading-state, .error-state { color: #ddd; padding: 24px 0; }
.error-state { color: #ffc5c5; }

h1, h2, h3, h4, h5, h6 { font-weight: 200; margin: 0; }
h1 { font-size: 32px; line-height: 1.25; margin: 0 0 30px; overflow-wrap: anywhere; }
h2 { font-size: 24px; }
h3 { font-size: 20px; font-weight: 400; }
p { line-height: 1.5; }
.page-heading { align-items: center; display: flex; gap: 24px; justify-content: space-between; margin-bottom: 28px; min-height: 42px; }
.page-heading--category { margin-bottom: 0; }
.page-heading h1 { margin: 0; }
.page-heading .forum-search { flex: 0 1 400px; }
.page-heading + p { margin-top: 0; }
.category-description { margin-top: 0; }
.breadcrumb { color: #aaa; font-size: 14px; margin: 12px 0 24px; }
.breadcrumb a { color: #aaa; text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb span { padding: 0 5px; }

.forum-search { align-items: stretch; display: flex; min-width: 250px; }
.forum-search input {
  background: #474747;
  border: 1px solid #666;
  border-radius: 4px 0 0 4px;
  color: #fff;
  flex: 1 1 auto;
  font-size: 18px;
  min-width: 0;
  outline: 0;
  padding: 9px 12px;
}
.forum-search input::placeholder { color: #bbb; opacity: 1; }
.forum-search input:focus { border-color: #529cde; box-shadow: 0 0 0 2px rgb(2 126 255 / 28%); }
.forum-search button {
  background: #474747;
  border: 1px solid #666;
  border-left: 0;
  border-radius: 0 4px 4px 0;
  color: #fff;
  cursor: pointer;
  min-width: 48px;
  padding: 0 13px;
}
.forum-search button:hover { background: #676767; }
.search-glyph { font-size: 23px; line-height: 1; }
.archive-note { color: #aaa; font-size: 13px; margin: -14px 0 22px; }

.catlist-el {
  align-items: center;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 50%);
  color: #fff;
  display: flex;
  padding: 30px 20px;
  text-decoration: none;
  transition: background-color .15s;
}
.catlist-el:hover { background: var(--card-hover); }
.catlist-el + .catlist-el { margin-top: 6px; }
.catlist-el-icon { display: flex; flex: 0 0 auto; font-size: 2em; margin-right: 20px; }
.catlist-el-icon img { height: 40px; object-fit: contain; width: 40px; }
.catlist-el-text { flex: 1 1 auto; min-width: 0; }
.catlist-el-text-title { font-size: 1.5em; font-weight: 500; line-height: 1.25; }
.catlist-el-info { align-items: center; display: flex; flex-direction: column; margin-left: 16px; min-width: 76px; }
.catlist-el-info-number { font-size: 1.5em; line-height: 1.2; }
.catlist-el-info-label { color: #ddd; }
.catlist-smol { display: flex; flex-direction: row; margin-top: 18px; }
.catlist-smol .catlist-el { flex: 1 1 0%; }
.catlist-smol .catlist-el + .catlist-el { margin-left: 6px; margin-top: 0; }

.language-filter { align-items: center; display: flex; gap: 9px; margin: 30px 0 21px; }
.language-option { align-items: center; color: #ddd; display: inline-flex; gap: 8px; }
.language-option input { appearance: none; background: transparent; border: 1px solid #ddd; border-radius: 2px; height: 22px; margin: 0; position: relative; width: 22px; }
.language-option input:checked { background: #027eff; border-color: #027eff; }
.language-option input:checked::after { border: solid white; border-width: 0 2px 2px 0; content: ""; height: 11px; left: 7px; position: absolute; top: 2px; transform: rotate(45deg); width: 6px; }
.language-option input:disabled { opacity: .45; }
.language-option label { cursor: default; }

.forum-thread { display: flex; gap: 2px; }
.forum-thread + .forum-thread { margin-top: 6px; }
.forum-thread-body {
  align-items: center;
  background: var(--card);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 50%);
  color: inherit;
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
  padding: 5px;
  text-decoration: none;
  transition: background-color .15s;
}
.forum-thread-body:hover { background: var(--card-hover); }
.forum-thread-body:active { background: #272727; }
.forum-thread-body-left { border-radius: 8px 0 0 8px; }
.forum-thread-body-right { border-radius: 0 8px 8px 0; justify-content: flex-end; max-width: 210px; }
.forum-thread-pinned + .forum-thread:not(.forum-thread-pinned) { margin-top: 48px; }
.forum-thread-locked > .forum-thread-body-left {
  background: repeating-linear-gradient(-45deg, transparent, transparent 4px, #27313d 0, #27313d 8px) #1c2632;
}
.forum-thread-avatar { border-radius: 50%; flex: 0 0 auto; height: 40px; margin-right: 8px; object-fit: cover; width: 40px; }
.forum-thread-inner { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.forum-thread-title { font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.thread-language-flag { display: inline-block; height: 12px; margin-right: 5px; object-fit: cover; vertical-align: -1px; width: 18px; }
.forum-thread-meta { color: #ddd; font-size: 13px; line-height: 1.4; }
.forum-thread-inner-unread { font-weight: 600; }
.forum-thread-body-right .forum-thread-avatar { height: 38px; margin-left: 8px; margin-right: 0; width: 38px; }
.forum-thread-last { color: #ddd; font-size: 12px; line-height: 1.35; text-align: right; }
.thread-pinned-label { color: #e5c66b; font-size: 12px; margin-right: 6px; }
.thread-locked-label { color: #a5c3e4; font-size: 12px; margin-right: 6px; }

.pagination { align-items: center; display: flex; flex-wrap: wrap; gap: 3px; justify-content: center; margin: 26px 0 12px; }
.pagination a, .pagination span {
  background: #474747;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 45%);
  color: #fff;
  min-width: 38px;
  padding: 6px 10px;
  text-align: center;
  text-decoration: none;
}
.pagination a:hover { background: #676767; }
.pagination .current { background: #027eff; }
.pagination .disabled { opacity: .5; }

.thread-title-row { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 18px; }
.thread-title-row h1 { margin: 0; }
.button {
  appearance: none;
  background: #eee;
  border: 0;
  border-radius: 2px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 50%), 0 5px 8px rgb(128 128 128 / 40%) inset;
  color: #000;
  display: inline-block;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  padding: 5px 10px;
  text-decoration: none;
  white-space: nowrap;
}
.button:disabled, .loginbox:disabled { cursor: not-allowed; opacity: .58; }
.thread-status { color: #bbb; margin: 0 0 20px; }
.forum-post { border-radius: 8px; box-shadow: 0 2px 4px rgb(0 0 0 / 50%); display: flex; flex-direction: row; scroll-margin-top: 18px; }
.forum-post + .forum-post { margin-top: 10px; }
.forum-post-target { box-shadow: 0 0 4px #027eff; }
.poster-area { align-items: center; background: #373737; display: flex; flex-direction: column; padding: 10px; }
.poster-area-info { align-items: center; display: flex; flex-direction: column; text-align: center; }
.poster-area-name { color: #fff; font-weight: 600; overflow-wrap: anywhere; text-decoration: none; }
.poster-area-name:hover { text-decoration: underline; }
.poster-area-role { color: #bbb; font-size: 13px; margin-top: 2px; }
.poster-area-avatar { border-radius: 50%; height: 90px; margin: 20px 0 10px; object-fit: cover; width: 90px; }
.poster-area-avatar-admin { box-shadow: 0 0 20px 5px #005bbb; }
.poster-text-area { background: var(--card); border-radius: 0 8px 8px 0; display: flex; flex: 1 1 0%; flex-direction: column; min-width: 0; overflow-x: auto; padding: 10px; }
.poster-text { line-height: 1.5; margin-bottom: 10px; overflow-wrap: anywhere; white-space: pre-line; word-break: break-word; }
.poster-text h1, .poster-text h2 { border-bottom: 1px dotted #666; color: #529cde; font-size: 1.2em; font-weight: 400; margin: 0 0 4px; }
.poster-text h3 { color: #529cde; font-size: 1.1em; }
.poster-text blockquote { background: rgb(0 0 0 / 25%); border-left: 5px solid rgb(0 0 0 / 25%); font-size: .9em; margin: 8px 0; padding: 12px; }
.poster-text blockquote small { display: block; font-weight: 600; margin-bottom: 8px; }
.poster-text a { color: #aaa; text-decoration: underline; text-underline-offset: 2px; }
.poster-text a:hover { color: #fff; }
.poster-text .bb-spoiler { background: #000; border-radius: 2px; color: #fff; padding: 0 3px; }
.poster-text .bb-code { background: #292929; border: 1px solid #555; border-radius: 4px; display: block; font-family: Consolas, monospace; margin: 8px 0; overflow-x: auto; padding: 10px; white-space: pre-wrap; }
.poster-text .bb-list { margin: 6px 0; padding-left: 24px; }
.role-tag { background: #373737; border: 1px solid #666; border-radius: 3px; color: #ddd; display: inline-block; font-size: 13px; margin: 2px 4px 2px 0; padding: 2px 6px; }
.forum-post-footer { align-items: center; border-top: 1px solid rgb(255 255 255 / 12%); color: #bbb; display: flex; font-size: 13px; gap: 10px; justify-content: flex-end; margin-top: auto; padding-top: 7px; }
.forum-post-footer a { color: #bbb; text-decoration: underline; }
.embed-frame { aspect-ratio: 16 / 9; background: #1d1d1d; border: 0; display: block; margin: 10px 0; max-width: min(100%, 760px); width: 100%; }
.embed-image { border-radius: 3px; display: block; height: auto; margin: 9px 0; max-height: 720px; max-width: 100%; object-fit: contain; }
.embed-video { display: block; margin: 10px 0; max-height: 720px; max-width: 100%; width: min(760px, 100%); }
.embed-link { border: 1px solid rgb(255 255 255 / 16%); border-radius: 4px; display: inline-flex; margin: 4px 0; max-width: 100%; overflow-wrap: anywhere; padding: 4px 8px; }

.profile-head { align-items: center; display: flex; margin-bottom: 30px; }
.profile-avatar { flex: 0 0 auto; }
.profile-avatar img { border-radius: 50%; display: block; height: 184px; object-fit: cover; width: 184px; }
.profile-info { display: flex; flex-flow: column; justify-content: center; margin-left: 30px; }
.profile-info h2 { font-weight: 300; overflow-wrap: anywhere; }
.profile-rank { margin-top: 2px; }
.profile-presence { color: #bbb; font-style: italic; }
.profile-links { display: flex; flex-direction: column; gap: 2px; margin: 0 0 26px; }
.profile-links a { color: #aaa; font-size: 24px; font-weight: 200; text-decoration: underline; text-underline-offset: 2px; }
.profile-links a:hover { color: #fff; }
.profile-stats { color: #bbb; display: flex; flex-wrap: wrap; gap: 18px; margin: 7px 0 0; }
.profile-tabs { border-bottom: 1px solid rgb(255 255 255 / 20%); display: flex; gap: 8px; margin: 20px 0 16px; }
.profile-tabs a { border-radius: 4px 4px 0 0; color: #ddd; padding: 9px 14px; text-decoration: none; }
.profile-tabs a:hover { background: rgb(255 255 255 / 8%); }
.profile-tabs a.active { background: #474747; color: #fff; }
.activity-row { background: var(--card); border-radius: 8px; box-shadow: 0 2px 4px rgb(0 0 0 / 45%); color: #fff; display: block; margin-top: 7px; padding: 12px 14px; text-decoration: none; }
.activity-row:hover { background: var(--card-hover); }
.activity-title { font-size: 18px; font-weight: 400; line-height: 1.4; }
.activity-meta { color: #ccc; font-size: 13px; margin-top: 4px; }
.activity-preview { color: #ddd; line-height: 1.45; margin-top: 8px; max-height: 72px; overflow: hidden; }

.search-controls { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.search-controls label { color: #ddd; font-size: 14px; }
.search-controls select { background: #474747; border: 1px solid #666; border-radius: 4px; color: #fff; padding: 8px 10px; }
.search-count { color: #bbb; margin: 0 0 12px; }
.search-result { background: var(--card); border-radius: 8px; box-shadow: 0 2px 4px rgb(0 0 0 / 45%); margin-top: 8px; padding: 14px 16px; }
.search-result__top { align-items: center; display: flex; gap: 8px; margin-bottom: 4px; }
.search-kind { background: #373737; border-radius: 3px; color: #ddd; font-size: 12px; padding: 3px 7px; }
.search-result h2 { font-size: 18px; font-weight: 600; line-height: 1.4; }
.search-result h2 a { color: #fff; text-decoration: none; }
.search-result h2 a:hover { text-decoration: underline; }
.search-result__meta { color: #bbb; font-size: 13px; margin-top: 5px; }
.search-result__excerpt { color: #e0e0e0; line-height: 1.45; margin: 9px 0 0; overflow-wrap: anywhere; }
.search-result mark { background: #ffe078; border-radius: 2px; color: #282828; padding: 0 1px; }
.empty-state { background: rgb(255 255 255 / 4%); border-radius: 6px; color: #ccc; margin: 18px 0; padding: 22px; }

footer { align-items: center; background: linear-gradient(#222229, #17171e); color: #fff; display: flex; margin-top: auto; min-height: 100px; }
.footer__inner { align-items: center; gap: 0; }
.footer__inner small { color: #aaa; font-size: 13px; white-space: nowrap; }
.footer__social { align-items: center; display: flex; gap: 15px; margin-left: 30px; }
.footer__social img { background: rgb(255 255 255 / 25%); border-radius: 50%; display: block; height: 44px; transition: background-color .2s; width: 44px; }
.footer__social a:hover img { background: rgb(255 255 255 / 50%); }
.footer__links { display: flex; flex-wrap: wrap; gap: 28px; margin-left: 30px; }
.footer__links a { color: #aaa; font-size: 14px; text-underline-offset: 2px; }
.age-mark { border: 2px solid #777; border-radius: 12px; color: #aaa; font-size: 15px; font-weight: 600; margin-left: auto; padding: 8px; }

@media (max-width: 869px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .brandbar { height: 76px; }
  .logo img { height: 76px; width: 76px; }
  .title { font-size: 22px; margin-left: 12px; }
  .loginbox { font-size: 13px; padding: 6px; }
  .menu__inner { align-items: stretch; flex-wrap: nowrap; overflow-x: auto; padding: 0 10px; }
  .menu__links a { font-size: 14px; padding: 4px 12px; }
  .menu__language { display: none; }
  .content__inner { padding: 24px 20px; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .page-heading .forum-search { flex: auto; }
  h1 { font-size: 28px; margin-bottom: 22px; }
  .catlist-el { padding: 20px 14px; }
  .catlist-el-icon { margin-right: 14px; }
  .catlist-el-icon img { height: 34px; width: 34px; }
  .catlist-el-text-title { font-size: 1.2em; }
  .catlist-el-info { min-width: 55px; }
  .catlist-el-info-number { font-size: 1.2em; }
  .catlist-smol { flex-direction: column; }
  .catlist-smol .catlist-el + .catlist-el { margin-left: 0; margin-top: 6px; }
  .forum-thread-body-right { max-width: 150px; }
  .forum-thread-avatar { height: 36px; width: 36px; }
  .forum-thread-last { font-size: 12px; }
  .forum-post { flex-direction: column; }
  .poster-area { align-items: center; border-radius: 8px 8px 0 0; flex-direction: row; justify-content: flex-end; }
  .poster-area-info { align-items: flex-start; flex: 1 1 auto; text-align: left; }
  .poster-area-avatar { height: 45px; margin: 0 10px 0 0; order: -1; width: 45px; }
  .poster-text-area { border-radius: 0 0 8px 8px; }
  .profile-head { align-items: flex-start; flex-direction: column; }
  .profile-avatar { text-align: center; }
  .profile-avatar img { height: 100px; width: 100px; }
  .profile-info { margin: 16px 0 0; }
  .profile-info > span { margin-top: 12px; }
  .profile-links a { font-size: 20px; }
  footer .container { align-items: center; flex-direction: column; padding: 25px 20px; }
  .footer__social { margin: 18px 0 0; }
  .footer__links { align-items: center; flex-direction: column; gap: 10px; margin: 20px 0; text-align: center; }
  .age-mark { margin: 0; }
}

@media (max-width: 520px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .brandbar { height: 68px; }
  .logo img { height: 68px; width: 68px; }
  .title { font-size: 16px; line-height: 1.2; margin-left: 8px; max-width: calc(100vw - 110px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .loginbox { display: none; }
  .menu__inner { padding: 0 4px; scrollbar-width: none; }
  .menu__inner::-webkit-scrollbar { display: none; }
  .menu__links a { font-size: 13px; padding: 4px 10px; }
  .content__inner { padding: 20px 14px; }
  h1 { font-size: 25px; }
  .forum-search input { font-size: 16px; }
  .catlist-el { padding: 17px 10px; }
  .catlist-el-icon { margin-right: 10px; }
  .catlist-el-icon img { height: 30px; width: 30px; }
  .catlist-el-text-title { font-size: 1.08em; }
  .catlist-el-text { font-size: 14px; }
  .catlist-el-info { min-width: 48px; }
  .catlist-el-info-number { font-size: 1.05em; }
  .forum-thread-body-right { max-width: 104px; }
  .forum-thread-body-right .forum-thread-avatar { height: 32px; width: 32px; }
  .forum-thread-avatar { height: 32px; margin-right: 6px; width: 32px; }
  .forum-thread-title { font-size: 14px; }
  .forum-thread-meta { font-size: 12px; }
  .thread-title-row { align-items: flex-start; flex-direction: column; }
  .thread-title-row h1 { font-size: 24px; }
  .forum-post-footer { font-size: 12px; }
  .search-controls { align-items: stretch; flex-direction: column; }
  .search-controls select { width: 100%; }
}
