:root {
    --bg-main: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    
    --text-primary: #ffffff;
    --text-muted: #888888;
    
    --border-color: #222222;
    --border-light: #333333;
    
    --font: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 450px; /* Increased from 300px */
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bg-main);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 60px 0; /* Increased padding */
    z-index: 100;
}

.logo-container {
    padding: 0 60px; /* Adjusted padding */
    margin-bottom: 80px;
    text-align: center;
}

.logo-invert {
    width: 100%;
    max-width: 260px; /* Increased from 180px */
    height: auto;
    filter: invert(100%);
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Increased gap */
    padding: 0 40px; /* Adjusted padding */
    flex-grow: 1;
}

.nav-item {
    padding: 20px 30px; /* Increased padding */
    font-size: 18px; /* Increased from 14px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-item:hover {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    padding-left: 40px; /* More hover shift */
}

.sidebar-contact {
    padding: 0 60px; /* Adjusted padding */
}

.btn-contact {
    display: block;
    text-align: center;
    padding: 20px; /* Increased padding */
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 16px; /* Added font size */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-contact:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
}

/* Main Content Area */
.main-content {
    margin-left: 450px; /* Match new sidebar width */
    width: calc(100% - 450px);
}

.section {
    padding: 100px 80px;
    min-height: 100vh; /* Optional: snap sections to full height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dark-section {
    background-color: var(--bg-main);
}

.darker-section {
    background-color: var(--bg-secondary);
}

.content-box {
    max-width: 1000px;
}

.section-title {
    font-size: 40px;
    font-weight: 200;
    margin-bottom: 60px;
    letter-spacing: -1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 100px 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #111 url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=80') center/cover;
    filter: saturate(1.2); /* Full brightness, slightly saturated */
    z-index: -2;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Dark near the text on the left, very transparent on the right to show the bright photo */
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 45%, rgba(10, 10, 10, 0.1) 100%);
    z-index: -1;
}

.mega-title {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.highlight {
    color: var(--text-muted);
    font-weight: 300;
}

.subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.8;
}

/* Cards (About) */
.cards-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.dark-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s;
}

.dark-card:hover {
    transform: translateY(-10px);
    border-color: var(--border-light);
}

.dark-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.dark-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Timeline (Workflow) */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-item {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.step-num {
    font-size: 60px;
    font-weight: 200;
    line-height: 0.8;
    color: var(--border-light);
}

.timeline-item h4 {
    font-size: 24px;
    margin-bottom: 10px;
}

.timeline-item p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}

/* Assets */
.featured-block {
    padding: 60px;
    background-color: var(--bg-tertiary);
    border-left: 4px solid var(--text-primary);
    font-size: 24px;
    line-height: 1.8;
    font-weight: 300;
}

/* Partners */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.logo-placeholder {
    height: 120px;
    border: 1px dashed var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.logo-placeholder:hover {
    border-style: solid;
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Footer */
.footer {
    background-color: #050505;
    padding: 80px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.footer-desc {
    color: var(--text-muted);
}

.contact-details {
    text-align: right;
    font-size: 18px;
    line-height: 1.8;
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1200px) {
    .sidebar {
        width: 350px;
        padding: 40px 0;
    }
    .main-content {
        margin-left: 350px;
        width: calc(100% - 350px);
    }
    .mega-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    .section, .hero-section {
        padding: 60px 20px;
        min-height: auto;
    }
    .mega-title {
        font-size: 36px;
    }
    .footer {
        padding: 40px 20px;
    }
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    .contact-details {
        text-align: left;
    }
}


/* Responsive Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-4, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: relative;
        height: auto;
        padding: 20px 0;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .nav-item {
        font-size: 16px;
        margin: 5px;
    }
    
    .content-box {
        padding: 30px 20px;
    }
    
    .mega-title {
        text-align: center;
    }
    
    .subtitle {
        text-align: center;
    }
}


/* --- Анимации и плавность (Strict & Smooth) --- */

/* Плавное появление контента при загрузке страницы */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-box {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Эффекты наведения для карточек преимуществ и авиации */
.dark-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dark-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(77, 168, 218, 0.5) !important;
}

/* Эффекты наведения для логистики */
.featured-block {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.featured-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(77, 168, 218, 0.3) !important;
}

/* Эффекты для логотипов партнеров */
.logo-placeholder {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.logo-placeholder:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Плавность кнопок навигации */
.nav-item {
    transition: color 0.3s ease, background-color 0.3s ease, padding-left 0.3s ease;
}
.nav-item:hover {
    padding-left: 25px; /* Легкий сдвиг вправо при наведении */
}


/* --- ЭФФЕКТЫ ПРОКРУТКИ (SCROLL REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для карточек, чтобы они появлялись по очереди */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- АНИМАЦИЯ ГЛАВНОГО ФОНА (HERO ZOOM) --- */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-bg {
    animation: slowZoom 20s linear infinite alternate;
}

/* --- ПУЛЬСАЦИЯ ДЛЯ ТЕГОВ --- */
@keyframes softPulse {
    0% { box-shadow: 0 0 0 0 rgba(77, 168, 218, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(77, 168, 218, 0); }
    100% { box-shadow: 0 0 0 0 rgba(77, 168, 218, 0); }
}

#aviation span:hover {
    animation: softPulse 1.5s infinite;
    background: rgba(77, 168, 218, 0.2) !important;
}

/* --- СВЕЧЕНИЕ ЗАГОЛОВКОВ --- */
.section-title {
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #4da8da;
    transition: width 0.4s ease;
}
.section:hover .section-title::after {
    width: 100px;
}
