        /* ===== ОСНОВНЫЕ ПЕРЕМЕННЫЕ И НАСТРОЙКИ ===== */
        :root {
            --primary-color: #0d6efd;
            --primary-dark: #0a58ca;
            --secondary-color: #006400;
            --accent-color: #0000CD;
            --light-bg: #f8f9fa;
            --gradient-bg: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
            --gradient-body: linear-gradient(to bottom, #e3f2fd, #bbdefb);
            --gradient-animated: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            --shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            --border-radius: 10px;
        }

        /* ===== ОБЩИЕ СТИЛИ ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Arial', sans-serif;
            background-color: var(--light-bg);
            background-image: var(--gradient-body);
            min-height: 100vh;
            color: #333;
        }

        /* Анимированный фон для главной страницы */
        body.index-page {
            background: var(--gradient-animated);
            background-size: 400% 400%;
            animation: gradient 15s ease infinite;
            color: white;
        }

        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* ===== НАВИГАЦИЯ ===== */
        .navbar {
            background-color: var(--primary-color);
            background-image: var(--gradient-bg);
        }

        .navbar-brand {
            font-weight: bold;
        }

        /* ===== КОНТЕЙНЕРЫ СОДЕРЖИМОГО ===== */
        .main-container,
        .guide-container,
        .calculator-container,
        .profile-container,
        .auth-container {
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            padding: 30px;
            margin-top: 30px;
            margin-bottom: 30px;
        }

        /* ===== КАРТОЧКИ И СЕКЦИИ ===== */
        .section-card,
        .summary-card {
            background-color: var(--light-bg);
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 25px;
            border: 1px solid #dee2e6;
        }

        .summary-card {
            text-align: center;
        }

        .summary-value {
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--primary-color);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--primary-color);
        }

        .section-title {
            background-color: #e0e0e0;
            padding: 10px;
            border-radius: 5px;
            font-weight: bold;
            margin-bottom: 15px;
            border: 1px solid #ccc;
        }

        /* ===== ТАБЛИЦЫ ===== */
        .table-responsive {
            overflow-x: auto;
        }

        .flight-table,
        .guide-table {
            font-size: 0.9rem;
            margin-bottom: 0;
        }

        .flight-table th,
        .guide-table th {
            background-color: #f0f0f0;
            text-align: center;
            vertical-align: middle;
        }

        .flight-table th {
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .guide-table th {
            background-color: #e9ecef;
        }

        /* ===== КНОПКИ ===== */
        .action-btn {
            margin: 0 2px;
            padding: 0.25rem 0.5rem;
            font-size: 0.875rem;
        }

        .btn-action {
            margin-right: 5px;
        }

        .filter-btn {
            position: relative;
        }

        .filter-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: #dc3545;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .login-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid white;
            color: white;
            padding: 15px 40px;
            font-size: 1.2em;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            font-weight: bold;
        }

        .login-btn:hover {
            background: white;
            color: #1a2a6c;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        }

        /* ===== ФОРМЫ ===== */
        .auth-form {
            padding: 30px;
        }

        .form-toggle {
            display: flex;
            border-bottom: 1px solid #dee2e6;
            margin-bottom: 20px;
        }

        .toggle-btn {
            flex: 1;
            padding: 10px;
            text-align: center;
            background: none;
            border: none;
            cursor: pointer;
            font-weight: 500;
            color: #6c757d;
            transition: all 0.3s;
        }

        .toggle-btn.active {
            color: var(--primary-color);
            border-bottom: 3px solid var(--primary-color);
        }

        .form-icon {
            color: var(--primary-color);
            font-size: 1.2rem;
        }

        .input-group-prefix {
            min-width: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #e9ecef;
            border: 1px solid #ced4da;
            border-right: none;
            padding: 0 10px;
        }

        /* ===== АККОРДЕОН ===== */
        .accordion-button:not(.collapsed) {
            background-color: var(--primary-color);
            color: white;
        }

        /* ===== ПАНЕЛИ ФИЛЬТРОВ ===== */
        .filter-panel {
            background-color: var(--light-bg);
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 20px;
            display: none;
        }

        .active-filter {
            background-color: var(--primary-color);
            color: white;
        }

        /* ===== РЕЗУЛЬТАТЫ ===== */
        .results-container {
            background-color: var(--light-bg);
            border: 1px solid #dee2e6;
            border-radius: 5px;
            padding: 15px;
            margin-top: 20px;
            font-family: monospace;
            white-space: pre-wrap;
            max-height: 400px;
            overflow-y: auto;
        }

        .result-label {
            font-weight: bold;
            color: var(--accent-color);
        }

        /* ===== ПРОФИЛЬ ===== */
        .avatar-container {
            position: relative;
            width: 150px;
            height: 150px;
            margin: 0 auto 20px;
        }

        .avatar-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid var(--primary-color);
        }

        .avatar-upload {
            position: absolute;
            bottom: 0;
            right: 0;
            background: var(--primary-color);
            color: white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        /* ===== ГЛАВНАЯ СТРАНИЦА ===== */
        .logo {
            font-size: 2.5em;
            font-weight: bold;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .hero {
            text-align: center;
            margin-top: 100px;
        }

        h1 {
            font-size: 4em;
            margin-bottom: 20px;
            text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
        }

        .subtitle {
            font-size: 1.5em;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        .features {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin-top: 80px;
            flex-wrap: wrap;
        }

        .feature {
            background: rgba(255, 255, 255, 0.1);
            padding: 30px;
            border-radius: 20px;
            text-align: center;
            backdrop-filter: blur(10px);
            max-width: 300px;
        }

        .feature h3 {
            font-size: 1.5em;
            margin-bottom: 15px;
        }

        /* ===== СТРАНИЦА АУТЕНТИФИКАЦИИ ===== */
        .auth-image {
            background-color: var(--primary-color);
            background-image: var(--gradient-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 400px;
            color: white;
            text-align: center;
            padding: 20px;
        }

        .plane-icon {
            font-size: 4rem;
            margin-bottom: 20px;
        }

        /* ===== АДАПТИВНОСТЬ ===== */
        @media (max-width: 768px) {
            h1 {
                font-size: 2.5em;
            }
            
            .features {
                flex-direction: column;
                align-items: center;
            }
            
            .main-container,
            .guide-container,
            .calculator-container,
            .profile-container,
            .auth-container {
                padding: 20px;
                margin-top: 20px;
                margin-bottom: 20px;
            }
            
            .auth-image {
                min-height: 300px;
            }
        }

        /* ===== УТИЛИТЫ ===== */
        .text-center {
            text-align: center;
        }

        .mb-4 {
            margin-bottom: 1.5rem;
        }

        .mt-4 {
            margin-top: 1.5rem;
        }

        .header-title {
            color: var(--secondary-color);
            font-weight: bold;
            font-size: 1.5rem;
            margin-bottom: 20px;
            text-align: center;
        }