/* Mobile and Tablet Buttons Complete Fix */

/* Адаптивный текст кнопок - убираем стрелки на планшетах и мобильных */
@media (max-width: 1279px) {
    /* Все CTA кнопки - правильная типографика */
    .cta-button {
        font-size: 16px !important;
        font-weight: 700 !important;
        padding: 16px 24px !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        line-height: 1.2 !important;
        letter-spacing: 0.02em !important;
    }
    
    /* Главные красные кнопки */
    .cta-button.hero-primary,
    .cta-button.urgent {
        background: #dc2626 !important;
        color: white !important;
        border: 2px solid #dc2626 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        padding: 16px 24px !important;
        text-shadow: none !important;
    }
    
    .cta-button.hero-primary:hover,
    .cta-button.urgent:hover {
        background: #b91c1c !important;
        border-color: #b91c1c !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
    }
    
    /* Вторичные кнопки */
    .cta-button.secondary,
    .cta-button.hero-secondary {
        background: rgba(71, 85, 105, 0.9) !important;
        color: white !important;
        border: 2px solid #475569 !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        padding: 16px 24px !important;
    }
    
    .cta-button.secondary:hover,
    .cta-button.hero-secondary:hover {
        background: #475569 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(71, 85, 105, 0.3) !important;
    }
}

/* Мобильные телефоны - компактнее но читаемо */
@media (max-width: 767px) {
    .cta-button {
        font-size: 15px !important;
        font-weight: 700 !important;
        padding: 14px 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Контейнер кнопок - правильное центрирование */
    .flex.flex-col.sm\\:flex-row.gap-4,
    .hero-content .flex.flex-col.sm\\:flex-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 12px !important;
        margin: 0 auto !important;
        padding: 0 16px !important;
        box-sizing: border-box !important;
    }
    
    .flex.flex-col.sm\\:flex-row.gap-4 .cta-button,
    .hero-content .flex.flex-col.sm\\:flex-row .cta-button {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
    }
}

/* Планшеты - увеличенные размеры */
@media (min-width: 768px) and (max-width: 1279px) {
    .cta-button {
        font-size: 17px !important;
        font-weight: 700 !important;
        padding: 18px 28px !important;
        min-height: 56px !important;
    }
    
    /* Контейнер для планшетов */
    .flex.flex-col.sm\\:flex-row.gap-4 {
        flex-direction: row !important;
        gap: 16px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .flex.flex-col.sm\\:flex-row.gap-4 .cta-button {
        flex: 1 !important;
        max-width: 200px !important;
    }
}

/* Исправляем точки навигации hero-слайдера - красивые и стильные */
@media (max-width: 1279px) {
    .hero-indicator {
        width: 14px !important;
        height: 14px !important;
        border-radius: 50% !important;
        border: 3px solid rgba(255, 255, 255, 0.95) !important;
        background: rgba(255, 255, 255, 0.2) !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25) !important;
        backdrop-filter: blur(8px) !important;
        position: relative !important;
    }
    
    .hero-indicator.active {
        background: #dc2626 !important;
        border-color: white !important;
        transform: scale(1.2) !important;
        box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4), 0 0 20px rgba(255, 255, 255, 0.3) !important;
    }
    
    .hero-indicator:hover:not(.active) {
        background: rgba(255, 255, 255, 0.6) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Добавляем внутренний блик для активного индикатора */
    .hero-indicator.active::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 4px;
        height: 4px;
        background: white;
        border-radius: 50%;
        opacity: 0.8;
    }
}

/* Для телефонов - компактные, но красивые точки */
@media (max-width: 480px) {
    .hero-indicator {
        width: 12px !important;
        height: 12px !important;
        border-width: 2px !important;
    }
    
    .hero-indicator.active {
        transform: scale(1.15) !important;
    }
    
    .hero-indicator.active::before {
        width: 3px !important;
        height: 3px !important;
    }
    
    .cta-button {
        font-size: 14px !important;
        padding: 12px 18px !important;
    }
}

/* Для планшетов - более крупные и выразительные */
@media (min-width: 768px) and (max-width: 1279px) {
    .hero-indicator {
        width: 16px !important;
        height: 16px !important;
        border-width: 3px !important;
    }
    
    .hero-indicator.active {
        transform: scale(1.3) !important;
    }
    
    .hero-indicator.active::before {
        width: 5px !important;
        height: 5px !important;
    }
}

/* Глобальные исправления для всех кнопок на планшетах и мобильных */
@media (max-width: 1279px) {
    /* Убираем стрелки из текста всех ссылок */
    a[href*="#"]:not(.hero-indicator):not(.hero-nav-btn) {
        text-decoration: none !important;
    }
    
    /* Убираем все кастомные псевдо-элементы, которые могут мешать */
    .cta-button::before,
    .cta-button::after {
        display: none !important;
        content: none !important;
    }
    
    /* Исправляем все проблемы с flex и позиционированием */
    .hero-content .flex.flex-col.sm\\:flex-row {
        margin: 0 !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Убираем все проблемы с наследованием стилей */
    .cta-button {
        text-indent: 0 !important;
        text-transform: none !important;
        text-decoration: none !important;
        font-style: normal !important;
        font-variant: normal !important;
    }
}

/* Дополнительные исправления для очень маленьких экранов */
@media (max-width: 360px) {
    .cta-button {
        font-size: 13px !important;
        padding: 10px 16px !important;
    }
    
    .flex.flex-col.sm\\:flex-row.gap-4 .cta-button {
        max-width: 100% !important;
    }
    
    .hero-indicator {
        width: 10px !important;
        height: 10px !important;
        border-width: 1.5px !important;
    }
}