/* Контейнер — чистый и просторный */
.brands-scroll-container {
    display: flex !important;
    overflow-x: auto !important;
    gap: 18px !important;
    padding: 20px 10px 35px 10px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    background: transparent !important; /* Убираем темный фон */
}

.brands-scroll-container::-webkit-scrollbar { display: none !important; }

/* Карточка — стиль "Apple Store" (Светлый минимализм) */
.brand-card-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 110px !important;
    height: 120px !important;
    background: #ffffff !important;
    /* Тонкая, едва заметная граница */
    border: 1px solid #f1f5f9 !important;
    border-radius: 24px !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.2, 1) !important;
    /* Глубокая "мягкая" тень */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
}

/* Ховер — Плавное всплытие и акцент */
.brand-card-item:hover {
    transform: translateY(-10px) scale(1.03) !important;
    background: #ffffff !important;
    border-color: #3b82f6 !important; /* Твой синий акцент */
    /* Тень становится объемнее */
    box-shadow: 0 25px 35px -10px rgba(59, 130, 246, 0.2) !important;
}

/* Логотипы 512x512 — Максимальная четкость */
.brand-card-item img {
    width: 55px !important;
    height: 55px !important;
    object-fit: contain !important;
    margin-bottom: 12px !important;
    transition: transform 0.4s ease !important;
    /* Легкое свечение под лого */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05)) !important;
}

.brand-card-item:hover img {
    transform: scale(1.1) !important;
}

/* ТЕКСТ — ЧИСТЫЙ ЧЕРНЫЙ */
.brand-card-item span {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #000000 !important; /* Строгий черный */
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: color 0.3s ease !important;
}

/* Синяя точка-индикатор при наведении */
.brand-card-item::after {
    content: "" !important;
    position: absolute !important;
    bottom: 15px !important;
    width: 6px !important;
    height: 6px !important;
    background: #3b82f6 !important;
    border-radius: 50% !important;
    opacity: 0 !important;
    transform: scale(0) !important;
    transition: all 0.3s ease !important;
}

.brand-card-item:hover::after {
    opacity: 1 !important;
    transform: scale(1) !important;
}
/* Стиль заголовка для марок */
.brands-title-row {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 0 5px !important;
}

.brands-title-row h2 {
    white-space: nowrap !important;
    color: #000000 !important;
    text-transform: none !important;
    letter-spacing: -0.5px !important;
}

/* Тонкая линия-разделитель после текста */
.title-line {
    height: 1px !important;
    background: #e2e8f0 !important;
    width: 100% !important;
}
/* Шапка блока */
.tech-mini-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 15px !important;
    padding: 0 5px !important;
}

.tech-mini-title {
    font-size: 17px !important;
    font-weight: 900 !important;
    color: #1e293b !important;
    text-transform: uppercase;
    border-left: 5px solid #f59e0b !important; /* Теплый оранжевый */
    padding-left: 12px !important;
    margin: 0 !important;
}

