@import url("general.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0a0a1a;
    color: #e0e0ff;
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(white, rgba(255, 255, 255, .2) 2px, transparent 4px),
        radial-gradient(white, rgba(255, 255, 255, .15) 1px, transparent 3px),
        radial-gradient(white, rgba(255, 255, 255, .1) 2px, transparent 4px);
    background-size: 550px 550px, 350px 350px, 250px 250px;
    background-position: 0 0, 40px 60px, 130px 270px;
}

.content{
    white-space: pre-wrap;    /* Сохраняет пробелы и переносы */
    word-wrap: break-word;    /* Перенос длинных слов */
    line-height: 1.6;
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(16, 18, 54, 0.8), rgba(32, 35, 91, 0.6));
    z-index: -1;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.star {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #6ee7ff;
    text-shadow: 0 0 10px rgba(110, 231, 255, 0.7);
    letter-spacing: 1px;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-item {
    background: rgba(16, 25, 56, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #2a3a6e;
    box-shadow: 0 0 15px rgba(42, 58, 110, 0.5);
}

.content-section {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.main-content {
    flex: 3;
    min-width: 300px;
    background: rgba(16, 25, 56, 0.7);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid #2a3a6e;
    box-shadow: 0 0 20px rgba(42, 58, 110, 0.5);
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background: rgba(16, 25, 56, 0.7);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #2a3a6e;
    box-shadow: 0 0 20px rgba(42, 58, 110, 0.5);
}

h2 {
    color: #8a9bff;
    margin: 25px 0 15px;
    border-bottom: 1px solid #2a3a6e;
    padding-bottom: 10px;
    text-shadow: 0 0 5px rgba(138, 155, 255, 0.5);
}

h2:first-child {
    margin-top: 0;
}

p {
    margin-bottom: 20px;
    text-align: justify;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.image-item {
    flex: 1 1 300px;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #3a4a8e;
    box-shadow: 0 0 15px rgba(58, 74, 142, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.image-item:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(110, 231, 255, 0.7);
}

.image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.image-caption {
    padding: 10px;
    background: rgba(22, 33, 66, 0.8);
    font-size: 0.9rem;
    text-align: center;
}

.author-list {
    list-style-type: none;
}

.author-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #2a3a6e;
}

.author-list li:last-child {
    border-bottom: none;
}

.keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.keyword {
    background: rgba(42, 58, 110, 0.5);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid #3a4a8e;
}

.references {
    list-style-type: none;
    counter-reset: ref-counter;
}

.references li {
    counter-increment: ref-counter;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.references li::before {
    content: "[" counter(ref-counter) "]";
    position: absolute;
    left: 0;
    color: #6ee7ff;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #2a3a6e;
    color: #8a9bff;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }

    h1 {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}