.markdown-body {
    font-family: 'Manrope', sans-serif;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
    width: 100%;
}

/* --- ТИПОГРАФИКА И ЗАГОЛОВКИ --- */
.markdown-body h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    border-bottom: 2px solid rgba(188, 19, 254, 0.3);
    padding-bottom: 10px;
}

.markdown-body h2 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bc13fe;
    margin-top: 50px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.markdown-body h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(188, 19, 254, 0.3), transparent);
    margin-left: 20px;
}

.markdown-body h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-top: 30px;
    margin-bottom: 10px;
    font-weight: 700;
}

.markdown-body p {
    margin-bottom: 15px;
}

.markdown-body strong {
    color: #fff;
    font-weight: 700;
}

.markdown-body hr {
    height: 1px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

/* --- СПИСКИ --- */
.markdown-body ul, .markdown-body ol {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.markdown-body li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #aaa;
}

.markdown-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: #bc13fe;
    box-shadow: 0 0 8px rgba(188, 19, 254, 0.5);
    transform: rotate(45deg);
}

/* --- КОД (Инлайн и Блоки) --- */
.markdown-body code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(157, 0, 255, 0.15);
    color: #ff79c6;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 0.9em;
    border: 1px solid rgba(157, 0, 255, 0.2);
    text-shadow: 0 0 5px rgba(255, 121, 198, 0.3);
}

.markdown-body pre {
    background: #0d0d12;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(188, 19, 254, 0.2);
    overflow-x: auto;
    margin: 25px 0;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.markdown-body pre code {
    background: none;
    padding: 0;
    color: #f8f8f2;
    border: none;
    text-shadow: none;
    font-size: 0.85rem;
    line-height: 1.5;
}

.markdown-body pre::-webkit-scrollbar { height: 4px; }
.markdown-body pre::-webkit-scrollbar-thumb { background: rgba(188, 19, 254, 0.3); border-radius: 10px; }

/* --- ТАБЛИЦЫ --- */
.markdown-body table {
    display: table !important;
    width: 100% !important;
    min-width: 100% !important;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.markdown-body th:first-child, .markdown-body td:first-child {
    width: 25%;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.markdown-body th:last-child, .markdown-body td:last-child {
    width: 100%;
}

.markdown-body th {
    background-color: rgba(157, 0, 255, 0.1);
    color: #ff79c6;
    padding: 15px 20px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.markdown-body td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e2e2;
    word-wrap: break-word;
    vertical-align: middle;
}

.markdown-body tr:nth-child(even) td { background-color: rgba(255, 255, 255, 0.01); }
.markdown-body tr:hover td { background-color: rgba(157, 0, 255, 0.05); color: #fff; }

/* Адаптация таблиц */
@media (max-width: 768px) {
    .markdown-body table { display: block !important; table-layout: auto; overflow-x: auto; }
    .markdown-body th, .markdown-body td { width: auto !important; }
}

/* --- КОМПОНЕНТЫ И УТИЛИТЫ --- */
.wiki-note {
    background: rgba(157, 0, 255, 0.05);
    border-left: 3px solid #bc13fe;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #bbb;
    margin: 30px 0;
}
.wiki-note b { color: #bc13fe; }

.wiki-banner {
    width: 100%; height: auto; display: block;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(188, 19, 254, 0.1);
    margin-bottom: 30px;
}

/* --- КАРУСЕЛЬ ОБНОВЛЕНИЙ --- */
.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
}

/* Трек, в котором лежат картинки */
.slider-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    
    padding: 0 20%; 
    padding-bottom: 40px;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

/* Сама картинка */
.slider-track img {
    flex: 0 0 60%;
    height: 500px;

    scroll-snap-align: center;
    object-fit: contain; 
    background: rgba(0, 0, 0, 0.4);
    
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: transform 0.3s ease;
}

/* Точки */
.slider-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.slider-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.3s;
}

.slider-dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Эффект отдаления для боковых слайдов */
.slider-track img:not(:hover) {
    mask-image: linear-gradient(to right, rgba(0,0,0,0.5), black 20%, black 80%, rgba(0,0,0,0.5));
}

/* Отступы */
.text-center { text-align: center !important; }
.mt-10 { margin-top: 10px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }
