/* Скрываем виджет/иконку отладчика Яндекс.Метрики */
[class*="__ymDebuggerOpener"],
.__ymDebuggerOpener {
    display: none !important;
}

.logo-wrp {
    margin-bottom: 5px;
    display: flex;
    justify-content: flex-start;
}

.main__container {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

.main__title-wrp,
.btn__add_server-wrp,
.btn__fav-wrp {
    display: inline-flex;
    flex-shrink: 0;
}

.main__title-wrp:before,
.btn__add_server-wrp:before,
.btn__fav-wrp:before {
    border-bottom: 49px solid rgba(255, 255, 255, .99);
    border-left: 20px solid transparent;
    display: inline-block;
    content: "";
    z-index: -1;
    position: relative;
    top: 1px;
}

.main__title-wrp:after,
.btn__add_server-wrp:after,
.btn__fav-wrp:after {
    border-bottom: 49px solid rgba(255, 255, 255, .99);
    border-right: 20px solid transparent;
    display: inline-block;
    content: "";
    z-index: -1;
    top: 1px;
}

.main__title {
    background-color: #fcfcfc;
    text-transform: uppercase;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 10px;
    font-size: 18px;
    color: #333;
    min-height: 50px;
    line-height: 50px;
    font-weight: 600;
    position: relative;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.btn__add_server,
.btn__fav {
    background-color: #E22713;
    text-transform: uppercase;
    display: inline-block;
    box-sizing: border-box;
    padding: 0 10px;
    font-size: 18px;
    color: #fff;
    min-height: 50px;
    line-height: 50px;
    font-weight: 700;
    z-index: 4;
    position: relative;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    font-size: 14px;
    transition: .2s all;
}

.btn__add_server-wrp {
    z-index: 5;
    margin-right: -25px;
}

.btn__add_server-wrp:hover {
    text-decoration: none;
    filter: brightness(120%);
}

.btn__add_server-wrp:before,
.btn__add_server-wrp:after {
    border-bottom: 49px solid #E22713;
}

.btn__fav {
    background-color: rgba(21, 20, 26, .8);
    font-size: 12px;
}

.btn__fav:hover {
    text-decoration: none;
    background-color: rgba(21, 20, 26, .8);
}

.btn__fav-wrp:before,
.btn__fav-wrp:after {
    border-bottom: 49px solid rgba(21, 20, 26, .8);
    transition: .2s all;
}

.btn__fav-wrp:hover .btn__fav {
    background-color: rgba(21, 20, 26, .99);
}

.btn__fav-wrp:hover:before,
.btn__fav-wrp:hover:after {
    border-bottom: 49px solid rgba(21, 20, 26, .99);
}

.btns-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
}

.footer__contacts {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.footer__contacts a {
    color: #fff;
    text-decoration: underline;
    transition: .1s all;
}

.footer__contacts a:hover {
    text-decoration: none;
    color: #2879c6;
}

.adv__link {
    display: inline-block;
}

.footer__contacts span {
    display: inline-block;
    margin-right: 20px;
}

.icq_wrp {
    background: url(../images/ico-icq.jpg) no-repeat left center;
    height: 28px;
    line-height: 28px;
    padding-left: 32px;
    font-size: 16px;
    font-family: 'Open Sans';
    font-weight: 400;
}

.skype_wrp {
    background: url(../images/ico-skype.jpg) no-repeat left center;
    height: 28px;
    line-height: 28px;
    padding-left: 32px;
    font-size: 16px;
    font-family: 'Open Sans';
    font-weight: 400;
}

.footer_copy {
    color: rgb(121, 114, 104);
    font-size: 14px;
}

.footer_copy a {
    color: #fff;
    transition: .1s all;
}

.footer_copy a:hover {
    text-decoration: none;
    color: #2879c6;
}

.d-ib {
    display: inline-block;
}

.static__contacts {
    padding: 0 40px;
}

.static__contacts .skype_wrp a {
    color: #000;
    text-decoration: none;
    transition: .1s all;
}

.static__contacts .skype_wrp a:hover {
    text-decoration: underline;
    color: #2879c6;
}

.berrors a {
    text-decoration: underline;
}

.berrors a:hover {
    text-decoration: none;
}

.serv-info__container {
    max-width: 100%;
    width: 100%;
    display: flex;
    padding-bottom: 10px;
    border-bottom: 1px dashed #b8b8b8;
    margin-bottom: 10px;
}

.serv-info__container input {
    height: 40px;
    line-height: 38px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: #eaf0ff;
    box-sizing: border-box;
    font-size: 14px;
    width: 260px;
    border-radius: 4px;
    padding-left: 19px;
}

.serv-info__container textarea,
.serv-info__container select {
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
    color: #eaf0ff;
    width: 260px;
    border-radius: 4px;
}

.input_wrapper_name {
    display: inline-block;
    width: 40%;
    top: auto;
    font-weight: bold;
}

.input_wrapper_name i {
    color: red;
}

.input_wrapper_select {
    width: 260px;
    margin: 0;
}

.serv-info__container .chosen-container-single .chosen-single {
    box-shadow: 0 2px 3px 0 rgba(0, 0, 0, 0.15);
    height: 40px;
    line-height: 38px;
    border: 1px solid #a59381;
    background: #fff;
    color: #555;
    border-radius: 4px;
}

.serv-info__desc {
    font-size: 12px;
}

.l2b__add-submit {
    font-size: 14px;
    padding: 8px 30px;
    border: 2px solid #333;
    color: #333;
    border-radius: 5px;
    background-color: #fff;
    transition: .2s all;
    cursor: pointer;
}

.l2b__add-submit:hover {
    color: #fff;
    background-color: #333;
}

#xf_date {
    display: block !important;
    margin-bottom: 10px;
}

.add_news_war {
    color: red;
    font-size: 16px;
}

.scroll__to {
    display: block;
    width: 40px;
    height: 40px;
    color: #fff;
    position: fixed;
    right: 40px;
    bottom: 40px;
    z-index: -1;
    font-size: 40px;
    text-align: center;
    cursor: pointer;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.52);
    transition: .6s all;
    opacity: 0;
}

