/* BUNDLE: core-bundle | Generated: 2026-03-07 19:52:56 | Sources: 7 */

/* --- File: fonts.css --- */
/* roboto-300 - latin_cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/roboto/roboto-v30-latin_cyrillic-300.woff2') format('woff2');
}
/* roboto-regular - latin_cyrillic (fallback to 500 if 400 is missing) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/roboto/roboto-v30-latin_cyrillic-500.woff2') format('woff2');
}
/* roboto-500 - latin_cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/roboto/roboto-v30-latin_cyrillic-500.woff2') format('woff2');
}
/* roboto-700 - latin_cyrillic */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/roboto/roboto-v30-latin_cyrillic-700.woff2') format('woff2');
}

/* montserrat-500 - latin_cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v25-latin_cyrillic-500.woff2') format('woff2');
}
/* montserrat-600 - latin_cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v25-latin_cyrillic-600.woff2') format('woff2');
}
/* montserrat-700 - latin_cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-v25-latin_cyrillic-700.woff2') format('woff2');
}


/* --- File: style.css --- */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

:root {
    --site-width: 1800px;
}

.container {
    /* width: 95%; */
    /* max-width удален - ширина контролируется через .main-content */
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 4px;
    /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); */
    overflow-x: hidden;
    /* Предотвращает появление горизонтального скролла на странице */
}

h1 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #2980b9;
    color: #ffffff;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 16px;
}

.button-group {
    margin: 15px 0;
}

.button-primary {
    background-color: #2ecc71;
    color: var(--light-color) !important;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 0;
    transition: background-color 0.3s;
}

.button-primary:disabled {
    background-color: #f5f7fa !important;
    border-color: #9ca3af !important;
    color: #374151 !important;
    cursor: not-allowed;
    opacity: 1;
}

.button-primary:disabled:hover {
    background-color: #9ca3af !important;
}

.button-secondary {
    background-color: #3498db;
    color: var(--light-color) !important;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    transition: background-color 0.3s;
}

.button-primary:hover {
    background-color: #27ae60;
}

.all-articles-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    background-color: #ffffff;
    color: #3498db;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
}

.all-articles-button:hover {
    background-color: #ffffff;
    border-color: #3498db;
    color: #2980b9 !important;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
}

/* Стили для textarea */
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.3s;
    line-height: 1.5;
}

textarea:focus {
    border-color: #3498db;
    outline: none;
}

/* Стили для таблиц */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-y: visible;
    /* Предотвращаем вертикальный скролл */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table th,
table td {
    padding: 10px 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: middle;
}

/* Стили для заголовка таблицы */
table thead tr {
    background-color: #f5f7fa;
    color: #333;
    font-weight: 600;
}

table th {
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.1);
}

/* Чередование цветов строк */
table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Эффект при наведении на строку */
table tbody tr:hover {
    background-color: #f0f8ff;
}

/* Ширина колонок */
.checkbox-column {
    width: 30px;
    text-align: center;
}

.fa-sign-in-alt:before{
	font-size: 18px;
}

.user-actions {
    margin-right: 10px;
}

.id-column {
    width: 40px;
    text-align: center;
}

.avatar-column {
    width: 50px;
    text-align: center;
}

.nickname-column {
    width: 120px;
}

.name-column {
    width: 120px;
}

.email-column {
    width: 180px;
}

.phone-column {
    width: 120px;
}

.country-column {
    width: 120px;
}

.city-column {
    width: 120px;
}

.actions-column {
    width: 100px;
    text-align: center;
}

/* Стили для аватара в таблице */
.avatar-cell {
    text-align: center;
    width: 50px;
}

.user-avatar-thumbnail {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Стили для кнопок действий */
.actions {
    white-space: nowrap;
    width: 80px;
    text-align: center;
}

/* Улучшенные стили для кнопок действий в таблице */
.actions .action-button {
    display: inline-block;
    width: 32px;
    height: 32px;
    margin: 2px;
    text-align: center;
    border-radius: 4px;
    line-height: 32px;
    /* Выравнивание иконки по центру */
    font-size: 16px;
    cursor: pointer;
    color: #333;
    text-decoration: none;
    background-color: transparent;
    border: none;
    transition: color 0.3s;
}

.actions .action-button:hover {
    color: #3498db;
    /* Цвет иконки при наведении */
}

.action-edit {
    color: #3498db;
    /* Цвет иконки "Редактировать" */
}

.action-edit:hover {
    color: #2980b9;
    /* Цвет при наведении */
}

.action-delete {
    color: #e74c3c;
    /* Цвет иконки "Удалить" */
}

.action-delete:hover {
    color: #c0392b;
    /* Цвет при наведении */
}

/* Убираем стили для подсказок */
.action-button .tooltip {
    display: none;
    /* Полностью скрываем tooltip */
}

/* Исправляем стили для table-container, чтобы убрать скролл */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow-y: visible;
    /* Предотвращаем вертикальный скролл */
}

/* Стили для кнопок на странице профиля */
.profile-actions .action-button {
    width: 40px;
    /* Увеличиваем размер кнопок */
    height: 40px;
    line-height: 40px;
    font-size: 20px;
    /* Увеличиваем размер иконок */
    margin: 5px;
}

/* Убираем заливку и добавляем прозрачность */
.profile-actions .action-button {
    background-color: transparent;
    border: none;
    color: #333;
}

.profile-actions .action-button:hover {
    color: #3498db;
    /* Цвет при наведении */
}

/* Общие сообщения */
.message {
    padding: 15px;
    margin: 20px 0;
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    color: #495057;
}

/* Стили для уведомления о модерации */
.moderation-notice {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 4px;
    color: #856404;
}

.moderation-notice p {
    margin: 0;
    font-size: 16px;
}

.moderation-notice strong {
    color: #d68910;
}

.moderation-notice i {
    margin-right: 8px;
    color: #f39c12;
}

