/* article-bilingual.css */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #4299e1;
    --text-color: #2d3748;
    --light-bg: #f7fafc;
    --border-color: #e2e8f0;
    --font-serif: 'Times New Roman', Times, serif;
    --font-sans: Arial, Helvetica, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-serif);
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.lang-btn:hover {
    background-color: var(--secondary-color);
}

.lang-btn.active {
    background-color: var(--accent-color);
}

.article-container {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.article-container.active {
    display: block;
    opacity: 1;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.journal-title {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: bold;
}

h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.authors {
    margin-bottom: 10px;
    font-size: 18px;
}

.affiliations {
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 15px;
    line-height: 1.5;
}

.doi {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.abstract-section {
    background-color: var(--light-bg);
    padding: 20px;
    border-left: 4px solid var(--accent-color);
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

.abstract-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.keywords {
    margin-top: 15px;
    font-style: italic;
}

.keywords strong {
    font-weight: bold;
}

.content {
    margin-top: 30px;
}

h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

h3 {
    font-size: 18px;
    color: var(--secondary-color);
    margin: 20px 0 10px;
}

h4 {
    font-size: 16px;
    color: var(--secondary-color);
    margin: 15px 0 8px;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

ul, ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

li {
    margin-bottom: 8px;
}

.reference {
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 20px;
    text-indent: -20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 10px;
    text-align: left;
}

th {
    background-color: var(--light-bg);
    font-weight: bold;
}

.journal-info {
    font-size: 14px;
    color: #4a5568;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.section-number {
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    color: var(--primary-color);
}

.figure-container {
    margin: 25px 0;
    text-align: center;
}

.figure-image {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
}

.figure-caption {
    font-size: 14px;
    font-style: italic;
    color: #4a5568;
    text-align: center;
    margin-top: 5px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--light-bg);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a5568;
    font-style: italic;
    margin-bottom: 10px;
}

.note {
    font-size: 12px;
    color: #718096;
    margin-top: 10px;
    font-style: italic;
}

.algorithm-list {
    margin-left: 20px;
}

.algorithm-list li {
    margin-bottom: 15px;
}

.definition {
    background-color: var(--light-bg);
    padding: 15px;
    border-left: 3px solid var(--accent-color);
    margin: 15px 0;
    font-style: italic;
}

.formula {
    text-align: center;
    margin: 20px 0;
    font-family: 'Times New Roman', Times, serif;
}

@media print {
    .language-switcher {
        display: none;
    }
    
    .article-container {
        display: block !important;
        opacity: 1 !important;
    }
    
    .article-container.ru {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    .language-switcher {
        position: static;
        margin-bottom: 20px;
        justify-content: center;
    }
    
    .image-placeholder {
        height: 250px;
    }
}