/* ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ ПЛАШЕК - НОРМАЛЬНАЯ ВЫСОТА */

/* Критические стили для плашек - компактные и аккуратные */
.float-card {
    position: absolute !important;
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    padding: 6px 14px !important; /* Компактный padding */
    border-radius: 16px !important; /* Скругленные углы */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.85rem !important; /* Чуть меньший шрифт */
    font-weight: 600 !important;
    color: #000000 !important;
    white-space: nowrap !important;
    height: 32px !important; /* Фиксированная компактная высота */
    max-height: 32px !important; /* Ограничение максимальной высоты */
    width: auto !important;
    line-height: 1 !important; /* Компактная высота строки */
    overflow: hidden !important; /* Предотвращаем переполнение */
}

/* Иконки в плашках */
.float-card i {
    font-size: 0.9rem !important;
    color: #000000 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Текст в плашках */
.float-card span {
    color: #000000 !important;
    font-weight: 600 !important;
    line-height: 1 !important; /* Убираем лишнее пространство */
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
    font-size: 0.85rem !important;
}

/* Убираем любые дополнительные отступы внутри */
.float-card * {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

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

.float-card:nth-child(2) {
    top: 45% !important;
    right: -50px !important;
    animation: float2 4.5s ease-in-out infinite !important;
}

.float-card:nth-child(3) {
    bottom: 20% !important;
    left: -40px !important;
    animation: float3 5s ease-in-out infinite !important;
}

/* Плавная анимация плашек */
@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-12px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

/* Мобильная версия - скрываем плашки полностью */
@media (max-width: 768px) {
    .float-card {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    .floating-cards {
        display: none !important;
    }
}

/* Hover эффект для плашек на десктопе */
@media (min-width: 769px) {
    .float-card {
        transition: all 0.3s ease !important;
        cursor: default !important;
    }
    
    .float-card:hover {
        transform: scale(1.05) !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
        animation-play-state: paused !important;
    }
}

/* Убеждаемся что плашки не конфликтуют с другими элементами */
.hero-visual .floating-cards {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
}

.hero-visual .floating-cards .float-card {
    pointer-events: auto !important;
}

/* Принудительное применение стилей */
.hero .float-card,
.hero-visual .float-card,
.floating-cards .float-card,
div.float-card {
    height: 32px !important;
    max-height: 32px !important;
    min-height: 32px !important;
    padding: 6px 14px !important;
    line-height: 1 !important;
}