* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Georgia', serif;
    background: #0a0a1a url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><circle cx="20" cy="30" r="0.5" fill="white"/><circle cx="80" cy="60" r="0.8" fill="white"/><circle cx="150" cy="20" r="0.6" fill="white"/><circle cx="40" cy="120" r="0.7" fill="white"/><circle cx="180" cy="150" r="0.5" fill="white"/><circle cx="100" cy="180" r="0.9" fill="white"/></svg>');
    color: #e0e0e0;
    line-height: 1.7;
}
.main-nav {
    background: rgba(10, 10, 30, 0.95);
    border-bottom: 2px solid #4a6fa5;
    padding: 10px 0;
    position: sticky; top: 0; z-index: 100;
}
.main-nav ul {
    display: flex; flex-wrap: wrap; justify-content: center;
    list-style: none; gap: 5px;
}
.main-nav a {
    color: #a8c5ff; text-decoration: none;
    padding: 8px 14px; border-radius: 4px;
    transition: all 0.3s; font-size: 0.95em;
}
.main-nav a:hover { background: #4a6fa5; color: white; }
header {
    text-align: center; padding: 60px 20px 30px;
    background: radial-gradient(ellipse at center, #1a1a4a 0%, #0a0a1a 70%);
}
header h1 { font-size: 3em; color: #ffd700; margin-bottom: 10px; }
header .subtitle { font-size: 1.3em; color: #a8c5ff; font-style: italic; }
main { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
section { margin-bottom: 40px; }
h2 { color: #ffd700; border-bottom: 1px solid #4a6fa5; padding-bottom: 10px; margin-bottom: 20px; }
h3 { color: #a8c5ff; margin: 20px 0 15px; }
p { margin-bottom: 15px; text-align: justify; }
ul, ol { margin: 15px 0 15px 40px; }
li { margin-bottom: 8px; }
.card-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px; margin-top: 20px;
}
.card {
    display: block; padding: 20px;
    background: rgba(74, 111, 165, 0.15);
    border: 1px solid #4a6fa5; border-radius: 8px;
    color: #e0e0e0; text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}
.card:hover { background: rgba(74, 111, 165, 0.35); transform: translateY(-3px); }
.card h4 { color: #ffd700; margin-bottom: 8px; }
footer {
    text-align: center; padding: 30px;
    background: #050510; color: #888;
    border-top: 1px solid #4a6fa5; margin-top: 40px;
}
.highlight {
    background: rgba(255, 215, 0, 0.08);
    border-left: 4px solid #ffd700;
    padding: 20px; border-radius: 4px;
}
/* Стили для wiki-страницы */
.wiki-container { background: #f8f9fa; color: #202122; padding: 30px; border-radius: 4px; }
.wiki-container h1, .wiki-container h2 { color: #000; border-bottom: 1px solid #a2a9b1; }
.wiki-container h3 { color: #000; }
.wiki-container a { color: #0645ad; }
.wiki-infobox {
    float: right; width: 300px; margin: 0 0 20px 20px;
    background: #f8f9fa; border: 1px solid #a2a9b1;
    font-size: 0.9em;
}
.wiki-infobox caption {
    background: #ccd6e3; padding: 10px;
    font-weight: bold; font-size: 1.1em;
}
.wiki-infobox td, .wiki-infobox th {
    padding: 6px 10px; border-bottom: 1px solid #eaecf0;
    vertical-align: top;
}
.wiki-infobox th { background: #dde3eb; text-align: left; width: 45%; }
/* Видеоплеер */
.video-player {
    max-width: 900px; margin: 30px auto;
    background: #000; border-radius: 8px;
    padding: 20px; text-align: center;
}
video { width: 100%; max-height: 500px; background: #000; border-radius: 4px; }
.file-input {
    display: inline-block; margin: 20px 0;
    padding: 12px 24px; background: #4a6fa5;
    color: white; border-radius: 6px; cursor: pointer;
    transition: background 0.3s;
}
.file-input:hover { background: #5a82c0; }
#fileInput { display: none; }
