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

body {
  font-family: 'Tahoma', sans-serif;
  color: #ddd; /* Светло-серый текст */
  background: linear-gradient(90deg, #000000, #2f2f2f, #1a1a1a, #000000);
  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(20, 20, 20, 0.9); /* Тёмный полупрозрачный фон */
  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: #f1ba54; /* Оранжевый текст */
  font-weight: bold;
  padding: 10px 15px;
  background: #1a1a1a; /* Тёмный фон */
  border-radius: 5px;
  transition: 0.3s;
}

.nav-links li a:hover {
  background: #f1ba54; /* Оранжевый фон */
  color: #1a1a1a; /* Тёмный текст */
}

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

.content, .control-panel {
  background: rgba(30, 30, 30, 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: #1a1a1a; /* Тёмный фон */
  border: 2px solid #f1ba54; /* Оранжевая граница */
  border-radius: 10px;
  font-family: Tahoma, sans-serif;
  font-size: 16px;
  color: #ddd; /* Светло-серый текст */
  box-sizing: border-box;
}

.content-message h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #f1ba54;
}

.content-message p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #ccc;
}

.content-message a {
  color: #f1ba54;
  text-decoration: none;
  transition: color 0.3s ease;
}

.content-message a:hover {
  color: #ff8c00;
}

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

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

.nc_user_list th {
  background: #f1ba54;
  color: #1a1a1a;
}

.nc_user_list td {
  background: #2f2f2f;
  color: #ddd;
}

.nc_user_list tr:hover td {
  background: #3f3f3f;
}

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

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

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

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

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

.form-submit:hover {
  background: #ff8c00;
}

.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: #1a1a1a;
  background: #f1ba54;
  border: 1px solid #444;
  border-radius: 5px;
  transition: 0.3s;
}

.button-block li a:hover {
  background: #2f2f2f;
  color: #f1ba54;
}

.button-block li a:active {
  background: #444;
  color: #ddd;
}

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

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

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

/* ============================
   Футер
============================ */
footer {
  background: rgba(20, 20, 20, 0.9);
  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: #f1ba54;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: 0.3s;
}

.footer-links li a:hover {
  background: #f1ba54;
  color: #1a1a1a;
}

/* ============================
   Блок помощи
============================ */
.help-block {
  width: 100%;
  max-width: 300px;
  padding: 20px;
  margin: 20px 0;
  background: #1a1a1a; /* Тёмный фон */
  border: 2px solid #f1ba54; /* Оранжевый контур */
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
  font-family: Tahoma, sans-serif;
  color: #ddd; /* Светлый текст */
}

.help-block a {
  text-decoration: none;
  color: #f1ba54; /* Оранжевый текст */
  font-weight: bold;
  transition: all 0.3s ease;
}

.help-block a:hover {
  background: #f1ba54;
  color: #1a1a1a; /* Тёмный текст */
  padding: 5px;
  border-radius: 5px;
}

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

.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: #1a1a1a; /* Тёмный фон */
  border: 2px solid #f1ba54; /* Оранжевый контур */
  border-radius: 10px;
  box-sizing: border-box;
  text-align: center;
  font-family: Tahoma, sans-serif;
  color: #ddd; /* Светлый текст */
}

.literature-block a {
  text-decoration: none;
  color: #f1ba54; /* Оранжевый текст */
  font-weight: bold;
  transition: all 0.3s ease;
}

.literature-block a:hover {
  background: #f1ba54;
  color: #1a1a1a; /* Тёмный текст */
  padding: 5px;
  border-radius: 5px;
}

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

.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(30, 30, 30, 0.9); /* Полупрозрачный тёмный фон */
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  font-family: Tahoma, sans-serif;
  color: #ddd; /* Светлый текст */
}

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

.site-link:hover {
  background: #f1ba54;
  color: #1a1a1a; /* Тёмный текст */
}

