/* style.css - DataWizual Security */
:root {
    --primary: #3498db;
    --secondary: #0f172a;
    --dark: #0f172a;
    --darker: #0a0f1c;
    --gray: #94a3b8;
    --light-gray: #cbd5e1;
    --white: #ffffff;
    --green: #4ade80;
    --red: #ef4444;
    --yellow: #f59e0b;
    --purple: #a855f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hero Sections */
.hero {
    padding: 80px 0;
    position: relative;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--gray);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

/* Sections */
.section {
    padding: 80px 0;
}

/* Cards */
.product-card {
    background: rgba(26, 28, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.product-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
}

.product-description {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.product-features span {
    color: var(--light-gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.t-green {
    color: var(--green);
}

/* Footer */
.footer {
    background: var(--darker);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary);
}

/* Utility Classes */
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #4ade80; }

.badge-new {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* Flex Utilities */
.hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 300px;
}

.hero-visual {
    flex: 1;
    min-width: 300px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-flex {
        flex-direction: column;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .text-gradient {
        color: #3498db !important;
        background: none !important;
    }
}

    /* Улучшенные стили выпадающего меню */
    .dropdown {
        position: relative;
        display: inline-block;
        /* Важно: добавляем небольшой нижний отступ, чтобы мышка всегда была "над" элементом */
        padding-bottom: 15px; 
        margin-bottom: -15px;
    }

    .dropdown-trigger {
        display: flex;
        align-items: center;
        gap: 6px;
        cursor: pointer;
        padding: 10px 0; /* Увеличиваем область наведения */
    }

    .dropdown-content {
        display: none;
        position: absolute;
        top: 100%; /* Прижимаем вплотную к родителю */
        left: 50%;
        transform: translateX(-50%); /* Центрируем меню относительно ссылки */
        background: #1a1c20;
        min-width: 240px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.6);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 10px;
        padding: 12px 0;
        z-index: 1000;
        /* Убираем резкое появление */
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease-in-out;
    }

    /* "Мостик", который не дает меню закрыться при движении мыши вниз */
    .dropdown-content::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 0;
        width: 100%;
        height: 15px;
        background: transparent;
    }

    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    /* Стили элементов внутри */
    .dropdown-content a {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 14px 20px !important;
        color: #94a3b8 !important;
        font-size: 0.9rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.03);
        transition: background 0.2s ease;
    }

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a i {
        width: 16px;
        text-align: center;
        font-size: 1rem;
        color: var(--primary);
    }

    .dropdown-content a:hover {
        background: rgba(255,255,255,0.05);
        color: white !important;
    }  