*{
	padding: 0px;
	margin: 0px;
}

.selector-for-some-widget {
  box-sizing: content-box;
}

header {
	background: white;
}

h1{
  font-size: 25px !important;
}

a {
	color: rgba(0, 0, 0, .55) !important;
}

a:hover {
	color:#0b74e4 !important;
}

.card-img-top {
  width: 100%;
  height: auto; /* Сбрасываем жесткую высоту */
  aspect-ratio: 2 / 3; /* Браузер сам посчитает высоту в зависимости от ширины */
  object-fit: cover; /* На всякий случай, если исходник другой формы */
}

/* На мобильных делаем высоту поменьше или автоматической */
@media (max-width: 768px) {
  .card-img-top {
     height: auto; /* Или фиксированную, например 400px, если нужно */
     /*aspect-ratio: 2 / 3; /* Чтобы сохранить "книжный" вид */
  }
}

/* Фиксируем высоту карточки и заголовка, чтобы все карточки были одинаковой высоты */

/* Этот класс уже есть в Bootstrap, но для ясности:
   он делает все колонки в ряду одинаковой высоты. */
.row {
  display: flex;
  flex-wrap: wrap;
}

/* 1. Карточка должна занимать всю высоту колонки.
      И она сама становится flex-контейнером для картинки и card-body. */
.card {
  height: 100%;
  display: flex;
  flex-direction: column; /* Располагаем img и card-body друг под другом */
}

/* 2. Тело карточки должно "расти", занимая всё свободное место,
      чтобы прижать заголовок к низу. */
.card-body {
  flex-grow: 1; /* <-- Это ключевой момент */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Прижимаем заголовок к верху card-body */
  padding: 1rem; /* Добавьте отступы по своему вкусу */
}

/* 3. Стили для самого заголовка */
.card-title {
  min-height: 48px; /* Задаем МИНИМАЛЬНУЮ высоту, чтобы зарезервировать место для двух строк. */
  display: flex;
  align-items: center;    /* Вертикальное выравнивание текста по центру */
  justify-content: center; /* Горизонтальное выравнивание по центру */
  text-align: center;
  font-size: 1.2rem;
  /* white-space: nowrap; <-- ЭТУ СТРОКУ НУЖНО УДАЛИТЬ! */
}

#allEntries {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}


.text-justify {
  text-align: justify;
}

.link-hover:hover{
	font-size: 100px;
}


.section-download {
  width:60%;
  background: linear-gradient(to left,#3a688c 0%,#243949 100%);
  margin: 0 auto;

}


.download-line {
    padding: 5px 10px;
    margin: 5px 10px;
    margin-right: 7%;
    margin-left: 3%;
    border-radius: 4px;
    font-size: 14px;
    text-align: left;
    background-color: #f6f6f6;
}

.download-line img {
  margin: 0 10px 0px 0;
  max-width: 100%;
}

.download-line a {
  display: flex;
  align-items: end;
  text-decoration: none;
}


/*--- DROP NENU ---*/
#dropmenudiv { font: 12px Arial; padding: 10px; display: none; background: #fff; 
border-radius: 8px;  box-shadow: 0 0 50px 0 rgba(0,0,0,0.22); z-index:200 !important;}
#dropmenudiv a { display: block; text-decoration: none; padding: 5px 8px; width: 154px }

/* КОЛИЧЕСТВО ПРОСМОТРОВ
------------------------------------------------*/
.views-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: orange;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

/*Кнопка читать онлайн */
.seo-book-online-card__wrapper {
	padding: 40px 20px;
}

.seo-book-online-card__container {
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	max-width: 500px;
	margin: 0 auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	text-align: center;
}

.seo-book-online-card__icon {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 24px;
}

.seo-book-online-card__title {
	color: #1a1a1a;
	font-size: 24px;
	margin-bottom: 12px;
	font-weight: 600;
}

.seo-book-online-card__book-name {
	color: #667eea;
	font-weight: 700;
}

.seo-book-online-card__description {
	color: #666;
	line-height: 1.6;
	margin-bottom: 24px;
	font-size: 15px;
}

.seo-book-online-card__cta-btn {
	display: inline-block;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 14px 32px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	border: none;
	cursor: pointer;
	font-size: 16px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}


