/*
===============================================
B2B DUKEN - ФИНАЛЬНАЯ УНИФИКАЦИЯ ЦВЕТОВ
Обеспечивает полное соответствие цветовой схеме логотипа
===============================================
*/

/* === ЦВЕТОВЫЕ ПЕРЕМЕННЫЕ ЛОГОТИПА === */
:root {
    /* Точные цвета из логотипа B2B DUKEN */
    --logo-primary: #4A90E2 !important;     /* Основной синий */
    --logo-medium: #357ABD !important;      /* Средний синий */
    --logo-dark: #2F5F8F !important;       /* Темный синий */
    --logo-navy: #1B365D !important;       /* Темно-синий */
    --logo-deep: #0F2441 !important;       /* Самый темный */

    /* Градиенты логотипа */
    --logo-gradient: linear-gradient(135deg, #4A90E2 0%, #2F5F8F 100%) !important;
    --logo-hero-gradient: linear-gradient(135deg, #4A90E2 0%, #357ABD 50%, #2F5F8F 100%) !important;
    --logo-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
    --logo-shadow-lg: 0 10px 25px rgba(74, 144, 226, 0.4) !important;
}

/* === ГЛОБАЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ ВСЕХ СИНИХ ЦВЕТОВ === */

/* Bootstrap и системные цвета */
.text-primary,
.text-info,
.link-primary {
    color: var(--logo-primary) !important;
}

.bg-primary,
.bg-info {
    background: var(--logo-gradient) !important;
    color: white !important;
}

.btn-primary,
.btn-info {
    background: var(--logo-gradient) !important;
    border-color: var(--logo-primary) !important;
    color: white !important;
    box-shadow: var(--logo-shadow) !important;
}

.btn-primary:hover,
.btn-info:hover,
.btn-primary:focus,
.btn-info:focus,
.btn-primary:active,
.btn-info:active {
    background: linear-gradient(135deg, #357ABD 0%, #1B365D 100%) !important;
    border-color: var(--logo-medium) !important;
    color: white !important;
    box-shadow: var(--logo-shadow-lg) !important;
}

.btn-outline-primary,
.btn-outline-info {
    color: var(--logo-primary) !important;
    border-color: var(--logo-primary) !important;
}

.btn-outline-primary:hover,
.btn-outline-info:hover {
    background: var(--logo-primary) !important;
    border-color: var(--logo-primary) !important;
    color: white !important;
}

/* Ссылки */
a {
    color: var(--logo-primary) !important;
}

a:hover,
a:focus {
    color: var(--logo-dark) !important;
}

/* Формы */
.form-control:focus {
    border-color: var(--logo-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25) !important;
}

.form-check-input:checked {
    background-color: var(--logo-primary) !important;
    border-color: var(--logo-primary) !important;
}

.form-range::-webkit-slider-thumb {
    background-color: var(--logo-primary) !important;
}

.form-range::-moz-range-thumb {
    background-color: var(--logo-primary) !important;
}

/* Навигация */
.breadcrumb-item.active {
    color: var(--logo-primary) !important;
}

/* Таблицы */
.table-primary,
.table-primary > th,
.table-primary > td {
    background-color: rgba(74, 144, 226, 0.1) !important;
    border-color: var(--logo-primary) !important;
}

.table thead th {
    background: var(--logo-gradient) !important;
    color: white !important;
    border-color: var(--logo-primary) !important;
}

/* Алерты */
.alert-primary {
    background-color: rgba(74, 144, 226, 0.1) !important;
    border-color: var(--logo-primary) !important;
    color: var(--logo-navy) !important;
}

.alert-info {
    background-color: rgba(74, 144, 226, 0.1) !important;
    border-color: var(--logo-primary) !important;
    color: var(--logo-navy) !important;
}

/* Прогресс бары */
.progress-bar {
    background: var(--logo-gradient) !important;
}

/* Значки и бейджи */
.badge-primary,
.badge-info {
    background: var(--logo-primary) !important;
}

/* Пагинация */
.page-item.active .page-link {
    background-color: var(--logo-primary) !important;
    border-color: var(--logo-primary) !important;
}

.page-link {
    color: var(--logo-primary) !important;
}

.page-link:hover,
.page-link:focus {
    color: var(--logo-dark) !important;
    background-color: rgba(74, 144, 226, 0.1) !important;
    border-color: var(--logo-primary) !important;
}

/* Дропдауны */
.dropdown-item.active,
.dropdown-item:active {
    background-color: var(--logo-primary) !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: rgba(74, 144, 226, 0.1) !important;
    color: var(--logo-dark) !important;
}

/* Модальные окна */
.modal-header {
    border-bottom-color: var(--logo-primary) !important;
}

/* Карточки */
.card-primary .card-header {
    background: var(--logo-gradient) !important;
    color: white !important;
}

/* Список групп */
.list-group-item.active {
    background-color: var(--logo-primary) !important;
    border-color: var(--logo-primary) !important;
}

/* Spinner и загрузчики */
.spinner-border-primary {
    border-color: var(--logo-primary) !important;
    border-right-color: transparent !important;
}

/* Аккордеоны */
.accordion-button:not(.collapsed) {
    background-color: rgba(74, 144, 226, 0.1) !important;
    color: var(--logo-navy) !important;
}

/* Карусели */
.carousel-indicators [data-bs-target] {
    background-color: var(--logo-primary) !important;
}

/* Тосты */
.toast-header {
    background-color: rgba(74, 144, 226, 0.1) !important;
    border-bottom-color: var(--logo-primary) !important;
}

/* Скроллбар */
::-webkit-scrollbar-thumb {
    background: var(--logo-gradient) !important;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--logo-dark) !important;
}

/* Выделение текста */
::selection {
    background-color: rgba(74, 144, 226, 0.3) !important;
    color: var(--logo-navy) !important;
}

::-moz-selection {
    background-color: rgba(74, 144, 226, 0.3) !important;
    color: var(--logo-navy) !important;
}

/* === СПЕЦИАЛЬНЫЕ КОМПОНЕНТЫ === */

/* Иконки Bootstrap */
.text-primary .bi,
.text-info .bi {
    color: var(--logo-primary) !important;
}

/* Градиентный текст */
.text-gradient,
.gradient-text {
    background: var(--logo-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Статистика */
.stat-number {
    background: var(--logo-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Кнопки призыва к действию */
.btn-cta,
.cta-button,
.btn-view-all,
.btn-hero-primary {
    background: var(--logo-hero-gradient) !important;
    color: white !important;
    border: none !important;
    box-shadow: var(--logo-shadow) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    letter-spacing: 0.5px !important;
}

.btn-cta:hover,
.cta-button:hover,
.btn-view-all:hover,
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #357ABD 0%, #1B365D 100%) !important;
    color: white !important;
    box-shadow: var(--logo-shadow-lg) !important;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6,
.hero-title,
.stats-title,
.products-title,
.solutions-title,
.partnerships-title,
.process-title {
    color: var(--logo-navy) !important;
    font-family: 'Poppins', sans-serif !important;
}

/* Улучшенная читаемость для заголовков hero */
.hero-title {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
}

/* Карточки продуктов */
.product-card {
    border: 1px solid rgba(74, 144, 226, 0.1) !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.08) !important;
}

.product-card:hover {
    border-color: var(--logo-primary) !important;
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15) !important;
}

.product-price,
.price-amount {
    background: var(--logo-gradient) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.product-title {
    color: var(--logo-navy) !important;
}

/* Бейджи категорий */
.badge-category {
    background: var(--logo-gradient) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3) !important;
}

/* Кнопки в карточках */
.btn-add-cart {
    background: var(--logo-gradient) !important;
    box-shadow: var(--logo-shadow) !important;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #357ABD 0%, #1B365D 100%) !important;
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4) !important;
}

.btn-quote {
    color: var(--logo-primary) !important;
    border-color: var(--logo-primary) !important;
}

.btn-quote:hover {
    background: var(--logo-primary) !important;
    color: white !important;
}

/* Иконки действий */
.action-btn {
    color: var(--logo-navy) !important;
}

.action-btn:hover {
    color: var(--logo-primary) !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3) !important;
}

/* Overlay эффекты */
.product-overlay {
    background: rgba(74, 144, 226, 0.8) !important;
}

/* === УЛУЧШЕНИЕ ЧИТАЕМОСТИ === */

/* Вторичные кнопки */
.btn-hero-secondary,
.btn-secondary,
.btn-outline-primary {
    background: white !important;
    color: var(--logo-primary) !important;
    border: 3px solid var(--logo-primary) !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.btn-hero-secondary:hover,
.btn-secondary:hover,
.btn-outline-primary:hover {
    background: var(--logo-primary) !important;
    color: white !important;
    border-color: var(--logo-primary) !important;
}

/* Улучшенная контрастность текста */
.hero-subtitle,
.products-subtitle,
.solutions-subtitle {
    color: #4b5563 !important;
    font-weight: 500 !important;
}

/* Статистические карточки */
.stat-card {
    border: 1px solid rgba(74, 144, 226, 0.1) !important;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.1) !important;
}

.stat-card:hover {
    border-color: var(--logo-primary) !important;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.2) !important;
}

.stat-label {
    color: var(--logo-navy) !important;
    font-weight: 600 !important;
}

/* Иконки в решениях */
.solution-icon i {
    color: var(--logo-primary) !important;
}

.solution-card:hover .solution-icon i {
    color: white !important;
}

/* Улучшение видимости текста */
.solution-title,
.partnership-title,
.step-title {
    color: var(--logo-navy) !important;
}

/* Процесс работы */
.step-number {
    color: var(--logo-primary) !important;
    background: rgba(74, 144, 226, 0.1) !important;
}

.step-icon {
    background: var(--logo-gradient) !important;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3) !important;
}

