* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 20px;
    position: relative;
}

.lang-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 5px;
    background: white;
    padding: 5px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.3s;
    color: #2d3748;
}

.lang-btn.active {
    background: #ff6b6b;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.paper-card {
    background: white;
    border-radius: 50px;
    padding: 60px 70px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    position: relative;
}

.journal-header {
    text-align: right;
    color: #ff6b6b;
    font-style: italic;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #e2e8f0;
    font-weight: 500;
}

.title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

.authors {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.affiliation {
    font-size: 1rem;
    color: #718096;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.affiliation i {
    margin-right: 8px;
    color: #48dbfb;
}

.abstract-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #5f27cd;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.abstract-label i {
    font-size: 1.5rem;
}

.abstract-text {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.8;
    text-align: justify;
}

.abstract-text p {
    margin-bottom: 20px;
}

.keywords {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
    color: #718096;
    font-size: 0.95rem;
}

.keywords strong {
    color: #ff6b6b;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.back-link:hover {
    transform: translateX(-5px);
    color: #5f27cd;
}

.status-badge {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.underline {
    text-decoration: underline;
}

.lang-ru {
    display: none;
}

body[lang="ru"] .lang-en {
    display: none;
}

body[lang="ru"] .lang-ru {
    display: block;
}

@media (max-width: 768px) {
    body { padding: 20px 10px; }
    .paper-card { padding: 30px 25px; }
    .title { font-size: 1.8rem; }
    .authors { font-size: 1.2rem; }
    .lang-toggle { top: 10px; right: 10px; }
    .lang-btn { padding: 8px 15px; }
}