.fb2-bar {
    height: 10px;
    background: #9683b5;
    border-radius: 3px;
}

.fb2-progress {
    background: #d9dee7;
    border-radius: 3px;
}

@media (max-width: 600px) {
	.seo-book-online-card__container {
			padding: 24px;
	}

	.seo-book-online-card__title {
			font-size: 20px;
	}

	.seo-book-online-card__description {
			font-size: 14px;
	}
}

/*Speedbar*/
.nowrap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.speedbar{margin:11px 0 0px 0;}
.speedbar a{text-decoration: none;}

/*Комментарии*/
.img-sm {
 width: 46px;
 height: 46px;
}
.panel {
 box-shadow: 0 2px 0 rgba(0,0,0,0.075);
 border-radius: 0;
 border: 0;
 margin-bottom: 15px;
}
.panel .panel-footer, .panel>:last-child {
 border-bottom-left-radius: 0;
 border-bottom-right-radius: 0;
}
.panel .panel-heading, .panel>:first-child {
 border-top-left-radius: 0;
 border-top-right-radius: 0;
}
.panel-body {
 padding: 25px 20px;
}
.media-block .media-left {
 display: block;
 float: left
}
.media-block .media-right {
 float: right
}
.media-block .media-body {
 display: block;
 overflow: hidden;
 width: auto
}
.middle .media-left,
.middle .media-right,
.middle .media-body {
 vertical-align: middle
}
.thumbnail {
 border-radius: 0;
 border-color: #e9e9e9
}
.tag.tag-sm, .btn-group-sm>.tag {
 padding: 5px 10px;
}
.tag:not(.label) {
 background-color: #fff;
 padding: 6px 12px;
 border-radius: 2px;
 border: 1px solid #cdd6e1;
 font-size: 12px;
 line-height: 1.42857;
 vertical-align: middle;
 -webkit-transition: all .15s;
 transition: all .15s;
}
.text-muted, a.text-muted:hover, a.text-muted:focus {
 color: #acacac;
}
.text-sm {
 font-size: 0.9em;
}
.text-5x, .text-4x, .text-5x, .text-2x, .text-lg, .text-sm, .text-xs {
 line-height: 1.25;
}
.btn-trans {
 background-color: transparent;
 border-color: transparent;
 color: #929292;
}
.btn-icon {
 padding-left: 9px;
 padding-right: 9px;
}
.btn-sm, .btn-group-sm>.btn, .btn-icon.btn-sm {
 padding: 5px 10px !important;
}
.mar-top {
 margin-top: 15px;
}
.DLEPush {
	z-index: 2001;
	position: fixed;
	right: 20px;
	top: 20px
}

@keyframes DLEPush-show {
	0% {
		transform: translateY(100%);
		opacity: 0;
	}

	100% {
		transform: translateY(0);
		opacity: 1;
	}
}

.DLEPush-notification.wrapper {
	animation-name: DLEPush-show;
	animation-duration: 1s;
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	color: #333;
	margin-bottom: 10px;
	width: 100%;
	max-width: 400px;
	box-shadow: 0 10px 15px rgb(0 0 0 / 20%);
	background-color: #fff;
	border-radius: 10px
}

.DLEPush-notification .DLEPush-icon {
	grid-column: 1;
	grid-row: 1 / span 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	width: 45px;
	height: 100%;
	border-top-left-radius: 10px;
	border-bottom-left-radius: 10px;
	text-align: center;
}

.DLEPush-notification .DLEPush-icon svg {
	scale: .8;
}

.DLEPush-notification .DLEPush-header {
	font-weight: 500;
	grid-column: 2;
	grid-row: 1;
	font-size: 1rem;
	margin-left: 1rem;
	margin-top: .5rem;
}
.DLEPush-notification .DLEPush-header:empty {
	margin-top: 0;
}

.DLEPush-notification .DLEPush-message {
	grid-column: 2;
	grid-row: 2;
	font-size: .875rem;
	margin: 1rem;
}

.DLEPush-notification .DLEPush-message li, .DLEPush-notification .DLEPush-message ul {
	list-style-type: none;
	padding-left: 0;
}

