/* ============================================
   COOKIE CONSENT
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 14px 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    min-width: 200px;
}

.cookie-text p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cookie-btn-accept {
    background: var(--primary);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.cookie-btn-decline {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-btn-decline:hover {
    background: var(--border);
    color: var(--text);
}

/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 640px) {
    .cookie-consent {
        padding: 12px 0;
    }

    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 16px;
    }

    .cookie-text p {
        font-size: 0.82rem;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        gap: 8px;
    }

    .cookie-btn {
        padding: 10px 24px;
        font-size: 0.8rem;
        flex: 1;
        max-width: 140px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cookie-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
        max-width: 120px;
    }
}