.tech-all-link {
    font-size: 12px !important;
    color: #64748b !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Компактная светлая карточка */
.mini-tech-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    min-width: 150px !important;
    height: 58px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 0 12px !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Иконка в круге */
.mini-tech-icon {
    width: 36px;
    height: 36px;
    background: #fff7ed; /* Нежный оранжевый фон */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.mini-tech-icon i {
    font-size: 20px !important;
    color: #f59e0b !important; /* Насыщенный оранжевый */
}

/* Текст */
.mini-tech-card span {
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #334155 !important;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ХОВЕР - Сочный эффект */
.mini-tech-card:hover {
    background: #ffffff !important;
    border-color: #f59e0b !important; /* Оранжевая рамка */
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 20px -5px rgba(245, 158, 11, 0.25) !important;
}

.mini-tech-card:hover .mini-tech-icon {
    background: #f59e0b !important;
}

.mini-tech-card:hover i {
    color: #ffffff !important;
}

.mini-tech-card:hover span {
    color: #000000 !important;
}
/* Кнопка Аукционы Японии в слайдере */
.btn-japan-auction {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    border: 1px solid #bc002d !important; /* Японский красный */
    padding: 0 15px !important;
    border-radius: 10px !important;
    height: 38px !important;
    text-decoration: none !important;
    flex: 0 0 auto !important; /* Не дает кнопке сжиматься */
    transition: all 0.2s ease-in-out !important;
}

.btn-japan-auction:hover {
    background: #fff5f6 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(188, 0, 45, 0.1);
    border-color: #e60039 !important;
}

.btn-japan-auction .flag {
    font-size: 18px !important;
    line-height: 1 !important;
}

.btn-japan-auction .text {
    color: #bc002d !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}
/* Контейнер-обертка */
.dkp-modern-container {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Основная карточка-кнопка */
.dkp-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb; /* Тонкая светлая граница */
    border-radius: 16px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

/* Эффект при наведении */
.dkp-card:hover {
    transform: translateY(-2px);
    border-color: #3b82f6; /* Твой акцентный синий */
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.1);
}

/* Иконка слева */
.dkp-icon-box {
    width: 52px;
    height: 52px;
    background: #f0f7ff;
    color: #3b82f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.dkp-card:hover .dkp-icon-box {
    background: #3b82f6;
    color: #ffffff;
}

/* Блок с текстом */
.dkp-content {
    flex-grow: 1;
}

.dkp-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 4px;
    line-height: 1;
}

.dkp-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.dkp-subtitle {
    margin: 4px 0 0 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.3;
}

/* Стрелочка справа */
.dkp-arrow {
    color: #d1d5db;
    font-size: 22px;
    transition: all 0.3s ease;
}

.dkp-card:hover .dkp-arrow {
    color: #3b82f6;
    transform: translateX(4px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .dkp-card {
        padding: 14px 16px;
        gap: 12px;
    }
    .dkp-icon-box {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    .dkp-title {
        font-size: 15px;
    }
    .dkp-subtitle {
        font-size: 12px;
    }
    .dkp-arrow {
        display: none; /* Прячем стрелку на мелких экранах для чистоты */
    }
}
/* Контейнер виджета */
.tax-calculator-widget {
    border: 1px solid #e2e8f0;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
}

/* Шапка */
.tax-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.tax-widget-icon {
    width: 36px;
    height: 36px;
    background: #f0f7ff;
    color: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.tax-widget-title h5 {
    margin: 0;
    font-size: 15px;
    color: #1e293b;
}

.tax-region-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Поля ввода и лейблы */
.tax-input-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}

.tax-input-wrapper {
    position: relative;
}

.tax-input-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

/* Стилизация инпутов и селекта */
.tax-calculator-widget .form-control {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    padding: 10px 12px;
    height: auto;
    appearance: none;
}

#car-year-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Блок результата */
#tax-result-box {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    text-align: center;
}

.tax-res-label {
    display: block;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.tax-res-value {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.tax-currency {
    font-size: 16px;
}

.tax-res-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #edf2f7;
}

.tax-res-footer a {
    font-size: 10px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

/* Убираем стрелки в инпуте */
#hp-input::-webkit-outer-spin-button,
#hp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Усиленный селектор для кнопки */
.tax-calculator-widget .btn-calc-tax {
    display: block !important;
    width: 100% !important;
    background: #1e293b !important; /* Темный цвет как в твоем DKP */
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    text-align: center !important;
    margin-top: 10px !important;
}

.tax-calculator-widget .btn-calc-tax:hover {
    background: #3b82f6 !important; /* Синий при наведении */
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
}

.tax-calculator-widget .btn-calc-tax:active {
    transform: translateY(0) !important;
}
.customs-calculator-widget {
    border: 1px solid #e2e8f0;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
}
/* Кнопка расчета таможни */
#calc-customs-btn {
    display: block !important;
    width: 100% !important;
    background: #16a34a !important; /* Насыщенный зеленый */
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 12px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    text-align: center !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.1);
}

#calc-customs-btn:hover {
    background: #15803d !important; /* Темнее при наведении */
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.2) !important;
}

#calc-customs-btn:active {
    transform: translateY(0) !important;
}

/* Дополнительные стили для контейнера таможни, чтобы всё было в одном стиле */
.customs-calculator-widget {
    border: 1px solid #e2e8f0;
    padding: 22px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
}

/* Иконка и заголовок таможни */
.customs-calculator-widget .tax-widget-icon {
    background: #f0fdf4 !important;
    color: #16a34a !important;
}

