* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #667eea;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-dark: #0a0e27;
    --card-bg: rgba(20, 25, 45, 0.8);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.7);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    overflow-x: hidden;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.85);
    z-index: 0;
    pointer-events: none;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Прозрачный header с абсолютным позиционированием */
header {
    background: transparent;
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-content {
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: 3.5em;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

header .accent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.main-content {
    flex: 1;
    display: flex;
    gap: 0;
    padding: 0;
    height: 100vh;
    max-width: 100%;
    margin: 0;
    width: 100%;
    position: relative;
}

/* Секции с фоновыми изображениями */
.track-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.avtovoz-section {
    background-image: url('avtovoz.png');
}

.gruz-section {
    background-image: url('gruz.jpg');
}

/* Разделитель между секциями */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 15%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0.6) 85%, 
        transparent 100%);
    z-index: 5;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
                0 0 60px rgba(255, 255, 255, 0.3);
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.section-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
}

.section-content h2 {
    font-size: 2.5em;
    font-weight: 700;
    text-align: left;
    margin-bottom: 30px;
    color: var(--text-light);
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.track-input-container {
    margin-top: 30px;
}

.input-wrapper {
    display: flex;
    gap: 12px;
    background: transparent;
    padding: 8px;
    border-radius: 16px;
}

.track-input {
    flex: 1;
    padding: 18px 20px;
    font-size: 1.05em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: var(--text-light);
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.track-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.track-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

.track-button {
    padding: 18px 32px;
    font-size: 1.05em;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.track-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.track-button:active {
    transform: translateY(0) scale(0.98);
}

.gruz-section .track-button {
    background: var(--secondary-gradient);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.4);
}

.gruz-section .track-button:hover {
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.5);
}

/* Footer с абсолютным позиционированием */
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    padding: 10px 9px;
    z-index: 10;
}

.footer-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 10px;
    transition: all 0.3s ease;
    min-width: 150px;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-highlight {
    background: transparent;
    border: none;
}

.stat-icon {
    font-size: 2em;
    margin-bottom: 8px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-item h3 {
    font-size: 0.95em;
    margin-bottom: 5px;
    color: var(--text-light);
    font-weight: 600;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-top: 3px;
}

.stat-desc {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 3px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 200px);
    }

    /* Горизонтальный разделитель на мобильной версии */
    .main-content::before {
        top: 50%;
        left: 0;
        right: 0;
        bottom: auto;
        width: 100%;
        height: 6px;
        transform: translateY(-50%);
        background: linear-gradient(to right, 
            transparent 0%, 
            rgba(255, 255, 255, 0.6) 15%, 
            rgba(255, 255, 255, 0.9) 50%, 
            rgba(255, 255, 255, 0.6) 85%, 
            transparent 100%);
    }

    header {
        padding: 30px 20px 40px 20px;
    }

    footer {
        position: relative;
        padding: 20px 15px;
        background: #180041;
    }
    
    .footer-stats {
        gap: 10px;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between;
        width: 100%;
    }
    
    .stat-item {
        min-width: 0;
        padding: 5px;
        flex: 1 1 0;
        max-width: none;
    }
    
    .stat-icon {
        font-size: 1.8em;
    }
    
    .stat-item h3 {
        font-size: 0.85em;
    }
    
    .stat-number {
        font-size: 1.8em;
    }
    
    .stat-desc {
        font-size: 0.8em;
    }

    header h1 {
        font-size: 2.2em;
    }

    .header-subtitle {
        font-size: 1em;
    }

    .track-section {
        min-height: 50vh;
        padding-top: 40px;
    }

    .section-content {
        padding: 30px 20px;
    }

    .section-content h2 {
        font-size: 2em;
    }

    .section-icon {
        font-size: 3em;
    }

    .input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .track-button {
        width: 100%;
        justify-content: center;
    }
}

/* Уведомление */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 25, 45, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--text-light);
    padding: 30px 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    z-index: 1000;
    font-size: 1.1em;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border: 2px solid #e74c3c;
    max-width: 90%;
}

.notification-icon {
    font-size: 3em;
}

.notification p {
    font-weight: 600;
    color: #ff6b6b;
    margin: 0;
}

.notification.hidden {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
