
/* ================== ВНУТРЕННЯЯ СТРАНИЦА — POST ================== */

:root {
    --bg-main: #0d001a;
    --bg-card: #140028;
    --accent: #c084fc;
    --accent-dark: #a855f7;
    --text: #f3e8ff;
    --text-muted: #d1b5ff;
    --border: #4c1d95;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text);
    margin: 0;
    padding: 28px 16px;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(192,132,252,0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(168,85,247,0.06) 0%, transparent 50%);
}

.rirem {
    position: relative;
    width: 100%;
    max-width: 1140px;
    min-height: 680px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 
        0 30px 80px -20px rgba(168,85,247,0.22),
        inset 0 0 80px -40px rgba(192,132,252,0.12);
}

.gelyty {
    position: absolute;
    inset: 28px;
    border-radius: 18px;
    background: rgba(20,0,40,0.6);
    backdrop-filter: blur(4px);
}

#pointsCanvas { z-index: 15; pointer-events: none; }
#chartCanvas  { z-index: 10; }

/* Controls — неоновая панель */
.syxok {
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    padding: 22px 32px;
    margin: 28px auto;
    max-width: 1140px;
    background: rgba(20,0,40,0.7);
    border: 1px solid rgba(192,132,252,0.18);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

.control-group {
    min-width: 86px;
}

.control-group label {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.4px;
}

.control-group input,
.control-group select {
    width: 74px;
    padding: 10px 8px;
    font-size: 15px;
    background: rgba(76,29,149,0.35);
    color: var(--text);
    border: 1px solid rgba(192,132,252,0.3);
    border-radius: 10px;
    text-align: center;
    transition: 0.18s;
}

.control-group input:focus,
.control-group select:focus {
    border-color: var(--accent);
    background: rgba(192,132,252,0.12);
    box-shadow: 0 0 0 4px rgba(192,132,252,0.25);
    outline: none;
}



/* ================== ГЛАВНАЯ — карточки + категории ================== */

.gide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    padding: 0 12px 48px;
    max-width: 1360px;
    margin: 0 auto;
}

.necab.xusydyl {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 32px rgba(0,0,0,0.45);
}

.necab.xusydyl:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow: 0 24px 60px rgba(168,85,247,0.28);
    border-color: var(--accent-dark);
}

.necab h2 {
    margin: 0;
    padding: 24px 24px 12px;
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
    color: var(--text);
}

.necab h2 a {
    color: inherit;
    text-decoration: none;
}

.necab h2 a:hover {
    color: var(--accent);
}

.necab .sopyha {
    list-style: none;
    margin: 0;
    padding: 0 24px 20px;
}

/* Категории на главной */
.fyfyxu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 20px;
    max-width: 1360px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 18px 24px;
    background: rgba(76,29,149,0.25);
    border: 1px solid rgba(192,132,252,0.22);
    border-radius: 16px;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(6px);
}

.category-card:hover {
    background: rgba(192,132,252,0.18);
    border-color: var(--accent);
    color: white;
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 32px rgba(192,132,252,0.25);
}



/* ================== СТРАНИЦА КАТЕГОРИИ ================== */

.gide {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    padding: 40px 16px;
    max-width: 1360px;
    margin: 0 auto;
}

/* Та же карточка, что и на главной, но можно слегка отличить */
.necab.xusydyl {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 32px rgba(0,0,0,0.45);
}

.necab.xusydyl:hover {
    transform: translateY(-12px) scale(1.015);
    box-shadow: 0 24px 60px rgba(168,85,247,0.28);
    border-color: var(--accent-dark);
}

.necab h2 {
    margin: 0;
    padding: 24px 24px 12px;
    font-size: 1.48rem;
    font-weight: 700;
    line-height: 1.3;
}
