/**
 * Caromoto Lithuania - Website Styles
 * Современный и адаптивный дизайн
 */

/* ===== Общие стили - Caromoto Brand Colors ===== */
:root {
    /* Caromoto корпоративные цвета из логотипа */
    --primary-color: #000000;        /* Черный */
    --secondary-color: #1a1a1a;     /* Темно-серый */
    --accent-green: #32CD32;         /* Ярко-зеленый */
    --accent-yellow: #FFD700;       /* Ярко-желтый */
    --accent-red: #DC143C;          /* Ярко-красный */

    /* Дополнительные цвета */
    --success-color: #32CD32;        /* Зеленый для успеха */
    --danger-color: #DC143C;         /* Красный для ошибок */
    --warning-color: #FFD700;        /* Желтый для предупреждений */
    --info-color: #00BFFF;            /* Синий для информации */
    --light-color: #f8f9fa;
    --dark-color: #000000;

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #333333 100%);
    --gradient-accent: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
    --gradient-green: linear-gradient(135deg, #32CD32 0%, #228B22 100%);
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-1, .display-2, .display-3, .display-4 {
    font-weight: 800;
}

/* ===== Hero секция - Caromoto Style ===== */
.hero-section {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
        url('../images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 650px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Альтернативные варианты фона (закомментированы):
   Контейнеры на порту: photo-1494412574643-ff11b0a5c1c3
   Автовозы с машинами: photo-1601584115197-04ecc0da31d7
   Контейнеровоз: photo-1578575437130-527eed3abbec
   Порт с контейнерами: photo-1605902711622-cfb43c4437c7 (текущий)
*/

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0, 217, 255, 0.03) 50px,
            rgba(0, 217, 255, 0.03) 51px
        );
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-primary {
    background: var(--primary-color) !important;
}

.tracking-card {
    animation: slideInUp 0.5s ease-out;
}

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

/* ===== Карточки ===== */
.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

.step-card {
    position: relative;
}

/* ===== ИИ Чат-виджет ===== */
#ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.ai-chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.ai-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(13, 110, 253, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    }
}

.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.3s ease-out;
}

.ai-chat-header {
    background: var(--gradient-primary);
    color: white;
    padding: 16px;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent-color);
}

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f8f9fa;
}

.ai-message, .user-message {
    margin-bottom: 12px;
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

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

.ai-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.ai-message .message-content {
    background: white;
    color: var(--dark-color);
    border: 1px solid #e0e0e0;
}

.user-message .message-content {
    background: var(--gradient-accent);
    color: white;
}

/* Корпоративные бейджи */
.badge.bg-primary {
    background: var(--primary-color) !important;
}

.badge.bg-success {
    background: var(--accent-green) !important;
}

.badge.bg-warning {
    background: var(--accent-yellow) !important;
    color: var(--primary-color) !important;
}

.badge.bg-danger {
    background: var(--accent-red) !important;
}

/* Утилиты для цветов Caromoto */
.text-caromoto-red { color: var(--accent-red) !important; }
.text-caromoto-green { color: var(--accent-green) !important; }
.text-caromoto-yellow { color: var(--accent-yellow) !important; }
.bg-caromoto-red { background-color: var(--accent-red) !important; }
.bg-caromoto-green { background-color: var(--accent-green) !important; }
.bg-caromoto-yellow { background-color: var(--accent-yellow) !important; }

/* Стили для карточек с корпоративным дизайном */
.card-caromoto {
    border-left: 4px solid var(--accent-red);
    transition: all 0.3s ease;
}

.card-caromoto:hover {
    border-left-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Корпоративные разделители */
.divider-caromoto {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-yellow) 50%, var(--accent-green) 100%);
    border-radius: 2px;
    margin: 2rem 0;
}

.bg-caromoto-red {
    background-color: var(--accent-red) !important;
}

.bg-caromoto-green {
    background-color: var(--accent-green) !important;
}

.bg-caromoto-yellow {
    background-color: var(--accent-yellow) !important;
}

