/* mobile.css — ПОЛНАЯ ВЕРСИЯ */

@media (max-width: 768px) {

    /* 1. БЛОКИРОВКА ЗУМА И НАСТРОЙКА ФОНА */
    html, body {
        touch-action: pan-x pan-y;
        -webkit-text-size-adjust: 100%;
        background-color: #1f1f1f !important; 
    }

    body {
        background-image: url("assets/mobile-full-bg.webp") !important;
        background-position: top center !important;
        background-size: cover !important; 
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        min-height: 100vh !important;
        height: auto !important;
    }

    /* СБРОС СТАРЫХ СЕКЦИЙ */
    .hero-top, .hero-bottom {
        background: none !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
    
    .hero-bottom::before { display: none !important; }

    /* ЛОГОТИП */
    .hero-content {
        position: relative !important;
        display: flex;
        justify-content: center;
        width: 100%;
        padding-top: 30px !important;
        z-index: 20;
        transform: none !important; 
    }

    .titles-link {
        width: 80% !important; 
        max-width: 380px;
        display: block;
        margin: 0 auto;
    }

    /* 2. КОНТЕНТ (ЗАГОЛОВОК + ВВОД) */
    .container {
        position: relative;
        z-index: 30;
        padding: 0 20px;
        /* Задача 1: Заголовок чуть выше, чтобы не наезжать на облако */
        margin-top: 470px !important; 
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;
    }

    .header-title {
        font-size: 44px !important;
        line-height: 0.9 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.4);
        margin-bottom: 0 !important;
    }
    
    .header-subtitle {
        font-size: 19px !important;
        color: #000000 !important; 
        text-shadow: none !important;
        margin-top: 8px !important;
        margin-bottom: 12px !important; 
        font-weight: 900 !important;
        text-transform: uppercase;
        letter-spacing: -0.02em;
    }

    /* ПОЛЕ ВВОДА */
    .input-wrapper {
        height: 50px !important;
        width: 100% !important;
        max-width: 350px !important; 
        /* Задача 3: Расстояние до облака меньше */
        margin-bottom: 10px !important; 
        margin-right: 0 !important; 
        margin-left: 0 !important;
        display: flex;
        justify-content: center;
        gap: 8px;
    }

    .search-box { 
        padding: 0 12px !important; 
        border-radius: 12px !important; 
        flex: 1;
        background: rgba(180, 180, 180, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
    }

    .search-label {
        font-size: 19px !important;
        color: #1a1a1a !important;
        font-weight: 900 !important;
    }

    .search-input { 
        font-size: 17px !important; 
        height: 36px !important;
        border-radius: 8px !important;
        background: #555 !important;
    }

    .info-btn { 
        width: 50px !important; 
        height: 50px !important; 
        border-radius: 12px !important; 
        font-size: 22px !important;
        background: rgba(180, 180, 180, 0.95) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        color: white !important; 
    }
    
    /* 3. ОБЛАКО СЛОВ */
    .words-container {
        height: 700px !important; 
        /* Задача 3: Подтянули облако вверх */
        margin-top: -10px !important; 
        position: relative;
        z-index: 5;
        overflow: visible !important; 
        width: 100vw;
        pointer-events: none; 
    }

    .word {
        text-shadow: 0 1px 4px rgba(0,0,0,0.7) !important;
        transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
        letter-spacing: -0.03em;
        line-height: 0.8;
    }

    .word-highlight-anim {
        animation: wordWallPulse 1.4s ease-out forwards !important;
        z-index: 9999 !important;
    }

    /* СКРЫВАЕМ ЛУПУ НА МОБИЛКЕ */
    .magnifier-ring, .magnified-layer { 
        display: none !important; 
    }

    /* ПРАВИЛА ВВОДА */
    .rules-box {
        width: 280px !important;
        padding: 20px !important;
        top: 110% !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        background: rgba(255, 255, 255, 0.95) !important;
    }

    /* Задача 2: Текст благодарности БЕЛЫЙ */
    .thank-you-text {
        font-size: 17px !important;
        color: #ffffff !important;
        font-weight: 800 !important;
        line-height: 1.2;
        text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    }
    
    .thank-you {
        margin-bottom: 0px !important;
    }

    .promo-code {
        font-size: 32px !important;
        text-shadow: 0 0 10px rgba(255,0,0,0.3) !important;
    }
}

@keyframes wordWallPulse {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    40% { transform: translate(-50%, -50%) scale(1.6); color: #ff0019; opacity: 1; }
    80% { transform: translate(-50%, -50%) scale(1.1); color: #ff0019; opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); color: white; opacity: 1; }
}