/* ============================
   Глобальные стили
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tahoma', sans-serif;
  color: #333;
  background: linear-gradient(90deg, #E07A3B, #A9A9A9, #000000, #E07A3B);
  background-size: 400% 400%;
  animation: gradientAnimation 60s ease infinite;
}

@keyframes gradientAnimation {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================
   Шапка
============================ */
header {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav-links li a {
  text-decoration: none;
  color: #E07A3B;
  font-weight: bold;
  padding: 10px 15px;
  background: #000;
  border-radius: 5px;
  transition: 0.3s;
}

.nav-links li a:hover {
  background: #E07A3B;
  color: #000;
}

/* ============================
   Основной контейнер
============================ */
.main-container {
  display: flex;
  max-width: 1200px;
  margin: 20px auto;
  gap: 20px;
}

.content, .control-panel {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
}

.content { flex: 3; }
.control-panel { flex: 1; }

/* Контейнер сообщения */
.content-message {
  width: 100%; /* Занимает всю ширину родительского контейнера */
  max-width: 1200px; /* Ограничение максимальной ширины */
  margin: 20px auto; /* Центрирование на странице */
  padding: 20px; /* Внутренние отступы */
  background: #FFF; /* Белый фон */
  border: 2px solid #E07A3B; /* Рыжая граница */
  border-radius: 10px; /* Закруглённые углы */
  font-family: Tahoma, sans-serif; /* Глобальный шрифт */
  font-size: 16px;
  color: #333; /* Тёмно-серый текст */
  box-sizing: border-box; /* Учитывает отступы и границы в ширине */
}

/* Заголовок в контейнере */
.content-message h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E07A3B; /* Рыжий текст */
}

/* Текст внутри контейнера */
.content-message p {
  font-size: 16px;
  line-height: 1.6; /* Увеличенный межстрочный интервал */
  margin-bottom: 15px;
  color: #333;
}

/* Ссылки внутри контейнера */
.content-message a {
  color: #E07A3B; /* Рыжий текст */
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-message a:hover {
  color: #D66A2A; /* Тёмно-рыжий при наведении */
}

/* Дополнительные блоки */
.content-message img {
  max-width: 100%; /* Ограничение ширины изображения */
  height: auto; /* Сохранение пропорций */
  border-radius: 5px; /* Закруглённые углы */
  margin-top: 10px;
}


/* ============================
   Таблицы
============================ */
.nc_user_list {
  width: 100%;
  border-collapse: collapse;
}

.nc_user_list th, 
.nc_user_list td {
  padding: 10px;
  text-align: center;
  border: 1px solid #CCC;
}

.nc_user_list th {
  background: #E07A3B;
  color: #FFF;
}

.nc_user_list td {
  background: #FFF;
  color: #333;
}

.nc_user_list tr:hover td {
  background: #F9F9F9;
}

/* ============================
   Формы
============================ */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #FFF;
  padding: 20px;
  border-radius: 10px;
}

.form-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.form-section { margin-bottom: 15px; }

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 5px;
  background: #FFF;
  font-size: 14px;
  transition: border-color 0.3s, background 0.3s;
}