.scroll__to:hover {
    color: #ccc;
}

.scroll__to-active {
    opacity: 1;
    z-index: 7;
}

.stream__link {
    background-position: center center;
    background-size: cover;
    display: block;
    width: calc(100% - 6px);
    margin: 0 auto;
    height: 150px;
    border-radius: 10px;
    margin: 10px 0;
    transition: .3s all;
}

.stream__link:hover {
    box-shadow: 0 0 40px 0 red;
}

.berrors {
    border: 1px solid #d55f5f;
    padding: 15px;
    margin: 20px;
    box-sizing: border-box;
    line-height: 18px;
    border-radius: 6px;
    color: #eaf0ff;
    background-color: rgba(213,95,95,0.12);
}





/* .padding-left: 10px ul.story_icons {
    list-style: none
} */

.text_style ul {
    list-style: square inside;
    text-align: left;
    padding-left: 15px
}

.text_style ol {
    list-style: decimal inside;
    text-align: left;
    padding-left: 15px
}

.text_style li {
    margin: 5px 0
}

#sendmail .text_style ul {
    list-style: none
}

#adding {
    width: 190px !important
}

/* profil */

.pm_num {
    min-width: 13px;
    height: 13px;
    line-height: 13px;
}

.login_pane__menu li a:hover {
    color: #db5c00;
}

/* block pro */

.bp-pager {
    text-align: center
}

.bp-pager [data-page-num],
.bp-pager a,
.bp-pager .current {
    padding: 3px 6px 1px !important
}

.bp-pager [data-page-num],
.bp-pager a,
.bp-pager .current {
    background: rgb(255, 172, 91);
    -webkit-box-shadow: 0 2px 0 rgb(206, 125, 57);
    -moz-box-shadow: 0 2px 0 rgb(206, 125, 57);
    box-shadow: 0 2px 0 rgb(206, 125, 57);
}

.bp-pager [data-page-num]:hover,
.bp-pager [data-page-num]:focus,
.bp-pager a:focus,
.bp-pager a:hover {
    background: rgb(255, 126, 45);
    -webkit-box-shadow: 0 2px 0 rgb(191, 112, 46);
    -moz-box-shadow: 0 2px 0 rgb(191, 112, 46);
    box-shadow: 0 2px 0 rgb(191, 112, 46);
}

.bp-pager .current {
    background: rgb(254, 73, 14);
    -webkit-box-shadow: 0 2px 0 rgb(170, 58, 6);
    -moz-box-shadow: 0 2px 0 rgb(170, 58, 6);
    box-shadow: 0 2px 0 rgb(170, 58, 6);
}

