/* Плавающая корзина */
#floatingCartButton {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

#floatingCartButton:hover {
    transform: translateY(-2px);
}

/* Пульсация баджа с количеством */
@keyframes pulse-cart {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

#cartItemsCount {
    animation: pulse-cart 2s infinite;
}

/* Кастомный скроллбар для модального окна */
.custom-scrollbar::-webkit-scrollbar {
    width: 10px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.8);
    border-radius: 5px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
    border-radius: 5px;
    border: 2px solid rgba(17, 24, 39, 0.8);
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f87171 0%, #ef4444 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

    /* Перспектива для 3D эффектов */
    .perspective-500 {
        perspective: 500px;
    }
    
    /* Курсор увеличения */
    .cursor-zoom-in {
        cursor: zoom-in;
    }

    /* Дополнительная толщина границы для выделения */
    .border-3 {
        border-width: 3px;
    }

    /* Глобальная кастомная красная полоса прокрутки */
    ::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(31, 41, 55, 0.6);
        border-radius: 6px;
        border: 1px solid rgba(75, 85, 99, 0.3);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(45deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
        border-radius: 6px;
        border: 1px solid rgba(185, 28, 28, 0.4);
        box-shadow: 
            inset 0 1px 0 rgba(248, 113, 113, 0.4),
            0 1px 3px rgba(0, 0, 0, 0.3);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(45deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
        box-shadow: 
            inset 0 1px 0 rgba(248, 113, 113, 0.6),
            0 2px 6px rgba(239, 68, 68, 0.4),
            0 0 12px rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.6);
    }

    ::-webkit-scrollbar-thumb:active {
        background: linear-gradient(45deg, #dc2626 0%, #b91c1c 50%, #991b1b 100%);
        box-shadow: 
            inset 0 1px 3px rgba(0, 0, 0, 0.4),
            0 1px 2px rgba(0, 0, 0, 0.2);
    }

    ::-webkit-scrollbar-corner {
        background: rgba(31, 41, 55, 0.6);
        border-radius: 6px;
    }

    /* Для Firefox (экспериментальная поддержка) */
    * {
        scrollbar-width: thin;
        scrollbar-color: #ef4444 rgba(31, 41, 55, 0.6);
    }
    
    /* Стили для логотипа */
    .logo-spin {
        transition: transform 0.6s ease-in-out;
    }
    
    /* Анимации для тормозного диска вокруг СИ */
    @keyframes brake-disc-rotation {
        0% { transform: rotate(0deg) scale(1.1); }
        100% { transform: rotate(360deg) scale(1.1); }
    }
    
    /* Анимация свечения для СИ */
    @keyframes brake-glow {
        0% { text-shadow: 0 0 5px rgba(255,0,0,0.5), 0 0 7px rgba(255,255,255,0.3); }
        50% { text-shadow: 0 0 10px rgba(255,50,50,0.7), 0 0 15px rgba(255,255,255,0.5); }
        100% { text-shadow: 0 0 5px rgba(255,0,0,0.5), 0 0 7px rgba(255,255,255,0.3); }
    }
    
    /* Анимация для логотипа при вращении */
    @keyframes logo-spin-custom {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Для мобильных устройств */
    @media (max-width: 640px) {
        .brand-text {
            letter-spacing: 0.02em !important;
        }
    }
    
    .logo-spin:hover {
        transform: rotate(360deg);
    }
    
    /* Автоматическая анимация для мобильных устройств */
    @media (max-width: 640px) {
        .mobile-auto-spin {
            animation: mobileLogoSpin 4s ease-in-out infinite;
            animation-delay: 1s;
        }
        
        @keyframes mobileLogoSpin {
            0% { transform: rotate(0deg); }
            25% { transform: rotate(360deg); }
            25.1% { transform: rotate(360deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Начальная анимация при загрузке страницы */
        .mobile-auto-spin {
            animation: 
                pageLoadSpin 1.5s ease-out 0.5s 1 forwards,
                mobileLogoSpin 4s ease-in-out 3s infinite;
        }
        
        @keyframes pageLoadSpin {
            0% { transform: rotate(0deg) scale(0.8); opacity: 0.7; }
            50% { transform: rotate(180deg) scale(1.1); opacity: 0.9; }
            100% { transform: rotate(360deg) scale(1); opacity: 1; }
        }
    }
    
    /* Отключаем hover анимацию на мобильных устройствах */
    @media (max-width: 640px) {
        .logo-spin:hover {
            transform: none;
        }
    }
    
    /* ========== СТИЛИ ДЛЯ АНИМАЦИИ КОЛЕСА ========== */
    
    /* Основные стили для контейнера колеса */
    .wheel-container {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Стили для изображения диска */
    .wheel-image {
        filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
        transform-origin: center center;
    }
    
    /* Анимация вращения диска */
    @keyframes wheel-spin {
        0% { 
            transform: rotate(0deg) scale(1);
            filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
        }
        25% { 
            transform: rotate(90deg) scale(1.05);
            filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.5));
        }
        50% { 
            transform: rotate(180deg) scale(1.1);
            filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.7));
        }
        75% { 
            transform: rotate(270deg) scale(1.05);
            filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.5));
        }
        100% { 
            transform: rotate(360deg) scale(1);
            filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.3));
        }
    }
    
    /* Анимация свечения контейнера */
    @keyframes wheel-glow-pulse {
        0% { 
            opacity: 0;
            transform: scale(0.8);
        }
        25% { 
            opacity: 0.3;
            transform: scale(0.9);
        }
        50% { 
            opacity: 0.6;
            transform: scale(1);
        }
        75% { 
            opacity: 0.3;
            transform: scale(0.9);
        }
        100% { 
            opacity: 0;
            transform: scale(0.8);
        }
    }
    
    /* Классы для запуска анимации */
    .wheel-spinning {
        animation: wheel-spin 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .wheel-glowing .wheel-glow {
        animation: wheel-glow-pulse 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    /* Эффект hover для колеса */
    .wheel-container:hover .wheel-image {
        filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.5));
        transition: filter 0.3s ease-in-out;
    }
    
    /* Респонсивные улучшения для колеса */
    @media (max-width: 640px) {
        .wheel-container {
            margin: 0 auto;
        }
        
        .wheel-image {
            filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.3));
        }
        
        .wheel-spinning {
            animation: wheel-spin 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        }
    }
    
    /* Улучшенный перенос текста для адресов */
    .address-text {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: none;
        -webkit-hyphens: none;
        -moz-hyphens: none;
        -ms-hyphens: none;
        /* Разрешаем перенос только после знаков препинания */
        word-break: break-word;
    }
    
    /* Стили для слайдера баннеров */
    .banner-slider {
        position: relative;
        overflow: hidden;
        background: #000;
        border-radius: 1rem;  /* 1rem = rounded-xl */
        border-bottom-left-radius: 1.5rem; /* Более сильное скругление нижних углов */
        border-bottom-right-radius: 1.5rem;
    }
    
    .slide {
        transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform, opacity;
    }
    
    .slide img {
        transition: transform 8s ease-out;
    }
    
    /* Эффект Ken Burns для изображений */
    .slide.active img {
        transform: scale(1.05);
    }
    
    /* Адаптивная типографика для баннеров */
    .slide h2 {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-weight: 800;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -moz-hyphens: auto;
        line-height: 1.1;
    }
    
    .slide p {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        font-weight: 400;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-height: none;
        overflow: visible;
    }
    
    /* Line clamp для ограничения строк */
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .line-clamp-3 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .line-clamp-4 {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Адаптивные размеры текста по устройствам */
    @media (max-width: 374px) {
        .slide h2 {
            font-size: 0.95rem !important;
            line-height: 1.2;
            margin-bottom: 0.4rem;
        }
        .slide p {
            font-size: 0.75rem !important;
            line-height: 1.4;
        }
    }
    
    @media (min-width: 375px) and (max-width: 639px) {
        .slide h2 {
            font-size: 1rem !important;
            line-height: 1.2;
            margin-bottom: 0.5rem;
        }
        .slide p {
            font-size: 0.8rem !important;
            line-height: 1.5;
        }
    }
    
    @media (min-width: 640px) and (max-width: 767px) {
        .slide h2 {
            font-size: 1.1rem !important;
            line-height: 1.3;
            margin-bottom: 0.6rem;
        }
        .slide p {
            font-size: 0.85rem !important;
            line-height: 1.5;
        }
    }
    
    @media (min-width: 768px) and (max-width: 1023px) {
        .slide h2 {
            font-size: 1.3rem !important;
            line-height: 1.3;
            margin-bottom: 0.75rem;
        }
        .slide p {
            font-size: 0.9rem !important;
            line-height: 1.6;
        }
    }
    
    @media (min-width: 1024px) and (max-width: 1279px) {
        .slide h2 {
            font-size: 1.875rem !important;
            line-height: 1.2;
            margin-bottom: 1rem;
        }
        .slide p {
            font-size: 1.125rem !important;
            line-height: 1.6;
        }
    }
    
    @media (min-width: 1280px) and (max-width: 1535px) {
        .slide h2 {
            font-size: 2.25rem !important;
            line-height: 1.2;
            margin-bottom: 1rem;
        }
        .slide p {
            font-size: 1.25rem !important;
            line-height: 1.6;
        }
    }
    
    @media (min-width: 1536px) {
        .slide h2 {
            font-size: 3rem !important;
            line-height: 1.1;
            margin-bottom: 1rem;
        }
        .slide p {
            font-size: 1.25rem !important;
            line-height: 1.6;
        }
    }
    
    .nav-arrow {
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-arrow:hover {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    }
    
    /* Адаптивные высоты слайдера */
    @media (max-width: 640px) {
        .banner-slider {
            height: 250px;
        }
    }
    
    @media (min-width: 641px) and (max-width: 768px) {
        .banner-slider {
            height: 320px;
        }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
        .banner-slider {
            height: 400px;
        }
    }
    
    @media (min-width: 1025px) {
        .banner-slider {
            height: 500px;
        }
    }
    
    /* Анимация появления контента */
    .slide .container > div {
        animation: slideInContent 0.8s ease-out 0.3s both;
    }
    
    @keyframes slideInContent {
        from {
            opacity: 0;
            transform: translateX(-30px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Дополнительные стили для анимаций */
    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
    
    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    
    /* Анимация для телефона */
    .phone-number {
        font-family: 'Inter', monospace;
        letter-spacing: 0.05em;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    /* Улучшенные градиенты */
    .gradient-text {
        background: linear-gradient(135deg, #dc2626, #ef4444, #f87171);
        background-size: 200% 200%;
        animation: gradientShift 3s ease infinite;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    
    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
    
    /* Анимация для иконок соцсетей */
    .social-icon {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .social-icon::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }
    
    .social-icon:hover::before {
        left: 100%;
    }
    
    /* Стили для кастомных селекторов */
    .custom-select {
        position: relative;
    }
    
    .custom-select.disabled .custom-select-button {
        cursor: not-allowed;
        opacity: 0.5;
    }
    
    .custom-select.disabled .custom-select-button:hover {
        border-color: #374151; /* gray-700 */
    }
    
    .custom-select.open .select-arrow {
        transform: rotate(180deg);
    }
    
    .custom-select-dropdown {
        scrollbar-width: thin;
        scrollbar-color: #dc2626 #374151;
    }
    
    .custom-select-dropdown::-webkit-scrollbar {
        width: 6px;
    }
    
    .custom-select-dropdown::-webkit-scrollbar-track {
        background: #374151;
        border-radius: 3px;
    }
    
    .custom-select-dropdown::-webkit-scrollbar-thumb {
        background: #dc2626;
        border-radius: 3px;
    }
    
    .custom-select-dropdown::-webkit-scrollbar-thumb:hover {
        background: #b91c1c;
    }
    
    /* Стили для секции брендов */
    .brands-showcase {
        position: relative;
    }
    
    .brands-showcase::before {
        content: '';
        position: absolute;
        top: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
        animation: brandGlow 3s ease-in-out infinite alternate;
    }
    
    .brands-showcase::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.3), transparent);
        animation: brandGlow 3s ease-in-out infinite alternate;
        animation-delay: 1.5s;
    }
    
    @keyframes brandGlow {
        0% { opacity: 0.3; width: 60%; }
        100% { opacity: 0.8; width: 80%; }
    }
    
    .brand-item {
        position: relative;
        z-index: 1;
    }
    
    .brand-item::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
        transition: all 0.6s ease-out;
        border-radius: 50%;
        z-index: -1;
    }
    
    .brand-item:hover::before {
        width: 200px;
        height: 200px;
    }
    
    /* Анимация появления брендов при прокрутке */
    .brand-item {
        opacity: 0;
        transform: translateY(30px);
        animation: brandFadeIn 0.8s ease-out forwards;
    }
    
    .brand-item:nth-child(1) {
        animation-delay: 0.2s;
    }
    
    .brand-item:nth-child(2) {
        animation-delay: 0.4s;
    }
    
    .brand-item:nth-child(3) {
        animation-delay: 0.6s;
    }
    
    @keyframes brandFadeIn {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Эффект пульсации для названий брендов */
    .brand-item h3 {
        position: relative;
        overflow: hidden;
    }
    
    .brand-item h3::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.8s;
    }
    
    .brand-item:hover h3::before {
        left: 100%;
    }
    
    /* Специальные эффекты для каждого бренда */
    .brand-item:nth-child(1) h3 {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
    }
    
    .brand-item:nth-child(1):hover h3 {
        color: #ef4444;
        text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
    }
    
    .brand-item:nth-child(2) h3 {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
    }
    
    .brand-item:nth-child(2):hover h3 {
        color: #f87171;
        text-shadow: 0 0 20px rgba(248, 113, 113, 0.6);
    }
    
    .brand-item:nth-child(3) h3 {
        color: #ffffff;
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
    }
    
    .brand-item:nth-child(3):hover h3 {
        color: #dc2626;
        text-shadow: 0 0 20px rgba(220, 38, 38, 0.6);
    }
    
    /* Адаптивность для брендов */
    @media (max-width: 768px) {
        .brand-item h3 {
            font-size: 1.5rem !important;
        }
        
        .brand-item {
            margin-bottom: 2rem;
        }
        
        .brands-showcase .grid {
            gap: 1.5rem;
        }
    }
    
    @media (max-width: 640px) {
        .brand-item h3 {
            font-size: 1.25rem !important;
        }
        
        .brand-item p {
            font-size: 0.875rem !important;
        }
    }
    
    /* Компактные стили для секции выбора типов осей */
    .axle-type-card-compact {
        position: relative;
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border: 1px solid #374151;
        border-radius: 8px;
        padding: 12px 16px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        text-align: left;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .axle-type-card-compact:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
        background: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
    }
    
    .axle-type-card-compact.selected-compact {
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.5), 0 4px 12px rgba(220, 38, 38, 0.2);
        transform: translateY(-1px);
    }
    
    .axle-type-title-compact {
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        margin: 0;
        transition: all 0.3s ease;
    }
    
    .axle-type-card-compact:hover .axle-type-title-compact {
        color: #fef2f2;
    }
    
    .axle-type-card-compact.selected-compact .axle-type-title-compact {
        color: #fbbf24;
    }
    
    .axle-type-image-compact {
        width: 48px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
        margin-right: 12px;
        border: 1px solid #374151;
        transition: all 0.3s ease;
    }
    
    .axle-type-image-compact:hover {
        border-color: #dc2626;
    }
    
    .axle-type-card-compact.selected-compact .axle-type-image-compact {
        border-color: #fbbf24;
        box-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
    }
    
    .axle-type-content-compact {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
    }
    
    /* Стили для карточек типов дисков */
    .disc-type-card-compact {
        position: relative;
        background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
        border: 1px solid #374151;
        border-radius: 8px;
        padding: 16px 20px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        text-align: center;
        min-height: 80px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .disc-type-card-compact:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
        background: linear-gradient(135deg, #262626 0%, #1a1a1a 100%);
    }
    
    .disc-type-card-compact.selected-compact {
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.5), 0 4px 12px rgba(220, 38, 38, 0.2);
        transform: translateY(-1px);
    }
    
    .disc-type-title-compact {
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        margin: 0 0 4px 0;
        transition: all 0.3s ease;
    }
    
    .disc-type-description-compact {
        font-size: 12px;
        color: #9ca3af;
        margin: 0;
        transition: all 0.3s ease;
        line-height: 1.3;
    }
    
    .disc-type-card-compact:hover .disc-type-title-compact {
        color: #fef2f2;
    }
    
    .disc-type-card-compact:hover .disc-type-description-compact {
        color: #d1d5db;
    }
    
    .disc-type-card-compact.selected-compact .disc-type-title-compact {
        color: #fbbf24;
    }
    
    .disc-type-card-compact.selected-compact .disc-type-description-compact {
        color: #fcd34d;
    }
    
    /* Адаптивность для компактных карточек */
    @media (max-width: 768px) {
        .axle-type-card-compact {
            padding: 10px 12px;
            min-height: 50px;
        }
        
        .axle-type-title-compact {
            font-size: 14px;
        }
        
        .axle-type-image-compact {
            width: 40px;
            height: 40px;
            margin-right: 10px;
        }
    }
    
    @media (max-width: 640px) {
        .axle-type-card-compact {
            padding: 8px 10px;
            min-height: 45px;
        }
        
        .axle-type-title-compact {
            font-size: 13px;
        }
        
        .axle-type-image-compact {
            width: 36px;
            height: 36px;
            margin-right: 8px;
        }
    }
    
    /* Адаптивность для карточек типов дисков */
    @media (max-width: 768px) {
        .disc-type-card-compact {
            padding: 12px 16px;
            min-height: 70px;
        }
        
        .disc-type-title-compact {
            font-size: 14px;
        }
        
        .disc-type-description-compact {
            font-size: 11px;
        }
    }
    
    @media (max-width: 640px) {
        .disc-type-card-compact {
            padding: 10px 12px;
            min-height: 60px;
        }
        
        .disc-type-title-compact {
            font-size: 13px;
        }
        
        .disc-type-description-compact {
            font-size: 10px;
        }
    }
    
    /* Простая анимация загрузки для компактных карточек */
    @keyframes compactFadeIn {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .axle-types-loaded .axle-type-card-compact {
        animation: compactFadeIn 0.4s ease-out forwards;
    }
    
    .axle-types-loaded .axle-type-card-compact:nth-child(1) {
        animation-delay: 0.1s;
    }
    
    .axle-types-loaded .axle-type-card-compact:nth-child(2) {
        animation-delay: 0.15s;
    }
    
    .axle-types-loaded .axle-type-card-compact:nth-child(3) {
        animation-delay: 0.2s;
    }
    
    /* Стили для новых карточек типов перфорации без фоновых блоков */
    .perforation-type-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .perforation-type-card:hover {
        transform: translateY(-8px);
    }
    
    .perforation-type-card.selected {
        transform: translateY(-8px);
    }
    
    .perforation-type-card img {
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
    
    .perforation-type-card:hover img {
        box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
    }
    
    .perforation-type-card.selected img {
        box-shadow: 0 8px 24px rgba(220, 38, 38, 0.5);
    }
    
    /* Рамка выбора */
    .selected-border {
        border-width: 3px;
        box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
    }
    
    /* Убираем любые баги с мерцанием */
    .perforation-type-card * {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    
    /* Стили для карточек тормозных дисков */
    .brake-disc-card {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .brake-disc-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(220, 38, 38, 0.2);
    }
    
    .brake-disc-card.border-red-500 {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
        transform: translateY(-4px);
    }
    
    .brake-disc-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 0%, rgba(220, 38, 38, 0.05) 50%, transparent 100%);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .brake-disc-card:hover::before {
        opacity: 1;
    }
    
    .brake-disc-card.border-red-500::before {
        opacity: 1;
        background: linear-gradient(45deg, transparent 0%, rgba(220, 38, 38, 0.1) 50%, transparent 100%);
    }
    
    /* Стили для индикатора выбора */
    .selection-indicator {
        position: relative;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .selection-dot {
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .brake-disc-card:hover .selection-indicator {
        border-color: #dc2626;
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
    }
    
    /* Стили для ограничения текста */
    .line-clamp-2 {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    /* Стили для бейджей типа оси */
    .axle-type-badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
        border: 1px solid;
        transition: all 0.3s ease;
    }
    
    .front-axle {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.05));
        color: #10b981;
        border-color: rgba(34, 197, 94, 0.3);
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
    }
    
    .rear-axle {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05));
        color: #3b82f6;
        border-color: rgba(59, 130, 246, 0.3);
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.15);
    }
    
    .brake-disc-card:hover .front-axle {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.1));
        box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
    }
    
    .brake-disc-card:hover .rear-axle {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.1));
        box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
    }
    
    /* Адаптивные стили для мобильных устройств и планшетов */
    @media (max-width: 640px) {
        .brake-disc-card {
            min-height: auto;
        }
        
        .perforation-type-card {
            min-height: 120px;
        }
        
        /* Мобильная версия: компактные карточки тормозных дисков как у суппортов */
        .brake-disc-card .h-56 {
            height: 10rem !important; /* Еще компактнее для 2 карточек в ряд */
        }
        
        /* Уменьшаем размер дисков на мобильных для размещения 2 в ряд */
        .brake-disc-card .w-28 {
            width: 4rem !important;
            height: 4rem !important;
        }
        
        .brake-disc-card .w-20 {
            width: 3rem !important;
            height: 3rem !important;
        }
        
        .brake-disc-card .w-4 {
            width: 0.625rem !important;
            height: 0.625rem !important;
        }
        
        /* Уменьшаем отступы и размеры текста на мобильных */
        .brake-disc-card .space-y-2 {
            gap: 0.25rem !important;
        }
        
        .brake-disc-card h4 {
            font-size: 0.75rem !important; /* text-xs для компактности */
            line-height: 1rem !important;
        }
        
        .brake-disc-card .text-lg {
            font-size: 0.875rem !important; /* text-sm */
        }
        
        /* Компактное размещение характеристик */
        .brake-disc-card .flex-wrap {
            gap: 0.125rem !important;
        }
        
        .brake-disc-card .text-xs {
            font-size: 0.6rem !important;
            padding-left: 0.25rem !important;
            padding-right: 0.25rem !important;
            padding-top: 0.125rem !important;
            padding-bottom: 0.125rem !important;
        }
        
        /* Компактная надпись "КОМПЛЕКТ" */
        .brake-disc-card .absolute.top-4 {
            top: 0.5rem !important;
            font-size: 0.6rem !important;
            padding-left: 0.5rem !important;
            padding-right: 0.5rem !important;
            padding-top: 0.125rem !important;
            padding-bottom: 0.125rem !important;
        }
    }
    
    @media (min-width: 641px) and (max-width: 768px) {
        /* Планшеты в портретной ориентации */
        .brake-disc-card {
            min-height: auto;
        }
        
        .brake-disc-card .w-28 {
            width: 6rem !important;
            height: 6rem !important;
        }
    }
    
    @media (min-width: 769px) and (max-width: 1024px) {
        /* Планшеты в альбомной ориентации */
        .brake-disc-card .w-28 {
            width: 7rem !important;
            height: 7rem !important;
        }
    }
    
    /* Улучшенная адаптивность для сетки */
    @media (max-width: 480px) {
        #brakeDiscsContainer,
        #calipersContainer {
            gap: 0.5rem !important;
        }
        
        #perforationTypesContainer {
            grid-template-columns: repeat(2, 1fr) !important;
            gap: 0.5rem !important;
        }
    }
    
    @media (min-width: 481px) and (max-width: 640px) {
        #brakeDiscsContainer,
        #calipersContainer {
            gap: 0.75rem !important;
        }
        
        #perforationTypesContainer {
            grid-template-columns: repeat(3, 1fr) !important;
            gap: 0.75rem !important;
        }
        
        /* На этом размере карточки тормозных дисков становятся более компактными */
        .brake-disc-card {
            padding: 0 !important;
        }
        
        .brake-disc-card .mb-3 {
            margin-bottom: 0.5rem !important;
        }
        
        .brake-disc-card .space-y-2 {
            gap: 0.375rem !important;
        }
    }

