* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

html {
    overflow-x: hidden;
    width: 100%;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100vh !important;
}

/* Additional styles for mobile menu */
@media (max-width: 768px) {
          /* Ensure mobile menu is always on top */
    .nav {
        z-index: 99999 !important;
    }
    
    /* Prevent conflicts with other elements */
    .header {
        z-index: 10000 !important;
    }
    
    /* Remove any possible conflicts */
    .container {
        z-index: auto !important;
    }
    
    /* Force display of active menu */
    .nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background-color: #2a2a2a !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        height: calc(100vh - 80px) !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
    
    /* Remove basic styles for mobile menu */
    .nav:not(.active) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* Forced styles for debugging */
@media (max-width: 768px) {
    /* Test styles for display verification */
    .nav.active {
        background-color: #2a2a2a !important;
        border: none !important;
        min-height: auto !important;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
.header {
    background-color: #2a2a2a;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo link styling - remove blue underline */
.header .container a {
    text-decoration: none;
    color: inherit;
}

.header .container a:hover {
    text-decoration: none;
    color: inherit;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #ffffff;
}

.logo-subtext {
    font-size: 12px;
    color: #cccccc;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    width: auto;
    transition: all 0.3s ease;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #ffff00;
}

.search-icon {
    color: #ffffff;
    cursor: pointer;
    font-size: 24px;
    transition: color 0.3s;
}

.search-icon:hover {
    color: #ffff00;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Main section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    margin-top: 80px; /* Offset for fixed header */
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-text p {
    font-size: 16px;
    max-width: 400px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.search-form {
    display: flex;
    gap: 10px;
    background-color: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 5px;
    flex-wrap: wrap;
    min-width: 300px;
}

.search-select {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 15px;
    border-radius: 3px;
    font-size: 14px;
    min-width: 140px;
    flex: 1;
}

.search-select:focus {
    outline: 2px solid #ffff00;
}

.search-btn {
    background-color: #ffff00;
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.search-btn:hover {
    background-color: #e6e600;
}

/* "How Easy" section */
.how-easy {
    padding: 80px 0;
    background-color: #2a2a2a;
}

.how-easy h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    color: #ffffff;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    text-align: center;
    padding: 30px 20px;
}

.step-icon {
    font-size: 48px;
    color: #ffff00;
    margin-bottom: 20px;
    display: block;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffffff;
}

.step p {
    color: #cccccc;
    line-height: 1.6;
}

/* Featured vehicles */
.featured-vehicles {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.featured-vehicles h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 60px;
    color: #ffffff;
}

.vehicles-slider {
    position: relative;
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.vehicles-container {
    display: flex;
    gap: 30px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
    flex: 1;
    justify-content: center;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.vehicle-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    flex: 0 0 auto;
    width: 300px;
    min-width: 300px;
}

.vehicle-card:hover {
    transform: translateY(-5px);
}

.vehicle-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-badges {
    position: absolute;
    top: 10px;
    left: 10px;
}

.badge {
    background-color: #ffff00;
    color: #000;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
}

.vehicle-info {
    padding: 20px;
}

.vehicle-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #ffff00;
    margin-bottom: 15px;
}

.vehicle-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 20px;
}

.vehicle-details span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #cccccc;
}

.vehicle-details .material-symbols-outlined {
    font-size: 16px;
}

.apply-btn {
    background-color: #ffff00;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s;
}

.apply-btn:hover {
    background-color: #e6e600;
}

/* Empty featured vehicles section */
.empty-featured {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    padding: 40px 20px;
}

.empty-content {
    text-align: center;
    max-width: 500px;
}

.empty-icon {
    font-size: 64px;
    color: #666;
    margin-bottom: 20px;
    display: block;
}

.empty-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.empty-content p {
    font-size: 16px;
    color: #999;
    line-height: 1.6;
    margin: 0;
}

/* Fallback image styling */
.fallback-image {
    opacity: 0.8;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.fallback-image:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* No image placeholder (keeping for future use) */
.no-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px 10px 0 0;
    border: 2px dashed #444;
}

.no-image-placeholder .material-symbols-outlined {
    font-size: 48px;
    color: #666;
    margin-bottom: 10px;
}

.no-image-placeholder p {
    color: #888;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-align: center;
}

/* Popular brands - FIXED */
.popular-makes {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.popular-makes h2 {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #ffffff;
    position: relative;
}

.popular-makes h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ffff00;
}

.makes-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.makes-container {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
    padding: 20px 0;
    flex: 1;
    scroll-behavior: smooth;
    transition: scroll-behavior 0.8s ease;
}

.make-item {
    flex: 0 0 auto;
    width: 120px;
    text-align: center;
    padding: 20px 15px;
    background-color: #2a2a2a;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.make-item:hover {
    transform: translateY(-5px);
    border-color: #ffff00;
    background-color: #333333;
}

.make-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background: transparent;
    mix-blend-mode: screen;
    filter: brightness(1.2) contrast(1.1);
}

.make-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.3) contrast(1.2);
}

.make-name {
    display: block;
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    margin-top: 8px;
}

.slider-arrow {
    position: relative;
    background-color: #2a2a2a;
    border: none;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.slider-arrow:hover {
    background-color: #ffff00;
    color: #1a1a1a;
    transform: scale(1.1);
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-arrow:disabled:hover {
    background-color: #2a2a2a;
    color: #ffffff;
    transform: scale(1);
}

.slider-arrow .material-symbols-outlined {
    font-size: 24px;
}



/* Welcome section */
.welcome {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.welcome-text {
    flex: 1;
}

.welcome-text h3 {
    color: #ffff00;
    font-size: 16px;
    margin-bottom: 10px;
}

.welcome-text h2 {
    font-size: 36px;
    color: #ffff00;
    margin-bottom: 20px;
}

.welcome-text p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.6;
}

.welcome-image {
    flex: 1;
}

.welcome-image img {
    width: 100%;
    border-radius: 8px;
}

/* Подвал */
.footer {
    background-color: #2a2a2a;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    color: #ffff00;
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 10px;
    font-size: 14px;
}

.location {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.location .material-symbols-outlined {
    color: #ffff00;
    margin-top: 2px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #cccccc;
    font-size: 24px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ffff00;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #ffff00;
}

/* Адаптивный дизайн */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .makes-slider-container {
        gap: 15px;
    }
    
    .make-item {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block !important;
        background: none;
        border: none;
        color: #ffffff;
        font-size: 24px;
        cursor: pointer;
        padding: 8px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
        z-index: 100001 !important;
        position: relative !important;
    }
    
    .mobile-menu-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: fixed !important;
        top: 80px !important; /* Отступ для header */
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background-color: #2a2a2a !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        height: calc(100vh - 80px) !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        transform: none !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }
    
    .nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        background-color: #2a2a2a !important;
        flex-direction: column !important;
        padding: 20px !important;
        gap: 15px !important;
        height: calc(100vh - 80px) !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
    
    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #444 !important;
        font-size: 16px !important;
        text-align: center !important;
    }
    
    .nav-link:last-child {
        border-bottom: none !important;
    }
    
    .search-icon {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
        margin-top: 80px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .search-form {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .search-select {
        min-width: auto;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .vehicles-slider {
        flex-direction: column;
        gap: 15px;
    }

    .vehicles-container {
        gap: 20px;
        padding: 15px 0;
    }

    .vehicle-card {
        width: 280px;
        min-width: 280px;
    }

    .vehicles-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .popular-makes h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .makes-slider {
        flex-direction: column;
        gap: 15px;
    }
    
    .makes-container {
        gap: 15px;
        padding: 15px 0;
    }
    
    .make-item {
        width: 100px;
        padding: 15px 10px;
    }
    
    .make-item img {
        width: 50px;
        height: 50px;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    
    .welcome-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .welcome-text h2 {
        font-size: 28px;
    }
    
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
    }
    
    .footer-bottom {
        padding-top: 18px;
        margin-top: 25px;
    }
    
    .footer-links {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 10px 0;
    }
    
    .header .container {
        padding: 0 15px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .logo-subtext {
        font-size: 10px;
    }
    
    .mobile-menu-btn {
        font-size: 20px !important;
        padding: 6px !important;
    }
    
    .nav {
        top: 70px !important;
        height: calc(100vh - 70px) !important;
        padding: 15px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .nav-link {
        padding: 10px 0 !important;
        font-size: 14px !important;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .make-item {
        min-width: 120px;
        padding: 10px;
    }
    
    .make-item img {
        height: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        padding-top: 15px;
        margin-top: 20px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .how-easy h2,
    .featured-vehicles h2,
    .popular-makes h2 {
        font-size: 24px;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .header .container {
        padding: 0 10px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .logo-subtext {
        font-size: 9px;
    }
    
    .mobile-menu-btn {
        font-size: 18px !important;
        padding: 4px !important;
    }
    
    .nav {
        padding: 10px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        top: 60px !important;
        height: calc(100vh - 60px) !important;
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .nav.active {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .nav-link {
        padding: 8px 0 !important;
        font-size: 12px !important;
    }
    
    .hero-text h1 {
        font-size: 24px;
    }
    
    .search-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-select {
        min-width: auto;
        width: 100%;
    }
}

/* Улучшения доступности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Стили фокуса для лучшей доступности */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
}

/* Улучшенные стили для доступности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Улучшенные стили для высокого контраста */
@media (prefers-contrast: high) {
    .nav-link:hover,
    .nav-link.active {
        color: #ffffff !important;
        background-color: #ffff00 !important;
    }
    
    .search-btn {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
}

/* Состояния загрузки */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}






.cta-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #ffffff;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #cccccc;
    line-height: 1.6;
}

.cta-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin: 0 auto;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.cta-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}