
/* ================== СТРАНИЦА ПОСТА / ВНУТРЕННЯЯ СТРАНИЦА ================== */

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    margin: 0;
    padding: 24px 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pirad {
    position: relative;
    width: 100%;
    max-width: 1080px;
    min-height: 620px;
    background: #1e293b;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px -12px rgba(0,0,0,0.7),
                0 8px 20px -6px rgba(0,0,0,0.4);
    border: 1px solid #334155;
}

.vamud {
    position: absolute;
    inset: 24px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15,23,42,0.4);
}

#pointsCanvas {
    pointer-events: none;
    z-index: 12;
}

#chartCanvas {
    z-index: 8;
}

/* Панель управления */
.xivydik {
    position: relative;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    padding: 20px 24px;
    background: rgba(30,41,59,0.85);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin: 24px auto;
    max-width: 1080px;
    border: 1px solid #475569;
    box-shadow: 0 8px 32px -12px rgba(0,0,0,0.5);
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 78px;
}

.control-group label {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}

.control-group input,
.control-group select {
    width: 68px;
    padding: 8px 6px;
    font-size: 15px;
    text-align: center;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 8px;
    transition: all 0.15s;
}

.control-group input:focus,
.control-group select:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96,165,250,0.25);
}



/* ================== ГЛАВНАЯ — карточки постов ================== */

.nibo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 0 8px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.zizo.xihydu {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #334155;
    transition: all 0.22s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.zizo.xihydu:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.38);
    border-color: #475569;
}

.zizo .zemekuj {
    list-style: none;
    margin: 0;
    padding: 0 0 16px;
}

.zizo h2 {
    margin: 0;
    padding: 20px 20px 8px;
    font-size: 1.38rem;
    line-height: 1.32;
    color: #e2e8f0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.zizo h2 a {
    color: inherit;
    text-decoration: none;
}

.zizo h2 a:hover {
    color: #60a5fa;
}

/* ================== КАРТОЧКИ КАТЕГОРИЙ на главной ================== */

.kukakik {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    padding: 32px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 68px;
    padding: 16px 20px;
    background: #1e293b;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.96rem;
    text-align: center;
    text-decoration: none;
    border-radius: 14px;
    border: 1px solid #334155;
    transition: all 0.2s ease;
}

.category-card:hover {
    background: #334155;
    color: #93c5fd;
    border-color: #60a5fa;
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(37,99,235,0.18);
}



/* ================== СТРАНИЦА КАТЕГОРИИ — те же карточки постов ================== */

.nibo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    padding: 32px 16px;
    max-width: 1280px;
    margin: 0 auto;
}

/* Повторяем карточку поста из MAIN, но можно немного отличить */
.zizo.xihydu {
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #334155;
    transition: all 0.22s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

.zizo.xihydu:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.38);
    border-color: #475569;
}

/* те же стили для заголовков и списков */
.zizo .zemekuj {
    list-style: none;
    margin: 0;
    padding: 0 0 16px;
}

.zizo h2 {
    margin: 0;
    padding: 20px 20px 8px;
    font-size: 1.38rem;
    line-height: 1.32;
    color: #e2e8f0;
    font-weight: 600;
}