/* Compact Color Interface Styles */
.color-group-btn {
    background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
    color: white;
    padding: 0.75rem 0.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.color-group-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(239, 68, 68, 0.5);
}

.color-group-btn.active {
    transform: translateY(-1px) scale(1.01);
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1), 0 10px 25px -3px rgba(0, 0, 0, 0.2);
}

/* Эффект волны при клике */
.color-group-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.color-group-btn:active::before {
    width: 300px;
    height: 300px;
}

.color-group-container {
    margin-bottom: 1.5rem;
}

/* Новая простая сетка цветов */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: rgba(31, 41, 55, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(75, 85, 99, 0.3);
}

/* Кастомная красная полоса прокрутки для сетки цветов */
.colors-grid::-webkit-scrollbar {
    width: 14px;
}

.colors-grid::-webkit-scrollbar-track {
    background: rgba(17, 24, 39, 0.8);
    border-radius: 7px;
    border: 2px solid rgba(75, 85, 99, 0.2);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

.colors-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, 
        #f87171 0%, 
        #ef4444 25%, 
        #dc2626 50%, 
        #b91c1c 75%, 
        #991b1b 100%);
    border-radius: 7px;
    border: 2px solid rgba(185, 28, 28, 0.4);
    box-shadow: 
        inset 0 1px 0 rgba(248, 113, 113, 0.4),
        inset 0 -1px 0 rgba(153, 27, 27, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 8px rgba(239, 68, 68, 0.2);
}

.colors-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, 
        #fca5a5 0%, 
        #f87171 25%, 
        #ef4444 50%, 
        #dc2626 75%, 
        #b91c1c 100%);
    box-shadow: 
        inset 0 1px 0 rgba(252, 165, 165, 0.6),
        inset 0 -1px 0 rgba(153, 27, 27, 0.6),
        0 4px 8px rgba(0, 0, 0, 0.4),
        0 0 16px rgba(239, 68, 68, 0.4),
        0 0 24px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
    transform: scale(1.02);
}