.bp-pager [data-page-num],
.bp-pager a,
.bp-pager .current {
    line-height: 17px;
    border-radius: 50%;
    min-width: 10px;
}

/* engine */

.btn,
.bbcodes,
.btn-border {
    background-color: rgb(245, 81, 28);
}

.btn:hover,
.bbcodes:hover,
.ui-button:hover {
    background-color: rgb(255, 98, 25);
}

#dle-content {
    line-height: normal;
}

.story .title>a:hover {
    color: rgb(254, 103, 22);
}

.edit_btn>a:hover>i,
.edit_btn>a:hover:after,
.edit_btn>a:hover:before {
    background-color: rgb(254, 103, 22);
}

.fav_btn:hover .icon-fav {
    fill: rgb(254, 103, 22);
}

.plus_icon.circle>span::before,
.plus_icon.circle>span::after {
    background-color: rgb(255, 98, 25);
}

.plus_icon.circle {
    border: 2px solid rgb(255, 98, 25);
}

/* calendar */

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today {
    color: #898989;
    font-weight: bold;
    background: #dedede;
}

.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box>div>div.xdsoft_current {
    background: rgb(255, 114, 13);
    box-shadow: rgb(255, 170, 75) 0 1px 3px 0 inset;
    color: rgb(255, 244, 186);
    font-weight: 700;
}

/* uniform */

.ba-modal__mfp-close {
    top: 0;
    right: 0;
}

/* .uf-inline-loading {
    border-top: 1.1em solid rgba(230, 200, 155, .3);
    border-right: 1.1em solid rgba(230, 200, 155, .3);
    border-bottom: 1.1em solid rgba(230, 200, 155, 0.3);
    border-left: 1.1em solid #c56e4b;
} */