/* Стили для сообщений с возможностью закрытия */
.success-message,
.error-message {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.message-content {
    flex-grow: 1;
}

.close-message {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-message:hover {
    opacity: 1;
}

.countdown {
    display: block;
    font-size: 0.8em;
    opacity: 0.7;
    margin-top: 5px;
}

/* Стили для карточек на главной странице */
.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.card {
    flex: 1 0 300px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f5f7fa;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h2 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.card-body {
    padding: 20px;
    background-color: white;
}

.card-body p {
    margin-top: 0;
    margin-bottom: 20px;
    color: #555;
}

/* Информация о приложении */
.app-info {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
}

.app-info h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Стили для формы поиска */
.search-form {
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.search-button {
    padding: 4px 8px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-button:hover {
    background-color: #2980b9;
}

/* Стиль для группы кнопок в строке */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* Адаптивность для кнопок в строке */
@media (max-width: 600px) {
    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .button-row button,
    .button-row a {
        margin-left: 0 !important;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .search-container {
        flex-direction: column;
    }

    .search-input,
    .search-button {
        width: auto;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 22px;
    }

    .feature-cards {
        flex-direction: column;
    }

    .card {
        flex: none;
        margin-bottom: 15px;
    }

    .button-primary,
    .button-secondary,
    .button-danger {
        display: block;
        text-align: center;
    }

    .actions {
        display: flex;
        flex-direction: column;
    }

    .actions a {
        margin-bottom: 5px;
    }

    input[type="text"],
    input[type="email"] {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 15px;
        width: 100%;
    }

    table th,
    table td {
        padding: 8px;
    }
}

/* Стили для полей ввода телефона */
input[type="tel"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="tel"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Стили для полей даты */
input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="date"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* Группировка полей формы */
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1 0 calc(50% - 10px);
    min-width: 250px;
}

/* Стили для полей с информацией о пользователе */
.user-info-section {
    margin-top: 20px;
    margin-bottom: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.section-title {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 18px;
}

/* Стили для чекбоксов */
.checkbox-column {
    width: 40px;
    text-align: center;
}

table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Стили для массовых действий */
.bulk-actions {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

/* Стили для пагинации */
.pagination {
    margin: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
		font-size: 12px;
}

.page-link {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #3498db;
}

.page-link:hover {
    background-color: #f5f5f5;
}

.page-link.current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    cursor: default;
}

.page-ellipsis {
    display: inline-block;
    margin: 0 3px;
}

/* Стили для input элементов в пагинации */
.pagination-goto-input,
.page-input {
    max-width: 50px;
    padding: 4px 8px;
    margin: 0;
    border: 1px solid #ddd;
    border-radius: 3px 0 0 3px;
    border-right: none;
    text-align: center;
    font-size: 14px;
    height: 22px;
    color: #333;
    background-color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pagination-goto-input:focus,
.page-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.pagination-goto-input:hover,
.page-input:hover {
    border-color: #bbb;
}

/* Стили для кнопки "Перейти" в пагинации */
.page-go,
.pagination-goto-button {
    padding: 5px 12px;
    margin: 0;
    border: 1px solid #3498db;
    border-radius: 0 3px 3px 0;
    background-color: #3498db;
    color: white;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s;
}

.page-go:hover,
.pagination-goto-button:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Стили для формы пагинации */
.page-form,
.pagination-goto-form {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 5px;
    padding: 0;
    vertical-align: middle;
}

/* Стили для статистики пользователей */
.users-stats {
    margin: 15px 0;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    color: #333;
}

.users-stats strong {
    color: #2980b9;
}

/* Стили для блока инструкций импорта */
.import-instructions {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
}

.import-instructions h3 {
    margin-top: 0;
    color: #2c3e50;
}

.import-instructions ol {
    padding-left: 20px;
}

.import-instructions li {
    margin-bottom: 8px;
}

/* Стили для поля загрузки файла */
input[type="file"] {
    width: auto;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 4px;
}

small {
    display: block;
    margin-top: 5px;
    color: #666;
}

/* Стили для фильтрации */
.filter-container {
    background-color: #f8f9fa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.filter-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
}

.filter-actions {
    display: flex;
    align-items: center;
    margin-top: 15px;
}

select {
    /* width: 100%; */
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #3498db;
    outline: none;
}

.reset-filter {
    margin-left: 15px;
    color: #e74c3c;
    text-decoration: underline;
}

.reset-filter:hover {
    color: #c0392b;
}

/* Стили для страницы профиля пользователя */
.profile-card {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-header {
    padding: 20px;
    background-color: #f5f7fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.profile-actions {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-direction: column;
}

.profile-section {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #3498db;
    font-size: 18px;
}

.profile-data {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.data-row {
    display: flex;
    flex-wrap: wrap;
}

.data-label {
    /* width: 150px; */
    font-weight: 600;
    color: #555;
}

.data-value {
    flex: 1;
    min-width: 200px;
}

.profile-about {
    line-height: 1.6;
    color: #333;
}

/* Стили для ссылки на никнейм */
.nickname-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nickname-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Стили для аватарок */
.avatar-preview {
    /* margin-top: 10px; */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    /*10px*/
}

.avatar-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-input {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.user-avatar-thumbnail {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-cell {
    text-align: center;
    width: 50px;
}

/* Стили для профиля с аватаркой */
.user-info-with-avatar {
    display: flex;
    align-items: center;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Адаптивность для профиля */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-actions {
        margin-top: 15px;
    }

    .data-label {
        /* width: 100%; */
        margin-bottom: 5px;
    }

    .data-value {
        width: 100%;
        padding-left: 10px;
    }
}

/* Адаптивность для профиля с аватаром */
@media (max-width: 768px) {
    .user-info-with-avatar {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .user-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-actions {
        margin-top: 20px;
    }
}

/* Исправленные стили для шапки сайта */
body {
    padding: 0;
    /* Убираем отступ, создающий белую полосу по краям */
}

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Меняем с sticky на relative, чтобы избежать конфликтов */
    z-index: 1000;
    padding: 10px 0;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 5px 0;
}

/* Стили для логотипа */
.logo h1 {
    margin: 0;
    padding: 0;
    font-size: 24px;
    color: #333;
    border: none;
}

.logo span {
    color: #3498db;
    font-weight: 700;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

/* Стили для главной навигации */
.main-nav {
    position: relative;
    overflow: visible;
    /* Важно: чтобы выпадающее меню не обрезалось */
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.main-nav a:hover {
    background-color: #f5f7fa;
    color: #3498db;
}

.main-nav a.active {
    background-color: #3498db;
    color: white;
}

/* Стили для блока действий пользователя */
.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 15px;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-welcome {
    padding: 10px 15px;
    background-color: #f5f7fa;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.user-welcome:hover {
    background-color: #e9ecef;
}

.user-welcome strong {
    color: #3498db;
}

.user-welcome i {
    font-size: 12px;
    color: #777;
    transition: transform 0.2s;
}

.user-dropdown:hover i {
    transform: rotate(0deg);
}

/* Выпадающее меню */
.dropdown-content {
    position: fixed;
    /* Изменено с absolute на fixed для совместимости */
    top: 100%;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    width: auto;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 3000;
    /* Увеличен z-index */
    padding: 8px 0;
}

.user-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
		overflow-y: auto;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #3498db;
}

.dropdown-content i {
    width: 16px;
    text-align: center;
}

/* Стили для остальной части страницы */

.main-content .container {
    /* max-width убран - ширина контролируется через .main-content */
    border-radius: 4px;
    /* margin-top: 20px; */
		overflow-y: hidden;
}

.main-content{
		max-width: var(--site-width, 1800px) !important;
    /* background-color: white; */
    border-radius: 4px;
		padding: 0 20px;
    margin-top: 20px;
		margin: 0 auto;
}

span.slider.round {
    min-width: 45px;
}

/* Исправления для мобильных устройств */
@media (max-width: 992px) {
    .site-header .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: row;
        gap: 5px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .user-actions {
        width: 100%;
        justify-content: center;
    }

    .user-dropdown {
        width: 100%;
    }

    .user-welcome {
        justify-content: center;
    }

    .dropdown-content {
        width: 100%;
    }

    .main-content .container {
        /* background-color: white; */
        border-radius: 4px;
        /* padding: 5px; */
        margin-top: 20px;
    }
}

.form-group.button-group {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}

/* =================================
   МОБИЛЬНЫЕ СТИЛИ
   ================================= */

/* Мобильная нижняя навигация и сайдбар */
@media (max-width: 768px) {
    .main-content {

        border-radius: 4px;
        padding: 10px;
        margin-top: 10px;
    }

    .main-nav {
        display: none !important;
    }

    .nav-more-btn {
        display: none !important;
    }

    /* Основной контент */
    .main-content {
        padding-bottom: 70px;
        /* Отступ для нижней навигации */
    }

    .container {
        padding: 15px;
        margin: 0;
    }

    /* Мобильная нижняя навигация */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        height: 60px;
        background: #fff;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
        z-index: 500;
        justify-content: space-around;
        align-items: center;
        border-top: 1px solid #e5e5e5;
    }

    /* Мобильный сайдбар */
    .mobile-sidebar {
        display: block !important;
        position: fixed;
        /* top: 0; */
        left: -310px;
        width: 300px;
        height: 95%;
        background: #fff;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
        z-index: 1200;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        padding-top: 0;
    }

    .mobile-sidebar.open {
        left: 0;
    }

    .mobile-sidebar .close-sidebar {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 5px;
        line-height: 1;
        z-index: 10;
    }

    .mobile-sidebar .close-sidebar:hover {
        color: #333;
    }

    /* Блокировка скролла когда открыт сайдбар */
    body.mobile-sidebar-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Список в мобильном сайдбаре */
    .mobile-sidebar ul.mobile-sidebar-menu {
        padding: 0 0 20px 0;
        /* margin: 0; */
        list-style: none;
				/* overflow-y: auto;
        height: 100%; */
    }

    .mobile-sidebar li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-sidebar li:last-child {
        border-bottom: none;
    }

    .mobile-sidebar a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 15px;
        color: #374151;
        text-decoration: none;
        transition: background 0.2s, color 0.2s;
        border-left: 3px solid transparent;
				line-height: 1.3rem;
    }

    .mobile-sidebar a:hover,
    .mobile-sidebar a:active {
        background: #f8f9fa;
        color: #2563eb;
        border-left-color: #2563eb;
    }

    .mobile-sidebar i {
        font-size: 18px;
        min-width: 20px;
        text-align: center;
        color: #6b7280;
    }

    .mobile-sidebar a:hover i {
        color: #2563eb;
    }

    /* Overlay для сайдбара */
    .mobile-sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1150;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    }

    body.mobile-sidebar-open .mobile-sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Заголовки */
    h1 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 18px;
    }

    /* Кнопки */
    .button-primary,
    .button-secondary,
    .button-danger {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Формы */
    .form-group {
        margin-bottom: 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
        /* Предотвращает зум на iOS */
        padding: 12px;
    }

    /* Таблицы */
    table {
        font-size: 14px;
    }

    /* Модальные окна и выпадающие меню */
    .dropdown-content {
        position: fixed !important;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Скрыть иконку языка в мобильной версии */
    .language-icon {
        display: none;
    }

    /* Адаптивные стили для пагинации */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin: 20px 0;
    }

    .page-link {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
        text-align: center;
    }

    .pagination-goto-input,
    .page-input {
        max-width: 50px;
        padding: 4px 6px;
        font-size: 13px;
        border-radius: 3px 0 0 3px;
        border-right: none;
    }

    .page-go,
    .pagination-goto-button {
        border-radius: 0 3px 3px 0;
    }

    .page-form,
    .pagination-goto-form {
        /* padding: 4px 8px; */
        gap: 0;
    }
}

/* По умолчанию скрываем мобильные элементы на десктопе */
.mobile-bottom-nav,
.mobile-sidebar,
.mobile-sidebar-overlay {
    display: none;
}

/* Исключение для мобильного сайдбара - он должен быть доступен на всех устройствах */
.mobile-sidebar {
    display: none;
}

/* Стили для мобильной нижней навигации */
.mobile-bottom-nav a,
.mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 4px;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    min-width: 0;
    flex: 1;
    border-radius: 8px;
    margin: 2px;
}

.mobile-bottom-nav a:hover,
.mobile-bottom-nav button:hover,
.mobile-bottom-nav a:active,
.mobile-bottom-nav button:active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
}

.mobile-bottom-nav i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-bottom-nav span {
    font-size: 11px;
    line-height: 1;
    font-weight: 500;
}

/* Дополнительные адаптивные стили для очень маленьких экранов */
@media (max-width: 480px) {}

/* Стили для кнопки жалобы */
.report-button {
    display: inline-flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    transition: all 0.3s ease;
}

.report-button:hover {
    background-color: #e9ecef;
    color: #495057;
    border-color: #adb5bd;
}

/* Модальное окно для жалоб */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    border-radius: 8px 8px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-body select:focus,
.modal-body textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

.char-counter {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    text-align: right;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 0px solid #e9ecef;
}

.form-actions-delete-articles{
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.form-actions .button-secondary,
.form-actions .button-primary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

/* .form-actions .button-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}*/

.form-actions .button-secondary:hover {
    background-color: #2980b9;
} 

.form-actions .button-primary {
    background-color: #3498db;
    color: white;
}

.form-actions .button-primary:hover {
    background-color: #2980b9;
}

.form-actions .button-primary:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Универсальная система уведомлений */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    pointer-events: none;
    max-width: 350px;
    width: auto;
    /* Предотвращаем overflow */
    box-sizing: border-box;
}

.notification {
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    max-width: 350px;
    word-wrap: break-word;
    pointer-events: auto;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #212529;
}

.notification.info {
    background: #17a2b8;
}

.notification i {
    font-size: 16px;
    flex-shrink: 0;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

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

/* Адаптивность для уведомлений */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    .notification {
        max-width: none;
        margin-bottom: 8px;
    }
}

/* Предотвращение overflow на больших экранах */
@media (min-width: 1200px) {
    .notification-container {
        right: max(20px, calc((100vw - 1200px) / 2 + 20px));
    }
}

/* Анимация появления */
@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification.slide-in {
    animation: notificationSlideIn 0.3s ease-out;
}

/* Стили для обязательных полей в форме жалобы */
.modal-body label[for="report-description"]:after {
    content: " *";
    color: #d32f2f;
    font-weight: bold;
}

.modal-body textarea[required] {
    border-left: 3px solid #e0e0e0;
    transition: border-left-color 0.3s ease;
}

.modal-body textarea[required]:focus {
    border-left-color: #3498db;
}

.modal-body textarea[required]:invalid {
    border-left-color: #d32f2f;
}

.modal-body textarea[required]:valid {
    border-left-color: #4caf50;
}

/* Стили для сообщений валидации */
.validation-error {
    color: #d32f2f;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.validation-success {
    color: #4caf50;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
@media (max-width: 480px) {}

/* Стили для кнопок истории модерации */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

.btn-history {
    background-color: #9b59b6;
    color: white;
}

.btn-history:hover {
    background-color: #8e44ad;
    color: white;
    text-decoration: none;
}

.btn-resubmit {
    background-color: #f39c12;
    color: white;
}

.btn-resubmit:hover {
    background-color: #e67e22;
    color: white;
    text-decoration: none;
}

.btn-primary {
    background-color: #2ecc71;
    color: white;
}

.btn-primary:hover {
    background-color: #27ae60;
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: #95a5a6;
    color: #666666;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    color: #666666;
    text-decoration: none;
}

.btn-admin {
    background-color: #e74c3c;
    color: white;
}

.btn-admin:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

/* ================================
   КНОПКА "НАВЕРХ"
   ================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f99);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 15px rgba(52, 152, 219, 0.3);
}

input#images {
    width: auto;
}

div#images-preview {
    margin-bottom: 15px;
}

main.main-content>.container>.content-card>.feature-cards>.card>.card-body>a.button-secondary {
    display: inline-flex;
}

main.main-content>.container>.content-card>.feature-cards>.card>.card-body>a.button-primary {
    width: auto;
}

.publish-buttons{
display: flex;
justify-content: center;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {

    .scroll-to-top {
        bottom: 65px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 16px;
        opacity: 0.7 !important;
        background: #05254e;

    }

    .site-header {
        margin-bottom: 0;
    }

    .card-body {
        padding: 20px;
        background-color: white;
        gap: 5px !important;
        display: flex;
        flex-direction: column;
    }

    /* .form-group input,
    .form-group textarea {
        width: auto !important;
        padding: 10px;
        border: 1px solid #ced4da;
        border-radius: 4px;
        font-size: 16px;
    } */
}

@media (max-width: 480px) {

    .scroll-to-top {
        bottom: 65px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 14px;
    }

    .main-content {
        padding: 0;
        margin-top: 10px;
    }


    .container {
        padding: 10px;
    }

    h1 {
        font-size: 18px;
    }

    .button-primary,
    .button-secondary,
    .button-danger {
        padding: 10px 14px;
        font-size: 15px;
    }

    .mobile-bottom-nav {
        height: 55px;
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        padding: 4px 2px !important;
    }

    .mobile-sidebar {
        width: 300px;
        left: -310px;
    }

    .form-group.button-group>button.button-primary,
    button.button-secondary {
        width: 100%;
    }

    .form-group.button-group {
        gap: 2px;
    }
}
/* Styles for clickable like counts */
.likes-count-clickable,
.dislikes-count-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
    padding: 2px 4px;
    margin-left: 2px;
}

.likes-count-clickable:hover,
.dislikes-count-clickable:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.likes-readonly .likes-count-clickable,
.likes-readonly .dislikes-count-clickable {
    color: #666;
    font-weight: 500;
}

.likes-readonly .likes-count-clickable:hover,
.likes-readonly .dislikes-count-clickable:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: #3498db;
}


/*даптивность для модального окна */ 
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-header,
    .modal-body {
        padding: 10px 0;
    }

    .form-actions {
        flex-direction: column;
        gap: 8px;
    }

		.form-actions-delete-articles{
			  flex-direction: row;
        gap: 8px;
				width: fit-content;
		}

    .form-actions .button-secondary,
    .form-actions .button-primary {
        width: 100%;
        text-align: center;
    }
}

/* Стили для article-footer с кнопкой жалобы */
.article-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .article-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .article-actions .button-secondary,
    .article-actions .report-button {
        text-align: center;
        justify-content: center;
    }
		.label-text-tags-help{
			margin-top: 5px;
		}

		.tags-help {
    padding: 0;
}
}

/* Специальные стили для уведомлений Instagram с HTML */
.notification .notification-content {
    line-height: 1.4;
}

.notification .notification-content strong {
    display: block;
    margin-bottom: 4px;
}

.notification .notification-content small {
    opacity: 0.9;
    font-size: 11px;
    line-height: 1.3;
}

.notification.instagram-notification {
    max-width: 300px;
    padding: 16px 20px;
}

@media (max-width: 768px) {
    .notification.instagram-notification {
        max-width: none;
        font-size: 14px;
    }
    
    .notification .notification-content small {
        font-size: 12px;
    }
}

/* Адаптивные изображения в статьях (вставленные через редактор) */
img.adaptive-image {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 10px auto;
    border-radius: 4px;
    box-sizing: border-box;
}

/* --- File: headers.css --- */
.site-header {
    background: #f4f4f4;
    padding: 10px 0;
    width: 100%;
}

.site-header .container {
    max-width: var(--site-width, 1800px);
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.site-header .header-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    min-width: 0;
    box-sizing: border-box;
    flex-wrap: nowrap;
}

.site-header .logo {
    flex: 0 0 20%;
    max-width: 200px;
    min-width: 0;
}

.site-header .main-nav {
    flex: 1 1 50%;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    position: relative;
    box-sizing: border-box;
}

.site-header .main-nav .main-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
}

.site-header .main-nav .main-nav-list li {
    margin: 0;
    min-width: 0;
}

.site-header .main-nav .main-nav-list .nav-main-link {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    white-space: nowrap;
    min-width: 0;
}

.site-header .main-nav .main-nav-list .nav-main-link i {
    margin-right: 5px;
}

.site-header .main-nav .nav-more-btn {
    display: none;
    align-items: center;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
    padding: 5px 10px;
    margin-left: 0;
    min-width: 50px;
}

.site-header .main-nav .nav-more-btn i {
    margin-left: 5px;
}

.site-header .main-nav .nav-more-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: auto;
    min-width: 150px;
    top: 100%;
    right: 0;
    padding: 5px 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.site-header .main-nav .nav-more-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(-18px);
}

.site-header .main-nav .nav-more-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .main-nav .nav-more-list li {
    margin: 0;
    padding: 0;
}

.site-header .main-nav .nav-more-list .nav-main-link {
    color: #333;
    font-size: 16px;
    padding: 5px;
    width: max-content;
    border-radius: 5px;
}

.site-header .user-actions {
    flex: none;
    min-width: 0;
    text-align: right;
}

button#notifyBell {
    display: flex;
		gap: 2px;
}

/* Адаптивность для планшетов */
@media (max-width: 1200px) {
    .site-header .container {
        max-width: 100%;
    }

    .site-header .logo {
        flex: 0 0 auto;
        max-width: 300px;
    }

    .site-header .main-nav {
        flex: 1 1 50%;
    }
}

@media (max-width: 992px) {
    .site-header .container {
        padding: 0 8px;
    }

    .site-header .logo {
        flex: 0 0 auto;
        max-width: 300px;
    }
}

/* Мобильные устройства */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 0;
        border-bottom: 1px solid #e5e5e5;
    }

    a.button-primary {
        bottom: 0;
        margin-bottom: 0;
    }

    .site-header .container {
        padding: 0 10px;
    }

    .site-header .header-content {
        justify-content: space-between;
        padding: 0;
    }

    .site-header .logo {
        flex: 0 0 auto!important;
        max-width: 200px;
        margin-right: 10px;
    }

    .site-header .logo h1 {
        font-size: 14px !important;
        margin: 0;
    }

    .site-header .logo a {
        text-decoration: none;
    }

    .site-header .main-nav {
        display: none !important;
    }

    .site-header .user-actions {
        flex: 0 0 auto;
        margin-left: auto;
    }

    .user-actions .button-primary,
    .user-actions .button-outline {
        padding: 6px 12px;
        font-size: 14px;
    }

    a.button-primary {
        bottom: 0;
        margin-bottom: 0;
    }

    .user-welcome {
        font-size: 14px;
    }

    .user-avatar-mini {
        width: 28px;
    }

    .user-avatar-mini img,
    .user-avatar-mini .avatar-placeholder {
        width: 100%;
    }

    .username {
        display: none;
    }

    .user-welcome i {
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .site-header .logo h1 {
        font-size: 11px !important;
    }

    .user-actions .button-primary,
    .user-actions .button-outline {
        padding: 5px 10px;
        font-size: 13px;
    }
}

