/* Основные стили текста — всегда 14px, черный */
body,
.article-block,
.article-title,
.article-subtitle,
.article-udk,
.article-author,
.article-org,
.article-contact,
.article-paragraph,
.article-table th,
.article-table td,
figcaption,
.article-footer {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #000000 !important;
}

/* Кнопка "Назад" */
.back-button {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 20px;
}
.back-button a {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #4fc3f7, #0288d1);
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}
.back-button a:hover {
    background: linear-gradient(135deg, #81d4fa, #0277bd);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Основной блок статьи */
.article-block {
    background: #ffffffcc;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 20px auto;
    max-width: 900px;
}

/* Заголовок статьи */
.article-title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid #0277bd;
    padding-bottom: 6px;
}

/* Подзаголовки */
.article-subtitle {
    font-weight: bold;
    margin-top: 25px;
    margin-bottom: 12px;
    border-left: 4px solid #0277bd;
    padding-left: 8px;
}

/* Метаданные */
.article-author {
    text-align: center;
    font-weight: bold;
}
.article-org,
.article-contact {
    text-align: center;
}

/* Абзацы */
.article-paragraph {
    text-align: justify;
    text-indent: 2em;
    margin-top: 0.8em;
    margin-bottom: 0.8em;
}

/* Таблицы */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 2px solid #0277bd;
}
.article-table th, .article-table td {
    padding: 8px;
    border: 1px solid #81d4fa;
    text-align: center;
}
.article-table th {
    background-color: #e1f5fe;
}
.article-table tr:nth-child(even) {
    background: #e1f5fe;
}
.article-table tr:hover {
    background: #b3e5fc;
}

/* Рисунки */
figure {
    text-align: center;
    margin: 25px 0;
}
figure img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}
figcaption {
    text-align: center;
    margin-top: 8px;
}
figure .article-paragraph {
    text-align: center;
    text-indent: 0;
    margin-top: 8px;
}

/* Футер */
.article-footer {
    margin-top: 30px;
    border-top: 2px solid #0277bd;
    padding-top: 10px;
}

/* Ссылки на литературу */
.references-link {
    color: #000000 !important;
    text-decoration: none;
    font-weight: bold;
}
.references-link:hover {
    text-decoration: underline;
}

.article-list {
    margin-top: 0.8em;
    margin-bottom: 0.8em;
    padding-left: 2em;
    text-indent: 0 !important;
}

/* Формулы */
.formula-block {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.formula-block img {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: none;
}

/* Номер формулы фиксирован справа */
.formula-number {
    position: absolute;
    top: 45%;
    right: 0;
    transform: translateY(-55%);
    margin-right: 12px;
    font-size: 14px;
    color: #000;
}