/* Критический CSS для быстрой загрузки */

/* Основные стили */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
    margin: 0;
    padding: 0;
}

/* Навигация */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #D32F2F !important;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: #333 !important;
    font-weight: 500;
}

.nav-link:hover {
    color: #D32F2F !important;
}

/* Основной контент */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 200px);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: #D32F2F;
    font-weight: 700;
}

/* Кнопки */
.btn-primary {
    background-color: #D32F2F;
    border-color: #D32F2F;
}

.btn-primary:hover {
    background-color: #B71C1C;
    border-color: #B71C1C;
}

/* Карточки мотоциклов */
.motorcycle-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 12px;
    overflow: hidden;
}

.motorcycle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.motorcycle-card .card-img-top {
    transition: transform 0.3s ease;
}

.motorcycle-card:hover .card-img-top {
    transform: scale(1.05);
}

.motorcycle-card .card-body {
    padding: 1.5rem;
}

.motorcycle-card .card-title {
    color: #D32F2F;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.motorcycle-card .year {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.motorcycle-card .card-text {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.motorcycle-card .price {
    color: #D32F2F;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Изображения */
.bike-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

/* Цены */
.price {
    color: #D32F2F;
    font-weight: 700;
    font-size: 1.5rem;
}

/* Футер */
footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
}

footer h5 {
    display: flex;
    align-items: center;
}

footer h5 img {
    transition: transform 0.3s ease;
}

footer h5:hover img {
    transform: scale(1.05);
}

/* Утилиты */
.text-red {
    color: #D32F2F !important;
}

.bg-light-gray {
    background-color: #f8f9fa;
}

/* Базовые стили для иконок (Font Awesome загружается асинхронно) */
.fas, .far, .fab {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
    font-display: swap;
}

/* Эмодзи fallback для иконок */
.fas.fa-phone::before {
    content: "☎" !important;
}

.fas.fa-motorcycle::before {
    content: "🏍️" !important;
}

.fas.fa-envelope::before {
    content: "✉️" !important;
}

.fas.fa-arrow-left::before {
    content: "←" !important;
}

.fas.fa-list::before {
    content: "📋" !important;
}

.fas.fa-check::before {
    content: "✓" !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-content {
        padding-top: 70px;
    }
    
    .bike-image {
        height: 300px;
    }
    
    .price {
        font-size: 1.25rem;
    }
}
