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


/* Адаптивность для мобильных устройств */

/* Стили для формы контактов */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-select.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

/* Анимация для кнопки отправки */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Стили для контактной формы */
.contact-info {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #D32F2F;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.contact-item h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item p {
    color: #666;
    margin-bottom: 0.25rem;
}

/* Font Awesome fallback */
.fas, .far, .fab {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "FontAwesome", sans-serif !important;
    font-weight: 900;
}

.far {
    font-weight: 400;
}

.fab {
    font-weight: 400;
}

/* Если Font Awesome не загрузился, показываем эмодзи */
.fas:not([class*="fa-"]) {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
}

/* Принудительный fallback для всех Font Awesome иконок */
.fas::before {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

/* Переопределяем все Font Awesome иконки на эмодзи */
.fas[class*="fa-"]::before {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

/* Принудительно заменяем все Font Awesome иконки на эмодзи */
.fas::before {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

/* Переопределяем Font Awesome иконки на эмодзи */
.fas.fa-phone::before {
    content: "☎" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-motorcycle::before {
    content: "🏍" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-envelope::before {
    content: "✉" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-map-marker-alt::before {
    content: "📍" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-clock::before {
    content: "🕐" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-check::before {
    content: "✓" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-arrow-left::before {
    content: "←" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-info-circle::before {
    content: "ℹ" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-list::before {
    content: "📋" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-paper-plane::before {
    content: "✈" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-search::before {
    content: "🔍" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-shipping-fast::before {
    content: "🚚" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-handshake::before {
    content: "🤝" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-certificate::before {
    content: "📜" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

.fas.fa-tools::before {
    content: "🔧" !important;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
    font-weight: normal !important;
}

/* Fallback для иконок если Font Awesome не загрузился */
.fa-fallback .fas.fa-phone::before {
    content: "📞";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fa-fallback .fas.fa-motorcycle::before {
    content: "🏍️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fa-fallback .fas.fa-envelope::before {
    content: "✉️";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fa-fallback .fas.fa-map-marker-alt::before {
    content: "📍";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fa-fallback .fas.fa-clock::before {
    content: "🕐";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.fa-fallback .fas.fa-telegram::before {
    content: "📱";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Альтернативный fallback - простые символы */
.fas.fa-phone::before {
    content: "☎";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-motorcycle::before {
    content: "🏍";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-envelope::before {
    content: "✉";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-map-marker-alt::before {
    content: "📍";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-clock::before {
    content: "🕐";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-telegram::before {
    content: "📱";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-arrow-left::before {
    content: "←";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-info-circle::before {
    content: "ℹ";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-check::before {
    content: "✓";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-list::before {
    content: "📋";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-paper-plane::before {
    content: "✈";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-search::before {
    content: "🔍";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-shipping-fast::before {
    content: "🚚";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-handshake::before {
    content: "🤝";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-certificate::before {
    content: "📜";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.fas.fa-tools::before {
    content: "🔧";
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: normal;
}

.main-content {
    margin-top: 76px; /* Высота навбара */
    min-height: calc(100vh - 200px);
}

/* Навигация */
.navbar {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E0E0E0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #D32F2F !important;
    font-weight: 700;
}

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

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

/* Герой секция */
.hero-section {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.btn-primary {
    background-color: #D32F2F;
    border-color: #D32F2F;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #B71C1C;
    border-color: #B71C1C;
    transform: translateY(-2px);
}

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

.motorcycle-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.motorcycle-card img {
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.card-body {
    padding: 1.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D32F2F;
}

.year {
    color: #666;
    font-size: 0.9rem;
}

/* Детали мотоцикла */
.bike-details {
    background: #F5F5F5;
    padding: 2rem 0;
}

.bike-image {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.specifications {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: #333;
}

.spec-value {
    color: #666;
}

.features {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.feature-item i {
    color: #D32F2F;
    margin-right: 0.75rem;
}

/* Контакты */
.contact-info {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item i {
    color: #D32F2F;
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 30px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    
    .hero-section p {
        font-size: 1rem;
        color: white !important;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    }
    
    .motorcycle-card img {
        height: 200px;
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .spec-value {
        margin-top: 0.25rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }
    
    .main-content {
        margin-top: 56px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

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

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Стили для логотипов брендов */
.brand-logo img,
.brand-logo-small img {
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Логотипы в заголовке страницы */
.brand-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Логотипы в списке мотоциклов */
.brand-logo-small img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* Контейнеры для логотипов */
.logo-svg,
.logo-svg-small {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-svg {
    width: 60px;
    height: 60px;
}

.logo-svg-small {
    width: 32px;
    height: 32px;
}

/* Стили для брендов */
.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 80px;
}

.brand-name {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.5rem;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}

/* Стили для страницы контактов */
.contact-hero-section {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .contact-hero-section {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 50vh !important;
    }
}

@media (max-width: 576px) {
    .contact-hero-section {
        min-height: 40vh !important;
        background-position: center top !important;
    }
}

/* Стили для главной страницы */
/* Герой секция - мобильная адаптация */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center center !important;
        min-height: 80vh !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 70vh !important;
        background-position: center top !important;
    }
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    .hero-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
    }
}
