/* ============================================
   FINAL PERFECT STYLE - ФИНАЛЬНЫЙ ИДЕАЛЬНЫЙ СТИЛЬ
   ============================================ */

/* 1. КРАСИВЫЙ СТИЛЬНЫЙ ПАТТЕРН НА ГОЛУБОМ ФОНЕ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #2573D1 0%, #4A90E2 100%);
    overflow: hidden;
}

/* Стильный геометрический паттерн */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Сетка с точками */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

/* 2. ПРАВИЛЬНЫЕ ПРЯМОУГОЛЬНЫЕ ПЛАШКИ */
.floating-cards {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 50 !important;
}

.float-card {
    position: absolute !important;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    padding: 8px 16px !important; /* Уменьшенная высота */
    border-radius: 20px !important; /* Менее круглые углы */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    display: inline-flex !important; /* inline-flex для правильной ширины */
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #000000 !important;
    white-space: nowrap !important;
    height: auto !important; /* Автоматическая высота */
    width: auto !important; /* Автоматическая ширина */
}

.float-card i {
    font-size: 1rem !important;
    color: #000000 !important;
}

.float-card span {
    color: #000000 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important; /* Уменьшенная высота строки */
}

/* Позиции плашек */
.float-card:nth-child(1) {
    top: 15% !important;
    left: 5% !important;
    animation: gentle-float 4s ease-in-out infinite !important;
}

.float-card:nth-child(2) {
    top: 15% !important;
    right: 5% !important;
    animation: gentle-float 4s ease-in-out infinite !important;
    animation-delay: 1.3s !important;
}

.float-card:nth-child(3) {
    bottom: 20% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    animation: gentle-float-center 4s ease-in-out infinite !important;
    animation-delay: 2.6s !important;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes gentle-float-center {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* 3. МОБИЛЬНАЯ ВЕРСИЯ - УБИРАЕМ РОБОТА И ПЛАШКИ ПОЛНОСТЬЮ */
@media (max-width: 768px) {
    /* Скрываем весь блок с роботом */
    .hero-visual {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Скрываем все элементы робота */
    .robot-container,
    .robot-image,
    .robot-placeholder,
    .robot-glow,
    .fa-robot {
        display: none !important;
    }
    
    /* Скрываем плашки */
    .floating-cards,
    .float-card {
        display: none !important;
    }
    
    /* Адаптируем hero контент */
    .hero .container {
        max-width: 100% !important;
    }
    
    .hero-content {
        max-width: 100% !important;
        text-align: center !important;
        padding: 0 20px !important;
    }
    
    .hero-stats {
        justify-content: center !important;
    }
}

/* 4. ЕДИНЫЙ СТИЛЬ КНОПОК */

/* Основной стиль для всех кнопок действия */
.btn-primary,
.btn-secondary,
button[class*="btn"] {
    padding: 14px 28px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: none !important;
    text-decoration: none !important;
}

/* Кнопка "Начать сейчас" - как "Смотреть видео" */
.hero-buttons .btn-primary,
button:contains("Начать сейчас") {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

.hero-buttons .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* Кнопка "Смотреть видео" */
.btn-secondary {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) !important;
}

/* 5. КНОПКА "ПОЛУЧИТЬ КОНСУЛЬТАЦИЮ" - ИСПРАВЛЕНИЕ */
.cta .btn-primary,
.cta button[onclick*="submitCTA"] {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4) !important;
    position: relative !important;
    overflow: visible !important;
}

/* Убираем дублирование текста */
.cta .btn-primary::before,
.cta button[onclick*="submitCTA"]::before {
    display: none !important;
}

.cta .btn-primary .golden-text,
.cta button[onclick*="submitCTA"] .golden-text {
    display: none !important;
}

.cta .btn-primary:hover,
.cta button[onclick*="submitCTA"]:hover {
    background: linear-gradient(135deg, #FFA500, #FF8C00) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6) !important;
}

/* 6. ДОПОЛНИТЕЛЬНЫЕ УЛУЧШЕНИЯ */

/* Убираем конфликтующие стили */
.floating-cards[style*="calc"] {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
}

/* Правильный размер робота на десктопе */
@media (min-width: 769px) {
    .hero-visual .fa-robot {
        font-size: 220px !important;
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 991px) {
    .hero-visual .fa-robot {
        font-size: 180px !important;
    }
    
    .float-card {
        font-size: 0.85rem !important;
        padding: 7px 14px !important;
    }
}

/* Большие экраны */
@media (min-width: 1400px) {
    .float-card:nth-child(1) {
        left: 10% !important;
    }
    
    .float-card:nth-child(2) {
        right: 10% !important;
    }
}