 :root {
            --bg-color: #050505; --text-color: #f4f4f4;
            --gold: #cfa560; --gold-hover: #e6c18a;
            --dark-gray: #111111; --border-color: rgba(207, 165, 96, 0.3);
            --font-headings: 'Cormorant Garamond', serif;
            --font-text: 'Montserrat', sans-serif;
            --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            font-family: var(--font-text); background-color: var(--bg-color);
            color: var(--text-color); line-height: 1.6; overflow-x: hidden; font-weight: 300;
        }

        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

        h1, h2, h3, .logo-main { font-family: var(--font-headings); font-weight: 600; letter-spacing: 1px; }

        .section-title {
            font-size: 3.5rem; text-align: center; margin: 0 auto 4rem auto; 
            width: fit-content; position: relative;
            background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
            background-size: 300% 300%; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            animation: goldShineText 6s ease infinite;
        }

        @keyframes goldShineText { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
        
        .section-title::after {
            content: ''; display: block; width: 80px; height: 2px;
            background: linear-gradient(90deg, transparent, #cfa560, transparent); margin: 15px auto 0;
        }

        /* Кнопки */
        .btn { display: inline-block; text-decoration: none; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; transition: var(--transition); cursor: pointer; text-align: center; border-radius: 3px; }
        .afisha-card .btn { padding: 15px 35px; font-size: 0.95rem; }

        @keyframes shinyGold { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
        .btn-shiny-gold {
            background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
            background-size: 300% 300%; animation: shinyGold 4s ease infinite;
            color: #111 !important; border: none; box-shadow: 0 4px 15px rgba(207, 165, 96, 0.3);
        }
        .btn-shiny-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(207, 165, 96, 0.5); animation-duration: 2s; }

        /* ШАПКА И НАВИГАЦИЯ */
        header { position: fixed; width: 100%; top: 0; z-index: 1000; padding: 25px 0; transition: var(--transition); }
        header.scrolled { background-color: rgba(5, 5, 5, 0.95); padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px); }

        .header-inner { display: flex; justify-content: space-between; align-items: center; }
        .logo { display: flex; align-items: center; gap: 15px; text-decoration: none; position: relative; z-index: 1001;}
        .header-logo-img { height: 45px; width: auto; }
        .logo-main { font-size: 2.4rem; color: #fff; transition: var(--transition); }
        .scrolled .logo-main { color: var(--gold); }

        .nav-links { list-style: none; display: flex; gap: 25px; transition: var(--transition); }
        .nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; transition: var(--transition); font-weight: 500; }
        .nav-links a:hover { color: var(--gold); }

        .hamburger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1001;margin-left: auto; }
        .hamburger span { width: 30px; height: 2px; background-color: var(--gold); transition: 0.3s; }

        /* ГЛАВНЫЙ ЭКРАН */
        .hero {
            height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative;
            background-image: url('main.jpg');
            background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed;
        }

        .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(5,5,5,0.2) 70%, rgba(5,5,5,1) 100%); }
        .hero-content { position: relative; z-index: 1; max-width: 900px; padding: 0 20px; }
        .hero h1 { font-size: 5.5rem; color: #fff; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 4px; line-height: 1.1; }
        .hero .slogan { font-size: 1.5rem; letter-spacing: 8px; text-transform: uppercase; color: var(--gold); font-weight: 400; font-family: var(--font-headings); font-style: italic;}

        /* АФИША */
        .afisha { padding: 100px 0; position: relative; }
        .afisha-grid { display: flex; flex-direction: column; gap: 20px; }
        .afisha-card { display: flex; align-items: center; background-color: var(--dark-gray); padding: 30px; border: 1px solid rgba(255,255,255,0.03); transition: var(--transition); position: relative; overflow: hidden; text-decoration: none; cursor: pointer; }
        .afisha-card::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 0; background-color: var(--gold); transition: var(--transition); }
        .afisha-card:hover { transform: translateX(10px); border-color: rgba(207, 165, 96, 0.4); }
        .afisha-card:hover::before { width: 6px; }

        .afisha-date { display: flex; flex-direction: column; align-items: center; padding-right: 40px; border-right: 1px solid rgba(255,255,255,0.05); min-width: 140px; }
        .afisha-date .day { font-size: 3.2rem; font-weight: 500; color: #fff; line-height: 1; font-family: var(--font-text); }
        .afisha-date .month { font-size: 0.9rem; letter-spacing: 3px; margin-top: 8px; text-transform: uppercase; color: var(--gold); }

        .afisha-info { flex-grow: 1; padding: 0 40px; }
        .afisha-info h3 { font-size: 1.6rem; margin-bottom: 8px; color: #fff; }
        .afisha-info .venue { color: rgba(255,255,255,0.6); font-size: 0.95rem; font-weight: 300; }

        /* О ПРОЕКТЕ */
        .about { padding: 100px 0; background-color: var(--dark-gray); border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); }
        .about-inner { display: flex; align-items: center; gap: 80px; }
        .about-text { flex: 1; }
        
        .about-text .section-title { text-align: left; margin-left: 0; margin-bottom: 2.5rem; background: none; color: var(--gold); -webkit-text-fill-color: var(--gold); animation: none; width: 100%;}
        .about-text .section-title::after { margin: 15px 0 0 0; }
        
        .about-text p { margin-bottom: 25px; color: rgba(255,255,255,0.7); font-size: 1.05rem; font-weight: 300; }
        .about-image { flex: 1; position: relative; }
        .about-image::after { content: ''; position: absolute; width: 100%; height: 100%; border: 1px solid var(--gold); top: 20px; left: 20px; z-index: 0; }
        .about-img { width: 100%; height: 450px; object-fit: cover; display: block; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,0.05);}

        /* ПРОГРАММЫ */
        .programs { padding: 100px 0; }
        .programs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
        .program-card { background-color: var(--dark-gray); border: 1px solid var(--border-color); overflow: hidden; transition: var(--transition); }
        .program-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
        .program-img { width: 100%; height: 220px; object-fit: cover; }
        .program-content { padding: 30px; }
        .program-content h3 { font-size: 1.5rem; margin-bottom: 15px; color: #fff; }
        .program-content p { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 20px; }
        .program-link { color: var(--gold); text-decoration: none; font-weight: 500; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; display: inline-flex; align-items: center; transition: var(--transition);}
        .program-link:hover { color: #fff; }

        /* ГАЛЕРЕЯ (JS СЛАЙДЕР) */
/* ГАЛЕРЕЯ (JS СЛАЙДЕР) */
.gallery { 
    padding: 100px 0; 
    background-color: var(--dark-gray); 
    border-top: 1px solid rgba(255,255,255,0.03); 
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.gallery-container { 
    position: relative; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.gallery-wrapper {
    overflow: hidden; 
    cursor: grab;
    width: 100%;
}

.gallery-track {
    display: flex;
    gap: 20px; /* Задаем четкий отступ между фото */
    overflow-x: auto; 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
    
    /* ВКЛЮЧАЕМ ПРИЛИПАНИЕ (SNAP) */
    scroll-snap-type: x mandatory; 
    
    /* Убираем скроллбар */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

/* Состояние при зажатии мыши */
.gallery-wrapper.active {
    cursor: grabbing;
}

.gallery-item { 
    /* Рассчитываем ширину: 33.333% минус часть отступа gap */
    flex: 0 0 calc(33.333% - 13.34px); 
    height: 350px; 
    border: 1px solid var(--border-color); 
    box-sizing: border-box;
    
    /* Указываем, что карточка должна "прилипать" левым краем */
    scroll-snap-align: start; 
}

.gallery-item img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    pointer-events: none; /* Чтобы картинка не мешала JS-скроллу */
    -webkit-user-drag: none;
}

/* Навигация слайдера */
.gallery-nav { 
    display: flex; 
    justify-content: center; 
    gap: 20px; 
    margin-top: 40px; 
}

.gallery-nav-btn { 
    background: transparent; 
    border: 1px solid var(--gold); 
    color: var(--gold); 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    font-size: 1.2rem; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition);
}

.gallery-nav-btn:hover { 
    background-color: var(--gold); 
    color: var(--bg-color); 
    transform: scale(1.1); 
}

.gallery-nav-btn:disabled { 
    border-color: #333; 
    color: #555; 
    cursor: not-allowed; 
    background: transparent; 
    transform: none; 
}

/* Адаптив для мобильных (по 1.2 карточки, чтобы было видно, что есть продолжение) */
@media (max-width: 768px) {
    .gallery-item {
        flex: 0 0 85%;
    }
}
        /* АРТИСТЫ */
        .artists { padding: 100px 0; }
        .artists-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
        .artist-card { text-align: center; }
        .artist-img { 
            width: 100%; max-width: 250px; aspect-ratio: 1; object-fit: cover; 
            border-radius: 50%; border: 2px solid var(--border-color); 
            margin: 0 auto 20px auto; transition: var(--transition); filter: grayscale(100%); display: block;
        }
        .artist-card:hover .artist-img { border-color: var(--gold); transform: scale(1.05); filter: grayscale(0%); }
        .artist-card h3 { font-size: 1.5rem; margin-bottom: 5px; color: #fff; }
        .artist-card p { color: var(--gold); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; }

        /* КОНТАКТЫ */
        .contacts { padding: 100px 0; background-color: var(--dark-gray); border-top: 1px solid rgba(255,255,255,0.03); }
        .contacts-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; }
        .contact-item { font-size: 1.5rem; color: #fff; margin-bottom: 15px; font-family: var(--font-headings); letter-spacing: 1px;}
        .contact-item a { color: #fff; text-decoration: none; transition: var(--transition); }
        .contact-item a:hover { color: var(--gold); }
        
        .socials { display: flex; gap: 25px; margin-top: 30px; }
        .social-link { 
            display: flex; justify-content: center; align-items: center; 
            width: 50px; height: 50px; border-radius: 50%; 
            border: 1px solid var(--gold); transition: var(--transition); 
        }
        .social-link svg { width: 22px; height: 22px; fill: var(--gold); transition: var(--transition); }
        .social-link:hover { background-color: var(--gold); transform: translateY(-5px); }
        .social-link:hover svg { fill: var(--bg-color); }

        /* МОБИЛЬНАЯ АДАПТАЦИЯ */
        @media (max-width: 992px) {
            .hero h1 { font-size: 4rem; }
            .about-inner { gap: 40px; }
            .section-title { font-size: 2.8rem; }
            .nav-links { gap: 15px; }
            .nav-links a { font-size: 0.7rem; }
            /* Галерея: 2 карточки на планшете */
            .gallery-item { flex: 0 0 calc(50% - 10px); }
        }

        @media (max-width: 768px) {
            header { padding: 15px 0; background-color: rgba(5, 5, 5, 0.95); }
            
            .hamburger { display: flex; }
            .nav-links { position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background-color: rgba(5, 5, 5, 0.98); flex-direction: column; justify-content: center; align-items: center; gap: 40px; z-index: 1000; }
            .nav-links.active { right: 0; }
            .nav-links a { font-size: 1.5rem; }
            
            .hamburger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
            .hamburger.toggle span:nth-child(2) { opacity: 0; }
            .hamburger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

            .hero { background-attachment: scroll; }
            .hero h1 { font-size: 3rem; }
            .hero .slogan { font-size: 1rem; letter-spacing: 4px; }
            
            .afisha, .about, .programs, .gallery, .artists, .contacts { padding: 60px 0; }
            
            .afisha-card { flex-direction: column; text-align: center; padding: 30px; gap: 20px; }
            .afisha-date { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; min-width: auto; width: 100%; }
            .afisha-info { padding: 0; }
            .afisha-info h3 { font-size: 1.5rem; }
            .afisha-card .btn { width: 100%; }
            
            .about-inner { flex-direction: column; gap: 40px; }
            .about-text .section-title { text-align: center; margin-left: auto; margin-right: auto; }
            .about-text .section-title::after { margin: 15px auto 0; }
            .about-image::after { display: none; }
            .about-img { height: 300px; }

            /* Галерея: 1 карточка на телефоне */
            .gallery-item { flex: 0 0 100%; height: 250px; }
            .artists-grid { grid-template-columns: 1fr; gap: 30px;}
        }