/* ===== Blog page (.blog-page) — карточка как в ЛК + читаемый текст ===== */
.blog-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 10px;
  background: #2a2525;
  border: 1px solid #5a5454;
  border-radius: 8px;
  padding: 11px 13px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  color: #e2e2e2;
  line-height: 1.6;
}
.blog-page .ttl.ttl_theme_def {
  justify-content: center;
  text-align: center;
  color: #f0f0f0;
  border-color: #5a5454;
  margin-top: 0;
  margin-bottom: 16px;
  padding-top: 0;
  padding-bottom: 8px;
}
.blog-page .ttl .ttl__txt {
  width: 100%;
  text-align: center;
}
.blog-page .blog-page__intro {
  margin-bottom: 1.75em;
  color: #d8d8d8;
  font-size: 15px;
}
.blog-page .blog-page__intro.text_style a {
  color: #f0a050;
}
.blog-page .blog-page__intro.text_style a:hover {
  color: #ffb366;
  text-decoration: underline;
}
.blog-page__post {
  margin-bottom: 1.75em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #4a4545;
}
.blog-page__post:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.blog-page__post-header {
  margin-bottom: 0.6em;
}
.blog-page__post-title {
  margin: 0 0 0.3em;
  font-size: 1.15em;
  line-height: 1.35;
  color: #f5f5f5;
  font-weight: 600;
}
.blog-page__post-date {
  display: block;
  font-size: 0.88em;
  color: #a8a8a8;
}
.blog-page__post-body {
  margin: 0;
  color: #d8d8d8;
  line-height: 1.65;
}
.blog-page__post-body p {
  margin: 0 0 0.75em;
}
.blog-page__post-body p:last-child {
  margin-bottom: 0;
}
.blog-page__post-body a {
  color: #f0a050;
}
.blog-page__post-body a:hover {
  color: #ffb366;
  text-decoration: underline;
}
.blog-page__post-body ul,
.blog-page__post-body ol {
  color: #d8d8d8;
}
/* Блог: одинаковые поля у обёртки (раньше был только margin-left — справа 0, визуально «плывёт» к layout + gutter) */
.mid:has(.blog-page) .content-wrp {
  margin: 10px;
  box-sizing: border-box;
}
/* Блог не выезжает за нижний край: скролл внутри content-wrp__main */
.content-wrp:has(.blog-page) .content-wrp__main {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: #5a5454 #2a2525;
}
/* Две стороны — поддержка не везде; без both-edges правило целиком часто игнорируется */
@supports (scrollbar-gutter: stable both-edges) {
  .content-wrp:has(.blog-page) .content-wrp__main {
    scrollbar-gutter: stable both-edges;
  }
}
@supports not (scrollbar-gutter: stable both-edges) {
  .content-wrp:has(.blog-page) .content-wrp__main {
    scrollbar-gutter: auto;
  }
}
.content-wrp:has(.blog-page) .content-wrp__main:hover {
  scrollbar-color: #f7901e #2a2525;
}
/* Стильный скролл в стиле сайта (WebKit) */
.content-wrp:has(.blog-page) .content-wrp__main::-webkit-scrollbar {
  width: 8px;
}
.content-wrp:has(.blog-page) .content-wrp__main::-webkit-scrollbar-track {
  background: #2a2525;
  border-radius: 4px;
}
.content-wrp:has(.blog-page) .content-wrp__main::-webkit-scrollbar-thumb {
  background: #5a5454;
  border-radius: 4px;
}
.content-wrp:has(.blog-page) .content-wrp__main::-webkit-scrollbar-thumb:hover {
  background: #f7901e;
}
.content-wrp:has(.blog-page) .content-wrp__main::-webkit-scrollbar-corner {
  background: #2a2525;
}
@media (max-width: 900px) {
  .mid:has(.blog-page) .content-wrp {
    margin: 10px;
  }
  .blog-page { margin: 10px; padding: 8px 10px; }
  .blog-page .ttl { margin-left: 0; margin-right: 0; margin-bottom: 14px; }
  .blog-page__intro,
  .blog-page__post { padding-left: 0; padding-right: 0; }
  .blog-page__post-title { font-size: 1.08em; }
}
/* Экраны <768px — отступ текста от краёв (уменьшены в 2.5 раза) */
@media (max-width: 767px) {
  .blog-page.section-row {
    margin: 12px;
    padding: 10px 16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .blog-page .ttl { margin-left: 0; margin-right: 0; }
  .blog-page .blog-page__intro,
  .blog-page .blog-page__post,
  .blog-page .blog-page__post-body {
    padding-left: 10px !important;
    padding-right: 10px !important;
    box-sizing: border-box;
  }
}
@media (max-width: 480px) {
  .blog-page.section-row {
    margin: 12px;
    padding: 9px 13px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
    border-radius: 6px;
  }
  .blog-page .blog-page__intro,
  .blog-page .blog-page__post,
  .blog-page .blog-page__post-body {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .blog-page .ttl { margin-bottom: 12px; }
  .blog-page__post-title { font-size: 1em; }
  .blog-page__post-date { font-size: 0.82em; }
}
@media (max-width: 380px) {
  .blog-page.section-row {
    padding-left: 11px !important;
    padding-right: 11px !important;
  }
  .blog-page .blog-page__intro,
  .blog-page .blog-page__post,
  .blog-page .blog-page__post-body {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

/* Страница серверов (Обычные): контент растягивается вниз, скролл всей страницы, без внутреннего скролла */
.content-wrp:has(.inline-zone-2col) .content-wrp__main {
  flex: 0 0 auto !important;
  min-height: auto !important;
  overflow: visible !important;
}
/* VIP slots-full: пробелы «за 90 TC» — через &#160; в HTML (history.tpl) */
/* Скрываем пустой блок «Nothing :(» везде */
.side__container_type_def:has(.news__not),
.news__not {
  display: none !important;
}
/* Блок ТОП Онлайн: без дубля margin; gap как в theme (8px). На планшете 901–1024 — 6px как у margin-bottom строк «Скоро» */
#top-online-block .side_top_online .top-online__list {
  gap: 8px !important;
}
@media (min-width: 901px) and (max-width: 1024px) {
  #top-online-block .side_top_online .top-online__list {
    gap: 6px !important;
  }
}
#top-online-block .side_top_online .top-online__list .server {
  margin-bottom: 0 !important;
}

/* Отступ между ТОП Серверов и ТОП Онлайн — как между Скоро и Уже открылись */
.right-col .top-servers {
  margin-bottom: 6px !important;
}
.right-col .side-wrapper_top_online .side_top_online {
  margin-top: 10px !important;
}

/* SEO-блок внизу страницы: при малом контенте — прижат к низу viewport */
.main-after-banner:not(.main-after-banner--billing) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.main-after-banner:not(.main-after-banner--billing) .wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.main-after-banner:not(.main-after-banner--billing) .mid {
  flex: 1;
  min-height: 0;
}
body.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}