.DLEPush-notification .DLEPush-close {
	position: absolute;
	top: 8px;
	right: 10px;
	font-weight: 300;
	background: none;
	border: 0;
	font-size: 1.15rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	color: inherit;
	outline: 0;
	opacity: 0.75;
}

@media only screen and (min-width: 601px) {
	.DLEPush-notification.wrapper {
		min-width: 400px;
	}
}

.DLEPush-notification .DLEPush-close:hover {
	opacity: 1;
}

.DLEPush-notification.wrapper.push-success {
	background-color: #e0f2f1;
}

.DLEPush-notification.wrapper.push-success .DLEPush-icon {
	background-color: #00897b;
}

.DLEPush-notification.wrapper.push-warning {
	background-color: #FFF3E0;
}

.DLEPush-notification.wrapper.push-warning .DLEPush-icon {
	background-color: #FF9800;
}

.DLEPush-notification.wrapper.push-error {
	background-color: #FBE9E7;
}

.DLEPush-notification.wrapper.push-error .DLEPush-icon {
	background-color: #FF5722;
}

input[type="text"].comments_author_field {
	width: 100%;
	margin-bottom: 10px;
}

#dlereplypopup form > div {margin-bottom:5px;}
#dlereplypopup form input[type="text"] {height:30px; line-height:30px;}
#dlereplypopup form textarea {height:80px;}


