﻿/* ========== НЕО-МИНИМАЛИЗМ С ДАРК-ТЕМОЙ ========== */
:root {
    /* Основная палитра - темная тема с неоном */
    --primary: #00ff9d; /* Неоново-зеленый */
    --primary-dark: #00cc7a;
    --primary-light: #7affc6;
    --secondary: #00e5ff; /* Неоново-голубой */
    --accent: #ff00aa; /* Неоново-розовый */
    /* Фоны */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-dark: #050508;
    --bg-card: #1a1a24;
    /* Текст */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;
    --text-light: #ffffff;
    /* Границы */
    --border: #2a2a35;
    --border-light: #1e1e28;
    --border-neon: rgba(0, 255, 157, 0.3);
    /* Статусы */
    --success: #00ff9d;
    --warning: #ffd600;
    --danger: #ff3b3b;
    --info: #00e5ff;
    /* Тени */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.5);
    --shadow-neon: 0 0 20px rgba(0, 255, 157, 0.3);
    /* Анимации */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 600ms cubic-bezier(0.4, 0, 0.2, 1);
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.menu-toggle {
    display: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

    /* Анимированный фон */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 50%, rgba(0, 255, 157, 0.05) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
        pointer-events: none;
        z-index: -1;
    }

/* ========== ТИПОГРАФИКА ========== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: var(--transition-fast);
    text-shadow: var(--shadow-neon);
    position: relative;
}

    .navbar-brand::before {
        content: '⚡';
        margin-right: 8px;
        font-size: 1.5rem;
        color: var(--secondary);
    }

    .navbar-brand:hover {
        color: var(--primary-light);
        transform: scale(1.05);
    }

.navbar-nav {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.5rem 0;
}

    .nav-link::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.3s ease;
    }

    .nav-link:hover {
        color: var(--text-primary);
    }

        .nav-link:hover::before {
            transform: scaleX(1);
            transform-origin: left;
        }

/* ========== КОНТЕЙНЕР ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== ГЕРО ========== */
.hero-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .hero-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: repeating-linear-gradient( 45deg, transparent, transparent 20px, rgba(0, 255, 157, 0.03) 20px, rgba(0, 255, 157, 0.03) 40px );
        animation: moveBackground 20s linear infinite;
        z-index: -1;
    }

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 40px);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 157, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(0, 255, 157, 0.6));
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* ========== СЕКЦИИ ========== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ========== КАРТОЧКИ ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-base);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(45deg, transparent, rgba(0, 255, 157, 0.1), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }

    .card:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: var(--primary);
        box-shadow: var(--shadow-neon);
    }

        .card:hover::before {
            transform: translateX(100%);
        }

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.card-footer {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .btn:hover::before {
        width: 300px;
        height: 300px;
    }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--bg-dark);
    box-shadow: var(--shadow-neon);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 30px rgba(0, 255, 157, 0.5);
    }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    position: relative;
}

    .btn-outline:hover {
        background: var(--primary);
        color: var(--bg-dark);
        border-color: var(--primary);
    }

.btn-success {
    background: linear-gradient(135deg, var(--success), #00cc7a);
    color: var(--bg-dark);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    color: white;
}

/* ========== ФУТЕР ========== */
.footer {
    background: var(--bg-dark);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--accent), transparent);
    }

    .footer .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: var(--text-secondary);
        position: relative;
        z-index: 1;
    }

.footer-links {
    display: flex;
    gap: 2rem;
}

    .footer-links a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: var(--transition-fast);
        position: relative;
    }

        .footer-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .footer-links a:hover {
            color: var(--primary);
        }

            .footer-links a:hover::after {
                width: 100%;
            }

/* ========== ФОРМЫ ========== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition-fast);
    color: var(--text-primary);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(0, 255, 157, 0.1);
        background: var(--bg-card);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate {
    animation: fadeInUp 0.6s ease;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */

/* Планшеты */
@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Мобильные */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--primary);
        border: none;
        border-radius: var(--radius-sm);
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--bg-dark);
        padding: 0;
        line-height: 1;
        z-index: 1001;
        box-shadow: var(--shadow-neon);
        transition: var(--transition-base);
    }

        .menu-toggle:hover {
            background: var(--primary-light);
            transform: scale(1.05);
        }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(5px);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

        .overlay.show {
            display: block;
            opacity: 1;
        }

    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-card);
        display: flex;
        flex-direction: column;
        padding: 5rem 1.5rem 2rem;
        gap: 1rem;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.3s ease;
        overflow-y: auto;
        border-left: 1px solid var(--border-neon);
    }

        .navbar-nav.show {
            right: 0;
        }

    .menu-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border);
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--bg-card);
    }

        .menu-header span {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--primary);
        }

    .menu-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--text-secondary);
        padding: 0.5rem;
        line-height: 1;
        transition: var(--transition-fast);
    }

        .menu-close:hover {
            color: var(--danger);
            transform: rotate(90deg);
        }

    .nav-link {
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-secondary);
        text-decoration: none;
        padding: 0.75rem 1rem;
        transition: var(--transition-fast);
        border-radius: var(--radius-sm);
        width: 100%;
    }

        .nav-link:hover {
            background: rgba(0, 255, 157, 0.1);
            color: var(--primary);
            padding-left: 1.5rem;
        }

        .nav-link::after,
        .nav-link::before {
            display: none;
        }

    .nav-btn {
        margin-top: 0.5rem;
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: var(--radius-sm);
    }

    .menu-divider {
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border), transparent);
        margin: 1rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Маленькие телефоны */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .navbar-nav {
        width: 90%;
        padding: 4rem 1rem 1.5rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.7rem 0.8rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
