/*=============================================================*/
/* Theme: BestTorrent
/* Version: 1.0
/* Copyright (c) 2019 Roman Buger
/* Site: https://shopthemes.ru/
/*=============================================================*/

* {margin: 0; padding: 0; box-sizing: border-box;}
body {font-family: 'Open Sans', sans-serif;font-size: 14px;color: #212121;line-height: 1.6;background: #f4f4f4; overflow-x: hidden;}
a {text-decoration: none;border: none;outline: none;color: #2bb42b;font-weight: 500;position: relative;overflow: inherit;transition: all 0.3s ease 0s;}
a:hover {text-decoration: underline;}
a.btn, button {text-transform: uppercase;padding: 6px 15px 7px;border-radius: 0;}
ul {margin: 0; padding: 0;}
li {list-style: none;}
img {max-width: 100%;}
ol { padding-left: 40px; list-style: decimal outside; margin-top: 1em; margin-bottom: 1em;}

	strong, b { font-weight: bold }
	em, cite, i { font-style: italic }
	caption { text-align: left }
	th, td { vertical-align: middle }
	small, .small { font-size: .9em; }
	hr { height: 0; border: 0; border-top: 1px solid #de5a26; -moz-box-sizing: content-box; box-sizing: content-box; margin: 20px 0px; }

	.clr { clear: both }
	.clrfix:after { clear: both; content: ""; display: table; }

.instagram-media, .twitter-tweet {display: inline-block !important;}

h1, h2, h3, h4, h5, h6 {color: #1c1c1c;margin: 0;font-weight: 600;line-height: 28px;}
h1 {text-transform: none;font-size: 20px;}
.x-unselectable {position:relative;}
#uCatsMenu7 {left: 0% !important;top: 21px !important; margin-left: 0px;}
/*.uadm.uadm--closed {display: none;}*/
.container {width: 100%; margin: 0 auto; background: #fff; min-height: 100vh; box-sizing: border-box;}


/* для списков с классом возвращаем стандартные маркеры */
ul.with-bullets {
  list-style-type: disc;           /* диск (чёрная точка) */
  list-style-position: outside;    /* маркер вне текста */
}

/* Перебираем точно те же селекторы DLE, но внутри нашей .no-reset */
.no-reset .text_spoiler ul,
.no-reset .dlecontent ul,
.no-reset ul {
  list-style-type: disc !important;      /* тип маркера — чёрная точка */
  list-style-position: outside !important;  
  margin: 0 0 1em 1.5em !important;      /* отступ слева для маркера */
  padding: 0 !important;
}

.no-reset .text_spoiler ul li,
.no-reset .dlecontent ul li,
.no-reset ul li {
  display: list-item !important;         /* возвращаем поведение «пункт списка» */
  margin: 0.2em 0 !important;            /* немножко пространства между пунктами */
  list-style: disc;
}
/* ———————————————
   Для нумерованных списков
   ——————————————— */
.no-reset .text_spoiler ol,
.no-reset .dlecontent ol,
.no-reset ol {
  list-style-type: decimal !important;    /* цифры 1, 2, 3… */
  list-style-position: outside !important;
  margin: 0 0 1em 1.5em !important;
  padding: 0 !important;
  
}
.no-reset .text_spoiler ol li,
.no-reset .dlecontent ol li,
.no-reset ol li {
  display: list-item !important;         /* возвращаем поведение «пункт списка» */
  margin: 0.2em 0 !important;            /* немножко пространства между пунктами */
  list-style: decimal;
}


/*=============================================================*/
/* COLORS
/*=============================================================*/
.color-1, .color-1 a {background-color: #1bcad1 !important; color: #fff !important;}
.color-2, .color-2 a {background-color: #49b545 !important; color: #fff !important;}
.color-3, .color-3 a {background-color: #daca1b !important; color: #fff !important;}
.color-4, .color-4 a {background-color: #f8f8f8 !important; color: inherit !important;}
.color-4 a {color: #2bb42b !important;}
.color-5, .color-5 a {background-color: #de5a26 !important; color: #fff !important;}
.color-6, .color-6 a {background-color: #2b9be3 !important; color: #fff !important;}
.color-7, .color-7 a {background-color: #b866ff !important; color: #fff !important;}
.color-8, .color-8 a {background-color: #f1c40f !important; color: #fff !important;}
.color-9, .color-9 a {background-color: #00bfff !important; color: #fff !important;}
.color-10, .color-10 a {background-color: #996666 !important; color: #fff !important;}
/*=============================================================*/










/*=============================================================*/
/* LOGO
/*=============================================================*/
/*=============================================================*/
/* WRAP, ASIDE, CONTENT
/*=============================================================*/
.wrap {display: flex; justify-content: space-between; box-sizing: border-box;}
.aside_l {flex: 0 0 300px; min-width: 0; max-width: 250px; border-bottom: 1px solid #ddd; padding: 15px; box-sizing: border-box;}
.aside_r {flex: 0 0 300px; min-width: 0; max-width: 250px; border-bottom: 1px solid #ddd; padding: 15px; box-sizing: border-box;}
.content_bl {background: #f8f8f8;flex: 1;min-width: 0;padding: 15px; border-right: 1px solid #ddd; border-left: 1px solid #ddd;border-bottom: 1px solid #ddd; box-sizing: border-box;}
.aside_head {text-transform: uppercase;padding: 8px 15px;border-radius: 0;font-size: 14px;background-image: url(../images/bg_patt.png);color: #fff;margin: 0 -15px 4px;font-weight: 600;background-size: 100%;}
.aside_content {padding: 11px 0; margin-bottom: 15px; position: relative;}

/*=============================================================*/
/* SPEEDBAR
/*=============================================================*/
.speedbar {background: #fff; margin: 0px -15px 15px; padding: 8px 15px;border-bottom: 1px solid #ddd;border-top: 1px solid #ddd; font-size: 13px; }
.speedbar a {color: inherit;text-transform: capitalize;}

/*=============================================================*/
/* SEARCH
/*=============================================================*/
.search {margin-bottom: 15px;}
/*.search input {width: 100%;}*/

/*=============================================================*/
/* FOOTER
/*=============================================================*/
.footer {background: #49b545 url(../images/bg_patt.png); background-size: 50%;color: #fff;display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; padding: 15px; font-size: 12px; justify-content:space-between; align-items: center; flex-wrap: wrap;}
.footer div {display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex;}
.footer img {display: block;margin-left: 10px;}
.footer a {color: #fff;}

/*=============================================================*/
/* ITEM
/*=============================================================*/
.item_bl {}

.item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 15px;
  display: flex;
}

.item_img {
  flex: 1;
  max-width: 200px;
  border-right: 1px solid #ddd;
  padding: 15px;
}

.item_img img {
  display: block;
}

.item_content {
  flex: 1;
  padding: 15px;
  hyphens: auto;
  position: relative;
}

/* --- Новый стиль: иконка редактирования справа внутри заголовка --- */
.item_content h3 {
  position: relative;
  border-top-right-radius: 10px;
  padding: 8px 40px 8px 10px;  /* верхний, правый, нижний, левый отступы */
  font-size: 16px;
  font-weight: 700;
  background: #4aad46 url(../images/bg_patt.png);
  background-size: 50%;
  margin: -15px -16px 0;
  line-height: 1.3;
  color: #fff;
  /* убираем margin-top если мешает, тебе можно подкорректировать по факту */
}

.item_content h3 .edit_item {
  position: absolute;
  top: 8px;           /* отступ сверху для иконки, на уровне первой строки */
  right: 10px;        /* отступ справа */
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Без transform, чтобы точно был у верха */
}

.item_content h3 .edit_item img {
  max-width: 24px;
  max-height: 24px;
  display: block;
}

.item_content h3 a {
  color: inherit; /* наследуем белый цвет */
  text-decoration: none;
  display: inline-block;
}

.item_content h3 a:hover {
  text-decoration: underline;
}

.info_blTop,
.info_blBottom {
  border-bottom: 1px solid #ddd;
  margin: 0 -15px 15px;
  font-size: 13px;
  padding: 7px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a1a1a1;
}

.rait_num {
  background: #daca1b;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
}

.info_blBottom {
  padding: 0;
  border-bottom: 0;
  border-bottom-right-radius: 10px;
  border-top: 1px solid #ddd;
  position: absolute;
  width: 100%;
  bottom: 0;
  margin-bottom: 0;
  background: #fff;
}

.info_blBottom > span {
  padding: 0 15px;
  display: inline-block;
}

.info_blBottom .btn {
  text-transform: uppercase;
  padding: 9px 15px 10px;
  border-radius: 0;
  margin: -1px;
  font-size: 11px;
}

.item .descr {
  margin-bottom: 60px;
}/*=============================================================*/
/* PAGINATION
/*=============================================================*/
.pagination {
  display: flex;
  text-align: center;
  justify-content: center;
  margin-bottom: 10px;
}

#pagesBlock1,
.pagesBlockuz1,
.pagesBlockuz2 {
  clear: both;
  margin-bottom: 25px;
  margin-top: 25px;
  font-size: 12px;
  display: inline-block;
  font-weight: 400;
}

/* -- active -- */
.pgSwchA b,
.swchItemA span,
.swchItemA1 span,
.swchItemDots {
  z-index: 2;
  color: #FFF;
  cursor: default;
  position: relative;
  text-decoration: none;
  min-width: 32px;
  background: #1bcad1;
  border: 1px solid #1bcad1;
  display: inline-block;
  text-align: center;
  font-weight: 400;
  border-radius: 4px;
  padding: 4px 10px;
}

.pgSwchA:hover b,
.swchItemA:hover span,
.swchItemA1:hover span {}

 /* -- no active -- */
.pgSwch span,
.swchItem span,
a.swchItem1 {
  position: relative;
  text-decoration: none;
  min-width: 30px;
  color: #212121;
  background-color: #FFF;
  display: inline-block;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  padding: 4px 10px;
}

.pgSwch:hover span,
.swchItem:hover span,
a.swchItem1:hover {}
/*=============================================================*/
/* jquery-accordion-menu
/*=============================================================*/
.jquery-accordion-menu {padding: 10px 0;margin: 0 -16px;}
.jquery-accordion-menu > ul > li > a {border-bottom: 0;transition: all 0.3s ease 0s; color: #222222; font-weight: 400; padding: 7px 15px 8px; display: block; text-decoration: none;}
.jquery-accordion-menu > ul > li > a:hover {transition: all 0.3s ease 0s;background: #ffa000;color: #fff;}
.jquery-accordion-menu > ul > li.active > a {color: #fff; background: #ffa000;}
.jquery-accordion-menu ul {margin: 0;padding: 0;list-style: none;}
.jquery-accordion-menu .submenu-indicator {float: right;right: 15px;position: absolute;line-height: 19px;font-size: 20px;-o-transition: transform .3s linear;-moz-transition: transform .3s linear;-webkit-transition: transform .3s linear;-ms-transition: transform .3s linear}
.jquery-accordion-menu .submenu-indicator-minus>.submenu-indicator {-ms-transform: rotate(45deg);-moz-transform: rotate(45deg);-webkit-transform: rotate(45deg);transform: rotate(45deg)}
.jquery-accordion-menu ul ul.submenu {width: 100%;display: none;border-bottom: 5px solid #4aad46;background: #fafafa; padding: 10px 0;padding-right: 1px;}
.jquery-accordion-menu ul ul.submenu li {clear: both;width: 100%}
.jquery-accordion-menu ul.submenu a {border-bottom: 0;font-size: 13px;color: #2d2d2d;font-weight: 400;position: relative;display: block;padding: 7px 15px 7px;border-left: solid 5px transparent;-o-transition: border .03s linear;-moz-transition: border .03s linear;-webkit-transition: border .03s linear;transition: border .03s linear;transition: all 0.3s ease 0s;text-decoration: none;}
.jquery-accordion-menu .submenu a:hover {background: #fff; border-left: solid 5px #35c535;}
#list_cat a {overflow:hidden;text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap;width:100%;}
.jquery-accordion-menu .submenu a .ripple {background: #cacaca;}
.jquery-accordion-menu ul.submenu li ul.submenu {background: #f0f0f0; border-bottom: 0;}
.jquery-accordion-menu ul.submenu li ul.submenu li a {padding-left: 40px;}

/*=============================================================*/
/* INFORMS
/*=============================================================*/
.inf_item-1 {position: relative;margin-bottom: 15px;border: 3px solid #ddd;padding: 15px; background: #fff;}
.inf_item_img {position: relative;margin-bottom: 15px; }
.inf_item-1 h4 {line-height: 1.6;}
.inf_item-1 h4 a {color: inherit; font-weight: 600; display: inline-block;}
.inf_item_img .rait_num {position: absolute;right: 15px;top: 15px;}
.inf_item_img img {display: block; width: 100%;}

/*=============================================================*/
/* USER PANEL
/*=============================================================*/
.ava_bl {display: -webkit-flex;display: -moz-flex;display: -ms-flex;display: -o-flex;display: flex; justify-content: center;}
.ava_bl img {display: block; border: 1px solid #ddd; padding: 5px; width: 100px; height: 100px;}
.user_nav {margin-top: 15px;}
.user_nav a {color: inherit; display: inline-block;padding: 5px 10px;}

/*=============================================================*/
/* MODAL WINDOW
/*=============================================================*/
.modal {position: fixed;top: 0;left: 0;display: flex;align-items: center;justify-content: center;height: 0vh;background-color: transparent;overflow: hidden;transition: background-color 0.25s ease;z-index: 9999;}
.modal.open {position: fixed;width: 100%;height: 100vh;background-color: rgba(0, 0, 0, 0.5);transition: background-color 0.25s;}
.modal.open > .content-wrapper {transform: scale(1);}
.modal .content-wrapper {position: relative;display: flex;flex-direction: column;align-items: center;justify-content: flex-start;width: 50%;margin: 0;padding: 1.2rem;background-color: white;border-radius: 0.3125rem;box-shadow: 0 0 2.5rem rgba(0, 0, 0, 0.5);transform: scale(0);transition: transform 0.25s;transition-delay: 0.15s;max-height: 90%;overflow-y: auto;}
.modal .content-wrapper .close {position: absolute;top: 0.5rem;right: 0.5rem;display: flex;align-items: center;justify-content: center;width: 2.5rem;height: 2.5rem;border: none;background-color: transparent;font-size: 1.5rem;transition: 0.25s linear;}
.modal .content-wrapper .close:before, .modal .content-wrapper .close:after {position: absolute;content: '';width: 1.25rem;height: 0.125rem;background-color: black;}
.modal .content-wrapper .close:before {transform: rotate(-45deg);top: 19px;left: 10px;}
.modal .content-wrapper .close:after {transform: rotate(45deg);}
.modal .content-wrapper .close:hover {transform: rotate(360deg);}
.modal .content-wrapper .close:hover:before, .modal .content-wrapper .close:hover:after {background-color: tomato;}
.modal .content-wrapper .modal-header {display: flex;flex-direction: row;align-items: center;justify-content: space-between;width: 100%;margin: 0;padding: 0 0 1.25rem;}
.modal .content-wrapper .modal-header h2 {font-size: 18px;}
.modal .content-wrapper .content {position: relative;display: flex;width: 100%;justify-content: space-between;margin-bottom: 15px;flex-wrap: wrap;}
.modal .content-wrapper .content [class*="color-"] {flex: 1; text-align: center; margin: 5px;}

/*=============================================================*/
/* FULLSTORY
/*=============================================================*/
.full_img, .f_down {display: flex;justify-content: center; margin-bottom:15px;flex-wrap: wrap;}
.full_img img {display: block;max-width: 300px;}
.uSpoilerButton {width: 100%;text-align: left;text-transform: uppercase;font-size: 12px;}
.uSpoilerText {background: #f8f8f8;border: 1px solid #ddd;margin-top: -5px;padding: 15px;}
.f_down {margin-bottom: 5px;}
.f_down a {margin: 0 7.5px;}
.u-star-rating-20 {width: 105px !important;}
[class*="u-star-rating"] a {transition: none;}
.f_info {display: flex;justify-content: space-between;flex-wrap: wrap; align-items: center;}
.f_screen {display: flex;justify-content: center;flex-wrap: wrap;padding: 7.5px;}
.f_screen a {padding: 7.5px;flex: 1;min-width: 25%;position: relative;}
.f_screen img {display: block;width: 100%;height: 100%;display: block;object-fit: cover;}
.f_screen a::before {opacity: 0;visibility: hidden;-webkit-transform: scale(0,0);transform: scale(0,0);transition: all 0.3s ease 0s;content: "Увеличить";position: absolute;bottom: 7.5px;width: auto;text-align: center;color: #fff;background: rgba(0,0,0,.7);padding: 7px 20px;right: 7.5px;font-size: 12px;}
.f_screen a:hover::before {opacity: 1;visibility: visible;-webkit-transform: scale(1,1);transform: scale(1,1);transition: all 0.3s ease 0s;}
.full_img {text-align: center;}
/*.full_img + div > img {display: none;}*/
.title_spoiler {margin-top: 0px;}
.text_spoiler {
padding-left: 15px;
padding-right: 15px;
padding-top: 0;
width: 100%;
text-align: left;
background: #f9fafa;
/*border: 3px solid #dce7e7;*/
overflow: hidden;
}

hr, hr.mainHr {opacity: 0.1;margin: 7px 0;}
.ratebox a {transition: none;}

/*=============================================================*/
/* DLE Styles
/*=============================================================*/
.full .item {display: block;padding:15px;}
.item .descr img {display:none;}
.edit_item {float: right;margin-top: -4px;}
.pagination a {position: relative;text-decoration: none;min-width: 32px;color: #212121;background-color: #FFF;display: inline-block;border:1px solid #ddd;border-radius:4px;text-align: center;padding: 4px 10px;margin: 0 5px 5px 0;}
.pagination span {z-index: 2;color: #FFF;cursor: default;position: relative;text-decoration: none;min-width: 32px;background: #1bcad1;border:1px solid #1bcad1;display: inline-block;text-align: center;font-weight: 400;border-radius: 4px;padding: 4px 10px;margin: 0 5px 5px 0;}
.ui-widget-header {font-size: 16px;font-weight: 400;background: #4aad46 url(../images/bg_patt.png);background-size: 50%;padding: 7px 15px;color: #fff;font-family: 'Open Sans', sans-serif;}
.ui-dialog .ui-dialog-title {margin: 0em 16px 0.4em 0;}
.ui-icon-closethick {height: 15px;}
.ui-dialog .ui-dialog-titlebar-close span {margin: 0;}
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(../images/ui-icons.png);}
#logform .lfield {margin-bottom: 15px;}
#logform input {width: 90%;}
#logform input#login_not_save {width: auto;}
#logform .btn_bl {display: flex;justify-content: space-between;flex-wrap: wrap;font-size: 11px;}
.tableform, .tableform input {width: 100%;margin-bottom: 15px;}
.tableform input#allow_subscribe {width: auto;}
.editorcomm .bb-editor {width: 100%;}
.fieldsubmit {display: flex;justify-content: center;}
.block {display: block;} 
.p-15 {padding: 15px;margin-bottom: 15px;}
.addnews .tableform input {width: auto; margin-top: 15px; margin-bottom: 0;}
.addnews #tags {width: 100%;}
.f_input {width: 100% !important;}
input.bbcodes {padding: 7.5px 15px !important;margin-right: 15px !important;height: auto !important;font-size: 14px !important;font-weight: 400;font-family: 'Open Sans', sans-serif !important;text-shadow: none;float: right;}
.addnews .fbutton {margin-right: 15px; margin-bottom: 15px;}
.mass_comments_action {text-align: right;display: flex;justify-content: right;align-items: center;}
.bcomment {display: flex !important;}
.bcomment .ava_usr {flex: 1;max-width: 115px;min-width: 115px;border-right: 1px solid #ddd;margin-right: 15px; margin-top: -15px; margin-bottom: -15px;padding: 15px 15px 15px 0;}
[id*="comment-id"] {flex: 1;}
.cont_comm {border-bottom: 1px solid #ddd;margin: -7.5px -15px 15px;padding: 0 15px 7.5px;display: flex;flex-wrap: wrap;align-items: center;font-size: 14px;justify-content: space-between;}
.ratebox2 ul.reset , .ratebox3 ul.reset {display: flex;}
.ratebox3 [id*="comments-ratig-layer-"], .ratebox3 [id*="ratig-layer-"] {position: relative;top: -2px;}
.comedit {display: flex;justify-content: right;align-items: center;flex-wrap: wrap;border-top: 1px solid #ddd;border-bottom-right-radius: 10px;padding: 7.5px 15px;margin: 15px -15px -15px;font-size: 12px;background: #f8f8f8;}
.comedit ul.reset {display: flex;}
.comedit ul.reset li {margin-left: 8px;}
.bcomment input.bbcodes {float: none;}
#options {margin-bottom: 15px;}
#userinfo {margin-bottom: 15px;}
.pheading {margin-bottom: 15px;}
.basecont .fbutton {border-radius: 4px;margin-right: 15px;text-transform: inherit;}
#outboxcopy {width: auto;}
#registration .bbcodes, .search .bbcodes {margin-left: 15px;width: auto;}
.dpad {border: 1px solid #ddd;background: #fff;padding: 10px 10px;margin-bottom: 15px;margin-top: 0px;}
#fullsearch {margin: 0px -10px;}
#fullsearch .search > div {display: flex;}
.lastcomments {display: flex;}
.lastcomments .ava_usr {flex: 1;max-width: 130px;min-width: 130px;border-right: 1px solid #ddd;margin-right: 15px;margin-top: 0;margin-bottom: 0;padding: 15px;}
.lastcomments .cont_comm {border-bottom: 1px solid #ddd;margin: 7.5px 0 7.5px -15px;padding: 0 15px 7.5px;display: flex;flex-wrap: wrap;align-items: center;font-size: 14px;justify-content: space-between;}
.lastcomments .comedit {display: flex;justify-content: right;align-items: center;flex-wrap: wrap;border-top: 1px solid #ddd;padding: 7.5px 15px;margin: 15px 0 0px -15px;font-size: 12px;background: #f8f8f8;}

.userinfo {display: flex;margin: 15px -15px -15px;border-top: 1px solid #ddd;flex-wrap: wrap;border-bottom: 1px solid #ddd;}
.userinfo .lcol {flex: 1;max-width: 180px;padding: 15px;min-width: 180px;border-right: 1px solid #ddd;text-align: center;margin-right: 15px;}
.userinfo .rcol {padding: 15px 0;flex: 1;line-height: 1.8em;}
input[type="checkbox"] {width: 20px;}

/* v.1.1.0 */
.screens {margin-top: 15px;display: grid;}
.screens .screen_item {overflow: hidden; flex: 0 0 250px; position: relative;}
.screens .screen_item a {width: 100%; display: block !important; height: 100%; position: relative;}
.screens .contenedor {height: 200px; display: flex !important; white-space: nowrap; gap: 20px;padding: 25px 0px;}
.screens img.img_presentacion_mini {width: 250px; min-height: 100%; object-fit: cover; display: block; cursor: pointer; position: relative;}
.screens .contenedor_scroll {top: 0px;max-width: 100%;height: 210px;position: relative;margin: 0 auto;padding: 0px;overflow-x: auto;-webkit-overflow-scrolling: touch;z-index: 0;}
.contenedor_scroll {scrollbar-width:thin;}
.screens ::-webkit-scrollbar {height:7px;width:7px;/* background:#151720 */}

@media (min-width: 1985px) {
    .item-page__rating {
        text-align: center;
        padding: 1px 39% 5px; /* Широкие экраны */
    }
}


/* Для экранов шириной 1440px и до 1984px */
@media (min-width: 1440px) and (max-width: 1984px) {
    .item-page__rating {
        text-align: center;
        padding: 1px 32% 5px; /* Широкие экраны */
    }
}

/* Для экранов шириной от 1024px до 1439px */
@media (min-width: 1024px) and (max-width: 1439px) {
    .item-page__rating {
        text-align: center;
        padding: 5px 25% 10px; /* Уменьшенный отступ для средних экранов */
    }
}

/* Для экранов шириной от 768px до 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .item-page__rating {
        text-align: center;
        padding: 10px 15% 8px; /* Еще меньше отступов для планшетов */
    }
}

/* Для экранов шириной менее 768px (мобильные устройства) */
@media (max-width: 767px) {
    .item-page__rating {
        text-align: center;
        padding: 15px 5% 10px; /* Малые отступы для мобильных */
    }
}

/* Попытка убрать затемнение при модальном окне :) */
#modal-overlay {
    position: absolute !important;
    top: 0px !important;
    left: 0px !important;
    width: 100% !important;
    height: 100% !important;
    background: rgb(102 102 102 / 0%) !important;
    opacity: 0.4 !important;
    z-index: 0 !important;
}

/* Размер игры на картинке в короткой новости */
.sizeposter {
    position: absolute;
    top: 5px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
    user-select: none;
    }
    
/* Размер игры на картинке в inform_item.tpl */
.sizeposterinf {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 2px;
    user-select: none;
    }
    
/* поиск для сайта */
.emp-search-wrapper {
/*max-width: 480px;*/
padding: 10px 10px;
margin: 0 auto 60px auto;
}
.emp-search-input {
width: 95%;
padding: 10px 14px;
font-size: 16px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
text-align: left;
}
.emp-search-buttons {
margin-top: 12px;
text-align: center;
}
.emp-search-btn {
display: inline-block;
padding: 10px 20px;
margin: 0 6px;
font-size: 15px;
cursor: pointer;
border-radius: 4px;
border: none;
background-color: #4CAF50; /* Новый цвет кнопок */
color: white;
transition: background-color 0.3s ease, transform 0.3s ease; /* Плавный переход цвета и эффекта свайпа */
}
.emp-search-btn:hover {
background-color: #1f54a0; /* Цвет кнопки при наведении */
transform: translateY(-2px); /* Эффект свайпа вверх */
}

.dpad-full-search {border: 1px solid #ddd;background: #fff;padding: 0px 10px;margin-bottom: 0px;margin-top: 0px;}

.search-small {
    margin-bottom: 10px; /* Отступ 10px вниз Для более эффективного поиска пишите название и год! */
}

/* Тег <p> */
p {
  margin-top: 0px;        /* Отступ сверху — увеличивает расстояние от предыдущего блока */
  margin-bottom: 10px;    /* Отступ снизу — задает расстояние до следующего блока */
  padding-left: 0px;      /* Внутренний отступ слева — текст не прилипает к краю контейнера */
  white-space: normal;    /* либо pre-line */
  color: #333333;         /* Цвет текста — темно-серый, хорошо читается на светлом фоне */
  font-size: 14px;        /* Размер шрифта — стандартный для удобного чтения */
  line-height: 1.5;       /* Межстрочный интервал — улучшает читаемость */
}

/* Сброс отступов <p> внутри quote_body */
.quote_body p {
  margin: 0;          /* Убираем внешние отступы сверху и снизу */
  padding: 0;         /* Убираем внутренние отступы, если есть */
  line-height: 1.4;   /* Контролируем межстрочный интервал, чтобы текст не слипался */
  display: block;     /* Оставляем блочным, чтобы переносы были, но без отступов */
}

/* VIDEO IFRAME
--------------------------------------------------------------------------------*/
.videoWrapper {position:relative; height:0;padding-bottom:56.25%; padding-top:25px; }
.videoWrapper iframe {position:absolute; top:0; left:0; width:100%; height:100%;padding-left: 20px;padding-right: 20px;}

/*=============================================================*/
/* BOTTOM
/*=============================================================*/
.bottom {}


/* Основной контейнер поиска */
.dpad.radial.infoblock {
  max-width: 100%; /* максимум ширины блока */
  margin: 20px auto; /* центр по горизонтали */
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Таблицы делают адаптивными */
.searchtable table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* равномерное распределение колонок */
}

/* Ячейки с полями поиска */
.searchtable td.search {
  vertical-align: top;
  padding: 10px;
  box-sizing: border-box;
}

/* В верхних вложенных таблицах */
.searchtable fieldset {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  background: #fafafa;
}

/* Заголовок fieldset */
.searchtable legend {
  font-weight: 700;
  padding: 0 10px;
  font-size: 1.1em;
  color: #333;
}

/* Выравниваем две колонки внутри расширенного поиска */
.searchtable > table > tbody > tr > td.search > div > table > tbody > tr {
  vertical-align: top;
}

.searchtable > table > tbody > tr > td.search > div > table > tbody > tr > td.search {
  width: 50%;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Секция "Поиск по разделам" делаем чуть шире */
.searchtable fieldset legend:contains('Поиск по разделам') {
  /* К сожалению, CSS селектор :contains не работает, надо по классу или ID */
  /* Лучше добавить класс для fieldset "search-category", если возможно, и стилизовать его */
}

/* Если можно контролировать HTML, добавь внутри <fieldset> с поиском по разделам класс */
fieldset.search-category {
  max-width: 320px; /* чуть шире */
  margin-left: auto;
}

/* Стили для чекбоксов (установим блоками вертикально) */
.searchtable input[type="checkbox"] {
  margin-right: 6px;
  vertical-align: middle;
  cursor: pointer;
}

.searchtable label {
  display: block;
  padding: 4px 0;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #222;
}

/* Контейнер чекбоксов, чтобы не слипались */
.searchtable [id^="category-option"] > div,
.searchtable .category-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px; /* расстояния между чекбоксами */
}

/* При необходимости можно сделать чекбоксы в две колонки */
.searchtable .category-checkboxes > label {
  flex: 1 1 45%; /* две колонки */
}

/* Кнопки поиска — центруем и добавляем отступы */
.bbcodes {
  padding: 10px 25px;
  margin: 10px 15px 0 0;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  background-color: #4CAF50;
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.bbcodes:hover {
  background-color: #1f54a0;
}

/* Чтобы кнопки не слипались на узких экранах */
.searchtable input.bbcodes {
  min-width: 120px;
}

/* Мелкие адаптивные правки */
@media (max-width: 768px) {
  .searchtable > table > tbody > tr > td.search > div > table > tbody > tr > td.search {
    width: 100%;
    padding: 5px 0;
  }
  .searchtable .category-checkboxes > label {
    flex: 1 1 100%;
  }
  .bbcodes {
    width: 100%;
    margin: 10px 0;
  }
}

/* Стиль текста Для более эффективного поиска пишите название и год!
Результаты будут открыты в новой вкладке вашего браузера! */

.search-small {
  font-family: 'Arial', sans-serif; /* Современный шрифт */
  line-height: 1.5; /* Увеличенный межстрочный интервал */
  text-align: center; /* Центрируем текст */
}

.search-message {
  margin: 0; /* Убираем отступы */
}

.highlight-red {
  color: #e63946; /* Современный красный цвет */
  font-weight: bold; /* Жирный текст */
}

.highlight-blue {
  color: #457b9d; /* Современный синий цвет */
  font-weight: bold; /* Жирный текст */
}

/* Централизованная кнопка Оставить комментарий */
.comment-button {
    display: inline-block; /* Для корректного отображения */
    background-color: #575ad6; /* Цвет фона */
    color: white; /* Цвет текста */
    border: none; /* Убираем рамку */
    border-radius: 10px; /* Закругленные углы */
    padding: 5px 10px; /* Отступы */
    font-size: 14px; /* Размер шрифта */
    text-decoration: none; /* Убираем подчеркивание */
    transition: background-color 0.3s, transform 0.3s; /* Плавные эффекты при наведении */
}

.comment-button:hover {
    background-color: #4e4bbf; /* Цвет фона при наведении */
    transform: translateY(-2px); /* Легкий подъем кнопки */
}


/* Централизованная кнопка Скачать бесплатно */
.download-button {
    display: inline-block; /* Для корректного отображения */
    background-color: #e0745c; /* Цвет фона */
    color: white; /* Цвет текста */
    border: 4px solid #d0634c; /* Цвет рамки */
    border-radius: 10px; /* Закругленные углы */
    padding: 12px 24px; /* Отступы */
    font-size: 18px; /* Размер шрифта */
    text-decoration: none; /* Убираем подчеркивание */
    transition: background-color 0.3s, transform 0.3s, border-color 0.3s; /* Плавные эффекты при наведении */
}

.download-button:hover {
    background-color: #d0634c; /* Цвет фона при наведении */
    border-color: #b0524a; /* Цвет рамки при наведении */
    transform: translateY(-2px); /* Легкий подъем кнопки */
}

/* Плавный переход по сайту */
html {
    scroll-behavior: smooth; /* Плавный скроллинг */
}

/* Правая сторона таблицы с доп полями */
.rounded-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.rounded-list li {
    border: 3px solid #fff;        /* поменьше рамка */
    border-radius: 15px;           /* немного поменьше скругление */
    padding: 6px 10px;             /* уменьшенные внутренние отступы */
    margin: 6px 8px;               /* уменьшенный отступ между элементами */
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;            /* чуть меньший размер шрифта (~13.5px при 16px базовом) */
    line-height: 1.5;              /* чуть плотнее строки */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    cursor: default;
}

/* Эффект при наведении */
.rounded-list li:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 12px rgba(45, 194, 107, 0.4);
    transform: translateY(-3px);
    cursor: pointer;
}

/* Иконкам можно задать масштаб тоже чуть меньше */
.rounded-list li i {
    font-size: 0.9em;  /* иконка чуть поменьше */
    margin-right: 6px;  /* небольшой отступ справа */
    vertical-align: middle;
}

/* Опционально, если хочешь анимацию и при фокусе */
.rounded-list li:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 15px rgba(45, 194, 107, 0.5);
    transform: translateY(-4px);
}

/* Эффект при наведение на постер */
.hover-effect {
    transition: transform 0.3s ease, border-color 0.3s ease; /* Плавный переход для трансформации и цвета границы */
}

.hover-effect:hover {
    transform: scale(1.05); /* Увеличение изображения при наведении */
    border-color: #1a8f4d; /* Изменение цвета границы при наведении */
}

/* Заголовок и иконки редактирования и закладок */
/* Заголовок + кнопки справа */
.desc-card__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

/* Контейнер кнопок */
.desc-card__actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:0 !important;
}

/* Общий вид кнопки (под светлый фон) */
.desc-card__action{
  --c: rgba(20, 24, 30, .28);    /* рамка по умолчанию */
  --glow: rgba(20, 24, 30, .10); /* свечение по умолчанию */
  --bg: rgba(255,255,255,.92);

  display:inline-flex;
  align-items:center;
  justify-content:center;

  width:42px;
  height:42px;

  border-radius:12px;
  border:2px solid var(--c);
  background: var(--bg);

  cursor:pointer;

  transition:
    transform .15s ease,
    background .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

/* Размер иконок (не маленькие) */
.desc-card__action i{
  font-size:22px;
  line-height:1;
}

/* Hover: “подъём”, подсветка рамки, мягкая тень */
.desc-card__action:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.98);
  border-color: color-mix(in srgb, var(--c) 75%, #000 0%);
  box-shadow:
    0 0 0 3px rgba(255,255,255,.70),
    0 0 18px var(--glow),
    0 10px 22px rgba(20, 24, 30, .12);
}

/* Цвета по смыслу */
.desc-card__action--fav-add{
  --c: rgba(22, 163, 74, .55);
  --glow: rgba(22, 163, 74, .35);
}
.desc-card__action--fav-add i{ color:#16a34a; }

.desc-card__action--fav-del{
  --c: rgba(225, 29, 72, .55);
  --glow: rgba(225, 29, 72, .30);
}
.desc-card__action--fav-del i{ color:#e11d48; }

.desc-card__action--edit{
  --c: rgba(20, 24, 30, .22);
  --glow: rgba(20, 24, 30, .10);
}
.desc-card__action--edit i{ color: rgba(20, 24, 30, .85); }

/* Эффекты на иконку при наведении */
.desc-card__action--fav-add:hover i{
  animation: favPulse .75s ease-in-out infinite;
}
.desc-card__action--fav-del:hover i{
  animation: favFade 1s ease-in-out infinite;
}

/* Пульсация */
@keyframes favPulse{
  0%   { transform:scale(1); }
  50%  { transform:scale(1.18); }
  100% { transform:scale(1); }
}

/* Угасание */
@keyframes favFade{
  0%   { opacity:1;   transform:scale(1); }
  50%  { opacity:.35; transform:scale(.96); }
  100% { opacity:1;   transform:scale(1); }
}


/* Реклама adhunt, adhunt */
/* =========================
   Nitro slot (динамический)
   ========================= */

.nt-slot{
  box-sizing: border-box;
  margin: 10px 12px 14px;
  padding: 10px;

  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(20, 24, 30, .10);
  box-shadow: 0 10px 24px rgba(20, 24, 30, .10);

  display: none;              /* скрыт, пока не загрузился */
  justify-content: center;
  overflow: hidden;
}

.nt-slot--under-title{
  margin-top: 8px;
}

.nt-slot.is-visible{
  display: flex;
}

.nt-slot__inner,
.nt-slot .adnitro{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.nt-slot__inner{
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* на всякий случай для сетей */
.nt-slot iframe,
.nt-slot embed,
.nt-slot object,
.nt-slot img{
  display: block;
  max-width: 100%;
}

/* =========================
   Download card (кнопка по центру)
   ========================= */

.dl-card{
  box-sizing: border-box;
  margin: 10px 12px 14px;
  padding: 0;

  display: flex;
  justify-content: center;
}

.dl-card--under-title{
  margin-top: 8px;
}

.dl-card__link{
  position: relative;

  width: 100%;
  min-height: 88px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px 16px 18px;
  text-decoration: none;

  border-radius: 14px;
  background: linear-gradient(180deg, #1b2230 0%, #151b26 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);

  overflow: hidden;
}

.dl-card__badge{
  position: absolute;
  left: 12px;
  top: 10px;

  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;

  padding: 3px 7px;
  border-radius: 9px;

  color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
}

.dl-card__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  text-align: center;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .4px;

  color: #0b1a10;

  padding: 12px 18px;
  border-radius: 12px;

  background: linear-gradient(180deg, #bff7c6 0%, #7eea93 100%);
  border: 1px solid rgba(0, 0, 0, .18);

  box-shadow: 0 10px 18px rgba(0, 0, 0, .22);
  transform: translateY(0);
  transition: transform .15s ease, box-shadow .15s ease;
}

.dl-card__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.dl-card__note{
  position: absolute;
  right: 12px;
  bottom: 10px;

  font-size: 11px;
  line-height: 1.2;

  color: rgba(255, 255, 255, .55);
  user-select: none;
}

.dl-card__link:hover{
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .28);
}

.dl-card__link:hover .dl-card__cta{
  transform: translateY(-1px);
  box-shadow: 0 14px 22px rgba(0, 0, 0, .26);
}

.dl-card__link:active .dl-card__cta{
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .22);
}

/* Закрытая модалка не должна перекрывать интерфейс */
.modal{
  pointer-events: none;
}

/* Открытая модалка — да, должна быть кликабельной */
.modal.open{
  pointer-events: auto;
}

/* OFFCANVAS styles moved to header.css */


/* Опечатка в списках (у тебя было list-style: di) */
.no-reset .text_spoiler ol li,
.no-reset .dlecontent ol li,
.no-reset ol li{
  list-style: decimal !important;
}

/* STATIC PAGE WIDTH */
.basecont--static,
.dpad--static{ width: 100%; }

/* Header block */
.static-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin: 0 0 12px;
  padding: 10px 12px;

  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(17,24,39,.06);
}

.static-title{
  margin: 0;
  font-weight: 900;
  font-size: 30px;
  line-height: 1.15;
  color: #111827;
}

/* Nice outlined title */
.static-title__inner{
  display: inline-block;
  padding: 8px 12px;

  border-radius: 14px;
  border: 2px solid rgba(46, 204, 113, .35);
  background: linear-gradient(180deg, #ffffff 0%, #f3fff7 100%);
}

/* Edit button (DLE [edit] outputs <a>) */
.static-tools a{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 9px 12px;
  border-radius: 12px;

  text-decoration: none;
  font-weight: 800;
  font-size: 13px;

  color: #1c8a3a;
  background: rgba(46, 204, 113, .12);
  border: 1px solid rgba(46, 204, 113, .35);

  transition: .15s ease;
  white-space: nowrap;
}

.static-tools a:hover{
  background: rgba(46, 204, 113, .18);
  border-color: rgba(46, 204, 113, .55);
}

.static-tools a i{ font-size: 14px; }

/* Content card */
.static-card{
  width: 100%;
  background: #fff;
  border: 1px solid #e7eaf0;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(17,24,39,.06);
  padding: 16px 18px;
}

/* Typography */
.content--static{
  color: #1f2937;
  font-size: 15px;
  line-height: 1.7;
}

.content--static a{
  color: #137a2f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(46, 204, 113, .55);
  text-underline-offset: 3px;
}

.content--static a:hover{
  text-decoration-color: rgba(46, 204, 113, .95);
}

.content--static img,
.content--static iframe,
.content--static video{
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Pagination (matches your devtools HTML) */
.static-pages{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Base pill for links and spans */
.pagination a,
.pagination span{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 40px;
  min-width: 40px;
  padding: 0 12px;

  border-radius: 12px;
  background: #fff;
  border: 1px solid #e7eaf0;
  color: #111827;
  text-decoration: none;
  font-weight: 800;

  box-shadow: 0 10px 22px rgba(17,24,39,.05);
}

/* Hover for links */
.pagination a:hover{
  background: #f7f8fb;
  border-color: #cfd6e3;
}

/* Current page is span (but NOT nav_ext, and we override disabled-arrow span below) */
.pagination span:not(.nav_ext){
  background: rgba(46, 204, 113, .14);
  border-color: rgba(46, 204, 113, .40);
  color: #0b3b22;
}

/* Ellipsis */
.pagination span.nav_ext{
  min-width: auto;
  padding: 0 8px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #6b7280;
}

/* Disabled arrow is rendered as: <span><svg class="... btn"></svg></span> */
.pagination span > svg.btn{
  /* just in case svg gets styles */
  font-size: 14px;
}

/* Override the parent <span> that contains svg: make it disabled-looking */
.pagination span:has(> svg){
  /* if :has supported — nice, but not required */
}

/* Fallback: style span when it contains svg by targeting svg and resetting parent via more specific rules */
.pagination span > svg{
  width: 14px;
  height: 14px;
}

/* Make the arrow-span look disabled */
.pagination span > svg{
  color: #9ca3af;
}
.pagination span > svg{
  /* keep icon centered, parent pill already does */
}
.pagination span > svg{
  /* no-op, but keeps specificity */
}
.pagination span > svg{
  /* no-op */
}

/* реально отключаем “активный зелёный” для span со стрелкой */
.pagination span > svg.btn{
  color: #9ca3af;
}
.pagination span > svg.btn{
  /* parent is first span usually; reset it */
}
.pagination span:has(> svg.btn){
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
}

/* Если :has не поддерживается (старые браузеры) — жёстко по факту: стрелка-span обычно самый первый */
.pagination > span:first-child{
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
}

/* Arrow links (next/prev when available) */
.pagination a > svg.btn{
  width: 14px;
  height: 14px;
  color: #111827;
}

/* Mobile */
@media (max-width: 720px){
  .static-head{
    flex-direction: column;
    align-items: flex-start;
  }
  .static-title{ font-size: 22px; }
  .static-card{ padding: 14px; }
}

/* footer.tpl */
:root{
  --footer-bg: #0f1115;
  --footer-bg-2: #0b0d11;
  --footer-border: rgba(255,255,255,.08);
  --footer-text: rgba(255,255,255,.78);
  --footer-muted: rgba(255,255,255,.55);
  --footer-title: rgba(255,255,255,.92);
  --footer-accent: #2bd67b;
  --footer-accent-2: #4ea1ff;
  --radius: 14px;
}

.site-footer{
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 1px solid var(--footer-border);
}

.container-footer{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-top{
  padding: 34px 0;
}

.footer-grid{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.footer-col{ min-width: 0; }

.footer-title{
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: .02em;
  color: var(--footer-title);
  text-transform: uppercase;
}

.footer-brand{
  display: inline-block;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: .02em;
  color: #fff;
  text-decoration: none;
}

.footer-tagline{
  margin: 10px 0 14px;
  color: var(--footer-muted);
  line-height: 1.5;
}

.footer-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(43,214,123,.16), rgba(43,214,123,.08));
  border: 1px solid rgba(43,214,123,.35);
  color: #eafff4;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.footer-btn:hover{
  border-color: rgba(43,214,123,.6);
  background: linear-gradient(180deg, rgba(43,214,123,.22), rgba(43,214,123,.10));
}

.footer-btn--ghost{
  background: rgba(255,255,255,.04);
  border: 1px solid var(--footer-border);
  color: rgba(255,255,255,.85);
}

.footer-btn--ghost:hover{
  border-color: rgba(78,161,255,.55);
}

.footer-menu,
.footer-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-link{
  color: rgba(255,255,255,.78);
  text-decoration: none;
}

.footer-link:hover{
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(43,214,123,.7);
  text-underline-offset: 3px;
}

.footer-link--brand{
  color: #fff;
  font-weight: 700;
}

.footer-counters{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-counters a{
  display: inline-flex;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--footer-border);
}

.footer-counters a:hover{
  border-color: rgba(255,255,255,.16);
}

.footer-disclaimer{
  background: var(--footer-bg-2);
  border-top: 1px solid var(--footer-border);
  border-bottom: 1px solid var(--footer-border);
  padding: 14px 0;
}

.footer-details{
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--footer-border);
  padding: 10px 12px;
}

.footer-summary{
  cursor: pointer;
  font-weight: 700;
  color: rgba(255,255,255,.88);
  list-style: none;
}

.footer-summary::-webkit-details-marker{ display:none; }

.footer-detailsbody{
  padding-top: 10px;
}

.disclaimer-text{
  margin: 0;
  color: var(--footer-muted);
  line-height: 1.55;
  font-size: 13px;
}

.footer-bottom{
  padding: 16px 0 20px;
}

.footer-bottomrow{
  display: grid;
  gap: 8px;
}

.footer-copy{
  color: rgba(255,255,255,.68);
  font-size: 13px;
}

.footer-note{
  color: rgba(255,255,255,.45);
  font-size: 12.5px;
  line-height: 1.4;
}

/* Адаптив */
@media (max-width: 980px){
  .footer-grid{
    grid-template-columns: 1.6fr 1fr 1fr;
  }
  .footer-counterscol{
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px){
  .footer-grid{
    grid-template-columns: 1fr;
  }
}

/* TOP100 layout */
.basecont--top100,
.dpad--top100{ width: 100%; }

.top100-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  margin: 0 0 12px;
  padding: 10px 12px;

  background:#fff;
  border:1px solid #e7eaf0;
  border-radius:14px;
  box-shadow:0 10px 24px rgba(17,24,39,.06);
}

.top100-title{
  margin:0;
  font-weight:900;
  font-size:30px;
  line-height:1.15;
  color:#111827;
}

.top100-title__inner{
  display:inline-flex;
  align-items:center;
  gap:10px;

  padding:8px 12px;
  border-radius:14px;

  border:2px solid rgba(255,193,7,.35);
  background: linear-gradient(180deg,#ffffff 0%,#fffbeb 100%);
}

.top100-title__icon{
  color:#f6b800;
  font-size:18px;
}

/* Edit button */
.top100-tools a{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:9px 12px;
  border-radius:12px;

  text-decoration:none;
  font-weight:800;
  font-size:13px;

  color:#1c8a3a;
  background: rgba(46,204,113,.12);
  border:1px solid rgba(46,204,113,.35);

  transition:.15s ease;
  white-space:nowrap;
}
.top100-tools a:hover{
  background: rgba(46,204,113,.18);
  border-color: rgba(46,204,113,.55);
}
.top100-tools a i{ font-size:14px; }

/* List spacing + CSS-counter numbering */
.top100-list{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:12px;

  counter-reset: top100;
}

/* Переключатель “Год / Месяц / Неделя” */
.top100-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 0 0 12px;
}

.top100-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  height: 38px;
  padding: 0 14px;

  border-radius: 12px;
  background: #fff;
  border: 1px solid #e7eaf0;
  color: #111827;
  text-decoration: none;
  font-weight: 900;

  box-shadow: 0 10px 22px rgba(17,24,39,.05);
  transition: .15s ease;
}

.top100-tab:hover{
  background:#f7f8fb;
  border-color:#cfd6e3;
}

.top100-tab.is-active{
  background: rgba(46,204,113,.14);
  border-color: rgba(46,204,113,.40);
  color: #0b3b22;
}

/* =========================
   EmpireG Aside (scoped)
========================= */
.eg-aside{
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 300px;
}


.eg-widget{
  border-radius: 0 !important;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  overflow: hidden;
}

.eg-widget__head{
  padding: 12px 12px;
  background: linear-gradient(180deg, rgba(15,23,42,.03) 0%, rgba(15,23,42,.00) 100%);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.eg-widget__title{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  color: rgba(15,23,42,.88);
}

.eg-widget__title i{
  width: 18px;
  text-align: center;
  color: #16a34a;
}

.eg-widget__body{
  padding: 12px;
}

.eg-list{
  list-style: none;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 6px;
}

.eg-list--compact{ gap: 6px; padding-top: 10px; }
.eg-list--sub{ padding: 0; gap: 6px; }
.eg-link{
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.88);
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.eg-link:hover{
  transform: translateY(-1px);
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
}
.eg-link i{
  width: 18px;
  text-align: center;
  color: rgba(15,23,42,.60);
}
.eg-link b{ font-weight: 700; }
.eg-link--sub{
  min-height: 36px;
  padding: 8px 10px;
  background: rgba(15,23,42,.02);
}

/* Важные секции: Поддержать проект */
.eg-widget--primary{
  border: 1px solid rgba(34,197,94,.25);
  box-shadow: 0 16px 40px rgba(34,197,94,.10);
}
.eg-widget--primary .eg-widget__head{
  background: linear-gradient(90deg, rgba(34,197,94,.16) 0%, rgba(34,197,94,.06) 35%, rgba(255,255,255,0) 100%);
}
.eg-widget--primary .eg-widget__title i{ color: #16a34a; }

/* Важные секции: Партнеры */
.eg-widget--partners{
  border: 1px solid rgba(37,99,235,.18);
  box-shadow: 0 16px 40px rgba(37,99,235,.08);
}
.eg-widget--partners .eg-widget__head{
  background: linear-gradient(90deg, rgba(37,99,235,.14) 0%, rgba(37,99,235,.06) 35%, rgba(255,255,255,0) 100%);
}
.eg-widget--partners .eg-widget__title i{ color: #2563eb; }
.eg-link--partner:hover{
  background: rgba(37,99,235,.08);
  border-color: rgba(37,99,235,.18);
}

/* Спец акценты на ссылки */
.eg-link--vip i{ color: #f59e0b; }
.eg-link--boosty i{ color: #f97316; }

/* Accordion on details/summary */
.eg-acc{
  padding: 10px;
  display: grid;
  gap: 8px;
}

.eg-acc__item{
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.02);
  border-radius: 14px;
  overflow: hidden;
}

.eg-acc__summary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(15,23,42,.88);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.eg-acc__summary::-webkit-details-marker{ display: none; }

.eg-acc__summary span{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eg-acc__summary i{ color: rgba(15,23,42,.65); width: 18px; text-align: center; }

.eg-acc__summary::after{
  content: "\f078";              /* fa-chevron-down */
  font: var(--fa-font-solid);    /* важно для FA7 */
  color: rgba(15,23,42,.55);
  transition: transform .15s ease;
  margin-left: auto;
}
.eg-acc__item[open] .eg-acc__summary::after{
  transform: rotate(180deg);
}

.eg-acc__body{
  padding: 0 10px 10px;
}

/* Sub-accordion (years) */
.eg-acc__subitem{
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.70);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 8px;
}
.eg-acc__subsummary{
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding: 9px 10px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(15,23,42,.82);
  /* flex-раскладка — чтобы иконка-стрелка была справа */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: background-color .15s ease;
}
.eg-acc__subsummary::-webkit-details-marker{ display: none; }
.eg-acc__subsummary:hover{
  background: rgba(15,23,42,.04);
  border-radius: 10px;
}
.eg-acc__subbody{ padding: 0 10px 10px; }

/* если DLE catmenu выдаёт просто <li><a> без наших классов — подстрахуем */
.eg-nav .submenu,
.eg-nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.eg-nav li{ margin: 0; }
.eg-nav a{
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: rgba(15,23,42,.86);
  border: 1px solid rgba(15,23,42,.06);
  background: rgba(15,23,42,.02);
}
.eg-nav a:hover{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.22);
}

/* отключаем псевдо-иконку (она и давала квадратик) */
.eg-acc__summary::after,
.eg-acc__subsummary::after{
  content: none !important;
}

/* caret-иконка как обычный Font Awesome <i> */
.eg-acc__caret{
  margin-left: auto;
  color: rgba(15,23,42,.55);
  transition: transform .15s ease;
}

/* поворот при открытии — только прямой caret summary, не вложенных subitem */
.eg-acc__item[open] > .eg-acc__summary > .eg-acc__caret{
  transform: rotate(180deg);
}

/* если хочешь чуть меньше в под-аккордеоне */
.eg-acc__caret--sub{
  font-size: 0.95em;
}

/* если где-то был caret через ::after — убираем */
.eg-acc__summary::after,
.eg-acc__subsummary::after{
  content: none !important;
}

.eg-acc__summary,
.eg-acc__subsummary{
  display: flex;
  align-items: center;
  gap: 10px;
}

/* стрелка справа */
.eg-acc__caret{
  margin-left: auto;
  color: rgba(15,23,42,.55);
  transition: transform .15s ease;
}

/* поворот при открытии */
.eg-acc__item[open] > .eg-acc__summary .eg-acc__caret{
  transform: rotate(180deg);
}

.eg-acc__subitem[open] > .eg-acc__subsummary .eg-acc__caret,
details.eg-acc__subitem[open] > summary.eg-acc__subsummary .eg-acc__caret{
  transform: rotate(180deg);
}

/* =========================
   Google Translate fixes
   ========================= */
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
/* Only hide the top-bar skip-translate, not the widget inside our dropdown */
body > .skiptranslate:not(#google_translate_element) { display: none !important; }
.goog-te-spinner-pos { display: none !important; }
/* Prevent GT from shifting body */
.translated-ltr body, .translated-rtl body { top: 0 !important; }

/* =========================
   Site overlay for offcanvas
   ========================= */
.site-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 14000;
}
body.offcanvas-open .site-overlay,
body.no-scroll .site-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Последние комментарии */
.eg-comments-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.eg-comment-item{
  display:flex;
  gap:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.eg-comment-item:hover{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.eg-comment-item__avatar{
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:50%;
  overflow:hidden;
  display:block;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.15);
}

.eg-comment-item__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.eg-comment-item__body{
  min-width:0;
  flex:1 1 auto;
}

.eg-comment-item__top{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  margin-bottom:6px;
  font-size:12px;
  line-height:1.2;
  opacity:.9;
}

.eg-comment-item__user{
  font-weight:600;
  text-decoration:none;
  color: inherit;
  max-width: 55%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.eg-comment-item__dot{
  opacity:.55;
}

.eg-comment-item__date{
  opacity:.75;
  white-space:nowrap;
}

.eg-comment-item__title{
  display:block;
  color: inherit;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  line-height:1.25;
  margin-bottom:6px;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.eg-comment-item__title:hover{
  text-decoration: underline;
}

.eg-comment-item__text{
  font-size:13px;
  line-height:1.35;
  opacity:.9;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.eg-comment-item__text img,
.eg-comment-item__text video,
.eg-comment-item__text iframe{
  display:none;
}

.eg-comment-item__bottom{
  margin-top:8px;
}

.eg-comment-item__goto{
  font-size:12px;
  text-decoration:none;
  opacity:.8;
}

.eg-comment-item__goto:hover{
  opacity:1;
  text-decoration:underline;
}

/* если блок реально показывается в сайдбаре */
.eg-lastcomments .eg-widget__body{
  padding: 0;
}

.eg-widget__foot{
  padding: 12px 12px 12px; /* отступы слева/справа */
}

.eg-widget__more{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  width:100%;
  padding:11px 14px;
  border-radius:12px;

  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:13px;
  letter-spacing:.2px;

  background: linear-gradient(135deg, #2b2f36 0%, #3a404a 100%);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);

  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, border-color .15s ease;
}

.eg-widget__more:hover{
  filter: brightness(1.06);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 14px 28px rgba(0,0,0,.26);
  transform: translateY(-1px);
}

.eg-widget__more:active{
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0,0,0,.20);
}

@media (max-width: 800px) {
  .aside_r { 
    display: none !important; 
  }
}

@media (max-width: 800px) {
  .hide_mobile {
    display: none !important;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ===== EmpireG: Comments (красиво и без ломания DLE-кнопок) ===== */
.bcomment.item{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(2, 6, 23, .08);
  padding: 14px;
  margin: 0 0 14px;
  display: flex;
  gap: 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;

  /* FIX: убрать внутренний скроллинг */
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
}

.bcomment.item:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 52px rgba(2, 6, 23, .12);
  border-color: rgba(15, 23, 42, .16);
}

/* если это блок "последние комментарии" — чуть мягче */
.bcomment.item.lastcomments{
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

/* иногда скролл вешают на внутренний контейнер */
.bcomment.item > div{
  max-height: none !important;
  overflow: visible !important;
}

/* ===== Аватар ===== */
.bcomment .ava_usr{
  flex: 0 0 56px;
  width: 56px;
}

.bcomment .ava_bl span{
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .16);
  border: 1px solid rgba(255,255,255,.10);
}

.bcomment .ava_bl img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== Контент ===== */
.bcomment .cont_comm{
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Верхняя строка: автор | группа | дата */
.bcomment .cont_comm > div:first-child{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.bcomment .cont_comm > div:first-child span{
  opacity: .55;
}

/* Заголовок новости в lastcomments */
.bcomment.lastcomments h3{
  margin: 8px 0 10px !important;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

/* Текст комментария */
.bcomment.item{
  color: #0f172a;
  font-size: 14px;
  line-height: 1.55;
}

/* ===== Рейтинг: чип ===== */
.bcomment .ratebox,
.bcomment .ratebox2,
.bcomment .ratebox3{
  margin-top: 8px;
}

.bcomment .ratebox2 ul.reset,
.bcomment .ratebox3 ul.reset{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid rgba(2,6,23,.08);
  margin: 0;
}

.bcomment .ratebox2 ul.reset li,
.bcomment .ratebox3 ul.reset li{
  margin: 0;
  padding: 0;
}

.bcomment .ratebox2 img,
.bcomment .ratebox3 img{
  width: 14px !important;
  height: 14px !important;
  display: block;
}

/* ===== Подпись ===== */
.bcomment .signature{
  margin-top: 12px;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(15,23,42,.18), rgba(15,23,42,0));
}

.bcomment .slink{
  margin-top: 10px;
  color: #64748b;
  font-size: 13px;
}

/* ===== Нижние действия ===== */
.bcomment .comedit{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15,23,42,.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.bcomment .comedit ul.reset{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Стилизуем ссылки, которые реально генерит DLE */
.bcomment .comedit ul.reset li a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}

.bcomment .comedit ul.reset li a:hover{
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, .35);
  box-shadow: 0 14px 30px rgba(2, 6, 23, .10);
  color: #3b82f6;
}

/* “опасные” кнопки (по ссылке) */
.bcomment .comedit ul.reset li a[href*="spam"],
.bcomment .comedit ul.reset li a[href*="complaint"],
.bcomment .comedit ul.reset li a[href*="del"],
.bcomment .comedit ul.reset li a[href*="delete"]{
  color: #0f172a;
}

.bcomment .comedit ul.reset li a[href*="spam"]:hover,
.bcomment .comedit ul.reset li a[href*="complaint"]:hover,
.bcomment .comedit ul.reset li a[href*="del"]:hover,
.bcomment .comedit ul.reset li a[href*="delete"]:hover{
  border-color: rgba(239, 68, 68, .40);
  color: #ef4444;
}

/* ===== Мобилка ===== */
@media (max-width: 520px){
  .bcomment.item{ padding: 12px; }
  .bcomment .ava_usr{ flex-basis: 46px; width: 46px; }
  .bcomment .ava_bl span{ width: 46px; height: 46px; border-radius: 14px; }
}

/* ===== EmpireG: PM (SCOPED) ===== */
.eg-pm{
  --eg-radius: 14px;
  --eg-border: rgba(15, 23, 42, .10);
  --eg-shadow: 0 14px 40px rgba(2, 6, 23, .08);
  --eg-text: #0f172a;
  --eg-muted: #64748b;
  --eg-bg: #ffffff;
  --eg-soft: #f8fafc;
  --eg-blue: #3b82f6;
  --eg-red: #ef4444;
}

/* Заголовки */
.eg-pm .eg-pm__heading{ margin-bottom: 12px; }
.eg-pm .eg-pm__heading h2{
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--eg-text);
}

/* Лэйаут */
.eg-pm .eg-pm__layout{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: start;
}
@media (max-width: 900px){
  .eg-pm .eg-pm__layout{ grid-template-columns: 1fr; }
}

/* Левая колонка: отступ между карточками */
.eg-pm .eg-pm__side{
  display: grid;
  gap: 16px;
}

/* Карточки */
.eg-pm .eg-card{
  background: var(--eg-bg);
  border: 1px solid var(--eg-border);
  border-radius: var(--eg-radius);
  box-shadow: var(--eg-shadow);
  padding: 14px;
}
.eg-pm .eg-card__title{
  font-weight: 800;
  color: var(--eg-text);
  margin-bottom: 10px;
}
.eg-pm .eg-card__text{ color: var(--eg-text); }

/* Статус/прогресс */
.eg-pm .eg-pmProgress{ margin: 10px 0 8px; }

/* Прогрессбар DLE (если классы совпадают) */
.eg-pm .eg-pmProgress .pm_progressbar,
.eg-pm .eg-pmProgress .progress,
.eg-pm .eg-pmProgress .progressbar{
  height: 10px;
  border-radius: 999px;
  background: #eaf1ff;
  overflow: hidden;
  border: 1px solid rgba(59,130,246,.18);
}
.eg-pm .eg-pmProgress .pm_progressbar span,
.eg-pm .eg-pmProgress .progress span,
.eg-pm .eg-pmProgress .progressbar span{
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59,130,246,.95), rgba(37,99,235,.95));
}

.eg-pm .eg-pmStatus__note{
  color: var(--eg-muted);
  font-size: 13px;
}

/* Навигация */
.eg-pm .eg-pmNav__links{
  display: grid;
  gap: 10px;
}
.eg-pm .eg-pmNav__link{
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, var(--eg-soft) 100%);
  border: 1px solid rgba(15, 23, 42, .12);
  color: var(--eg-text);
  font-weight: 700;
}
.eg-pm .eg-pmNav__link--accent{
  border-color: rgba(59,130,246,.35);
}
.eg-pm .eg-pmNav a.eg-pmNav__link{
  text-decoration: none;
}
.eg-pm .eg-pmNav a.eg-pmNav__link:hover{
  border-color: rgba(59,130,246,.45);
  color: var(--eg-blue);
}

/* Инпуты */
.eg-pm .eg-input{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  padding: 10px 12px;
  background: #fff;
  outline: none;
}
.eg-pm .eg-input:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}
.eg-pm .eg-input--sm{ max-width: 200px; }

/* Кнопки */
.eg-pm .eg-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  background: linear-gradient(180deg, #ffffff 0%, var(--eg-soft) 100%);
  color: var(--eg-text);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
}
.eg-pm .eg-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 14px 30px rgba(2, 6, 23, .10);
  color: var(--eg-blue);
}

/* Primary: фикс hover, чтобы "низ не пропадал" */
.eg-pm .eg-btn--primary{
  background: linear-gradient(180deg, rgba(59,130,246,.95) 0%, rgba(37,99,235,.95) 100%);
  border-color: rgba(37,99,235,.65);
  border-width: 1px;
  background-clip: padding-box;
  color: #fff;
}
.eg-pm .eg-btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(2, 6, 23, .10);
  border-color: rgba(37,99,235,.95);
  background: linear-gradient(180deg, rgba(59,130,246,1) 0%, rgba(37,99,235,1) 100%);
  color: #fff;
}

.eg-pm .eg-btn--mini{
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 800;
}

/* Форма */
.eg-pm .eg-pmForm__table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.eg-pm .eg-pmForm__label{
  width: 140px;
  color: var(--eg-muted);
  font-weight: 700;
  vertical-align: top;
  padding-top: 10px;
}
@media (max-width: 700px){
  .eg-pm .eg-pmForm__label{ width: 110px; }
}
.eg-pm .eg-pmForm__actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Одинаковый размер кнопок "Отправить" и "Просмотр" */
.eg-pm .eg-pmForm__actions .eg-btn{
  min-height: 44px;
  padding: 10px 16px;
  line-height: 1;
}
.eg-pm .eg-pmForm__actions input.eg-btn{
  -webkit-appearance: none;
  appearance: none;
}

/* Editor контейнер */
.eg-pm .eg-editor{
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 12px;
  padding: 10px;
}

/* Тред */
.eg-pm .eg-pmThread__list{
  display: grid;
  gap: 12px;
}
.eg-pm .eg-pmMsg{
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
@media (max-width: 520px){
  .eg-pm .eg-pmMsg{ grid-template-columns: 64px 1fr; }
}
.eg-pm .eg-pmMsg__ava{
  position: relative;
  width: 78px;
  height: 78px;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 10px 24px rgba(2, 6, 23, .16);
  border: 1px solid rgba(255,255,255,.10);
}
@media (max-width: 520px){
  .eg-pm .eg-pmMsg__ava{ width: 64px; height: 64px; border-radius: 14px; }
}
.eg-pm .eg-pmMsg__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.eg-pm .eg-pmMsg__groupIcon{
  position: absolute;
  left: 6px;
  bottom: 6px;
}

.eg-pm .eg-pmMsg__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.eg-pm .eg-pmMsg__meta{
  color: var(--eg-muted);
  font-size: 13px;
}
.eg-pm .eg-pmMsg__meta b{ color: var(--eg-text); }

.eg-pm .eg-pmMsg__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.eg-pm .eg-link{
  color: var(--eg-text);
  font-weight: 800;
}
.eg-pm .eg-link--danger{ color: var(--eg-text); }
.eg-pm .eg-pmMsg__actions a{ text-decoration: none; }
.eg-pm .eg-pmMsg__actions a:hover .eg-link{ color: var(--eg-blue); }
.eg-pm .eg-pmMsg__actions a:hover .eg-link--danger{ color: var(--eg-red); }

.eg-pm .eg-pmMsg__text{
  margin-top: 10px;
  color: var(--eg-text);
  font-size: 14px;
  line-height: 1.55;
}

.eg-pm .eg-pmMsg__bottom{
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.eg-pm .eg-pmThread__editor{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed rgba(15,23,42,.16);
}
.eg-pm .eg-pmThread__submit{
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

/* ===== EmpireG: User Profile (SCOPED FULL) ===== */
.eg-profile{
  --eg-radius: 14px;
  --eg-border: rgba(15, 23, 42, .10);
  --eg-shadow: 0 14px 40px rgba(2, 6, 23, .08);
  --eg-text: #0f172a;
  --eg-muted: #64748b;
  --eg-bg: #ffffff;
  --eg-soft: #f8fafc;
  --eg-blue: #3b82f6;
}

/* Header */
.eg-profile .pheading{
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 28px rgba(2,6,23,.06);
  margin-bottom: 12px;
}
.eg-profile .pheading h2{
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .2px;
  color: var(--eg-text);
}
.eg-profile .pheading h2 span{
  color: var(--eg-blue);
}

/* Main card feel */
.eg-profile .basecont{
  background: radial-gradient(1200px 420px at 30% -10%, rgba(59,130,246,.10), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--eg-border);
  border-radius: var(--eg-radius);
  box-shadow: var(--eg-shadow);
  padding: 14px;
}

/* Grid */
.eg-profile .userinfo.eg-profile__grid{
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  align-items: stretch;
}
@media (max-width: 900px){
  .eg-profile .userinfo.eg-profile__grid{ grid-template-columns: 1fr; }
}

/* Kill old floats/width */
.eg-profile .userinfo .lcol,
.eg-profile .userinfo .rcol{
  float: none;
  width: auto;
}

/* Left & Right blocks */
.eg-profile .eg-profile__left,
.eg-profile .eg-profile__right{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--eg-radius);
  box-shadow: 0 14px 34px rgba(2,6,23,.06);
  padding: 18px;
  text-align: center;
}

/* Avatar centered + spacing */
.eg-profile .eg-profile__avaWrap{
  display: flex;
  justify-content: center;
  margin-top: 18px;
  margin-bottom: 14px;
}
.eg-profile .ava_bl{
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 24px rgba(2, 6, 23, .16);
  outline: 4px solid rgba(59,130,246,.12);
  outline-offset: 2px;
}
.eg-profile .ava_bl img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .25s ease;
}
.eg-profile .ava_bl:hover img{
  transform: scale(1.07);
}

/* Contacts centered */
.eg-profile .eg-profile__contacts{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.eg-profile .eg-profile__contactItem{
  width: 100%;
  max-width: 260px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
  font-weight: 800;
  color: var(--eg-text);
}
.eg-profile .eg-profile__contactItem a{
  text-decoration: none;
  color: var(--eg-text);
  font-weight: 900;
}
.eg-profile .eg-profile__contactItem a:hover{
  color: var(--eg-blue);
}

/* Meta/About centered */
.eg-profile .eg-profile__meta,
.eg-profile .eg-profile__about{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.eg-profile .eg-profile__meta li,
.eg-profile .eg-profile__about li{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
  color: var(--eg-text);
}

/* Labels */
.eg-profile .grey{
  display: block;
  text-align: center;
  margin-bottom: 4px;
  color: rgba(100,116,139,.95);
  font-weight: 900;
}
.eg-profile .eg-profile__meta b{
  font-weight: 950;
}

/* Status */
.eg-profile .eg-profile__statusRow{
  display: grid;
  justify-items: center;
  gap: 6px;
}
.eg-profile .eg-profile__statusVal img{
  vertical-align: middle;
}

/* About separator */
.eg-profile .eg-profile__about{
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(15,23,42,.16);
}

/* ===== STATS: 3 cols x 2 rows with equal height feel ===== */
.eg-profile .eg-profile__stats{
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.2fr 1.2fr .8fr;
  grid-template-rows: 1fr 1fr;
  align-items: stretch;
}
.eg-profile .eg-stat{
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
  display: grid;
  gap: 8px;
  text-align: center;
  min-height: 110px;
}
.eg-profile .eg-stat--news{ grid-column: 1; grid-row: 1 / span 2; }
.eg-profile .eg-stat--comm{ grid-column: 2; grid-row: 1 / span 2; }
.eg-profile .eg-stat--reg{  grid-column: 3; grid-row: 1; }
.eg-profile .eg-stat--last{ grid-column: 3; grid-row: 2; }

@media (max-width: 1000px){
  .eg-profile .eg-profile__stats{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .eg-profile .eg-stat--news,
  .eg-profile .eg-stat--comm,
  .eg-profile .eg-stat--reg,
  .eg-profile .eg-stat--last{
    grid-column: auto;
    grid-row: auto;
  }
}
@media (max-width: 520px){
  .eg-profile .eg-profile__stats{ grid-template-columns: 1fr; }
}

/* Stat header + RSS on right side */
.eg-profile .eg-stat__head{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.eg-profile .eg-stat__label{
  color: rgba(100,116,139,.95);
  font-weight: 950;
  font-size: 12px;
  letter-spacing: .35px;
  text-transform: uppercase;
}
.eg-profile .eg-stat__rss{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}
.eg-profile .eg-stat__rss img{
  width: 18px;
  height: 18px;
  display: block;
}

/* Stat values */
.eg-profile .eg-stat__value{
  color: var(--eg-text);
  font-weight: 950;
  font-size: 30px;
  line-height: 1.05;
}
.eg-profile .eg-stat__value--small{
  font-size: 13px;
  line-height: 1.35;
  font-weight: 950;
  word-break: break-word;
}

/* Buttons under stats: {news} / {comments} => styled as big buttons */
.eg-profile .eg-stat__actions{
  margin-top: 2px;
  display: grid;
  justify-items: center;
  gap: 8px;
}
.eg-profile .eg-stat__actions a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,.70);
  background: linear-gradient(180deg, rgba(59,130,246,1) 0%, rgba(37,99,235,1) 100%);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .35px;
  box-shadow: 0 10px 22px rgba(2, 6, 23, .06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.eg-profile .eg-stat__actions a:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,1);
  box-shadow: 0 14px 30px rgba(2, 6, 23, .10);
}

/* Edit button: big uppercase */
.eg-profile .eg-profile__edit{
  margin-top: 14px;
  display: grid;
  justify-items: center;
}
.eg-profile .eg-profile__edit a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.80);
  background: linear-gradient(180deg, rgba(59,130,246,1) 0%, rgba(37,99,235,1) 100%);
  color: #fff;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .45px;
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.eg-profile .eg-profile__edit a:hover{
  transform: translateY(-1px);
  border-color: rgba(37,99,235,1);
  box-shadow: 0 20px 52px rgba(2,6,23,.14);
}

/* Hover “life” */
.eg-profile .eg-profile__left,
.eg-profile .eg-profile__right,
.eg-profile .eg-stat,
.eg-profile .eg-profile__meta li,
.eg-profile .eg-profile__about li,
.eg-profile .eg-profile__contactItem{
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.eg-profile .eg-stat:hover,
.eg-profile .eg-profile__meta li:hover,
.eg-profile .eg-profile__about li:hover,
.eg-profile .eg-profile__contactItem:hover{
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.22);
  box-shadow: 0 16px 34px rgba(2,6,23,.08);
}

/* ===== Edit profile block (#options) ===== */
.eg-profile #options{
  margin-top: 14px;
}

.eg-profile #options .baseform{
  background: var(--eg-bg);
  border: 1px solid var(--eg-border);
  border-radius: var(--eg-radius);
  box-shadow: var(--eg-shadow);
  padding: 14px;
}

.eg-profile #options .tableform{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.eg-profile #options .tableform td.label{
  width: 220px;
  color: var(--eg-muted);
  font-weight: 950;
  vertical-align: top;
  padding-top: 10px;
}
@media (max-width: 700px){
  .eg-profile #options .tableform td.label{ width: 140px; }
}

.eg-profile #options .f_input,
.eg-profile #options .f_textarea{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, .12);
  padding: 10px 12px;
  background: #fff;
  outline: none;
}
.eg-profile #options .f_input:focus,
.eg-profile #options .f_textarea:focus{
  border-color: rgba(59,130,246,.55);
  box-shadow: 0 0 0 4px rgba(59,130,246,.12);
}

.eg-profile #options .checkbox{
  margin-top: 10px;
  color: var(--eg-text);
}
.eg-profile #options .checkbox label{
  cursor: pointer;
}

.eg-profile #options .fieldsubmit{
  margin-top: 12px;
  display: grid;
  justify-items: center;
}
.eg-profile #options .fieldsubmit .fbutton{
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(37,99,235,.80);
  background: linear-gradient(180deg, rgba(59,130,246,1) 0%, rgba(37,99,235,1) 100%);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(2,6,23,.10);
  text-transform: uppercase;
  letter-spacing: .35px;
}
.eg-profile #options .fieldsubmit .fbutton:hover{
  border-color: rgba(37,99,235,1);
  box-shadow: 0 20px 52px rgba(2,6,23,.14);
}

/* ===== Profile FIX: центр + отступы + левый блок не тянется по высоте ===== */

/* 1) Делаем нормальные отступы внутри всей карточки */
.eg-profile .basecont{
  padding: 24px 22px; /* было 14px */
}

/* 2) Сетка: левый шире, зазор меньше, элементы НЕ растягиваем по высоте */
.eg-profile .userinfo.eg-profile__grid{
  grid-template-columns: 360px 1fr; /* расширили левый */
  gap: 12px;                        /* меньше расстояние между блоками */
  align-items: start;               /* главное: перестаём тянуть левый по высоте */
}

@media (max-width: 900px){
  .eg-profile .userinfo.eg-profile__grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* 3) Отступы сверху/снизу у самих блоков */
.eg-profile .eg-profile__left,
.eg-profile .eg-profile__right{
  margin: 10px 0;   /* отступ сверху и снизу */
  padding-top: 22px;/* визуальный отступ от верха внутри */
  padding-bottom: 22px;
}

/* 4) Левый блок: контент строго по центру, и по ширине и “в кучку” */
.eg-profile .eg-profile__left{
  align-self: start;               /* на всякий случай: не растягивать */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 5) Аватар: центр + отступ сверху (чтобы “дышало”) */
.eg-profile .eg-profile__avaWrap{
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 6px;   /* добавили воздуха сверху */
  margin-bottom: 14px;
}

.eg-profile .ava_bl{
  margin: 0 auto; /* железобетонный центр */
}

/* 6) Кнопки слева: делаем их именно кнопками и строго по центру */
.eg-profile .eg-profile__contacts{
  width: 100%;
  justify-items: center;
}

.eg-profile .eg-profile__contactItem{
  width: 100%;
  max-width: 240px;
  padding: 0;               /* уберём внутренние отступы у li — перенесём их на ссылку */
  background: transparent;  /* чтобы не было “двойной карточки” */
  border: 0;
  box-shadow: none;
}

/* Внутри {email}/{pm} почти всегда ссылка — стилизуем её как кнопку */
.eg-profile .eg-profile__contactItem a{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);
  text-decoration: none;
  color: #0f172a;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .35px;
  text-align: center;
  line-height: 1.2;
}

.eg-profile .eg-profile__contactItem a:hover{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 16px 34px rgba(2,6,23,.08);
  color: #2563eb;
}

/* 7) Правый блок: тоже всё по центру, но без “кривых” растяжек */
.eg-profile .eg-profile__right{
  text-align: center;
}

/* На случай, если где-то мета-строки становятся “двуколоночными” от старых правил */
.eg-profile .eg-profile__meta li,
.eg-profile .eg-profile__about li{
  text-align: center;
}

/* ===== LEFT COLUMN like red frame (mini card) ===== */

/* Сетка: делаем левую колонку шире, расстояние до правой меньше/аккуратнее */
.eg-profile .userinfo.eg-profile__grid{
  grid-template-columns: 420px 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 900px){
  .eg-profile .userinfo.eg-profile__grid{
    grid-template-columns: 1fr;
  }
}

/* Общие отступы внутри белой большой карточки (чтобы сверху/снизу было “воздуха”) */
.eg-profile .basecont{
  padding: 24px 22px;
}

/* Левая колонка больше НЕ карточка: убираем фон/тень/рамку */
.eg-profile .eg-profile__left{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 10px 0;        /* отступ сверху/снизу */
  align-self: start;

  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Мини-карточка внутри левого блока (как на скрине) */
.eg-profile .eg-profile__leftCard{
  width: 260px;          /* ширина “мини-карточки” */
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(2,6,23,.06);
  padding: 18px;
  text-align: center;

  margin-top: 6px;       /* небольшой отступ сверху */
}

/* На мобиле мини-карточку центруем */
@media (max-width: 900px){
  .eg-profile .eg-profile__left{
    justify-content: center;
    align-items: center;
  }
}

/* Аватар по центру */
.eg-profile .eg-profile__avaWrap{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 0 14px 0;
}
.eg-profile .ava_bl{ margin: 0 auto; }

/* Кнопки (email/pm): делаем именно “кнопками”, ровно по центру */
.eg-profile .eg-profile__contacts{
  width: 100%;
  justify-items: center;
}
.eg-profile .eg-profile__contactItem{
  width: 100%;
  max-width: 220px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

/* Обычно {email} и {pm} = ссылки. Стиль под ссылку-кнопку */
.eg-profile .eg-profile__contactItem a{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);

  text-decoration: none;
  color: #0f172a;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .35px;
  line-height: 1.15;
}
.eg-profile .eg-profile__contactItem a:hover{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 16px 34px rgba(2,6,23,.08);
  color: #2563eb;
}

/* Правый блок — оставляем карточкой, но добавим отступы сверху/снизу как просил */
.eg-profile .eg-profile__right{
  margin: 10px 0;
  padding-top: 22px;
  padding-bottom: 22px;
}

/* ===== FIX: no empty space between left mini-card and right card ===== */

/* 1) Сетка: левый столбец по ширине mini-card (убираем пустоту) */
.eg-profile .userinfo.eg-profile__grid{
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 14px;             /* расстояние между левым и правым блоком */
  align-items: start;    /* левый не растягиваем по высоте */
}

/* 2) Размер mini-card (левый блок как на скрине) */
.eg-profile .eg-profile__left{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 10px 0 !important;
  align-self: start !important;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.eg-profile .eg-profile__leftCard{
  width: 280px;          /* можешь поставить 260/300 под вкус */
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(2,6,23,.06);
  padding: 18px;
  text-align: center;
}

/* 3) Аватар — строго по центру */
.eg-profile .eg-profile__avaWrap{
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 4px 0 14px 0;
}
.eg-profile .ava_bl{ margin: 0 auto; }

/* 4) Кнопки слева: чтобы были ровные и по центру */
.eg-profile .eg-profile__contacts{
  width: 100%;
  justify-items: center;
}
.eg-profile .eg-profile__contactItem{
  width: 100%;
  max-width: 230px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.eg-profile .eg-profile__contactItem a{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  box-shadow: 0 10px 22px rgba(2,6,23,.05);

  text-decoration: none;
  color: #0f172a;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .35px;
  line-height: 1.15;
}
.eg-profile .eg-profile__contactItem a:hover{
  border-color: rgba(59,130,246,.35);
  box-shadow: 0 16px 34px rgba(2,6,23,.08);
  color: #2563eb;
}

/* 5) Правый блок: отступы сверху/снизу (чтобы “дышало”) */
.eg-profile .eg-profile__right{
  margin: 10px 0 !important;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
}

/* 6) Убираем “полоски” сверху/снизу (часто это hr/псевдоэлементы/фон) */
.eg-profile hr{ display: none !important; }

.eg-profile .basecont{
  background: #fff !important;     /* убираем градиенты, которые дают “плоски” */
  background-image: none !important;
}

.eg-profile .basecont:before,
.eg-profile .basecont:after,
.eg-profile .item:before,
.eg-profile .item:after{
  content: none !important;
  display: none !important;
}

/* 7) Адаптив: на мобиле стекаем и центрируем mini-card */
@media (max-width: 900px){
  .eg-profile .userinfo.eg-profile__grid{
    grid-template-columns: 1fr;
  }
  .eg-profile .eg-profile__left{
    justify-content: center;
  }
  .eg-profile .eg-profile__leftCard{
    width: min(320px, 100%);
  }
}

/* ================================
   FIX: lcol/rcol floats break grid
   ================================ */

/* 1) Гасим флоаты и старые ширины ТОЛЬКО внутри профиля */
.eg-profile .userinfo.eg-profile__grid .lcol,
.eg-profile .userinfo.eg-profile__grid .rcol,
.eg-profile .eg-profile__left,
.eg-profile .eg-profile__right{
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
}

/* 2) Правый блок должен уметь сжиматься (иначе тоже бывают наезды/вылазки) */
.eg-profile .eg-profile__right{
  min-width: 0 !important;
}

/* 3) Сетка без пустоты: левый ровно под мини-карточку, правый — резиновый */
.eg-profile .userinfo.eg-profile__grid{
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

/* 4) Левая колонка прозрачная, внутри — мини-карточка на всю ширину колонки */
.eg-profile .eg-profile__left{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 10px 0 !important;

  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.eg-profile .eg-profile__leftCard{
  width: 100%;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(2,6,23,.06);
  padding: 18px;
  text-align: center;
}

/* 5) Мобилка: в столбик и мини-карточку по центру */
@media (max-width: 900px){
  .eg-profile .userinfo.eg-profile__grid{
    grid-template-columns: 1fr;
  }
  .eg-profile .eg-profile__left{
    justify-content: center;
  }
  .eg-profile .eg-profile__leftCard{
    max-width: 320px;
  }
}

/* 6) Убираем “полоски” внутри профиля (если это hr/псевдоэлементы/фоновые линии) */
.eg-profile hr{ display:none !important; }
.eg-profile .basecont{
  background-image: none !important;
}
.eg-profile .basecont:before,
.eg-profile .basecont:after{
  content: none !important;
  display: none !important;
}

/* ===== DLE theme .userinfo OVERRIDE only inside .eg-profile ===== */
.eg-profile .userinfo.eg-profile__grid{
  display: grid !important;
  margin: 0 !important;
  border: 0 !important;
  gap: 14px !important;
  align-items: start !important;

  /* левый = ширина мини-карточки, правый = резиновый */
  grid-template-columns: 280px minmax(0, 1fr) !important;
}

/* прибиваем старые ограничения lcol/rcol из темы */
.eg-profile .userinfo.eg-profile__grid > .lcol,
.eg-profile .userinfo.eg-profile__grid > .rcol{
  flex: initial !important;
  max-width: none !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  text-align: initial !important;
}

/* левый блок в профиле: прозрачный контейнер */
.eg-profile .eg-profile__left{
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 10px 0 !important;
  padding: 0 !important;
  align-self: start !important;

  display: flex;
  justify-content: flex-start;
}

/* мини-карточка слева */
.eg-profile .eg-profile__leftCard{
  width: 100%;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(2,6,23,.06);
  padding: 18px;
  text-align: center;
}

/* правый блок не должен вылазить поверх */
.eg-profile .eg-profile__right{
  min-width: 0 !important;
  margin: 10px 0 !important;
}

/* адаптив */
@media (max-width: 900px){
  .eg-profile .userinfo.eg-profile__grid{
    grid-template-columns: 1fr !important;
  }
  .eg-profile .eg-profile__left{
    justify-content: center;
  }
  .eg-profile .eg-profile__leftCard{
    max-width: 320px;
  }
}

/* ===== Restore padding for right column in profile ===== */
.eg-profile .userinfo.eg-profile__grid > .rcol.eg-profile__right{
  padding: 15px 15px !important;   /* вернули внутренние отступы */
}

/* Если хочется как было “в теме” (15px сверху/снизу, по бокам чуть больше) */
@media (max-width: 900px){
  .eg-profile .userinfo.eg-profile__grid > .rcol.eg-profile__right{
    padding: 12px 12px !important;
  }
}
/* ===== RATEBOX выравнивание ===== */
.ratebox,
.ratebox2,
.ratebox3 {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0;
}

.f_info .ratebox {
  margin-left: 10px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
}

.f_info .ratebox2,
.f_info .ratebox3 {
  margin-left: 10px;
}

/* Улучшенное выравнивание f_info */
.f_info > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