/* Логотип стили */
.navbar-logo {
    height: 70px; /* Увеличили высоту с 60px до 70px */
    width: auto; /* Автоматическая ширина для сохранения пропорций */
    max-width: none; /* Убираем ограничение ширины */
    background: transparent; /* Прозрачный фон */
    padding: 0; /* Убираем отступы */
    border-radius: 0; /* Убираем скругленные углы */
    filter: brightness(1.1) contrast(1.1); /* Легкое увеличение яркости и контраста */
    transition: all 0.3s ease;
    box-shadow: none; /* Убираем тень */
}

/* Альтернативные варианты для улучшения видимости */

/* Вариант с белой обводкой */
.navbar-logo-outline {
    filter: invert(1) brightness(1.4) contrast(1.3);
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

/* Вариант с тенью для контраста */
.navbar-logo-shadow {
    filter: invert(1) brightness(1.5) contrast(1.4);
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

/* Вариант с инверсией цветов (текущий) */
.navbar-logo-invert {
    filter: invert(1) brightness(1.3) contrast(1.2);
}

/* Вариант с белым фоном */
.navbar-logo-white-bg {
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    filter: none; /* Убираем инверсию для белого фона */
}

/* Вариант с корпоративными цветами фона */
.navbar-logo-branded-bg {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #ffffff 50%, var(--accent-green) 100%);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    filter: none; /* Убираем инверсию для цветного фона */
}

.navbar-brand:hover .navbar-logo {
    filter: brightness(1.2) contrast(1.2); /* Увеличение яркости при наведении */
    transform: scale(1.05);
}

/* Адаптивные размеры логотипа */
@media (max-width: 768px) {
    .navbar-logo {
        height: 56px; /* Увеличили с 48px до 56px */
        max-width: none; /* Убираем ограничение ширины */
        padding: 0; /* Убираем отступы */
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 49px; /* Увеличили с 42px до 49px */
        max-width: none; /* Убираем ограничение ширины */
        padding: 0; /* Убираем отступы */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
    .navbar-logo {
        height: 42px; /* Увеличили с 36px до 42px */
        max-width: none; /* Убираем ограничение ширины */
        padding: 0; /* Убираем отступы */
    }
}

/* Корпоративные карточки */
.card-caromoto {
    border-left: 4px solid var(--accent-red);
    transition: all 0.3s ease;
}

.card-caromoto:hover {
    border-left-color: var(--accent-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Корпоративные разделители */
.divider-caromoto {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-yellow) 50%, var(--accent-green) 100%);
    border-radius: 2px;
    margin: 2rem 0;
}

/* ===== Тематические фоны для логистики ===== */

/* ===== Тематические фоны для логистики ===== */

/* Секция преимуществ с контейнерным фоном */
.py-4.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 400"><defs><pattern id="containers-features" patternUnits="userSpaceOnUse" width="200" height="120"><rect width="200" height="120" fill="%23ffffff"/><g fill="%23dee2e6" opacity="0.3"><rect x="20" y="30" width="60" height="40" stroke="%23adb5bd" stroke-width="1.5" fill="none" rx="2"/><rect x="25" y="35" width="50" height="30" fill="%23e9ecef" rx="1"/><rect x="30" y="40" width="40" height="20" fill="%23ffffff" rx="1"/><text x="50" y="52" text-anchor="middle" font-size="8" fill="%236c757d" font-weight="bold">CARGO</text><rect x="100" y="30" width="60" height="40" stroke="%23adb5bd" stroke-width="1.5" fill="none" rx="2"/><rect x="105" y="35" width="50" height="30" fill="%23e9ecef" rx="1"/><rect x="110" y="40" width="40" height="20" fill="%23ffffff" rx="1"/><text x="130" y="52" text-anchor="middle" font-size="8" fill="%236c757d" font-weight="bold">SHIP</text><rect x="20" y="80" width="60" height="40" stroke="%23adb5bd" stroke-width="1.5" fill="none" rx="2"/><rect x="25" y="85" width="50" height="30" fill="%23e9ecef" rx="1"/><rect x="30" y="90" width="40" height="20" fill="%23ffffff" rx="1"/><text x="50" y="102" text-anchor="middle" font-size="8" fill="%236c757d" font-weight="bold">LOGISTICS</text><rect x="100" y="80" width="60" height="40" stroke="%23adb5bd" stroke-width="1.5" fill="none" rx="2"/><rect x="105" y="85" width="50" height="30" fill="%23e9ecef" rx="1"/><rect x="110" y="90" width="40" height="20" fill="%23ffffff" rx="1"/><text x="130" y="102" text-anchor="middle" font-size="8" fill="%236c757d" font-weight="bold">CUSTOMS</text></g></pattern></defs><rect width="1200" height="400" fill="url(%23containers-features)"/></svg>') !important;
    background-size: cover;
    background-position: center;
    position: relative;
}

.py-4.bg-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(0, 217, 255, 0.05) 25%, transparent 50%, rgba(255, 107, 53, 0.05) 75%, transparent 100%);
    pointer-events: none;
}

