.dissertation-content {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.5;
    color: #000000;
    max-width: 100%; 
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
}
/* Убираем ограничение ширины для основного контента */
.main-content.dissertation-content {
    max-width: none; /* Убираем ограничение */
    width: 100%;
    padding: 30px; /* Сохраняем отступы как в основном контенте */
}

.dissertation-content h2 {
    color: #000000;
    font-weight: 700;
    margin: 35px 0 25px 0;
    font-size: 1.4em; /* Увеличили */
    text-align: left;
    text-transform: none;
    border-bottom: none;
    padding-bottom: 0;
    text-indent: 1.5em;
}

.dissertation-content h3 {
    color: #000000;
    font-weight: 700;
    margin: 30px 0 18px 0;
    font-size: 1.3em; /* Увеличили */
    text-align: left;
    text-indent: 1.5em;
}

.dissertation-content h4 {
    color: #000000;
    margin: 25px 0 15px 0;
    font-size: 1.2em; /* Увеличили */
    text-align: left;
    text-indent: 1.5em;
    font-weight: 700;
}

.dissertation-content p {
    margin: 0 0 18px 0;
    text-align: justify;
    font-size: 1.1em; /* Увеличили */
    line-height: 1.7;
    text-indent: 1.5em;
    color: #000000;
}

.dissertation-content ul, 
.dissertation-content ol {
    margin: 12px 0;
    padding-left: 40px;
    text-align: justify;
}

.dissertation-content li {
    margin-bottom: 10px;
    font-size: 1.1em; /* Увеличили размер в списках */
    line-height: 1.6;
    text-align: justify;
}

.abstract-section {
    background: #f8f9fa;
    color: #000000;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: justify;
}

.abstract-section h2 {
    color: #2c3e50;
    border-bottom: none;
    margin: 0 0 30px 0;
    text-indent: 0;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2em !important; /* Увеличили до размера как у содержания */
}

.abstract-section p {
    font-size: 1.1em; /* Еще увеличили */
    line-height: 1.7;
    text-indent: 1.5em;
    text-align: justify;
    font-style: italic;
    margin: 0 0 18px 0;
    color: #5a6c7d;
}

.content-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: justify;
}

.content-section h2 {
    color: #2c3e50;
    border-bottom: none;
    margin: 0 0 25px 0;
    text-indent: 0;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2em !important; /* Увеличили */
}

/* Стили для ссылок на литературу */
.ref-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    vertical-align: super;
    line-height: 0;
    margin: 0 2px;
}

.ref-link:hover {
    color: #333;
    text-decoration: underline;
}

/* Обеспечиваем плавную прокрутку к ссылкам */
html {
    scroll-behavior: smooth;
}

/* Стили для якорей в списке литературы */
.references-list li {
    scroll-margin-top: 20px;
}

/* Стили для содержания в стиле статьи */
.toc-container {
    background: #ffffff;
    border-radius: 5px;
    padding: 20px;
    border: 1px solid #ddd;
}

.toc-item {
    margin-bottom: 12px;
    padding-left: 12px;
    /* transition: all 0.3s ease; */
}

/* .toc-item:hover {
    transform: translateX(3px);
} */

.toc-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em; /* Еще увеличили */
    display: block;
    padding: 12px 0;
    line-height: 1.4;
}

.toc-link:hover {
    color: #333;
}

.toc-subitems {
    margin-top: 6px;
    padding-left: 15px;
    border-left: 1px solid #ccc;
}

.toc-sublink {
    color: #333;
    text-decoration: none;
    font-size: 1.1em; /* Еще увеличили */
    display: block;
    padding: 10px 0;
    line-height: 1.4;
    /* transition: all 0.3s ease; */
    border-bottom: 1px solid transparent;
}

/* .toc-sublink:hover {
    color: #000;
    transform: translateX(2px);
} */

.main-content-section section {
    margin: 0 0 20px 0;
    background: transparent;
    padding: 0;
}

.references-list {
    list-style-type: decimal;
    padding-left: 40px;
    column-count: 1;
    text-align: justify;
}

.references-list li {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 1.1em; /* Еще увеличили */
    line-height: 1.6;
    break-inside: avoid;
    text-indent: 0;
}

