

.k-cookie-box {
    position: fixed;
    bottom: -100px; /* Прячем изначально */
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    z-index: 100000;
    transition: all 0.6s cubic-bezier(0.2, 1, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.k-cookie-box.active {
    bottom: 20px;
}

.k-cookie-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.k-cookie-content p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.k-cookie-content p span {
    color: #00ff88;
    font-weight: 700;
}

.k-cookie-content a {
    color: #fff;
    text-decoration: underline;
    transition: 0.3s;
}

.k-cookie-content a:hover {
    color: #00ff88;
}

.k-cookie-btn {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    align-self: flex-start;
}

.k-cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

@media (max-width: 480px) {
    .k-cookie-box {
        left: 10px;
        right: 10px;
        bottom: -150px;
        max-width: none;
    }
    .k-cookie-box.active {
        bottom: 10px;
    }
}

















/* Базовый класс для всех анимируемых элементов */
.k-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 1, 0.2, 1);
    will-change: opacity, transform;
}

/* Класс, который будет добавлять JavaScript при скролле */
.k-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Дополнительные вариации (опционально) */
.k-delay-1 { transition-delay: 0.2s; }
.k-delay-2 { transition-delay: 0.4s; }
.k-delay-3 { transition-delay: 0.6s; }











/* Улучшенная адаптивность для мобилок */
@media (max-width: 480px) {
    .k-v11-window {
        max-width: none;
        width: 100%;
        height: 100dvh; /* Используем dvh для учета высоты панели браузера */
        border-radius: 0;
        border: none;
        padding: 60px 25px 40px; /* Больше отступ сверху под кнопку закрытия */
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: radial-gradient(circle at top right, #0a0a0a 0%, #000 100%);
    }

    .k-v11-close {
        top: 20px;
        right: 20px;
        font-size: 32px; /* Кнопка закрытия крупнее, чтобы легче попасть пальцем */
        padding: 10px;
    }

    .k-v11-title {
        font-size: 26px;
        margin-bottom: 30px;
        line-height: 1.3;
    }

    .k-v11-form {
        gap: 15px; /* Увеличиваем расстояние между полями */
    }

    .k-v11-form input, 
    .k-v11-form textarea {
        padding: 18px; /* Увеличиваем область нажатия */
        font-size: 16px; /* Запрещает автоматический зум в iOS при фокусе */
        background: #151515;
        border-radius: 12px;
    }

    .k-v11-policy {
        margin: 15px 0;
        padding: 5px 0;
    }

    .k-v11-policy-text {
        font-size: 12px;
        color: #777;
    }

    .k-v11-submit {
        padding: 22px;
        font-size: 14px;
        letter-spacing: 1px;
        margin-top: 10px;
        border-radius: 12px;
        box-shadow: 0 10px 20px rgba(0, 255, 136, 0.15);
    }
}

/* Эффект легкого свечения при фокусе для High-Tech стиля */
.k-v11-form input:focus {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.05);
}















    /* Основной контейнер */
    .k-v11-wrapper {
        position: fixed;
        inset: 0;
        z-index: 999999;
        display: none; /* Переключаем через JS */
        align-items: center;
        justify-content: center;
        font-family: 'Inter', sans-serif;
    }

    /* Фон - теперь он СТРОГО под окном */
    .k-v11-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 1;
    }

    /* Окно - оно сосед фона, а не его ребенок */
    .k-v11-window {
        position: relative;
        z-index: 2; /* Всегда выше фона */
        width: 100%;
        max-width: 380px;
        background: #080808;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 40px;
        border-radius: 20px;
        box-shadow: 0 40px 100px rgba(0,0,0,1);
        pointer-events: auto; /* Явно разрешаем все события мыши */
    }

    /* Стили элементов */
    .k-v11-close {
        position: absolute; top: 15px; right: 15px;
        background: none; border: none; color: #444; font-size: 26px; cursor: pointer;
    }
    .k-v11-tag { color: #00ff88; font-family: 'Unbounded'; font-size: 9px; text-transform: uppercase; letter-spacing: 2px; }
    .k-v11-title { font-family: 'Unbounded'; color: #fff; font-size: 20px; margin: 10px 0 25px; }
    .k-v11-title span { color: #00ff88; }

    .k-v11-form { display: flex; flex-direction: column; gap: 12px; }
    .k-v11-form input, .k-v11-form textarea {
        background: #111; border: 1px solid #222; padding: 15px; border-radius: 10px;
        color: #fff; font-family: 'Inter'; outline: none; transition: 0.3s;
    }
    .k-v11-form input:focus { border-color: #00ff88; }

    .k-v11-policy { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-top: 5px; }
    .k-v11-policy input { display: none; }
    .k-v11-custom-check { width: 16px; height: 16px; border: 1px solid #333; border-radius: 4px; position: relative; }
    .k-v11-policy input:checked + .k-v11-custom-check { background: #00ff88; border-color: #00ff88; }
    .k-v11-policy-text { font-size: 10px; color: #555; }

    .k-v11-submit {
        background: #00ff88; color: #000; border: none; padding: 18px;
        border-radius: 10px; font-family: 'Unbounded'; font-weight: 700; cursor: pointer;
    }

    @media (max-width: 480px) {
        .k-v11-window { max-width: none; height: 100vh; border-radius: 0; display: flex; align-items: center; }
    }