.step-icon:hover {
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.4) !important;
}

/* Финальное переопределение для читаемости */
.text-muted {
    color: #6b7280 !important;
}

.text-dark {
    color: var(--logo-navy) !important;
}

/* Фокус для доступности */
button:focus,
.btn:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--logo-primary) !important;
    outline-offset: 2px !important;
}

/* Анимации */
@keyframes pulse-logo {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(74, 144, 226, 0);
    }
}

.pulse-logo {
    animation: pulse-logo 2s infinite;
}

/* === ТЁМНАЯ ТЕМА === */
@media (prefers-color-scheme: dark) {
    .text-primary {
        color: #60A5FA !important;
    }

    .bg-primary {
        background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%) !important;
    }
}

/* === ПРИНТ === */
@media print {
    .text-primary,
    .btn-primary {
        color: var(--logo-navy) !important;
        background: transparent !important;
    }
}

/* === ВЫСОКИЙ КОНТРАСТ === */
@media (prefers-contrast: high) {
    .text-primary,
    .btn-primary {
        color: var(--logo-deep) !important;
    }

    .btn-primary {
        border: 2px solid var(--logo-deep) !important;
    }
}

/* === ФИНАЛЬНОЕ ПЕРЕОПРЕДЕЛЕНИЕ === */
/* Обеспечиваем, что все цвета соответствуют логотипу */
* {
    /* Переопределяем любые оставшиеся синие цвета */
    --bs-primary: #4A90E2 !important;
    --bs-primary-rgb: 74, 144, 226 !important;
    --bs-info: #4A90E2 !important;
    --bs-info-rgb: 74, 144, 226 !important;
}

/* Конец файла */