.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: #1a1a1a; /* Тёмный текст */
  background: #f1ba54; /* Оранжевый фон */
  padding: 12px 15px;
  border: 1px solid #2f2f2f; /* Тёмный контур */
  border-radius: 5px;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.button-block-item:hover {
  background: #2f2f2f; /* Тёмный фон */
  color: #f1ba54; /* Оранжевый текст */
}

.button-block-item:active {
  background: #444; /* Очень тёмный фон */
  color: #ddd; /* Светлый текст */
}

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

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

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

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

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

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

/* Эффект при наведении на строки */
.nc_user_list tr:hover td {
  background: #3A3A3A; /* Ещё темнее при наведении */
}

/* Онлайн/Оффлайн статус */
.online {
  color: #0F0; /* Ярко-зелёный текст */
  font-weight: bold;
}

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

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

.nc_pagination a {
  text-decoration: none;
  color: #f1ba54; /* Оранжевый текст */
  font-weight: bold;
  margin: 0 5px;
}

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

/* Контейнер навигации */
.breadcrumb {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #1A1A1A; /* Тёмный фон */
  border: 2px solid #333; /* Тёмная граница */
  border-radius: 5px;
  font-family: Tahoma, sans-serif;
  font-size: 14px;
  color: #FFF; /* Белый текст */
}

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

.breadcrumb a:hover {
  color: #FFD700; /* Светло-оранжевый при наведении */
}

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

/* Текущий элемент навигации */
.breadcrumb .current {
  font-weight: bold;
  color: #FFF; /* Белый текст */
}

/* Удаление точек списка li */
ul, 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: #333; /* Тёмно-серый фон */
  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: #f1ba54; /* Оранжевый фон */
  color: #1A1A1A; /* Тёмный текст */
  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: #f1ba54; /* Оранжевый текст */
}

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

/* Поля ввода */
.auth-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #444; /* Тёмная граница */
  border-radius: 5px;
  font-size: 14px;
  background: #2A2A2A; /* Тёмно-серый фон */
  color: #FFF; /* Белый текст */
  transition: border-color 0.3s;
}

.auth-input:focus {
  border-color: #f1ba54; /* Оранжевая граница */
  outline: none;
}
/* Чекбокс "Запомнить" */
.auth-checkbox {
  margin-right: 5px;
}

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

.auth-submit-btn:hover {
  background: #666; /* Светло-серый при наведении */
}

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

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

.auth-back-link:hover {
  text-decoration: underline;
  color: #999; /* Светло-серый */
}

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

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

