#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 150px;
    height: auto;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1); }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
}

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

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

.cookie-text {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    line-height: 1.6;
    flex: 1;
}

.cookie-text a {
    color: var(--color-black);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--color-black);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-smooth);
}

.cookie-btn:hover {
    background: var(--color-black);
    color: var(--color-white);
}

.cookie-btn.primary {
    background: var(--color-black);
    color: var(--color-white);
}

.cookie-btn.primary:hover {
    background: transparent;
    color: var(--color-black);
}

.cookie-preferences {
    display: none;
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.cookie-preferences.show {
    display: block;
}

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-toggle:last-child {
    border-bottom: none;
}

.cookie-toggle-info {
    flex: 1;
}

.cookie-toggle-label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cookie-toggle-desc {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--color-gray);
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    padding: 0;
    border: none;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.3s var(--ease-smooth);
    flex-shrink: 0;
}

.toggle-switch.active {
    background: var(--color-black);
}

.toggle-switch.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s var(--ease-smooth);
}

.toggle-switch.active::after {
    left: 27px;
}

.toggle-switch:focus-visible {
    outline: 2px solid var(--color-black);
    outline-offset: 3px;
}

.cookie-save {
    margin-top: 1.5rem;
    padding: 1rem 3rem;
    background: var(--color-black);
    color: var(--color-white);
    border: none;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s var(--ease-smooth);
}

.cookie-save:hover {
    transform: scale(0.98);
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}

.back-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: transform 0.3s var(--ease-smooth);
    display: inline-block;
}

.back-link:hover {
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
    }
}