/* --- File: header-styles.css --- */
.site-header {
        background: #f4f4f4;
        padding: 10px 0;
        width: 100%;
        margin-bottom: 20px;
        min-height: 60px;
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    .site-header .container {
        max-width: var(--site-width, 1800px);
        margin: 0 auto;
        padding: 0 15px;
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }
    .site-header .header-content {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
        min-width: 0;
        box-sizing: border-box;
        flex-wrap: nowrap;
        min-height: 60px;
        padding: 0;
    }
    .site-header .logo {
        flex: 0 0 auto;
        max-width: 200px;
        min-width: 0;
        flex-shrink: 0;
    }
    .site-header .main-nav {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        justify-content: flex-end;
        position: relative;
        box-sizing: border-box;
    }
    .site-header .main-nav .main-nav-list {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        align-items: center;
        flex-wrap: nowrap;
    }
    .site-header .main-nav .main-nav-list li {
        margin: 0;
        min-width: 0;
    }
    .site-header .main-nav .main-nav-list .nav-main-link {
        text-decoration: none;
        color: #333;
        font-size: 14px;
        display: flex;
        align-items: center;
        padding: 4px 8px;
        white-space: nowrap;
        min-width: 0;
    }
    .site-header .main-nav .main-nav-list .nav-main-link i {
        margin-right: 5px;
    }
    .site-header .main-nav .nav-more-btn {
        display: none;
        align-items: center;
        background-color: #f3f4f6;
        border: none;
        color: #374151;
        padding: 0 12px;
        height: 34px;
        margin-left: 8px;
        border-radius: 8px;
        transition: all 0.2s ease;
        position: relative;
        cursor: pointer;
        font-weight: 500;
        font-size: 14px;
        white-space: nowrap;
    }

    .site-header .main-nav .nav-more-btn:hover {
        background-color: #e5e7eb;
        color: #1f2937;
    }
    .site-header .main-nav .nav-more-btn i {
        margin-left: 5px;
    }
    /* Выпадающее меню "Больше" — перенесено в body через JS */
    .nav-more-menu {
        background: #ffffff;
        border: 1px solid #e5e7eb;
        box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.08),
            0 10px 24px -4px rgba(0, 0, 0, 0.12);
        border-radius: 12px;
        padding: 6px;
        min-width: 160px;
        max-width: 280px;
        width: max-content;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-more-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .nav-more-list li {
        margin: 0;
        padding: 0;
    }

    .nav-more-list .nav-main-link,
    .nav-more-list .nav-more-link {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 9px 12px;
        border-radius: 8px;
        text-decoration: none;
        color: #374151;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
        white-space: nowrap;
        transition: background-color 0.15s ease, color 0.15s ease;
        width: 100% !important;
        box-sizing: border-box;
    }

    .nav-more-list .nav-main-link i,
    .nav-more-list .nav-more-link i {
        width: 18px;
        text-align: center;
        font-size: 14px;
        color: #9ca3af;
        flex-shrink: 0;
        transition: color 0.15s ease;
        margin-right: 0;
    }

    .nav-more-list .nav-main-link:hover,
    .nav-more-list .nav-more-link:hover {
        background-color: #f0f7ff;
        color: #007cba;
    }

    .nav-more-list .nav-main-link:hover i,
    .nav-more-list .nav-more-link:hover i {
        color: #007cba;
    }
    .site-header .user-actions {
        flex: 0 0 auto;
        flex-shrink: 0;
        min-width: 0;
        text-align: right;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    /* Unidied Styles for Header Action Buttons */
    .language-toggle, 
    .width-toggle, 
    .create-article-btn-round, 
    .notify-bell, 
    .header-filter-btn-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 34px !important;
        background-color: #f3f4f6 !important;
        color: #374151 !important;
        border: none !important;
        border-radius: 8px !important;
        padding: 0 8px !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
        font-size: 14px !important;
        text-decoration: none !important;
        position: relative;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }

    /* Specific fixed size for single-icon buttons */
    .width-toggle, 
    .create-article-btn-round, 
    .notify-bell, 
    .header-filter-btn-mobile {
        width: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
    }

    .language-toggle {
        min-width: 34px;
        gap: 4px;
    }

    .language-toggle:hover, 
    .width-toggle:hover, 
    .create-article-btn-round:hover, 
    .notify-bell:hover, 
    .header-filter-btn-mobile:hover {
        background-color: #e5e7eb !important;
        color: #1f2937 !important;
    }

    .header-filter-btn-mobile,
    .mobile-header-filter-wrapper {
        display: none !important; /* Hidden on desktop */
    }

    /* Кнопка "Создать статью" (Full version) */
    .create-article-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        background: linear-gradient(135deg, #007cba 0%, #308bb9 100%);
        color: white;
        text-decoration: none;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s ease;
        border: none;
        cursor: pointer;
        white-space: nowrap;
    }

    .create-article-btn:hover {
        background: linear-gradient(135deg, #005a87 0%, #004466 100%);
        color: #eeeeee;
    }

    .language-selector-compact {
        position: relative;
        display: inline-block;
    }

    .language-dropdown {
        position: fixed;
        background: #fff;
        border: 1px solid #e1e5e9;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 1000;
        padding: 0;
        min-width: 160px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        pointer-events: none;
        right: 0;
        max-width: 220px;
    }

    .language-dropdown:not(.hidden) {
        opacity: 1;
        visibility: visible;
        transform: translateY(8px);
        pointer-events: auto;
    }

    .language-option {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 8px 16px;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        font-size: 14px;
        color: #333;
        transition: background-color 0.15s ease;
    }

    .language-option:hover {
        background-color: rgba(0, 123, 186, 0.08);
        color: #2980b9;
    }

    .width-selector-compact {
        position: relative;
        display: flex;
        align-items: center;
    }

    .width-dropdown {
        position: fixed;
        background: #fff;
        border: 1px solid #e1e5e9;
        border-radius: 8px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        z-index: 3000;
        padding: 8px 0;
        min-width: 120px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all 0.2s ease;
        pointer-events: none;
    }

    .width-dropdown.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .width-option {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        padding: 8px 16px;
        background: none;
        border: none;
        text-align: left;
        cursor: pointer;
        font-size: 14px;
        color: #333;
        transition: background-color 0.15s ease;
    }

    .width-option:hover {
        background-color: rgba(0, 123, 186, 0.08);
        color: #007cba;
    }

    .width-option.active {
        background-color: rgba(52, 152, 219, 0.15);
        color: #3498db;
        font-weight: 600;
    }

    .width-option.active i {
        color: #3498db;
    }

    .open-right-sidebar-btn, 
    .open-profile-tabs-btn {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 6px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 12px;
        min-width: 50px;
    }

    .open-right-sidebar-btn:hover, 
    .open-profile-tabs-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    /* Notifications Panel Styles */
    .notif-modal { 
        position: fixed; 
        inset: 0; 
        z-index: 2000; 
        background: rgba(0,0,0,.45); 
        backdrop-filter: blur(4px);
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transition: all .3s ease;
    }
    .notif-modal.open { 
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
    }
    .notif-panel { 
        position: absolute; 
        right: 20px; 
        top: 70px; 
        width: 420px; 
        max-height: min(75vh, 600px); 
        overflow: hidden; 
        background:#fff; 
        border-radius:16px; 
        box-shadow: 0 20px 50px rgba(0,0,0,.2); 
        display:flex; 
        flex-direction:column; 
        transform: translateY(-20px) scale(0.95);
        transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .3s ease;
        opacity: 0;
    }
    .notif-modal.open .notif-panel {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    .notif-header { 
        display:flex; 
        align-items:center; 
        justify-content:space-between; 
        gap:8px; 
        padding:16px 20px; 
        border-bottom:1px solid #f3f4f6;
    }
    .notif-title { 
        font-weight:700; 
        font-size: 18px;
        color: #111827;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .notif-title i { color: #3b82f6; }
    .notif-close { border:none; background:transparent; font-size:24px; line-height:1; cursor:pointer; color:#9ca3af; padding:4px; transition: color .2s; }
    .notif-close:hover { color:#111827; background-color: #f0f0f0; }
    .notif-content { padding:0 16px 16px; overflow:auto; overscroll-behavior: contain; }
    .notif-section { margin-top: 16px; }
    .notif-section-title {
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6b7280;
        margin-bottom: 8px;
        padding: 0 4px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .notif-section-title i { font-size: 14px; opacity: 0.8; }
    
    .notif-list { 
        border:1px solid #f3f4f6; 
        border-radius:12px; 
        overflow:hidden; 
        background:#fff; 
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    .notif-general-item, .notif-message-item, .notif-feed-item { 
        display:flex; 
        gap:12px; 
        padding:12px; 
        border-bottom:1px solid #f3f4f6; 
        text-decoration:none; 
        color:inherit; 
        transition: background .2s, border-left .2s;
        border-left: 3px solid transparent;
    }
    .notif-general-item:last-child, .notif-message-item:last-child, .notif-feed-item:last-child { border-bottom:0; }
    .notif-general-item:hover, .notif-message-item:hover, .notif-feed-item:hover { background: #f9fafb; }
    .notif-general-item.unread, .notif-message-item.unread { background: #eff6ff; border-left-color: #3b82f6; }
    .notif-general-item.unread:hover { background: #dbeafe; }

    .notif-mark-all-btn {
        border: none;
        background: #f3f4f6;
        color: #6b7280;
        width: 28px;
        height: 28px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all .2s;
    }
    .notif-mark-all-btn:hover {
        background: #3b82f6;
        color: #fff;
    }

    .notif-empty {
        padding: 16px;
        text-align: center;
        color: #9ca3af;
        font-size: 14px;
        background: #fafafa;
    }

    .notif-skel { padding: 16px; color: #9ca3af; font-size: 14px; }

    /* Бэйдж уведомлений */
    .notify-bell .badge {
        position: absolute;
        top: -4px;
        right: -4px;
        background-color: #ef4444;
        color: #fff !important;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 5px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid #fff;
        box-sizing: content-box;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
        .site-header .container { padding: 0 4px; }
        .site-header .header-content {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 4px;
            display: flex !important;
            height: auto;
            min-height: 60px;
        }
        .site-header .main-nav { display: none !important; }
        .site-header .logo {
            flex: 0 0 30%;
            margin-right: 4px;
        }
        .site-header .user-actions {
            flex: none;
            margin-left: 4px;
            gap: 8px;
        }
        .create-article-btn, 
        .create-article-btn-round { 
            display: none !important; 
        }
        .header-filter-btn-mobile,
        .mobile-header-filter-wrapper { 
            display: flex !important; 
        }
        .width-selector-compact { display: none !important; }

        /* Скрываем иконку глобуса в переключателе языка на мобильных */
        .language-toggle .language-icon {
            display: none !important;
        }

        .notif-panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 85vh; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
        .notif-content { padding: 12px; max-height: calc(85vh - 48px); }
    }

    @media (max-width: 480px) {
        .site-header .logo { max-width: 100px; }
        .site-header .user-actions > a.button-outline,
        .site-header .user-actions > a.button-primary {
            font-size: 0;
            padding: 8px 10px;
        }
    }

/* Ownership Revert Banner */
.ownership-revert-banner {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px;
    padding: 12px 14px;
    z-index: 10000;
    max-width: 380px;
    box-sizing: border-box;
}

.ownership-revert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ownership-revert-title {
    font-weight: 600;
    font-size: 14px;
}

#ownershipRevertClose {
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
}

.ownership-revert-body {
    display: flex;
    gap: 8px;
    align-items: center;
}

#ownershipRevertSelect {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #111827;
    width: 100%;
}

#ownershipRevertNow {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ownership-revert-footer {
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}


/* --- File: header-dropdown-fix.css --- */
/* Исправления для выпадающего меню пользователя */

.user-dropdown {
    position: relative;
}

.dropdown-content {
    display: block;
    position: fixed;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 1px solid #e1e4e8;
    width: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 3000;
    padding: 8px 0;
    max-width: 280px;
    /* Дополнительное смещение для лучшего выравнивания */
    margin-right: -15px;
}

.user-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 3000;
		overflow-y: auto;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 10px;
    color: #333;
    text-decoration: none;
    border-bottom: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
    white-space: nowrap;
}

.dropdown-content a:hover {
    background-color: #f6f8fa;
    color: #0366d6;
}

.dropdown-content a i {
    width: 16px;
    text-align: center;
    color: #586069;
}

.dropdown-content a:hover i {
    color: #0366d6;
}

.dropdown-divider {
    height: 1px;
    background-color: #e1e4e8;
    margin: 8px 0;
}

.admin-link, .moderation-link {
    border-left: 3px solid transparent;
}

.admin-link:hover, .moderation-link:hover {
    border-left: 3px solid #0366d6;
    background-color: rgba(3, 102, 214, 0.05);
}

.logout-link {
    color: #d73a49 !important;
}

.logout-link:hover {
    background-color: rgba(215, 58, 73, 0.05) !important;
    color: #d73a49 !important;
}

.logout-link i {
    color: #d73a49 !important;
}

.badge {
    background-color: #d73a49;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    font-weight: 600;
}


/* --- File: modern.css --- */
/* Современный стиль для Портал Знаний */



:root {

    --a-primary-color: var(--gray-light);

    --primary-color: #3498db;

    --primary-dark: #2980b9;

    --secondary-color: #2ecc71;

    --secondary-dark: #27ae60;

    --accent-color: #e74c3c;

    --dark-color: #2c3e50;

    --light-color: #ecf0f1;

    --gray-light: #f8f9fa;

    --gray-medium: #e9ecef;

    --gray-dark: #6c757d;

    --success-color: #2ecc71;

    --warning-color: #f39c12;

    --danger-color: #e74c3c;

    --info-color: #3498db;



    --border-radius: 4px;

    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;

}



/* Основные стили */

body {

    font-family: 'Roboto', sans-serif;

    /* line-height: 1.6; */

    color: #333;

    background-color: #f5f7fa;

    margin: 0;

    padding: 0;

}



.container {

    max-width: 100%;

    margin: 0 auto;

    padding: 0 15px;

    width: 100%;

    box-sizing: border-box;

}



h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: 'Montserrat', sans-serif;

    font-weight: 600;

    color: var(--dark-color);

    margin-top: 0;

}



a {

    color: var(--primary-color);

    text-decoration: none;

    transition: var(--transition);

}



a:hover {

    /* color: var(--a-primapy-color); */

    color: #0b90ac;

}



/* Шапка сайта */

.nav-more-menu.active {

    top: 60px !important;

}

ul.nav-more-list {
    display: flex;
    flex-direction: column;
}

.site-header {

    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 900;
    padding: 0;

    /* height: 60px; */

}



.header-content {

    display: flex;

    justify-content: space-between;

    align-items: center;

    /* padding: 5px 0 0 0; */

}



.logo h1 {

    font-size: 21px;

    margin: 0;

    border-bottom: none;

    display: flex;

    align-items: center;

}



.logo span {

    color: var(--primary-color);

    font-weight: 700;

}



.logo i {

    margin-right: 8px;

    color: var(--primary-color);

}



/* Навигация */

.main-nav ul {

    display: flex;

    list-style: none;

    padding: 0;

    margin: 0;

    gap: 1px;

}



.main-nav a {

    display: flex;

    align-items: center;

    padding: 10px 15px;

    color: #333;

    font-weight: 500;

    border-radius: var(--border-radius);

    transition: var(--transition);

}



.main-nav a i {

    margin-right: 5px;

    font-size: 14px;

}



.main-nav a:hover {

    background-color: var(--gray-light);

    color: var(--primary-color);

}



.main-nav a.active {

    background-color: var(--primary-color);

    color: white;

}



.nav-create {

    background-color: var(--secondary-color);

    color: white !important;

}



.nav-create:hover {

    background-color: var(--secondary-dark) !important;

    color: white !important;

}



/* Мобильное меню */

.mobile-menu-toggle {

    display: none;

    background: none;

    border: none;

    font-size: 24px;

    color: var(--dark-color);

    cursor: pointer;

}



/* Блок авторизации */

.user-actions {

    display: flex;

    align-items: center;

    gap: 10px;

}



.button-outline,
.button-primary {

    display: inline-flex;

    align-items: center;

    padding: 4px 8px;

    border-radius: var(--border-radius);

    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);

}



.button-outline {

    border: 1px solid var(--primary-color);

    color: var(--primary-color);

    background-color: transparent;

}



.button-outline:hover {

    background-color: var(--primary-color);

    color: white;

}



.button-primary {

    background-color: var(--primary-color);

    color: white;

    border: none;

}



.button-primary:hover {

    background-color: var(--primary-dark);

    color: var(--light-color);

}



.button-primary i,
.button-outline i {

    margin-right: 6px;

}



/* Выпадающее меню пользователя */

.user-dropdown {

    position: relative;

}



.user-welcome {

    display: flex;

    align-items: center;

    gap: 4px;

    padding: 6px 10px;

    background-color: var(--gray-light);

    border-radius: var(--border-radius);

    cursor: pointer;

    transition: var(--transition);

}



.user-welcome:hover {

    background-color: var(--gray-medium);

}



.user-avatar-mini {

    width: 30px;

    height: 30px;

    border-radius: 50%;

    overflow: hidden;

    background-color: var(--primary-color);

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-weight: bold;

    font-size: 14px;

}



.user-avatar-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;

}



/* Аватар в комментариях (клиентская и серверная верстка используют этот класс) */
.user-avatar-thumbnail {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Аватар автора в карточке статьи */
.author-link-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.author-avatar-mini {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease;
}

.author-link-wrapper:hover .author-avatar-mini {
    transform: scale(1.1);
}

.author-nickname {
    font-weight: 600;
    color: #3b82f6;
}

.author-link-wrapper:hover .author-nickname {
    color: #2563eb;
    text-decoration: underline;
}

.avatar-placeholder {

    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: var(--primary-color);

    color: white;

}



.username {

    font-weight: 500;

    font-size: 14px;

}



.user-welcome i {

    font-size: 12px;

    color: var(--gray-dark);

    transition: transform 0.2s;

}



.user-dropdown:hover i {

    transform: rotate(0deg);

}



/* Исправление выпадающего меню */

.dropdown-content {

    position: fixed;
    /* Меняем на fixed вместо absolute */

    margin-top: 5px;
    /* Добавляем отступ сверху */

    right: auto;
    /* Отменяем right: 0 */

    background-color: white;

    min-width: 200px;

    border-radius: var(--border-radius);

    box-shadow: var(--box-shadow);

    padding: 0;

    z-index: 9999;
    /* Увеличиваем z-index, чтобы меню было поверх всех элементов */

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;

    top: auto !important;

}



.user-dropdown.active .dropdown-content {

    opacity: 1;

    visibility: visible;

    transform: translateY(8px);

    transition: opacity 0.2s, transform 0.2s, visibility 0s;
		overflow-y: auto;

}



/* Исправление позиционирования выпадающего меню при мобильной версии */

@media (max-width: 576px) {

    .dropdown-content {

        position: absolute;

        width: 100%;

        left: 0;

        right: 0;

    }

}


.container {

    background-color: transparent;

    box-shadow: none;

    padding: 0 8px;

}



.content-card {

    border-radius: var(--border-radius);

    padding: 25px;

    margin-bottom: 30px;

}



/* Профиль пользователя */

.profile-container {

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

}



.profile-sidebar {

    flex: 0 0 280px;

}



.profile-main {

    flex: 1;

    min-width: 300px;

}



.profile-card {

    background-color: white;

    border-radius: var(--border-radius);

    box-shadow: var(--box-shadow);

    overflow: hidden;

    margin-bottom: 20px;

}



.profile-cover {

    height: 100px;

    background-color: var(--primary-color);

    position: relative;

}



.profile-info {

    padding: 20px;

    text-align: center;

    position: relative;

}



.profile-avatar {

    width: 120px;

    height: 120px;

    border-radius: 50%;

    margin: -60px auto 15px;

    border: 2px solid white;

    overflow: hidden;

    position: relative;

    box-shadow: var(--box-shadow);

}



.profile-avatar img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.profile-name {

    margin: 0 0 5px;

    font-size: 22px;

}



.profile-username {

    color: var(--gray-dark);

    margin-bottom: 15px;

    font-size: 16px;

}



.profile-bio {

    margin-bottom: 20px;

    font-size: 14px;

    line-height: 1.5;

}



.profile-stats {

    display: flex;

    justify-content: center;

    gap: 20px;

    padding: 15px 0;

    border-top: 1px solid var(--gray-medium);

}



.stat-item {

    text-align: center;

}



.stat-value {

    font-size: 18px;

    font-weight: bold;

    color: var(--dark-color);

}



.stat-label {

    font-size: 12px;

    color: var(--gray-dark);

    text-transform: uppercase;

}



/* Вкладки профиля */

.profile-tabs {

    margin-bottom: 20px;

    overflow: hidden;

}



.tabs-navigation {
		display: flex;
		background-color: var(--gray-light);
		white-space: nowrap;
}



.tab-link {

    padding: 15px 20px;

    font-weight: 500;

    color: var(--dark-color);

    position: relative;

    transition: var(--transition);

}



.tab-link.active {

    color: var(--primary-color);

}



.tab-link.active::after {

    content: '';

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    height: 3px;

    background-color: var(--primary-color);

}



.tab-count {

    display: inline-block;

    font-size: 12px;

    color: var(--gray-dark);

    margin-left: 5px;

}



.tab-content {

    padding: 20px;

}



/* Стили для статей */

.articles-container {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));

    gap: 20px;

    margin-bottom: 30px;

}



.article-card {

    background-color: white;

    border-radius: var(--border-radius);

    box-shadow: var(--box-shadow);

    overflow: hidden;

    transition: transform 0.3s, box-shadow 0.3s;

}



.article-image {

    height: 180px;

    overflow: hidden;

    position: relative;

}



.article-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

}



.article-category {

    position: absolute;

    top: 10px;

    left: 10px;

    background-color: rgba(0, 0, 0, 0.6);

    color: white;

    padding: 5px 10px;

    border-radius: 4px;

    font-size: 12px;

}



.article-body {

    padding: 20px;

}



.article-title {

    font-size: 18px;

    margin: 0 0 10px;
		line-height: 1.3rem;

}



.article-excerpt {

    /* font-size: 14px; */

    color: var(--gray-dark);

    margin-bottom: 15px;

}



.article-meta {

    display: flex;

    justify-content: space-between;

    align-items: center;

    font-size: 14px;

    color: var(--gray-dark);

}



.article-author {

    display: flex;

    align-items: center;

    gap: 10px;

}



.author-avatar {

    width: 24px;

    height: 24px;

    border-radius: 50%;

    overflow: hidden;

}



.article-date {

    font-style: italic;

}



.article-tags {

    margin-top: 10px;

    display: flex;

    flex-wrap: wrap;

    gap: 2px;

    align-items: center;

}



.article-tag {

    background-color: var(--gray-light);

    padding: 3px 8px;

    border-radius: 4px;

    font-size: 12px;

    color: var(--gray-dark);

    transition: var(--transition);

}



.article-tag:hover {

    background-color: var(--gray-medium);

    color: var(--dark-color);

}



/* Комментарии */

.comments-section {

    margin-top: 10px;

}



.comment {

    background-color: white;

    border-radius: var(--border-radius);

    /* box-shadow: var(--box-shadow); */

    padding: 15px;

    margin-bottom: 15px;

}



.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    align-items: center;
}



.comment-author {

    display: flex;

    align-items: center;

    gap: 10px;

}



.comment-author-avatar {

    width: 30px;

    height: 30px;

    border-radius: 50%;

    overflow: hidden;

}



.comment-author-name {

    font-weight: 500;

}



.comment-date,
.comment-link {
    font-size: 12px;
    color: var(--gray-dark);
}



.comment-body {

    font-size: 14px;

    line-height: 1.6;

}



.comment-actions {

    margin-top: 10px;

    display: flex;

    gap: 10px;

    align-items: stretch;

}



.comment-action {

    font-size: 12px;

    color: var(--gray-dark);

    cursor: pointer;

}



.comment-replies {

    margin-left: 40px;

    margin-top: 15px;

}



.comment-form {

    margin: 5px 0;

    background-color: white;

    border-radius: var(--border-radius);

    box-shadow: var(--box-shadow);

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

}



.comment-form textarea {

    width: 100%;

    padding: 12px;

    border: 1px solid var(--gray-medium);

    border-radius: var(--border-radius);

    resize: vertical;

    min-height: 100px;

}

.drafts-container{
margin-top: 10px;
}

/* --- OVERRIDES: flat 3rd level --- */
.comments-section .comment-replies {
    margin-left: 0 !important;
}

.comments-section .comment.reply-3 {
    margin-left: 0 !important;
}

.comments-section .comment.reply-3 .reply-form {
    margin-left: 0 !important;
}

/* --- OVERRIDES: вложенные комментарии --- */
.comments-section .comment>.comment-replies {
    margin-left: 0 !important;
}

.comments-section .comment.reply-3 {
    margin-left: 0 !important;
}

.comments-section .comment.reply-3 .reply-form {
    margin-left: 0 !important;
}

/* Стили для форм */

.form-group {

    margin-bottom: 20px;

}



.form-label {

    display: block;

    margin-bottom: 8px;

    font-weight: 500;

}



.form-control {

    width: 100%;

    padding: 12px;

    border: 1px solid var(--gray-medium);

    border-radius: var(--border-radius);

    font-size: 16px;

    transition: var(--transition);

}



.form-control:focus {

    border-color: var(--primary-color);

    outline: none;

    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);

}



.form-text {

    font-size: 12px;

    color: var(--gray-dark);

    margin-top: 5px;

}



.form-check {

    display: flex;

    align-items: center;

    margin-bottom: 10px;

}



.form-check-input {

    margin-right: 10px;

}



.btn {

    display: inline-block;

    font-weight: 500;

    text-align: center;

    vertical-align: middle;

    cursor: pointer;

    padding: 4px 8px;

    font-size: 16px;

    border-radius: var(--border-radius);

    transition: var(--transition);

    border: none;

}



.btn-primary {

    color: white;

    background-color: var(--primary-color);

}



.btn-primary:hover {

    background-color: var(--primary-dark);

}



.btn-secondary {

    color: white;

    background-color: var(--secondary-color);

}



.btn-secondary:hover {

    background-color: var(--secondary-dark);
		color: #ffffff;

}



.btn-danger {

    color: white;

    background-color: var(--danger-color);

}



.btn-danger:hover {

    background-color: #c0392b;

}



/* Стили для информации о тегах */

.tag-info-panel {

    background: white;

    border-radius: var(--border-radius);

    box-shadow: var(--box-shadow);

    padding: 5px;

    margin: 15px 0;

    border-left: 4px solid var(--primary-color);
		margin-bottom: 0px;

}



.tag-info-panel h2 {

    margin-bottom: 20px;

    color: var(--dark-color);

}



.tag-highlight {

    color: var(--primary-color);

    font-weight: 700;

}



.tag-status-info {

    background: #f8f9fa;

    padding: 20px;

    border-radius: 4px;

    margin-top: 0;

}



.status-summary {

    display: flex;

    gap: 20px;

    margin-bottom: 15px;

    flex-wrap: wrap;

}



.published-count,

.pending-count,

.draft-count {

    padding: 4px 8px;

    border-radius: 20px;

    font-size: 14px;

    font-weight: 500;

}



.published-count {

    background: #d4edda;

    color: #155724;

}



.pending-count {

    background: #fff3cd;

    color: #856404;

}



.draft-count {

    background: #e2e3e5;

    color: #383d41;

}



.status-note {

    color: #6c757d;

    font-style: italic;

}



.no-articles-message {

    text-align: center;

    padding: 60px 20px;

}



.empty-state {

    max-width: 500px;

    margin: 0 auto;

}



.empty-icon {

    font-size: 64px;

    margin-bottom: 20px;

    opacity: 0.7;

}



.empty-state h3 {

    margin-bottom: 25px;

    color: #495057;

}



.pending-info {

    background: #f8f9fa;

    padding: 25px;

    border-radius: 12px;

    margin: 25px 0;

    border: 1px solid #dee2e6;

}



.pending-stats {

    display: flex;

    justify-content: center;

    gap: 20px;

    margin: 20px 0;

    flex-wrap: wrap;

}



.pending-item,

.draft-item {

    padding: 4px 8px;

    border-radius: 10px;

    font-weight: 500;

    font-size: 14px;

}



.pending-item {

    background: #fff3cd;

    color: #856404;

}



.draft-item {

    background: #e2e3e5;

    color: #383d41;

}



.wait-message {

    margin-top: 15px;

    color: #6c757d;

    font-style: italic;

}


footer.footer>.container {
    background-color: transparent;
    box-shadow: none;
    padding: 0 15px;
}


/* Адаптивный дизайн */

@media (max-width: 992px) {

    .profile-container {

        flex-direction: column;

    }



    .profile-sidebar {

        flex: 0 0 100%;

    }

}



@media (max-width: 768px) {

    .status-summary {

        flex-direction: column;

        gap: 10px;

    }



    .pending-stats {

        flex-direction: column;

        gap: 10px;

    }



    .published-count,

    .pending-count,

    .draft-count {

        text-align: center;

    }



    .header-content {

        flex-wrap: wrap;

        display: flex;

        flex-direction: row;

        /* padding: 6px 0; */

    }



    .mobile-menu-toggle {

        display: block;

    }



    /* Скрываем основную навигацию на мобильных */

    .main-nav {

        display: none !important;

    }



    /* Показываем мобильную навигацию */

    .mobile-bottom-nav {

        display: flex !important;

    }



    .mobile-sidebar {

        display: block !important;
        z-index: 200;
			top: 60px;
			height: inherit;
			bottom: 50px;

    }



    .main-nav.open ul {

        display: flex;

    }



    .articles-container {

        grid-template-columns: 1fr;
				gap: 0;

    }



    .dropdown-content {

        left: 0 !important;

        right: 0 !important;

        padding: 5px 0;

        margin-top: 5px;

        z-index: 9999;

        width: auto !important;

        margin: 0 5px;
        max-width: 100%;

    }

}



@media (max-width: 576px) {

    .user-actions {

        width: auto;

        justify-content: space-between;

        margin-top: 0;

        overflow-y: clip;

    }



    .tab-link {

        flex: 1 0 auto;

        text-align: center;

    }

    .header-content {

        flex-wrap: wrap;

        height: auto;

        display: inline-table !important;

        flex-direction: row;

        /* padding: 6px 0; */

    }

}





/* Дополнительные компоненты */

.alert {

    padding: 15px 20px;

    border-radius: var(--border-radius);

    margin-bottom: 20px;

    border-left: 4px solid;

}



.alert-success {

    background-color: #d4edda;

    color: #155724;

    border-left-color: var(--success-color);

}



.alert-danger {

    background-color: #f8d7da;

    color: #721c24;

    border-left-color: var(--danger-color);

}



.alert-warning {

    background-color: #fff3cd;

    color: #856404;

    border-left-color: var(--warning-color);

}



.alert-info {

    background-color: #d1ecf1;

    color: #0c5460;

    border-left-color: var(--info-color);

}



.pagination {

    display: flex;

    justify-content: center;

    margin: 30px 0;
		font-size: 12px;

}



.page-item {

    margin: 0 5px;

}



.page-link {

    display: block;

    padding: 4px 8px;

    background-color: white;

    border-radius: var(--border-radius);

    color: var(--dark-color);

    box-shadow: var(--box-shadow);

    transition: var(--transition);

}



.page-link:hover {

    background-color: var(--gray-light);

}



.page-item.active .page-link {

    background-color: var(--primary-color);

    color: white;

}



/* Стилизация специальных элементов */

.like-buttons {

    display: flex;

    gap: 10px;

    align-items: center;

}



.btn-like,
.btn-dislike {

    display: flex;

    align-items: center;

    gap: 5px;

    padding: 8px 12px;

    border-radius: 20px;

    font-weight: 500;

    transition: var(--transition);

    border: none;

    cursor: pointer;

    font-size: 14px;

}



.btn-like {

    background-color: #e3f2fd;

    color: #1976d2;

}



.btn-like:hover,
.btn-like.active {

    background-color: #27ae60;

    color: white;

}



.btn-dislike {

    background-color: #feebf0;

    color: #d32f2f;

}



.btn-dislike:hover,
.btn-dislike.active {

    background-color: #f44336;

    color: white;

}



/* Стилизация футера */

.footer-divider-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 50%, transparent 100%);
    margin-top: 20px;
}