.colors-grid::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, 
        #dc2626 0%, 
        #b91c1c 25%, 
        #991b1b 50%, 
        #7f1d1d 75%, 
        #450a0a 100%);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 1px 2px rgba(0, 0, 0, 0.3);
    transform: scale(0.98);
}

/* Кастомные углы для полосы прокрутки */
.colors-grid::-webkit-scrollbar-corner {
    background: rgba(17, 24, 39, 0.8);
    border-radius: 7px;
}

/* Карточка цвета */
.color-card {
    background: rgba(55, 65, 81, 0.4);
    border: 2px solid rgba(75, 85, 99, 0.4);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.color-card:hover {
    transform: translateY(-2px);
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.color-card.selected {
    border-color: rgb(239, 68, 68);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.02);
}

/* Цветовой блок */
.color-block {
    width: 100%;
    height: 60px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

/* Индикатор выбора */
.color-selected-indicator {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgb(239, 68, 68);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.color-card.selected .color-selected-indicator {
    display: flex;
}

/* Информация о цвете */
.color-info {
    background: rgba(31, 41, 55, 0.8);
    border-radius: 6px;
    padding: 6px;
    border: 1px solid rgba(75, 85, 99, 0.4);
}

.color-code {
    font-size: 11px;
    font-weight: bold;
    color: white;
    margin-bottom: 2px;
    font-family: monospace;
}

.color-name {
    font-size: 10px;
    color: #D1D5DB;
    line-height: 1.2;
    height: 24px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Квадратное соотношение сторон для цветовых блоков */
.aspect-square {
    aspect-ratio: 1 / 1;
}

/* Минимальная высота для информационной панели */
.min-h-12 {
    min-height: 3rem;
}

/* Ограничение текста для названий цветов */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.5em;
    line-height: 1.25em;
}

/* Адаптивность для новой сетки цветов */
@media (max-width: 768px) {
    .colors-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
        padding: 12px;
    }
    
    .color-block {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .colors-grid {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 8px;
        padding: 8px;
    }
    
    .color-block {
        height: 45px;
    }
    
    .color-code {
        font-size: 10px;
    }
    
    .color-name {
        font-size: 9px;
        height: 20px;
    }
}

@media (min-width: 640px) {
    .compact-color-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 768px) {
    .compact-color-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

@media (min-width: 1024px) {
    .compact-color-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

.compact-color-card {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 2px solid #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
}

.compact-color-card:hover {
    transform: scale(1.1);
    border-color: #6b7280;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.compact-color-card.selected {
    border-color: #dc2626;
    border-width: 4px;
    transform: scale(1.1);
}

.color-preview-compact {
    text-align: center;
    margin-top: 0.5rem;
}

.color-name-compact {
    font-size: 0.75rem;
    color: #4b5563;
    font-weight: 500;
}

.color-code-compact {
    font-size: 0.75rem;
    color: #9ca3af;
}