#references a,
#references .academic-link,
.references-list a,
.references-list .academic-link {
    color: #000000 !important; /* Черный цвет */
    text-decoration: none !important; /* Без подчеркивания */
    font-weight: normal !important;
    font-style: normal !important;
    border-bottom: 1px solid transparent;
}

#references a:hover,
#references .academic-link:hover,
.references-list a:hover,
.references-list .academic-link:hover {
    color: #333333 !important;
    text-decoration: underline !important;
    text-decoration-color: #666666 !important;
}

/* Также обработаем все ссылки внутри абзацев с литературой */
.abstract-text a {
    color: #000000 !important;
    text-decoration: none !important;
}

.abstract-text a:hover {
    color: #333333 !important;
    text-decoration: underline !important;
}

/* Сброс стилей браузера для всех ссылок в разделе литературы */
#references a:link,
#references a:visited,
#references a:active {
    color: #000000 !important;
    text-decoration: none !important;
}

/* Стили для улучшения читаемости */
.dissertation-content strong {
    color: #000000;
    font-weight: 700;
}

.dissertation-content em {
    color: #000000;
    font-style: italic;
}

/* Убираем плавную прокрутку для стиля статьи */
html {
    scroll-behavior: auto;
}

/* Убираем анимации для стиля статьи */
.dissertation-content section {
    animation: none;
}

/* Стили для математических формул */
.math-formula {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
}

.math-formula p {
    margin: 0;
    text-indent: 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    font-style: italic;
    text-align: center;
}

.math-inline {
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
}

/* Стили для таблиц */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    border-radius: 5px;
    overflow: hidden;
}

.table th {
    background: #f8f9fa;
    color: #000000;
    font-weight: 700;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #9e9e9e;
}

.table td {
    padding: 8px 8px;
    text-align: center;
    border: 1px solid #e0e0e0;
    background: white;
}

/* Адаптация для планшетов */
@media (max-width: 1200px) {
    .dissertation-content {
        padding: 15px;
    }
    
    .main-content.dissertation-content {
        padding: 25px 15px;
    }
    
    .abstract-section h2,
    .content-section h2 {
        font-size: 1.7em;
    }
    
    .abstract-section p {
        font-size: 1.15em;
    }
    
    .dissertation-content h2 {
        font-size: 1.3em;
        text-indent: 1.2em;
        margin: 30px 0 20px 0;
    }
    
    .dissertation-content h3, 
    .dissertation-content h4 {
        font-size: 1.2em;
        text-indent: 1.2em;
    }
    
    .dissertation-content p {
        font-size: 1.05em;
        text-indent: 1.2em;
        line-height: 1.6;
    }
    
    .dissertation-content ul, 
    .dissertation-content ol {
        padding-left: 35px;
    }
    
    .dissertation-content li {
        font-size: 1.05em;
    }
    
    .toc-link {
        font-size: 1.15em;
    }
    
    .toc-sublink {
        font-size: 1.05em;
    }
    
    .references-list li {
        font-size: 1.05em;
    }
}

/* Адаптация для больших телефонов */
@media (max-width: 992px) {
    .abstract-section h2,
    .content-section h2 {
        font-size: 1.6em;
    }
    
    .abstract-section p {
        font-size: 1.1em;
        line-height: 1.6;
    }
    
    .dissertation-content p {
        font-size: 1em;
    }
    
    .dissertation-content h2 {
        font-size: 1.2em;
    }
    
    .dissertation-content h3 {
        font-size: 1.1em;
    }
    
    .toc-link {
        font-size: 1.1em;
    }
    
    .toc-sublink {
        font-size: 1em;
    }
}

