body {
    margin: 0;
    padding: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 65%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    height: 100vh;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0, 234, 255, 0.1);
    z-index: 10;
    margin: 0;
    padding: 0;
}

.sidebar-content {
    flex: 1;
    padding: 0px;
    margin: 0px;
}

.sidebar-header {
    margin: 20px;
    padding: 10px 10px;
    
}

.sidebar-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
    margin-bottom: 15px;
    margin-top: 0px;
}

.sidebar-header p {
    font-size: 1rem;
    color: #94a3b8;
    margin: 0;
}

.main {
    width: 35%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #0a0e17;
    height: 100vh;
    margin: 0;
    padding: 0;
}

header {
    padding: 40px 20px 30px;
    z-index: 2;
    position: relative;
}

.hero-content {
    text-align: center;
    margin: 60px;
}

.hero-content h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: #00eaff;
    text-shadow: 0 0 20px #00eaff;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero-content h2 {
    color: #94a3b8;
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: #00eaff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.canvas-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

canvas { 
    position: absolute; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    z-index:1;
}

footer { 
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 2;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00eaff;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
    
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(0, 234, 255, 0.3);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 234, 255, 0.5);
}

/* Навигация */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 234, 255, 0.1);
    z-index: 1000;
    padding: 0 20px;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-brand h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.5);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #00eaff;
    background: rgba(0, 234, 255, 0.1);
}

.nav-link.active {
    color: #00eaff;
    background: rgba(0, 234, 255, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: #00eaff;
    border-radius: 2px;
}

/* Стили для контента в sidebar */
.content-section {
    margin-bottom: 30px;
    padding: 0 30px;
}

.content-section:first-child {
    margin-top: 30px;
}

.content-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: #00eaff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.content-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
    padding: 0 30px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(16, 23, 41, 0.8) 0%, rgba(8, 17, 33, 0.8) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(5px);
    border-color: rgba(0, 234, 255, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
    color: #00eaff;
    margin-bottom: 10px;
}

.feature-card h4 {
    font-family: 'Orbitron', sans-serif;
    color: #00eaff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
    padding: 0 30px;
}

.step-card {
    background: linear-gradient(135deg, rgba(16, 23, 41, 0.8) 0%, rgba(8, 17, 33, 0.8) 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(5px);
    border-color: rgba(0, 234, 255, 0.3);
}

.step-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: #00eaff;
    min-width: 40px;
    text-align: center;
}

.step-content h4 {
    font-family: 'Orbitron', sans-serif;
    color: #00eaff;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.step-content p {
    color: #94a3b8;
    line-height: 1.5;
    font-size: 0.9rem;
}

.step-tip {
    background: rgba(0, 234, 255, 0.08);
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #00eaff;
    margin-top: 8px;
}

.step-tip strong {
    color: #00eaff;
    font-size: 0.85rem;
}

.req-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.req-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 234, 255, 0.1);
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
}

.req-list li:last-child {
    border-bottom: none;
}

.req-list i {
    color: #00eaff;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding: 0 30px 30px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(90deg, #00eaff, #008cff);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 234, 255, 0.4);
}

.action-button.secondary {
    background: rgba(0, 234, 255, 0.15);
    color: #00eaff;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

.action-button.secondary:hover {
    background: rgba(0, 234, 255, 0.25);
}

/* Стили для грида карточек нод */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 30px;
    margin: 0;
    align-items: stretch;
    min-height: 0; /* Разрешаем сжатие */
}

/* Адаптивность */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .node-card {
        min-height: auto; /* На мобильных убираем фиксированную высоту */
    }
}

/* Компактные отступы для фильтров */
.sidebar-header {
    margin: 15px 20px 10px 20px;
    padding: 10px 10px 8px 10px;
}

.quick-filters {
    margin-top: 15px;
}

.results-counter {
    margin: 8px 0 15px 0;
}

/* Для мобильных */
@media (max-width: 768px) {
    .sidebar-header {
        margin: 10px 15px 8px 15px;
        padding: 8px 8px 6px 8px;
    }
    
    .quick-filters {
        margin-top: 10px;
    }
}
/* Компактные отступы для поднятия карточек ближе к фильтрам */
.sidebar-header {
    margin: 15px 20px 5px 20px; /* Уменьшили верхний и нижний отступы */
    padding: 10px 10px 5px 10px; /* Уменьшили нижний padding */
}

.sidebar-header h2 {
    margin-bottom: 8px !important; /* Уменьшили отступ под заголовком */
}

.sidebar-header p {
    margin-bottom: 8px !important; /* Уменьшили отступ под описанием */
}

.sidebar-content {
    margin-top: -10px; /* Поднимаем контент выше */
}

.cards-grid {
    padding: 10px 30px 30px 30px !important; /* Уменьшили верхний отступ */
}

/* Для мобильных */
@media (max-width: 768px) {
    .sidebar-header {
        margin: 10px 15px 5px 15px;
        padding: 8px 8px 3px 8px;
    }
    
    .cards-grid {
        padding: 5px 20px 20px 20px !important;
    }
}