/* Секция "Как это работает" с морским фоном */
.workflow-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><defs><pattern id="shipping" patternUnits="userSpaceOnUse" width="200" height="100"><rect width="200" height="100" fill="%23ffffff"/><g fill="%23dee2e6" opacity="0.15"><path d="M20 60h160v20H20z"/><path d="M30 50h20v30H30z"/><path d="M150 50h20v30h-20z"/><circle cx="40" cy="90" r="6"/><circle cx="160" cy="90" r="6"/><path d="M50 40h100v10H50z"/></g></pattern></defs><rect width="1200" height="500" fill="url(%23shipping)"/></svg>');
    background-size: cover;
    background-position: center;
}

/* CTA секция с таможенным фоном */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><defs><pattern id="customs-cta" patternUnits="userSpaceOnUse" width="150" height="80"><rect width="150" height="80" fill="%23000000" opacity="0.1"/><g fill="%23ffffff" opacity="0.15"><rect x="10" y="15" width="60" height="30" stroke="%23ffffff" stroke-width="1" fill="none" rx="2"/><rect x="15" y="20" width="50" height="20" fill="%23ffffff" opacity="0.1" rx="1"/><text x="40" y="32" text-anchor="middle" font-size="6" fill="%23ffffff" font-weight="bold">CUSTOMS</text><rect x="80" y="15" width="60" height="30" stroke="%23ffffff" stroke-width="1" fill="none" rx="2"/><rect x="85" y="20" width="50" height="20" fill="%23ffffff" opacity="0.1" rx="1"/><text x="110" y="32" text-anchor="middle" font-size="6" fill="%23ffffff" font-weight="bold">CLEARANCE</text></g></pattern></defs><rect width="1200" height="300" fill="url(%23customs-cta)"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 25%, transparent 50%, rgba(255, 255, 255, 0.1) 75%, transparent 100%);
    pointer-events: none;
}

/* Секция "Как это работает" с морским фоном */
.workflow-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 500"><defs><pattern id="shipping" patternUnits="userSpaceOnUse" width="200" height="100"><rect width="200" height="100" fill="%23ffffff"/><g fill="%23dee2e6" opacity="0.15"><path d="M20 60h160v20H20z"/><path d="M30 50h20v30H30z"/><path d="M150 50h20v30h-20z"/><circle cx="40" cy="90" r="6"/><circle cx="160" cy="90" r="6"/><path d="M50 40h100v10H50z"/></g></pattern></defs><rect width="1200" height="500" fill="url(%23shipping)"/></svg>');
    background-size: cover;
    background-position: center;
}