.form-input:focus { border-color: #E07A3B; }

.form-submit {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #FFF;
  background: #E07A3B;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.form-submit:hover { background: #D66A2A; }
.form-submit:active { transform: scale(0.97); }

/* ============================
   Кнопки
============================ */
.button-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.button-block li a {
  text-decoration: none;
  font-weight: bold;
  padding: 12px;
  text-align: center;
  color: #FFF;
  background: #E07A3B;
  border: 1px solid #000;
  border-radius: 5px;
  transition: 0.3s;
}

.button-block li a:hover {
  background: #000;
  color: #FFF;
}

.button-block li a:active {
  background: #FFF;
  color: #E07A3B;
}

/* ============================
   Сообщения
============================ */
.form-info { font-size: 12px; color: #555; }
.form-success { color: #090; }
.form-warning { color: #FFD800; }
.form-error { color: #900; }

/* ============================
   Пагинация
============================ */
.nc_pagination {
  text-align: center;
  margin-top: 20px;
}

.nc_pagination a {
  text-decoration: none;
  color: #E07A3B;
  font-weight: bold;
  margin: 0 5px;
}

.nc_pagination a:hover {
  text-decoration: underline;
}

/* ============================
   Футер
============================ */
footer {
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 15px;
}

.footer-links li a {
  text-decoration: none;
  color: #E07A3B;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.footer-links li a:hover {
  background: #E07A3B;
  color: #FFF;
}


/* Блок помощи */
.help-block {
  width: 100%;
  max-width: 300px;
  padding: 20px;
  margin: 20px 0;
  background: #FFF;
  border: 2px solid #E07A3B; /* Рыжий контур */
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
  font-family: Tahoma, sans-serif;
}

.help-block a {
  text-decoration: none;
  color: #E07A3B; /* Рыжий текст */
  font-weight: bold;
  transition: all 0.3s ease;
}

.help-block a:hover {
  background: #E07A3B; 
  color: #FFF; 
  padding: 5px;
  border-radius: 5px;
}

.help-block p {
  font-size: 16px;
  margin-bottom: 15px;
}

.help-block img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.help-block img:hover {
  transform: scale(1.05); /* Увеличение при наведении */
}

/* Блок литературы */
.literature-block {
  width: 100%;
  max-width: 300px;
  padding: 20px;
  margin: 20px 0;
  background: #FFF;
  border: 2px solid #E07A3B; /* Рыжий контур */
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
  font-family: Tahoma, sans-serif;
}

.literature-block a {
  text-decoration: none;
  color: #E07A3B; /* Рыжий текст */
  font-weight: bold;
  transition: all 0.3s ease;
}

.literature-block a:hover {
  background: #E07A3B; 
  color: #FFF; 
  padding: 5px;
  border-radius: 5px;
}

.literature-block p {
  font-size: 16px;
  margin-bottom: 15px;
}

.literature-block img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.literature-block img:hover {
  transform: scale(1.05); /* Увеличение при наведении */
}

/* Контейнер блока авторизации */
.auth_block {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9); /* Полупрозрачный белый фон */
  border-radius: 10px; /* Закруглённые углы */
  display: flex;
  flex-direction: column;
  gap: 10px; /* Отступы между ссылками */
  text-align: center;
  font-family: Tahoma, sans-serif;
}

/* Ссылки в блоке авторизации */
.site-link {
  display: block;
  text-decoration: none;
  color: #E07A3B; /* Рыжий текст */
  font-weight: bold;
  background: #000; /* Чёрный фон */
  padding: 10px 15px; /* Отступы внутри ссылок */
  border-radius: 5px; /* Закруглённые углы */
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

/* Эффекты при наведении */
.site-link:hover {
  background: #E07A3B; /* Рыжий фон при наведении */
  color: #000; /* Чёрный текст */
}

.site-link:active {
  transform: scale(0.97); /* Лёгкий эффект нажатия */
}

/* Блок кнопок */
.button-block {
  display: flex;
  flex-direction: column; /* Расположение кнопок вертикально */
  gap: 10px; /* Отступ между кнопками */
  width: 100%; /* На всю ширину контейнера */
  max-width: 400px;
  margin: 20px auto;
}

/* Кнопки в блоке */
.button-block-item {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  color: #FFF; /* Белый текст */
  background: #E07A3B; /* Рыжий фон */
  padding: 12px 15px;
  border: 1px solid #000; /* Тонкий чёрный контур */
  border-radius: 5px; /* Закруглённые углы */
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

/* Эффекты при наведении */
.button-block-item:hover {
  background: #000; /* Чёрный фон при наведении */
  color: #FFF; /* Белый текст */
  transform: scale(1.02); /* Лёгкое увеличение кнопки */
}

.button-block-item:active {
  background: #FFF; /* Белый фон при клике */
  color: #E07A3B; /* Рыжий текст */
}

/* Таблица пользователей */
.nc_user_list {
  width: 100%; /* Занимает всю ширину контейнера */
  margin: 20px 0;
  border-collapse: collapse; /* Убирает двойные границы */
  font-family: Tahoma, sans-serif;
  background: #FFF; /* Белый фон */
}

/* Заголовки таблицы */
.nc_user_list th {
  padding: 10px 15px;
  text-align: center;
  background: #E07A3B; /* Рыжий фон */
  color: #FFF; /* Белый текст */
  font-weight: bold;
  border: 1px solid #CCC; /* Тонкая граница */
}

/* Ячейки таблицы */
.nc_user_list td {
  padding: 10px 15px;
  text-align: center;
  color: #333; /* Тёмно-серый текст */
  border: 1px solid #CCC; /* Тонкая граница */
}

/* Чередование строк */
.nc_user_list tr:nth-child(even) td {
  background: #F9F9F9; /* Светло-серый фон */
}

/* Эффект при наведении на строки */
.nc_user_list tr:hover td {
  background: #EDEDED; /* Серый фон при наведении */
}

/* Онлайн/Оффлайн статус */
.online {
  color: #090; /* Зелёный текст */
  font-weight: bold;
}

.offline {
  color: #900; /* Красный текст */
  font-weight: bold;
}

/* Пагинация */
.nc_pagination {
  text-align: center;
  margin-top: 20px;
}

.nc_pagination a {
  text-decoration: none;
  color: #E07A3B; /* Рыжий текст */
  font-weight: bold;
  margin: 0 5px;
}

.nc_pagination a:hover {
  text-decoration: underline;
}

/* Контейнер навигации */
.breadcrumb {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #FFF;
  border: 2px solid #E07A3B; /* Рыжая граница */
  border-radius: 5px;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
}

/* Ссылки навигации */
.breadcrumb a {
  text-decoration: none;
  color: #E07A3B; /* Рыжий текст */
  font-weight: bold;
  margin-right: 10px;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #D66A2A; /* Тёмно-рыжий при наведении */
}

/* Разделитель между элементами */
.breadcrumb span {
  margin-right: 10px;
  color: #333; /* Тёмно-серый текст */
}

/* Текущий элемент навигации */
.breadcrumb .current {
  font-weight: bold;
  color: #000; /* Чёрный для активного элемента */
}

/* Удаление точек списка li */
ul {
  list-style-type: none; /* Убирает точки */
  padding: 0; /* Убирает отступы */
  margin: 0; /* Убирает внешние отступы */
}

ol {
  list-style-type: none; /* Убирает нумерацию */
  padding: 0; /* Убирает отступы */
  margin: 0; /* Убирает внешние отступы */
}

li {
  margin: 5px 0; /* Отступ между элементами списка */
}

/* Всплывающее окно о кукисах */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 800px;
  padding: 15px 20px;
  background: #E07A3B; /* Рыжий фон */
  color: #FFF; /* Белый текст */
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  text-align: center;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  display: none; /* Скрыто по умолчанию */
  z-index: 9999;
}

.cookie-banner p {
  margin: 0 0 10px;
}

.cookie-btn {
  background: #000; /* Чёрный фон */
  color: #FFF; /* Белый текст */
  padding: 10px 20px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cookie-btn:hover {
  background: #FFF;
  color: #E07A3B;
}

/* Контейнер формы авторизации */
.auth-form {
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9); /* Полупрозрачный белый фон */
  border-radius: 10px; /* Закруглённые углы */
  font-family: Tahoma, sans-serif;
}

/* Поля ввода */
.auth-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #000; /* Чёрный контур */
  border-radius: 5px;
  font-size: 14px;
  background: #FFF; /* Белый фон */
  color: #333;
  transition: border-color 0.3s;
}

.auth-input:focus {
  border-color: #666; /* Серый при фокусе */
  outline: none;
}

/* Чекбокс "Запомнить" */
.auth-checkbox {
  margin-right: 5px;
}

/* Кнопка отправки */
.auth-submit-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #FFF; /* Белый текст */
  background: #000; /* Чёрный фон */
  border: none;
  border-radius: 5px; /* Закруглённые углы */
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.auth-submit-btn:hover {
  background: #444; /* Тёмно-серый при наведении */
}

.auth-submit-btn:active {
  transform: scale(0.97); /* Эффект нажатия */
}

/* Ссылки "Назад" */
.auth-back-link {
  text-decoration: none;
  color: #000; /* Чёрный текст */
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s ease;
}

.auth-back-link:hover {
  text-decoration: underline;
  color: #666; /* Тёмно-серый */
}

/* Таблица формы */
.auth-form table {
  width: 100%;
  border-collapse: collapse;
}

.auth-form td {
  padding: 10px 0;
  text-align: center;
}

/* Заголовок блока авторизации */
.type_block {
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Общий стиль блока сообщения */
.nc_item {
  margin-bottom: 15px;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  color: #333;
}

/* Ссылки на email */
.nc_email {
  color: #000; /* Чёрный текст */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nc_email:hover {
  text-decoration: underline;
  color: #666; /* Серый текст при наведении */
}

/* Сообщение */
.nc_message {
  margin-top: 10px;
  padding: 10px;
  background: #F9F9F9; /* Светло-серый фон */
  border: 1px solid #CCC; /* Серый контур */
  border-radius: 5px;
  line-height: 1.6; /* Увеличенный межстрочный интервал */
  font-size: 14px;
  color: #333;
}

/* Сильный текст для заголовков */
.nc_item strong {
  font-weight: bold;
  color: #000; /* Чёрный текст */
  margin-right: 5px;
}

/* Стиль для контейнера сообщения */
.nc_item {
  margin-bottom: 15px;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  color: #333;
}

/* Ссылки на email */
.nc_item a {
  color: #E07A3B; /* Рыжий текст */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nc_item a:hover {
  text-decoration: underline;
  color: #D66A2A; /* Тёмно-рыжий при наведении */
}

/* Заголовки сообщения */
.nc_item strong {
  font-weight: bold;
  color: #000; /* Чёрный текст */
}

/* Сообщение */
.nc_message {
  margin-top: 10px;
  padding: 10px;
  background: #F9F9F9; /* Светло-серый фон */
  border: 1px solid #CCC; /* Серый контур */
  border-radius: 5px;
  font-size: 14px;
  color: #333;
  line-height: 1.6; /* Межстрочный интервал */
}

/* Контейнер значения */
.nc_value {
  font-family: Tahoma, sans-serif; /* Глобальный шрифт */
  font-size: 16px; /* Размер текста */
  color: #333; /* Тёмно-серый текст */
  margin-bottom: 15px; /* Отступ снизу */
  line-height: 1.6; /* Межстрочный интервал */
}

/* Поля ввода в контейнере */
.nc_value input, 
.nc_value textarea {
  width: 100%; /* Полная ширина */
  padding: 10px; /* Внутренние отступы */
  font-size: 16px; /* Размер текста */
  color: #000; /* Чёрный текст */
  background: #F9F9F9; /* Светло-серый фон */
  border: 1px solid #A9A9A9; /* Серый контур */
  border-radius: 5px; /* Закруглённые углы */
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* Фокус на поле */
.nc_value input:focus, 
.nc_value textarea:focus {
  border-color: #E07A3B; /* Рыжий контур */
  outline: none; /* Убирает стандартное выделение */
  background: #FFF; /* Белый фон */
}

/* Текстовое поле */
.nc_value textarea {
  resize: vertical; /* Изменение только по вертикали */
  height: 100px; /* Минимальная высота */
}

/* Кнопка отправки */
.nc_value input[type='submit'] {
  width: auto; /* Автоматическая ширина */
  padding: 10px 20px; /* Внутренние отступы */
  font-size: 16px; /* Размер текста */
  color: #FFF; /* Белый текст */
  background: #E07A3B; /* Рыжий фон */
  border: none; /* Без границ */
  border-radius: 5px; /* Закруглённые углы */
  cursor: pointer; /* Курсор руки */
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Ховер и активное состояние кнопки */
.nc_value input[type='submit']:hover {
  background: #D66A2A; /* Тёмно-рыжий */
}

.nc_value input[type='submit']:active {
  transform: scale(0.97); /* Лёгкое уменьшение */
}

/* Контейнер кнопки отправки */
.nc_submit {
  text-align: center; /* Центровка кнопки */
  margin-top: 20px; /* Отступ сверху */
}

/* Кнопка отправки */
.nc_submit input[type='submit'] {
  display: inline-block; /* Отображение кнопки */
  padding: 12px 25px; /* Внутренние отступы */
  font-size: 16px; /* Размер текста */
  font-weight: bold; /* Жирный текст */
  color: #FFF; /* Белый текст */
  background: #E07A3B; /* Рыжий фон */
  border: 1px solid #000; /* Чёрная рамка */
  border-radius: 5px; /* Закруглённые углы */
  cursor: pointer; /* Курсор руки */
  transition: background 0.3s, transform 0.2s; /* Анимация при наведении */
}

/* Наведение на кнопку */
.nc_submit input[type='submit']:hover {
  background: #D66A2A; /* Тёмно-рыжий */
  color: #FFF; /* Белый текст */
}

/* Нажатие на кнопку */
.nc_submit input[type='submit']:active {
  transform: scale(0.97); /* Лёгкое уменьшение */
}

/* Контейнер карточки пользователя */
.nc_row {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  
  background: #FFF; /* Белый фон */

  border-radius: 12px; /* Закруглённые углы */
  font-family: Tahoma, sans-serif;
  font-size: 15px;
  color: #333;
  
  align-items: center;
  gap: 20px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

/* Анимация при наведении */


/* Аватар пользователя */
.nausrprimg {
  width: 80px;
  height: 80px;
  border: 4px solid #E07A3B; /* Рыжая рамка */
  border-radius: 50%; /* Круглая форма */
  overflow: hidden;
  text-align: center;
}


/* Информация о пользователе */
.user-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.user-name {
  font-size: 18px;
  font-weight: bold;
  color: #E07A3B; /* Рыжий текст */
  margin-bottom: 5px;
}

.user-role {
  font-size: 14px;
  color: #666; /* Серый текст */
}

/* Ссылки на публикации */
.user-title a {
  text-decoration: none;
  color: #E07A3B; /* Рыжий текст */
  font-weight: bold;
  transition: color 0.3s ease;
}

.user-title a:hover {
  text-decoration: underline;
  color: #D66A2A; /* Тёмно-рыжий при наведении */
}

/* Дата публикации */
.user-meta {
  font-size: 13px;
  color: #999;
  margin-top: 5px;
}

/* Контейнер хроники */
.nc1_row {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  background: #FFF;
  border: 3px solid var(--highlight-color, #E07A3B); /* Динамический цвет */
  border-radius: 8px;
  font-family: Tahoma, sans-serif;
  font-size: 15px;
  color: #333;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.nc1_row:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Заголовок хроники */
.nc1_header {
  background: var(--highlight-color, #E07A3B);
  color: #FFF;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 1px black, 0 0 2px #C0C0C0;
  border-radius: 8px 8px 0 0;
}

/* Контент хроники */
.newsna {
  padding: 15px 20px;
  font-size: 16px;
  line-height: 1.6;
}

.newsna a {
  text-decoration: none;
  color: var(--highlight-color, #E07A3B);
  font-weight: bold;
  transition: color 0.3s ease;
}

.newsna a:hover {
  text-decoration: underline;
  color: #D66A2A;
}

/* Дата */
.nc1_date {
  color: #FFF;
  text-shadow: 1px 1px 1px black, 0 0 2px #C0C0C0;
  font-size: 16px;
  padding: 5px 10px;
  background: var(--highlight-color, #E07A3B);
  text-align: center;
  border-radius: 5px;
}

/* Контейнер текста */
.text-preview {
  display: -webkit-box;              /* Адаптация под вебкит */
  -webkit-line-clamp: 6;            /* Ограничение на 3 строки */
  -webkit-box-orient: vertical;     /* Ориентация вертикальная */
  overflow: hidden;                 /* Обрезка текста */
  text-overflow: ellipsis;          /* Добавление многоточия */
  line-height: 1.6;                 /* Межстрочный интервал */
  font-size: 16px;                  /* Размер шрифта */
  color: #333;                     /* Цвет текста */
  font-family: Tahoma, sans-serif; /* Шрифт сайта */
  margin-bottom: 10px;              /* Отступ снизу */
  text-align: justify;
}

/* Ссылка "Читать далее" */
.read-more {
  text-decoration: none;
  color: #E07A3B;                  /* Рыжий акцент */
  font-weight: bold;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #D66A2A;                 /* Тёмно-рыжий при наведении */
  text-decoration: underline;
}

/* Контейнер карточки */
.na3_row {
  width: 100%;
  max-width: 800px;
  margin: 30px auto;
  background: #FFF;
  border-radius: 10px;
  font-family: Tahoma, sans-serif;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.na3_row:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Заголовок карточки */
.na3_header {
  background: var(--highlight-color, #E07A3B);
  color: #FFF;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
  border-radius: 8px 8px 0 0;
}

/* Контент */
.na3_content {
  padding: 20px;
  background: #FAFAFA;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.na3_news a {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: var(--highlight-color, #E07A3B);
  transition: color 0.3s ease, transform 0.2s ease;
  text-align: justify;
}

.na3_news a:hover {
  text-decoration: underline;
  color: #D66A2A;
}

/* Дата */
.na3_footer {
  padding: 10px 0;
  text-align: right;
}

.na3_date {
  display: inline-block;
  background: var(--highlight-color, #E07A3B);
  color: #FFF;
  text-shadow: 1px 1px 1px black, 0 0 2px #C0C0C0;
  font-size: 14px;
  padding: 5px 15px;
  border-radius: 25px;
  text-align: center;
}

/* Контейнеры */
.chr_container {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  font-family: Tahoma, Geneva, sans-serif;
}

/* Заголовок */
.chr_header {
  background: var(--highlight-color, #E07A3B);
  color: #FFF;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 1px black, 0 0 2px #C0C0C0;
  border: 3px solid var(--highlight-color, #E07A3B);
  border-radius: 5px;
}

/* Контент блока */
.chr_content {
  background: #ffffff;
  border-top: none;
}

/* Абзацы текста */
.chr_paragraph {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
  text-align: justify;
  margin: 15px 0;
}

/* Ссылка на источник */
.chr_source a {
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  color: var(--highlight-color, #E07A3B);
  transition: color 0.3s ease;
}

.chr_source a:hover {
  text-decoration: underline;
  color: #D66A2A;
}

/* Дата публикации */
.chr_date {
  text-align: center;
  background: var(--highlight-color, #E07A3B);
  color: #FFF;
  text-shadow: 1px 1px 1px black, 0 0 2px #C0C0C0;
  font-size: 16px;
  padding: 5px 15px;
  border-radius: 5px;
}

/* Подвал */
.chr_footer {
  border-top: none;
  border-radius: 0 5px 5px 5px;
  font-size: 16px;
}

/* Содержимое подвала */
.chr_footer_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Контейнер изображения с круглой рамкой */
.logo_image_container {
  width: 73px;             /* Ширина контейнера */
  height: 73px;            /* Высота контейнера */
  border-radius: 50%;       /* Закругление до круга */
  overflow: hidden;         /* Обрезка содержимого */
  border: 0px solid #FFF;   /* Белая рамка */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #FFF;         /* Белый фон */
}

/* Стили изображения */
.logo_image_container img {
  width: 70px;
  height: 70px;
  object-fit: cover;        /* Сохранение пропорций при обрезке */
  display: block;
}

.theme-toggle-btn {
  padding: 10px 20px;
  font-size: 16px;
  background: #333;
  color: #FFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Стили переключателя */
.days-switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 40px;
}

.days-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.days-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000; /* Чёрный фон для светлой темы */
  transition: 0.4s;
  border-radius: 40px;
}

.days-slider:before {
  position: absolute;
  content: '';
  height: 32px;
  width: 32px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* Переключено (Темная тема) */
input:checked + .days-slider {
  background-color: #E07A3B; /* Рыжий фон */
}

input:checked + .days-slider:before {
  transform: translateX(40px); /* Двигается вправо */
}
.photo-news {
  width: 100%; /* Занимает всю ширину контейнера */
  height: 100%; /* Занимает всю высоту контейнера */
  display: flex; /* Для выравнивания содержимого, если нужно */
  justify-content: center; /* Центрирование по горизонтали */
  align-items: center; /* Центрирование по вертикали */
  background-color: #f0f0f0; /* Фон, если фото отсутствует */
  position: relative; /* Для корректного позиционирования */
}

.photo-news img {
  width: 100%; /* Фото растягивается на всю ширину */
  height: 100%; /* Фото растягивается на всю высоту */
  object-fit: cover; /* Обеспечивает сохранение пропорций */
  display: block; /* Убирает пробелы вокруг изображения */
}

.photo-news:empty {
  display: none; /* Прячем контейнер, если внутри ничего нет */
}

.comments-styles-textarea {
  border: 2px solid #cccccc;
  font-size: 16px;
  font-family: 'Tahoma', Geneva, sans-serif;
  color: #000000;
  padding: 10px;
  border-radius: 10px;
}

.comments-styles-button {
  background-color: #e07a3b;
  color: #ffffff;
  border: 1px solid #333333;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.comments-styles-button:hover {
  background-color: #d66a2a;
}

.comments-styles-avatar {
  width: 60px;
  height: 60px;
  border: 3px solid #cccccc;
  border-radius: 50%;
  overflow: hidden;
}

.comments-styles-comment-block {
  background-color: #f9f9f9;
  border: 3px solid #cccccc;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #333333;
}

.comments-styles-header {
  background-color: #e07a3b;
  color: #ffffff;
  font-weight: bold;
  padding: 10px;
  border-radius: 5px 5px 0 0;
}

.comments-styles-links a {
  color: #e07a3b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.comments-styles-links a:hover {
  color: #d66a2a;
}