:root {
    --jeep-orange: #ff8c00;
    --dark-bg: #121212;
    --light-bg: #f8f8f8;
    --white: #ffffff;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--white); 
    color: #222; 
    line-height: 1.6; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-padding { 
    padding: 90px 0; 
}

.bg-light { background-color: var(--light-bg); }
.bg-dark { background-color: var(--dark-bg); }
.text-white { color: var(--white); }
.w-100 { width: 100%; }

/* Типографіка */
h1, h2, h3, h4, .logo, .grille-icon { 
    font-family: 'Oswald', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

/* ========================================= */
/* ВЕРХНЯ ПАНЕЛЬ (TOP BAR)                   */
/* ========================================= */
.top-info-bar { 
    background: #0a0a0a; 
    color: #888; 
    padding: 10px 0; 
    font-size: 0.85rem; 
    border-bottom: 1px solid #222; 
}

.top-bar-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.top-left .divider { 
    margin: 0 10px; 
    color: #444; 
}

.top-right a { 
    color: #888; 
    text-decoration: none; 
    margin-left: 20px; 
    transition: 0.3s; 
    font-weight: 600;
}

.top-right a:hover { 
    color: var(--jeep-orange); 
}

/* ========================================= */
/* ШАПКА (HEADER)                            */
/* ========================================= */
.header { 
    background: #000; 
    padding: 20px 0; 
    border-bottom: 4px solid var(--jeep-orange); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.4); 
}

.header-inner { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 2.2rem; 
    color: #fff; 
    font-weight: 700; 
}

.logo span { 
    color: var(--jeep-orange); 
}

.phone-link { 
    display: flex; 
    align-items: center; 
    text-decoration: none; 
    background: rgba(255,255,255,0.05); 
    padding: 10px 20px; 
    border-radius: 4px; 
    transition: 0.3s; 
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-link:hover { 
    background: var(--jeep-orange); 
    border-color: var(--jeep-orange);
}

.phone-link:hover .phone-num, 
.phone-link:hover .phone-icon { 
    color: #000; 
}

.phone-icon { 
    font-size: 1.2rem; 
    margin-right: 10px; 
    transition: 0.3s;
}

.phone-num { 
    color: #fff; 
    font-weight: 800; 
    font-size: 1.2rem; 
    font-family: 'Oswald', sans-serif; 
    transition: 0.3s;
}

/* ========================================= */
/* ГОЛОВНИЙ ЕКРАН З ВІДЕО (HERO)             */
/* ========================================= */
.hero { 
    height: 85vh; 
    min-height: 600px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: #fff; 
    position: relative; 
    overflow: hidden; 
    background: #000; 
}

.video-background { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    z-index: 1; 
}

.video-background video { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.hero-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.65); 
    z-index: 2; 
}

.hero-content { 
    position: relative; 
    z-index: 3; 
    width: 100%; 
}

.grille-icon { 
    font-size: 3.5rem; 
    letter-spacing: 15px; 
    color: var(--jeep-orange); 
    margin-bottom: 20px; 
    opacity: 0.9; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero h1 { 
    font-size: 4.8rem; 
    line-height: 1; 
    margin-bottom: 25px; 
    font-weight: 700; 
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero p { 
    font-size: 1.3rem; 
    max-width: 850px; 
    margin: 0 auto 40px; 
    color: #eee; 
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* ========================================= */
/* КНОПКИ                                    */
/* ========================================= */
.btn { 
    display: inline-block; 
    padding: 18px 45px; 
    font-weight: 800; 
    text-decoration: none; 
    transition: 0.3s; 
    cursor: pointer; 
    border: 2px solid transparent; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-jeep { 
    background: var(--jeep-orange); 
    color: #000; 
}

.btn-jeep:hover { 
    background: #fff; 
    border-color: #fff; 
}

.btn-outline { 
    border: 2px solid #fff; 
    color: #fff; 
    margin-left: 20px; 
}

.btn-outline:hover { 
    background: var(--jeep-orange); 
    border-color: var(--jeep-orange); 
    color: #000; 
}

/* ========================================= */
/* СЕКЦІЯ БРЕНДІВ (Оптимізована під 36 шт.)  */
/* ========================================= */
.section-title { 
    text-align: center; 
    font-size: 2.8rem; 
    margin-bottom: 15px; 
    font-weight: 700; 
}

.section-subtitle { 
    text-align: center; 
    color: #666; 
    margin-bottom: 50px; 
    font-size: 1.1rem; 
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.brands-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); 
    gap: 15px; 
}

.brand-item { 
    background: #fff; 
    padding: 20px 10px; 
    text-align: center; 
    border: 1px solid #eee; 
    transition: 0.3s; 
    border-radius: 4px; 
}

.brand-item:hover { 
    border-color: var(--jeep-orange); 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
}

.brand-item h4 { 
    font-size: 1.2rem; 
    color: #000; 
    margin-bottom: 5px; 
}

.brand-item p { 
    font-size: 0.75rem; 
    color: #888; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    line-height: 1.3; 
}

/* ========================================= */
/* ФОРМА ПІДБОРУ (VIN)                       */
/* ========================================= */
.vin-card { 
    background: #fff; 
    padding: 60px; 
    max-width: 950px; 
    margin: 0 auto; 
    border: 3px solid #000; 
    box-shadow: 15px 15px 0 var(--jeep-orange); 
}

.vin-header { 
    text-align: center; 
    margin-bottom: 40px; 
}

.input-group { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    margin-bottom: 20px; 
}

.jeep-form input, 
.jeep-form textarea { 
    width: 100%; 
    padding: 18px; 
    border: 1px solid #ddd; 
    font-family: 'Inter', sans-serif; 
    font-size: 1rem; 
    background: #fdfdfd; 
    transition: 0.3s;
}

.jeep-form input:focus, 
.jeep-form textarea:focus {
    outline: none;
    border-color: var(--jeep-orange);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.1);
}

.jeep-form textarea { 
    height: 130px; 
    margin-bottom: 25px; 
    resize: vertical;
}

/* ========================================= */
/* SEO СЕКЦІЯ                                */
/* ========================================= */
.seo-columns { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 50px; 
}

.seo-list { 
    list-style: none; 
    margin-top: 25px; 
}

.seo-list li { 
    padding: 15px 0; 
    border-bottom: 1px solid #222; 
    font-weight: 600; 
    color: #bbb; 
}

/* ========================================= */
/* ПІДВАЛ (FOOTER)                           */
/* ========================================= */
.footer { 
    background: #000; 
    color: #fff; 
    padding: 80px 0; 
    text-align: center; 
    border-top: 1px solid #222; 
}

.footer-phone { 
    font-size: 2.5rem; 
    color: var(--jeep-orange); 
    text-decoration: none; 
    font-weight: 700; 
    font-family: 'Oswald', sans-serif; 
    display: block; 
    margin-bottom: 20px; 
}

.partner a { 
    color: var(--jeep-orange); 
    text-decoration: none; 
    font-weight: bold; 
}

/* ========================================= */
/* МАКСИМАЛЬНО ЖОРСТКА МОБІЛЬНА АДАПТАЦІЯ    */
/* ========================================= */
@media (max-width: 768px) {
    .container { 
        padding: 0 15px; 
    } 
    
    .hero h1 { 
        font-size: 2.8rem; 
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .seo-columns, 
    .input-group { 
        grid-template-columns: 1fr; 
        text-align: center; 
    }
    
    /* Верхня панель (Top Bar) */
    .top-bar-flex { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .top-left { 
        margin-bottom: 10px; 
        display: flex; 
        flex-direction: column; 
        gap: 5px; 
    }
    
    .top-left .divider { 
        display: none; 
    }
    
    .top-right { 
        display: flex; 
        justify-content: center; 
        gap: 20px; 
    }
    
    .top-right a { 
        margin-left: 0; 
        font-size: 0.9rem; 
    }
    
    /* ЖОРСТКЕ ВИПРАВЛЕННЯ ШАПКИ (Header) */
    .header { 
        padding: 15px 0; 
    }
    
    .logo { 
        font-size: 1.8rem; 
        letter-spacing: 0; 
    }
    
    .phone-link { 
        padding: 8px 12px; 
        white-space: nowrap !important; /* ЗАБОРОНА ПЕРЕНОСУ */
        display: inline-block;
    }
    
    .phone-icon { 
        display: none !important; /* Гарантовано ховаємо трубку */
    }
    
    .phone-num { 
        font-size: 0.95rem !important; /* Оптимально для iPhone */
        white-space: nowrap !important; /* ЗАБОРОНА ПЕРЕНОСУ */
        letter-spacing: -0.3px; 
    }
    
    /* Кнопки та форма */
    .btn { 
        padding: 16px 30px; 
        font-size: 0.9rem; 
    }
    
    .btn-outline { 
        margin-left: 0; 
        margin-top: 15px; 
        display: block; 
    }
    
    .vin-card { 
        box-shadow: none; 
        padding: 30px 20px; 
        border: 2px solid #000; 
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}