/* Блок результата таможни */
#customs-result-box {
    background: #f0fdf4 !important;
    border: 1px dashed #16a34a !important;
    padding: 15px;
    border-radius: 15px;
    margin-top: 15px;
}
.res-line { display: flex; justify-content: space-between; font-size: 13px; color: #475569; margin-bottom: 5px; }
.res-total-block { margin-top: 12px; padding-top: 10px; border-top: 2px solid rgba(22, 163, 74, 0.1); text-align: center; }
.total-label { font-size: 11px; font-weight: 700; color: #16a34a; text-transform: uppercase; }
.total-sum { font-size: 24px; font-weight: 900; color: #15803d; margin-top: 2px; }


/* Дизайн бейджа налога в инфо-строке */
.ai-tax-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f0fdf4; /* Нежно-зеленый фон */
    color: #16a34a;            /* Темно-зеленый текст */
    padding: 4px 12px;
    border-radius: 50px;       /* Овальная форма */
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #dcfce7;
    margin-left: 12px;         /* Отступ от номера объявления */
    white-space: nowrap;       /* Чтобы не разрывало на две строки */
    transition: all 0.2s ease;
    cursor: default;
}

/* Иконка Tabler */
.ai-tax-info-badge i {
    font-size: 15px;
    color: #22c55e;
}

/* Жирный шрифт для суммы */
.ai-tax-info-badge b {
    font-weight: 800;
    margin-left: 2px;
}

/* Эффект при наведении (для интерактивности) */
.ai-tax-info-badge:hover {
    background-color: #dcfce7;
    border-color: #bbf7d0;
    transform: translateY(-1px);
}

/* Адаптация для мобильных (Чита часто смотрит с телефонов) */
@media (max-width: 768px) {
    .ad-card-info-line {
        display: flex;
        flex-direction: column; /* Складываем элементы в столбик */
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .ai-tax-info-badge {
        margin-left: 0;        /* Убираем левый отступ на мобилках */
        margin-top: 5px;
    }
}
/* Блок налога под таблицей характеристик */
.ai-tax-property-verdict {
    margin-top: 15px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 12px 15px;
    animation: fadeInAi 0.5s ease;
}

.ai-verdict-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-robot-icon {
    width: 32px;
    height: 32px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.ai-verdict-text {
    display: flex;
    flex-direction: column;
}

.ai-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #0284c7;
    letter-spacing: 0.5px;
}

.ai-main-text {
    font-size: 14px;
    color: #0369a1;
}

.ai-main-text b {
    font-weight: 900;
    color: #1e293b;
}

@keyframes fadeInAi {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    /* Выстраиваем всё в одну строку */
    .ad-card-info-line {
        display: flex !important;
        flex-direction: row !important; /* Строго в ряд */
        flex-wrap: wrap !important;    /* Если совсем не влезет — мягко перенесет */
        align-items: center !important;
        gap: 6px !important;           /* Компактный отступ между тегами */
        padding: 10px 0 !important;
    }

    /* Делаем сами теги меньше и аккуратнее */
    .ad-card-info-line span {
        font-size: 11px !important;     /* Чуть меньше шрифт */
        padding: 3px 8px !important;    /* Меньше внутренние отступы */
        background: #f1f5f9 !important; /* Светлый фон */
        border-radius: 6px !important;  /* Скругление */
        white-space: nowrap !important; /* Чтобы текст внутри тега не разрывался */
        color: #64748b !important;
    }

    /* Синий акцент для номера объявления */
    .ad-card-info-line span:last-child {
        background: #eff6ff !important;
        color: #3b82f6 !important;
        font-weight: 600 !important;
    }

    /* Уменьшаем иконки */
    .ad-card-info-line span i {
        font-size: 13px !important;
        margin-right: 3px !important;
    }
}
/* Промо-баннер ДКП */
.dkp-promo-banner {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 20px;
    padding: 20px 25px;
    color: #fff;
    box-shadow: 0 10px 15px -3px rgba(30, 41, 59, 0.2);
    overflow: hidden;
    position: relative;
}

/* Декоративный элемент на фоне */
.dkp-promo-banner::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.dkp-promo-flex {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dkp-promo-icon {
    width: 54px;
    height: 54px;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 28px;
    flex-shrink: 0;
}

.dkp-promo-content {
    flex-grow: 1;
}

.dkp-promo-tag {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #60a5fa;
    margin-bottom: 4px;
}

.dkp-promo-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.dkp-promo-text {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.4;
}

.dkp-promo-btn {
    background: #3b82f6;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dkp-promo-btn:hover {
    background: #2563eb;
    transform: translateX(5px);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .dkp-promo-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .dkp-promo-btn {
        width: 100%;
        justify-content: center;
    }
    .dkp-promo-icon {
        display: none; /* Экономим место на мобилках */
    }
}
