/* Специфичные стили для научных статей */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.article-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(93, 64, 55, 0.2);
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    text-align: justify;
    color: #5d4037;
    border: 1px solid #bcaaa4;
}

.udk {
    text-align: left;
    font-weight: bold;
    margin-bottom: 15px;
    color: #5d4037;
    font-size: 14px;
}

.article-header {
    text-align: center;
    margin-bottom: 30px;
}

.article-title {
    font-size: 16px;
    font-weight: 700;
    margin: 15px 0;
    line-height: 1.4;
    color: #5d4037;
    text-transform: uppercase;
}

.authors {
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    color: #5d4037;
    font-size: 14px;
}

.university {
    text-align: center;
    font-style: normal;
    margin-bottom: 8px;
    color: #6d4c41;
    font-size: 14px;
}

.contact {
    text-align: center;
    margin-bottom: 20px;
    color: #6d4c41;
    font-size: 14px;
}

.abstract {
    margin: 25px 0;
    padding: 25px;
    background: rgba(250, 244, 240, 0.8);
    border-radius: 8px;
    border-left: 4px solid #8d6e63;
    text-align: justify;
    border: 1px solid #d7ccc8;
}

.abstract p {
    margin-bottom: 12px;
    font-style: italic;
}

.keywords {
    margin: 15px 0;
    color: #5d4037;
    font-style: normal;
    font-weight: bold;
}

.section {
    margin: 25px 0;
    text-align: justify;
}

/* Стили для заголовков разделов */
.section-title {
    font-weight: 700;
    font-size: 16px;
    color: #5d4037;
    text-align: left;
    margin: 25px 0 15px 0;
    text-transform: none;
    text-indent: 1.5em;
    padding-bottom: 0;
    border-bottom: none;
}

/* Стиль для заголовка ЛИТЕРАТУРА в центре */
.references .section-title {
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    margin: 25px 0 20px 0;
    font-size: 16px;
    color: #5d4037;
    border-bottom: none;
    padding-bottom: 0;
    text-indent: 0;
}

/* Стили для заголовков-параграфов с strong - БЕЗ ПОЛОСОК и С ОТСТУПОМ */
.section p strong {
    display: block;
    font-weight: 700;
    margin: 25px 0 15px 0;
    font-size: 16px;
    color: #5d4037;
    text-align: left;
    text-transform: none;
    text-indent: 1.5em; /* Добавляем отступ как у обычного текста */
    padding-bottom: 0; /* Убираем отступ снизу */
    border-bottom: none; /* Убираем полоску */
}

.section p {
    margin-bottom: 15px;
    text-indent: 1.5em;
    text-align: justify;
    color: #6d4c41;
}

.figure {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(250, 244, 240, 0.8);
    border-radius: 8px;
    border: 1px solid #d7ccc8;
}

.figure img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #bcaaa4;
}

.figure-caption {
    font-style: italic;
    margin-top: 12px;
    color: #5d4037;
    font-size: 13px;
    text-align: center;
}

.references {
    margin-top: 30px;
}

.reference-list {
    text-align: justify;
}

.reference-item {
    margin-bottom: 12px;
    color: #6d4c41;
    line-height: 1.5;
    font-size: 14px;
    text-align: justify;
    text-indent: -1.5em;
    padding-left: 1.5em;
    position: relative;
}

.reference-item::before {
    content: attr(id);
    font-weight: 600;
    color: #8d6e63;
    margin-right: 8px;
}

.article-back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    background: #8d6e63;
    color: #efebe9;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Georgia', 'Times New Roman', serif;
    text-align: center;
}

.article-back-link:hover {
    background: #5d4037;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 64, 55, 0.3);
}

/* Списки для статей */
.article-content ul,
.article-content ol {
    margin: 15px 0;
    padding-left: 25px;
    text-align: justify;
    color: #6d4c41;
}

.article-content li {
    margin-bottom: 8px;
    line-height: 1.5;
    text-align: justify;
    color: #6d4c41;
}

/* Особые стили для жирного текста */
.article-content strong {
    font-weight: 700;
    color: #5d4037;
}

/* Стили для курсивного текста в литературе */
.reference-item i {
    font-style: italic;
    color: #5d4037;
}

/* Стили для компактной таблицы */
.compact-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 10px;
    color: #5d4037;
    margin: 0 auto;
    overflow-x: auto;
    display: block;
}

.compact-table thead {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.compact-table tbody {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.compact-table th,
.compact-table td {
    border: 1px solid #8d6e63;
    padding: 3px 4px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-table th {
    background: #5d4037;
    color: #efebe9;
    font-weight: 600;
    font-size: 9px;
}

.compact-table td {
    background: rgba(255, 255, 255, 0.95);
    font-size: 9px;
}

.compact-table tr:nth-child(even) td {
    background: rgba(250, 244, 240, 0.8);
}

/* Адаптивность */
@media (max-width: 768px) {
    .compact-table {
        font-size: 8px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .compact-table th,
    .compact-table td {
        padding: 2px 3px;
        font-size: 8px;
    }
}

/* Стили для ссылок-ссылок в тексте */
.ref-link {
    font-size: 0.85em;
    vertical-align: super;
    line-height: 0;
    color: #8d6e63;
    text-decoration: none;
    font-weight: 600;
    margin: 0 1px;
}

.ref-link:hover {
    color: #5d4037;
    text-decoration: underline;
}

/* Стили для ссылок внутри текста статьи */
.article-content a {
    color: #8d6e63;
    text-decoration: none;
    border-bottom: 1px dotted #8d6e63;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: #5d4037;
    border-bottom: 1px solid #5d4037;
}

/* Стили для ссылок в литературе */
.reference-item a {
    color: #8d6e63;
    text-decoration: none;
    border-bottom: 1px dotted #8d6e63;
}

.reference-item a:hover {
    color: #5d4037;
    border-bottom: 1px solid #5d4037;
}

/* Стили для перекрестных ссылок на другие статьи */
.cross-ref {
    color: #8d6e63;
    text-decoration: none;
    border-bottom: 1px dashed #8d6e63;
    font-weight: 600;
}

.cross-ref:hover {
    color: #5d4037;
    border-bottom: 1px solid #5d4037;
}

/* Стили для ссылок на внешние ресурсы */
.external-ref {
    color: #8d6e63;
    text-decoration: none;
    border-bottom: 1px dotted #8d6e63;
    position: relative;
    padding-right: 15px;
}

.external-ref::after {
    content: "↗";
    font-size: 0.8em;
    margin-left: 3px;
    position: absolute;
    top: -1px;
}

.external-ref:hover {
    color: #5d4037;
    border-bottom: 1px solid #5d4037;
}