/* 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;
    }

    /* Внутри @media (max-width: 768px) в твоем CSS */

.hero-content {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative !important;
    
    /* Увеличим отступ до 20vw, чтобы разница была заметна сразу */
    top: 20vw !important; 
    
    /* Обязательно сбрасываем десктопный подъем */
    transform: none !important; 
    margin-top: 0 !important;
}

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

    /* 2. КОНТЕНТ (ЗАГОЛОВОК + ВВОД) */
    .container {
        position: relative;
        z-index: 30;
        padding: 0; 
        /* Отступ сверху, чтобы контент был на бетоне */
        margin-top: 800px !important; 
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center;
        width: 100% !important;
    }

    .header {
        flex-shrink: 0 !important;
        width: 100%;
        margin-bottom: 20px !important;
        padding: 0 20px;
        box-sizing: border-box;
    }

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

    /* ПОЛЕ ВВОДА — ТЕПЕРЬ СТРОГО ПО ЦЕНТРУ */
    .input-wrapper {
        height: 50px !important;
        width: 92% !important; /* Занимает 92% ширины экрана для зазоров по бокам */
        max-width: 360px !important; 
        /* Центрирование через auto */
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 15px !important; 
        display: flex;
        justify-content: center;
        align-items: stretch;
        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;
        display: flex;
        align-items: center;
    }

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

    .search-input { 
        font-size: 17px !important; 
        height: 36px !important;
        border-radius: 8px !important;
        background: #555 !important;
        color: white !important;
        width: 100%;
        border: none;
        outline: none;
        padding: 0 10px;
    }

    .info-btn { 
        width: 50px !important; 
        height: 50px !important; 
        border-radius: 12px !important; 
        font-size: 22px !important;
        background: rgba(180, 180, 180, 0.95) !important;
        color: white !important; 
        border: 1px solid rgba(255, 255, 255, 0.6) !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* ТЕКСТ БЛАГОДАРНОСТИ */
    .thank-you {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 5px !important;
        margin-bottom: 10px !important;
        width: 90%;
        text-align: center;
    }

    .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.8);
    }
    
    .promo-code {
        font-size: 34px !important;
        color: #ff0019 !important;
        font-weight: 900 !important;
        text-decoration: underline;
        text-shadow: 0 0 15px rgba(0,0,0,0.5) !important;
    }

    /* 3. ОБЛАКО СЛОВ */
    .words-container {
        height: 650px !important; 
        margin-top: 10px !important;
        position: relative;
        z-index: 5;
        width: 100vw;
        pointer-events: none; 
    }

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

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