/* CTA секция с таможенным фоном */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-color) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><defs><pattern id="customs-cta" patternUnits="userSpaceOnUse" width="150" height="80"><rect width="150" height="80" fill="%23000000" opacity="0.1"/><g fill="%23ffffff" opacity="0.15"><rect x="10" y="15" width="60" height="30" stroke="%23ffffff" stroke-width="1" fill="none" rx="2"/><rect x="15" y="20" width="50" height="20" fill="%23ffffff" opacity="0.1" rx="1"/><text x="40" y="32" text-anchor="middle" font-size="6" fill="%23ffffff" font-weight="bold">CUSTOMS</text><rect x="80" y="15" width="60" height="30" stroke="%23ffffff" stroke-width="1" fill="none" rx="2"/><rect x="85" y="20" width="50" height="20" fill="%23ffffff" opacity="0.1" rx="1"/><text x="110" y="32" text-anchor="middle" font-size="6" fill="%23ffffff" font-weight="bold">CLEARANCE</text></g></pattern></defs><rect width="1200" height="300" fill="url(%23customs-cta)"/></svg>');
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.1) 25%, transparent 50%, rgba(255, 255, 255, 0.1) 75%, transparent 100%);
    pointer-events: none;
}

/* Карточки с тематическими эффектами */
.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-red);
}

/* Анимация для иконок */
.icon-box {
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* Тематические иконки */
.icon-truck::before { content: "🚛"; }
.icon-container::before { content: "📦"; }
.icon-ship::before { content: "🚢"; }
.icon-customs::before { content: "🏛️"; }
.icon-warehouse::before { content: "🏭"; }
.icon-delivery::before { content: "🚚"; }

/* Карточки с тематическими эффектами */
.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* Анимация для иконок */
.icon-box {
    transition: all 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

.ai-chat-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    background: white;
    border-radius: 0 0 16px 16px;
}

.ai-chat-input input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 8px 16px;
    outline: none;
}

.ai-chat-input input:focus {
    border-color: var(--primary-color);
}

.ai-chat-input button {
    margin-left: 8px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Индикатор печати */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .ai-chat-window {
        width: calc(100% - 40px);
        height: 500px;
        right: 20px;
        left: 20px;
    }
    
    .hero-section {
        min-height: auto;
        padding: 3rem 0;
    }
}

/* ===== Навигация - Caromoto Style ===== */
.navbar {
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    background: var(--primary-color) !important;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    padding: 8px 0; /* Отступы для логотипа */
}

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

/* Улучшенные ссылки навигации */
.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-red) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* ===== Футер ===== */
footer {
    margin-top: auto;
}

footer a:hover {
    color: white !important;
    text-decoration: underline;
}

/* ===== Кнопки - Caromoto Style ===== */
.btn {
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

.btn-primary {
    background: var(--gradient-accent) !important;
    border: none !important;
}

.btn-primary:hover {
    background: var(--accent-red) !important;
    box-shadow: 0 8px 20px rgba(220, 20, 60, 0.4) !important;
}

.btn-outline-primary {
    border-color: var(--accent-red) !important;
    color: var(--accent-red) !important;
}

.btn-outline-primary:hover {
    background: var(--accent-red) !important;
    border-color: var(--accent-red) !important;
    color: white !important;
}

/* Специальные кнопки в корпоративных цветах */
.btn-success {
    background: var(--gradient-green) !important;
    border: none !important;
}

.btn-warning {
    background: var(--accent-yellow) !important;
    color: var(--primary-color) !important;
    border: none !important;
}

/* ===== Карточки с тенью при наведении ===== */
.hover-shadow {
    transition: all 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175) !important;
}

/* ===== Галерея фотографий ===== */
.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.photo-item img {
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1;
}

/* ===== Таблицы ===== */
.table-hover tbody tr {
    transition: background-color 0.2s ease;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* ===== Бейджи ===== */
.badge {
    padding: 6px 12px;
    font-weight: 500;
}

/* ===== Анимации появления ===== */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Скроллбар ===== */
.ai-chat-messages::-webkit-scrollbar {
    width: 6px;
}

.ai-chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ===== Модальные окна ===== */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    border-radius: 16px 16px 0 0;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
}

/* ===== Хлебные крошки ===== */
.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

/* ===== Утилиты ===== */
.text-gradient {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-primary {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