.footer {
    background: radial-gradient(circle at top right, #033578, #001f48);
    color: var(--light-color);
    padding: 40px 0 20px;
    z-index: 0;
		margin-top: 0;
}



.footer-content {

    display: flex;

    flex-wrap: wrap;

    gap: 30px;

    margin-bottom: 30px;
    justify-content: space-between;

}



.footer-column {

    /* flex: 1 0 200px; */
    flex: 1 1;

}



.footer-title {

    font-size: 18px;

    margin-bottom: 15px;

    color: white;

}



.footer-links a {

    display: block;

    color: #bdc3c7;

    margin-bottom: 10px;

    transition: var(--transition);

}



.footer-links a:hover {

    color: white;

    text-decoration: none;

}



.footer-bottom {

    text-align: center;

    padding-top: 20px;

    border-top: 1px solid #34495e;

    font-size: 14px;

}



.social-links {

    display: flex;

    gap: 15px;

    margin-top: 15px;

}



.social-links a {

    width: 26px;

    height: 26px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background-color: #34495e;

    color: white;

    transition: var(--transition);

}



.social-links a:hover {

    background-color: var(--primary-color);

    transform: translateY(-3px);

}



/* Стили для сообщений об ошибках */

.error-message {

    background: #f8d7da;

    border: 1px solid #f5c6cb;

    border-radius: var(--border-radius);

    color: #721c24;

    padding: 15px 20px;

    margin-bottom: 20px;

    border-left: 4px solid var(--danger-color);

}



.success-message {

    background: #d4edda;

    border: 1px solid #c3e6cb;

    border-radius: var(--border-radius);

    color: #155724;

    padding: 15px 20px;

    margin-bottom: 20px;

    border-left: 4px solid var(--success-color);

}


.auth-buttons {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    width: fit-content;
    align-items: baseline;
    gap: 5px;
}

button.author-subscribe-btn{
	font-size: 12px;
}

.captcha-image-container {
    display: flex;
    align-items: center;
    margin: 5px 0;
    border: 1px solid #ccc;
    width: fit-content;
    /* padding: 5px; */
    border-radius: 5px;
}

@media (max-width: 768px) {

    .footer-column {
        flex: none;
        min-height: auto;
    }

    .comment-form textarea {
        margin-bottom: 0 !important;
    }

    .comment-form textarea {
        padding: 10px !important;
    }

    .article-meta {

        display: flex;

        justify-content: space-between;

        align-items: start;

        font-size: 14px;

        color: var(--gray-dark);

        flex-direction: row;

        flex-wrap: wrap;

    }

    .page-link {

        padding: 2px 8px;

        /* font-size: x-small; */

    }

    .pagination {

        margin: 10px 0;

    }

    .pagination {

        gap: 1px;

        padding: 8px 0;

    }

    .main-content .container {

        margin-top: 5px;

    }

    .main-content {

        padding: 0 5px;

    }

    .content-card {

        padding: 0;

        margin-bottom: 12px;

    }

    .comment-form {

        margin-top: 10px;

        padding: 12px;

    }

    .button-outline,
    .button-primary {

        display: inline-flex;

        justify-content: center;

        align-items: center;

        padding: 4px 8px;

        border-radius: var(--border-radius);

        font-weight: 500;
        font-size: 14px;
        transition: var(--transition);

    }

}



@media (max-width: 576px) {

    .site-header {

        height: auto;

    }
}

a.button-info {
    display: flex;
    align-items: center;
}

/* --- File: form.css --- */
/* ...existing code... */



/* Стили для полей пароля */

.password-input {
border-radius: 4px;
    width: 100%;

    padding: 10px 16px;

    border: 1px solid #e5e7eb;

    border-radius: 4px;

    font-size: 0.95rem;

    color: #374151;

    transition: all 0.2s;

}



.password-input:focus {

    border-color: #6366f1;

    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);

    outline: none;

}



