html {
    scroll-behavior: smooth;
    cursor: none;
}

body {
    -webkit-font-smoothing: antialiased;
}

/* Навигация */
nav {
    color: white;
}

nav.scrolled {
    background: rgba(249, 247, 242, 0.9);
    backdrop-filter: blur(20px);
    color: #2C2C2C;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.05);
}

/* Анимация бегущей строки */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

.animate-marquee {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

/* Эффекты появления */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Кастомный курсор */
#cursor {
    mix-blend-mode: difference;
    z-index: 10000;
}

#cursor.hovered {
    transform: scale(2);
    background: #8B5E3C;
    border-color: #8B5E3C;
    mix-blend-mode: normal;
}

/* Слайдер / Акцентные шрифты */
.font-italic {
    font-style: italic;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #F9F7F2;
}
::-webkit-scrollbar-thumb {
    background: #4A3728;
}

@media (max-width: 768px) {
    html { cursor: auto; }
    #cursor { display: none; }
}