/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(42, 22, 112, 0.98) 0%, rgba(67, 97, 238, 0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    padding: 1.5rem 2rem;
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cookie-consent-banner.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: slideUpBanner 0.5s ease-out;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1;
    min-width: 250px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cookie-consent-banner.show .cookie-consent-content {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.cookie-consent-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-consent-title i {
    color: var(--primary-color, #667eea);
}

.cookie-consent-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
}

.cookie-consent-text a {
    color: var(--primary-color, #667eea);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-consent-text a:hover {
    color: #8b9aff;
}

.cookie-consent-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cookie-consent-banner.show .cookie-consent-buttons {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.3s;
}

.cookie-consent-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.cookie-consent-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.cookie-consent-btn-decline {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent-btn-settings {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-consent-btn-settings:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1.25rem 1.5rem;
    }
    
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }
    
    .cookie-consent-content {
        min-width: 100%;
    }
    
    .cookie-consent-title {
        font-size: 1rem;
    }
    
    .cookie-consent-text {
        font-size: 0.85rem;
    }
    
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-consent-btn {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
}

/* Настройки куки (модальное окно) */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    z-index: 10001;
    overflow-y: auto;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease-out, backdrop-filter 0.3s ease-out;
}

.cookie-settings-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.cookie-settings-content {
    background: var(--card-bg, #1a1a2e);
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color, #262645);
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.cookie-settings-modal.show .cookie-settings-content {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: scaleUpModal 0.4s ease-out;
}

@keyframes scaleUpModal {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookie-settings-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color, #ffffff);
    margin: 0;
}

.cookie-settings-close {
    background: none;
    border: none;
    color: var(--text-secondary, #a0a0a0);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-settings-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color, #ffffff);
}

.cookie-settings-description {
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--dark-bg, #0f0f1e);
    border-radius: 8px;
    border: 1px solid var(--border-color, #262645);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.cookie-settings-modal.show .cookie-category {
    opacity: 1;
    transform: translateY(0);
}

.cookie-settings-modal.show .cookie-category:nth-child(1) {
    transition-delay: 0.1s;
}

.cookie-settings-modal.show .cookie-category:nth-child(2) {
    transition-delay: 0.2s;
}

.cookie-settings-modal.show .cookie-category:nth-child(3) {
    transition-delay: 0.3s;
}

.cookie-settings-modal.show .cookie-category:nth-child(4) {
    transition-delay: 0.4s;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color, #ffffff);
    margin: 0;
}

.cookie-category-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border-color, #262645);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.cookie-category-toggle.active {
    background: var(--primary-color, #667eea);
}

.cookie-category-toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cookie-category-toggle.active .cookie-category-toggle-slider {
    transform: translateX(24px);
}

.cookie-category-description {
    font-size: 0.9rem;
    color: var(--text-secondary, #a0a0a0);
    line-height: 1.5;
    margin: 0;
}

.cookie-settings-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cookie-settings-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.cookie-settings-btn-save {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.cookie-settings-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .cookie-settings-content {
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-btn {
        width: 100%;
    }
}