/*--- UI WIDGETS ---*/
.ui-widget-overlay { background: #000; opacity:0.5; left: 0; top: 0; right: 0; bottom: 0; position: fixed; }
.ui-helper-clearfix:after { clear: both; content: "."; display: block; height: 0; visibility: hidden }
.ui-helper-clearfix { display: inline-block }
* html .ui-helper-clearfix { height: 1% }
.ui-helper-clearfix { display: block }

.ui-dialog { background-color: #eaebef; overflow: hidden; padding: 0; position: absolute; width: 300px; 
box-shadow:0 0 0 10px rgba(0,0,0,0.1); border-radius:0px;}
.ui-dialog-titlebar {padding:0 60px 0 20px; background-color:#f8f8f8; border-bottom: 1px solid #ccc; 
height:50px; line-height:50px;}
.ui-dialog-title { margin-top: 0px; float: none; font-size: 16px; color: #000; max-width: calc(100% - 60px); 
 white-space:nowrap; overflow:hidden; text-overflow:ellipsis;display:block;}

.ui-dialog .ui-dialog-content {padding:20px; border: 0; overflow: auto; position: relative; zoom: 1; }
.ui-dialog-content h2 { display: inline; font-size: 1em; font-weight: bold }
.ui-dialog .ui-dialog-buttonpane { border-top: 1px solid #e3e3e3; padding: 10px 20px; text-align: center; 
background-color:#f1f8fd; }

.ui-dialog .ui-resizable-se { bottom: 3px; height: 14px; right: 3px; width: 14px; }
.ui-draggable .ui-dialog-titlebar { cursor: move; }

.ui-state-error { background: #fef1ec 50% 50% repeat-x !important; border: 1px solid #cd0a0a; color: #cd0a0a; }

.ui-icon-closethick {cursor: pointer; position:absolute; right:0; top:0; width:50px; height:50px;}
.ui-icon-closethick:before {content:"\f00d"; width:50px; height:50px; line-height:50px; text-align:center; color:#000; 
position:absolute; right:0; top:0; text-indent:0; font-size:18px; 
/*background-color:#d91e18;*/ display:block; font-family:'FontAwesome';}
a:hover .ui-icon-closethick {opacity:0.8;}
.ui-dialog .ui-dialog-buttonset button { margin-right:10px !important; line-height:15px !important; font-size:12px; padding:0 10px;}

/* errors */
.berrors {background: #fce5ba; color: #a76846; margin: 0 0 20px 0; padding: 10px 20px;}
.berrors a { color: #aa4e43; text-decoration:underline; }
.berrors + .speedbar {margin-top:0;}


/*--- NEW FORM ---*/

.form-wrap h1 {font-size:24px; margin-bottom:20px;}
.form-wrap {
  background: #f8fafd;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(74,144,226,0.10);
  padding: 40px 32px 32px 32px;
  max-width: 600px;
  margin: 40px auto;
}
.form-item {
  margin-bottom: 24px;
  padding-left: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
}
.form-item > label {
  display: block;
  min-width: 160px;
  font-size: 1.1rem;
  color: #357abd;
  font-weight: 500;
  margin-left: 0;
  padding-top: 0;
}
.form-item > input[type="text"], .form-item > input[type="password"], .form-item > input[type="file"] {
  flex: 1 1 0;
  max-width: 340px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #e3eaf3;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
}
.form-item > input[type="text"]:focus, .form-item > input[type="password"]:focus, .form-item > input[type="file"]:focus {
  border-color: #4a90e2;
}
.imp > label:after {
  content: "*";
  margin: 0 0 0 10px;
  color: #e85319;
}
.form-textarea {
  margin-bottom: 24px;
}
.form-textarea > label {
  display: block;
  padding: 10px 20px;
  background-color: #357abd;
  color: #fff;
  font-size: 1.1rem;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
}
.form-textarea textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 0 0 6px 6px;
  border: 1px solid #e3eaf3;
  font-size: 1rem;
  background: #fff;
  resize: vertical;
  min-height: 120px;
  transition: border 0.2s;
}
.form-textarea textarea:focus {
  border-color: #4a90e2;
}
.form-secur {
  width: 100%;
  float: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-secur input {
  display: inline-block;
  max-width: 340px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid #e3eaf3;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
}
.form-secur input:focus {
  border-color: #4a90e2;
}
.form-submit {
  text-align: right;
  margin-top: 32px;
}
.form-submit button {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(74,144,226,0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-submit button:hover,
.form-submit button:focus {
  background: linear-gradient(135deg, #2b83ef 0%, #1f5fa3 100%);
  box-shadow: 0 16px 32px rgba(43,131,239,0.28);
  transform: translateY(-1px);
  color: #fff;
}
.form-submit button:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(43,131,239,0.2);
}
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.form-wrap > div, .form-vote > div {margin-bottom:20px;}
.form-item {margin-bottom:20px; padding-left:200px; position:relative;}
.form-item > label {display:block; float:left; width:200px; margin-left:-200px; padding-top:10px;}
.form-item > input[type="text"], .form-item > input[type="password"], .form-item > input[type="file"] {float:left; max-width:600px;}
.imp > label:after {content: "*"; margin: 0 0 0 10px; color: #e85319;}
.form-buts input[type="button"], .form-buts a {width:48%; float:left; display:block; text-align:center; box-shadow:none; border-radius:0; font-size:14px;}
.form-buts a {float:right;}
.findrelated {background: #ffc; border:1px solid #9E9E9E; padding:5px;}
.form-textarea > label {display:block; padding:10px 20px; background-color:#444; color:#fff; font-size:16px;}
#category {width:100% !important;}
.form-xfield .addnews {vertical-align:middle;}
.form-checks input#allow_main {margin-left:50px;}
.form-checks label, #allow_subscribe + label {display:inline-block; line-height:30px; margin-left:5px; position:relative; top:1px;}
.form-submit button:last-child {margin-left:10px;}
.form-secur {width:100%; float:right;}
.form-secur input {display:inline-block; max-width:300px; vertical-align:top;}
.form-secur > a {display:inline-block; vertical-align:top; margin-left:10px;}
.form-secur select {width:100%; max-width:600px;}
.form-item > input[type="button"] {position:absolute; right:0; top:0; height:40px; line-height:40px;}
#result-registration {text-align:center;}

/* Userinfo */
.up-img {width:100px; height:100px; border-radius:3px; border:5px solid #fff; box-shadow:2px 2px 5px 0 rgba(0,0,0,0.2); 
position:absolute; left:30px; bottom:-30px;}
.user-popup {padding:20px 0; position:relative; margin:-20px;}
.upop-left {width:28%; float:left; position:relative; z-index:50; text-align:center;}
.upop-left .up-img {position:static; display:block; margin:0 auto 10px auto;}
.upop-right {width:72%; float:right;}
.upop-right li {padding:5px 0;}

.us-prof {border:3px solid #ebeef3; background-color:#FFF; margin-bottom:20px;}

.us-prof {
  border: none;
  background: #f8fafd;
  margin-bottom: 32px;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(74,144,226,0.10);
  overflow: hidden;
  padding-top: 50px;
}
.usp-cols {
  display: flex;
  flex-wrap: wrap;
}
.usp-left {
  width: 280px;
  min-width: 220px;
  background: linear-gradient(135deg, #ebeef3 0%, #d1d8e0 100%);
  text-align: center;
  padding: 32px 18px 24px 18px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.usp-status {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
}
.offline, .online {
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #626262;
  box-shadow: 0 2px 8px rgba(98,98,98,0.10);
}
.online {
  background: #99ce1b;
}
.usp-av {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 12px rgba(74,144,226,0.10);
  margin: 24px 0 18px 0;
  overflow: hidden;
}
.usp-activ {
  display: flex;
  width: 100%;
  background: #d1d8e0;
  color: #222;
  border-radius: 8px;
  margin: 0 0 18px 0;
  box-shadow: 0 1px 4px rgba(74,144,226,0.04);
}
.usp-activ > div {
  flex: 1 1 0;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  border-right: 2px solid #ebeef3;
}
.usp-activ > div:last-child {
  border-right: none;
}
.usp-activ > div div {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 2px;
}
.usp-btn {
  margin-top: 10px;
  width: 100%;
}
.usp-btn a, .usp-btn {
  display: block;
  background: #4a90e2;
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  margin-bottom: 8px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.usp-btn a:hover, .usp-btn:hover {
  background: #357abd;
  color: #fff;
}
.usp-right {
  flex: 1 1 0;
  padding: 32px 32px 24px 32px;
  background: #fff;
  min-width: 220px;
}
.usp-name {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3eaf3;
  background: none;
}
.usp-name h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: #357abd;
}
.usp-group {
  font-size: 1.1rem;
  color: #626262;
}
.usp-group span {
  color: #fa5800 !important;
  font-weight: 700;
}
.usp-meta {
  list-style: none;
  margin: 0;
  padding: 0;
}
.usp-meta li {
  padding: 10px 14px;
  font-size: 1rem;
  color: #222;
  border-radius: 4px;
  margin-bottom: 6px;
  background: #f5f7fa;
  box-shadow: 0 1px 4px rgba(74,144,226,0.04);
}
.usp-meta li a {
  text-decoration: underline;
  color: #357abd;
}
.usp-meta li:nth-child(2n+1) {
  background: #e3eaf3;
}

@media screen and (max-width: 900px) {
  .usp-cols {
    flex-direction: column;
  }
  .usp-left, .usp-right {
    width: 100%;
    min-width: 0;
    padding: 24px 12px;
  }
}

@media screen and (max-width: 760px) {
.up-first {padding:20px 10px; height:auto; text-align:center;}
.up-img {position:relative; margin:10px auto; left:0; bottom:0;}
.up-status {position:relative; margin:0 auto; left:0; bottom:0;}
.up-second, .up-edit {padding:20px 10px;}
.usp-left {width:100%;}
.usp-right {width:100%}
}


/* COMMENTS
----------------------------------------------- */

.add-comments-form__input {margin-left: 16px;}
.add-comments-form .hidden, .comments_subscribe + br {display: none;}
.add-comments-form__actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.add-comments-form__actions > * {
  flex: 0 0 auto;
}
.add-comments-form__actions .add-comments-form__input {
  flex: 1 1 220px;
  min-width: 180px;
}

.mass_comments_action {display: none;align-items: center;max-width: 800px;}
.mass_comments_action select {flex: 1 1 0; margin: 0 16px 0 20px;}

.comment-item__title {font-weight: 500; font-size: 2rem; margin-bottom: 20px;}
.comment-item {margin-top: 20px;}
.comment-item__img {width: 40px; height: 40px; border-radius: 50%; margin-right: 10px;}
.comment-item__letter {width: 100%; height: 100%; text-transform: uppercase; font-weight: 500; 
	position: absolute; left: 0; top: 0; z-index: 5; color: #fff; font-size: 1.8rem;}
.comment-item__author {font-weight: 400;}
.comment-item__date {color: var(--secondary-text-color); margin-top: 2px; font-size: 1.2rem;}
.comment-item__main {margin: 6px 0 3px 0;}
.comment-item__rating {margin-left: 20px; height: 30px; line-height: 30px; border-radius: 4px; 
	background-color: #f2f6f9; padding: 0 10px; font-size: 1.2rem; color: #97a9b7;}
.comment-item__rating a {color: #97a9b7;}
.comment-item__rating > span {margin: 0 5px;}
.comment-item__rating > span > span.ratingtypeplus, .comment-item__rating > span > span.ratingplus {color: #06b601;}
.comment-item__rating > span > span.ratingminus {color: #ff0e0e;}
.comment-item__reply a {color: var(--primary-color); border-bottom: 1px dotted var(--primary-color); font-size: 1.4rem;}
.comment-item__controls {text-align: right; font-size: 1.2rem;}
.comment-item__controls li {display: inline-block; vertical-align: middle; margin: 0 0 0 10px; height: 20px; line-height: 20px;}
.comment-item__controls a:not(:hover) {color: var(--secondary-text-color);}
#comments {width: 100%;}

ul.comm-three.icon-l.clearfix {
    list-style: none;
}

/*--- UPDATES TO NEW VERSIONS ---*/
.comments-tree-list {display: block;margin: 0;padding: 0;list-style: none;}
.comments-tree-list .comments-tree-list {padding-left: 25px; position:relative;}

.comments-tree-item {display: block; margin: 0; padding: 0;}
#dlefastreplycomments {padding:10px; background: #f7f6e5; margin: 10px 0 5px 30px;}
.commentsreplyname {padding: 2px; border: 1px solid #bcc0c2; width: 200px; background: #fff;}
#dlereplypopup form > div {margin-bottom:5px;}
#dlereplypopup form input[type="text"] {height:30px; line-height:30px;}
#dlereplypopup form textarea {height:80px;}
.pollallvotes {text-align: center; margin-top: 10px;}

/* --- Современные стили для навигации --- */
.pagination {
  padding: 32px 0;
  text-align: center;
  justify-content: center;
}
.pagination__inner {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pagination__inner a,
.pagination__inner span {
  display: inline-block;
  min-width: 40px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: #4a90e2;
  border: 1px solid #357abd;
  box-shadow: 0 2px 8px rgba(74,144,226,0.08);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.pagination__inner a:hover {
  background: #2b83ef;
  border-color: #2c82ef;
  box-shadow: 0 6px 24px rgba(43,131,239,0.16);
  color: #fff;
}
.pagination__inner span {
  background: #357abd;
  border-color: #357abd;
  box-shadow: 0 4px 16px rgba(53,122,189,0.12);
}

/* --- Стили для блока комментариев --- */
.comment-item {
  background: #f8fafd;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(74,144,226,0.07);
  padding: 24px 28px;
  margin-bottom: 24px;
  border: 1px solid #e3eaf3;
}
.comment-item__header {
  margin-bottom: 12px;
}
.comment-item__author {
  font-weight: 600;
  color: #357abd;
  font-size: 1.1rem;
}
.comment-item__date {
  color: #97a9b7;
  font-size: 0.95rem;
}
.comment-item__main {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 12px 16px;
  box-shadow: 0 1px 4px rgba(74,144,226,0.04);
}
.comment-item__reply a {
  background: #e3eaf3;
  color: #357abd;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.comment-item__reply a:hover {
  background: #357abd;
  color: #fff;
}
.comment-item__controls a {
  background: #fce5ba;
  color: #a76846;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 0.95rem;
  text-decoration: none;
  margin-left: 6px;
  transition: background 0.2s, color 0.2s;
}
.comment-item__controls a:hover {
  background: #a76846;
  color: #fff;
}

/* --- Стили для кнопки 'Добавить комментарий' --- */
.add-comments-form__btn {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(74,144,226,0.18);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.add-comments-form__btn:hover,
.add-comments-form__btn:focus {
  background: linear-gradient(135deg, #2b83ef 0%, #1f5fa3 100%);
  box-shadow: 0 16px 32px rgba(43,131,239,0.28);
  transform: translateY(-1px);
  color: #fff;
}
.add-comments-form__btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(43,131,239,0.2);
}