/* Адаптация для средних телефонов */
@media (max-width: 768px) {
    .dissertation-content {
        padding: 15px;
    }
    
    .main-content.dissertation-content {
        padding: 20px 15px;
    }
    
    .abstract-section h2,
    .content-section h2 {
        font-size: 1.5em;
    }
    
    .abstract-section p {
        font-size: 1.05em;
        line-height: 1.6;
    }
    
    .dissertation-content h2 {
        font-size: 1.1em;
        text-indent: 1em;
        margin: 25px 0 15px 0;
    }
    
    .dissertation-content h3, 
    .dissertation-content h4 {
        font-size: 1em;
        text-indent: 1em;
        margin: 20px 0 12px 0;
    }
    
    .dissertation-content p {
        font-size: 0.95em;
        text-indent: 1em;
        line-height: 1.6;
        margin: 0 0 12px 0;
    }
    
    .dissertation-content ul, 
    .dissertation-content ol {
        padding-left: 30px;
    }
    
    .dissertation-content li {
        font-size: 0.95em;
    }
    
    .abstract-section, 
    .content-section {
        padding: 15px;
    }
    
    .toc-container {
        padding: 15px;
    }
    
    .toc-link {
        font-size: 1.05em;
        padding: 10px 0;
    }
    
    .toc-sublink {
        font-size: 0.95em;
        padding: 8px 0;
    }
    
    .references-list {
        padding-left: 30px;
    }
    
    .references-list li {
        font-size: 0.95em;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th, 
    .table td {
        padding: 8px 6px;
    }
}

/* Адаптация для маленьких телефонов */
@media (max-width: 480px) {
    .dissertation-content {
        padding: 12px;
    }
    
    .main-content.dissertation-content {
        padding: 18px 12px;
    }
    
    .abstract-section h2,
    .content-section h2 {
        font-size: 1.4em;
    }
    
    .abstract-section p {
        font-size: 1em;
        line-height: 1.5;
        text-indent: 1em;
        margin: 0 0 10px 0;
    }
    
    .dissertation-content h2 {
        font-size: 1.05em;
        text-indent: 0.8em;
        margin: 20px 0 12px 0;
    }
    
    .dissertation-content h3,
    .dissertation-content h4 {
        font-size: 0.95em;
        text-indent: 0.8em;
        margin: 18px 0 10px 0;
    }
    
    .dissertation-content p {
        font-size: 0.9em;
        text-indent: 0.8em;
        line-height: 1.5;
        margin: 0 0 10px 0;
    }
    
    .dissertation-content ul, 
    .dissertation-content ol {
        padding-left: 25px;
    }
    
    .dissertation-content li {
        font-size: 0.9em;
    }
    
    .content-section {
        padding: 18px;
    }
    
    .toc-container {
        padding: 18px;
    }
    
    .toc-link {
        font-size: 1em;
        padding: 8px 0;
    }
    
    .toc-sublink {
        font-size: 0.9em;
        padding: 6px 0;
    }
    
    .references-list {
        padding-left: 25px;
    }
    
    .references-list li {
        font-size: 0.9em;
    }
    
    .table {
        font-size: 12px;
    }
    
    .table th, 
    .table td {
        padding: 6px 4px;
    }
}

/* Адаптация для очень маленьких телефонов */
@media (max-width: 360px) {
    .abstract-section h2,
    .content-section h2 {
        font-size: 1.3em;
    }
    
    .abstract-section p {
        font-size: 0.95em;
    }
    
    .dissertation-content {
        padding: 10px;
    }
    
    .main-content.dissertation-content {
        padding: 15px 10px;
    }
    
    .dissertation-content h2,
    .dissertation-content h3,
    .dissertation-content h4 {
        font-size: 0.9em;
        text-indent: 0.8em;
    }
    
    .dissertation-content p {
        font-size: 0.85em;
        text-indent: 0.8em;
    }
    
    .dissertation-content ul, 
    .dissertation-content ol {
        padding-left: 20px;
    }
    
    .references-list {
        padding-left: 20px;
    }
    
    .toc-link {
        font-size: 0.95em;
    }
    
    .toc-sublink {
        font-size: 0.85em;
    }
}

/* Убираем все лишние границы и тени */
.dissertation-content {
    box-shadow: none !important;
}

.main-content-section section {
    box-shadow: none !important;
    border: none !important;
}

/* Первый заголовок без верхнего отступа */
#introduction h2 {
    margin-top: 0 !important;
}

/* Убираем разделительные линии */
.dissertation-content hr {
    display: none;
}

/* Улучшение читаемости для всех экранов */
.abstract-section {
    background: #f8f9fa;
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Убираем горизонтальную прокрутку на мобильных */
.dissertation-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Адаптация таблиц для мобильных */
@media (max-width: 768px) {
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table th,
    .table td {
        min-width: 80px;
    }
}