.form-group {

    display: flex;

    flex-direction: column;

    gap: 4px;

    margin-bottom: 20px;

}



.form-group label {

    font-weight: 500;

    color: #374151;

}



.form-text {

    font-size: 0.875rem;

    color: #6b7280;

    margin-top: 4px;

}



@media (max-width: 768px) {

    .form-group {

        margin-bottom: 15px;

    }

    

    .password-input {

        padding: 8px 12px;

    }

}



input[type="text"],

input[type="email"],

input[type="password"] {

    width: 100%;

    padding: 10px;

    border: 1px solid #ddd;

    border-radius: 4px;

    box-sizing: border-box;

    font-size: 16px;

    transition: border-color 0.3s;
		line-height: initial;

}



input[type="text"]:focus,

input[type="email"]:focus,

input[type="password"]:focus {

    border-color: #6366f1;

    outline: none;

    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);

}



.password-field {

    position: relative;

    width: 100%;

}



.password-toggle {

    position: absolute;

    right: 10px;

    top: 50%;

    transform: translateY(-50%);

    cursor: pointer;

    user-select: none;

}



/* Стили для формы поиска статей */
.search-form {
    margin-bottom: 18px;
}

.search-form input[type="text"] {
    width: 100%;
    margin-bottom: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

.search-form .filter-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 8px;
}

.search-form .filter-row select {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .search-form .filter-row {
        flex-direction: row;
        gap: 4px;
    }
}

/* ...existing code... */