/* Заголовок блока авторизации */
.type_block {
  text-align: center;
  background: rgba(50, 50, 50, 0.9); /* Полупрозрачный тёмный фон */
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

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

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

.nc_email:hover {
  text-decoration: underline;
  color: #FFD700; /* Золотой текст при наведении */
}

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

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

/* Поля ввода в контейнере */
.nc_value input, 
.nc_value textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  color: #FFF; /* Белый текст */
  background: #444; /* Тёмный фон */
  border: 1px solid #666; /* Светло-серая граница */
  border-radius: 5px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* Фокус на поле */
.nc_value input:focus, 
.nc_value textarea:focus {
  border-color: #f1ba54; /* Оранжевая граница */
  outline: none;
  background: #555; /* Светло-серый фон */
}

/* Кнопка отправки */
.nc_value input[type='submit'] {
  width: auto;
  padding: 10px 20px;
  font-size: 16px;
  color: #FFF; /* Белый текст */
  background: #f1ba54; /* Оранжевый фон */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

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

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

/* Контейнер карточки пользователя */
.nc_row {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  border-radius: 12px; /* Закруглённые углы */
  font-family: Tahoma, sans-serif;
  font-size: 15px;
  color: #FFF; /* Белый текст */
  align-items: center;
  gap: 20px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
/* Анимация при наведении */

/* Аватар пользователя */
.nausrprimg {
  width: 80px;
  height: 80px;
  border: 4px solid #444; /* Тёмно-серый контур */
  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: #f1ba54; /* Оранжевый текст */
  margin-bottom: 5px;
}

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

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

.user-title a:hover {
  text-decoration: underline;
  color: #FFB84D; /* Светло-оранжевый */
}

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

/* Контейнер хроники */
.nc1_row {
  width: 100%;
  max-width: 800px;
  margin: 20px auto;
  background: #333; /* Тёмно-серый фон */
  border: 3px solid #f1ba54; /* Оранжевый контур */
  border-radius: 8px;
  font-family: Tahoma, sans-serif;
  font-size: 15px;
  color: #FFF; /* Белый текст */
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.nc1_row:hover {
  box-shadow: 0 4px 8px rgba(255, 165, 0, 0.5); /* Оранжевая тень */
  transform: translateY(-3px);
}

/* Заголовок хроники */
.nc1_header {
  background: #f1ba54;
  color: #000; /* Чёрный текст */
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
  border-radius: 8px 8px 0 0;
}

/* Контент хроники */
.newsna {
  padding: 15px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #DDD; /* Светло-серый текст */
}

.newsna a {
  text-decoration: none;
  color: #f1ba54;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Дата */
.nc1_date {
  color: #FFF;
  text-shadow: 1px 1px 1px #000;
  font-size: 16px;
  padding: 5px 10px;
  background: #f1ba54;
  text-align: center;
  border-radius: 5px;
}

/* Контейнер текста */
.text-preview {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.6;
  font-size: 16px;
  color: #DDD;
  font-family: Tahoma, sans-serif;
  margin-bottom: 10px;
  text-align: justify;
}

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

.read-more:hover {
  color: #FFB84D;
  text-decoration: underline;
}

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

.na3_row:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(255, 165, 0, 0.5); /* Оранжевая тень */
}

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

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

.na3_news a {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: #f1ba54;
  transition: color 0.3s ease, transform 0.2s ease;
}

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

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

.na3_date {
  display: inline-block;
  background: #f1ba54;
  color: #000;
  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: #f1ba54;
  color: #000;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: bold;
  border: 3px solid #f1ba54;
  border-radius: 5px;
}

/* Контент блока */
.chr_content {
  color: #FFF;
}

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

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

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

/* Дата публикации */
.chr_date {
  text-align: center;
  background: #f1ba54;
  color: #000;
  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: 2px solid #444;   /* Тёмно-серый контур */
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;         /* Чёрный фон */
}

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

/* Стили переключателя темы */
.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: #444; /* Тёмно-серый фон для ночной темы */
  transition: 0.4s;
  border-radius: 40px;
}

.days-slider:before {
  position: absolute;
  content: '';
  height: 32px;
  width: 32px;
  left: 4px;
  bottom: 4px;
  background-color: #FFF; /* Белый круг для переключателя */
  transition: 0.4s;
  border-radius: 50%;
}

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

input:checked + .days-slider:before {
  transform: translateX(40px); /* Двигается вправо */
}

/* Стили переключателя кнопки */
.theme-toggle-btn {
  padding: 10px 20px;
  font-size: 16px;
  background: #f1ba54; /* Рыжий фон */
  color: #FFF;         /* Белый текст */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn:hover {
  background: #FFB84D; /* Светло-оранжевый фон */
  color: #000;         /* Чёрный текст */
}
.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 #555555;
  font-size: 16px;
  font-family: 'Tahoma', Geneva, sans-serif;
  color: #ffffff;
  background-color: #333333;
  padding: 10px;
  border-radius: 10px;
}

.comments-styles-button {
  background-color: #e07a3b;
  color: #ffffff;
  border: 1px solid #555555;
  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 #555555;
  border-radius: 50%;
  overflow: hidden;
}

.comments-styles-comment-block {
  background-color: #2a2a2a;
  border: 3px solid #555555;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #f1f1f1;
}

.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;
}

