/* Контейнер модалки */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    height: 85%;
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 3001;
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px 30px;
    background: #0f0f0f;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover { color: #00aaff; transform: rotate(90deg); }

/* --- СТИЛИ СТАТЬИ --- */
.article-content {
    padding: 50px 80px;
    overflow-y: auto;
    color: #ccc;
    line-height: 1.8;
    font-size: 18px;
}

.article-content h1 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
}

.article-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 40px;
}

.article-content h2 {
    font-size: 24px;
    color: #00aaff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content p { margin-bottom: 25px; }

.article-content strong { color: #fff; }

/* Скроллбар */
.article-content::-webkit-scrollbar { width: 4px; }
.article-content::-webkit-scrollbar-thumb { background: #222; border-radius: 10px; }

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .article-content { padding: 30px 25px; }
    .article-content h1 { font-size: 28px; }
}