@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;500;700&family=Roboto:wght@300;400;500&display=swap');

:root {
    --bg-dark: #120524;      
    --accent-gold: #ffd700;  
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --btn-gradient: linear-gradient(90deg, #d32f2f 0%, #9a0036 100%);
}

/* Анимация загрузки */
@keyframes pageFadeIn { from { opacity: 0; transform: scale(0.99); } to { opacity: 1; transform: scale(1); } }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    font-family: 'Roboto', sans-serif;
    color: var(--text-white);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0;
    overflow-x: hidden;
    animation: pageFadeIn 0.8s ease-out forwards;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.fade-out { opacity: 0; transition: opacity 0.5s ease; }
a { text-decoration: none; }

h1, h2, h3, h4, h5, h6, .nav-menu, .btn-premium, .date-num, .date-month, .city-name, .logo-text, .promo-title {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
}

/* --- НАВИГАЦИЯ --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(18, 5, 36, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1300px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3));
    transition: transform 0.3s;
}
.nav-logo img:hover { transform: scale(1.05); }

/* Меню ПК */
.nav-desktop-block { display: flex; align-items: center; gap: 30px; }
.desktop-menu { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.desktop-menu li a { color: var(--text-white); font-size: 1rem; font-weight: 500; text-transform: uppercase; transition: color 0.3s; }
.desktop-menu li a:hover { color: var(--accent-gold); }

/* Контакты */
.header-contacts { display: flex; flex-direction: row; align-items: center; gap: 20px; font-size: 1rem; }
.header-contacts a { color: var(--accent-gold); font-weight: 700; transition: 0.3s; white-space: nowrap; }
.header-contacts a:hover { color: white; }
.header-contacts a.email-link { color: #ccc; font-weight: 400; font-size: 0.95rem; }
.header-contacts a.email-link:hover { color: white; }

/* Мобильное меню */
.mobile-menu-list { display: none; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: white; transition: 0.3s; }

/* --- ШАПКА --- */
header {
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, #302b85 0%, #68307d 50%, #120524 100%);
    overflow: hidden;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
    padding-top: 80px; 
    box-shadow: inset 0 -50px 50px -20px var(--bg-dark);
}

.header-clickable { text-decoration: none; width: 100%; display: flex; flex-direction: column; align-items: center; cursor: pointer; z-index: 5; }
.stars-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

.header-logos {
    position: relative;
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 10px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: floatIn 1s ease-out forwards;
}

.logo-main { max-width: 420px; width: 100%; height: auto; filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)); }
.logo-tour { max-width: 180px; width: 100%; height: auto; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); }

.artists-desktop { display: block; width: 100%; max-width: 1300px; height: auto; opacity: 0; animation: slideUp 1s ease-out 0.2s forwards; }
.artists-mobile-container { display: none; width: 100%; flex-direction: column; align-items: center; }
.artists-mobile-img { width: 100%; max-width: 500px; height: auto; display: block; }

/* --- КОНТЕНТ --- */
.container { 
    max-width: 1300px; 
    margin: 40px auto 60px auto; 
    padding: 0 20px; 
    position: relative; 
    z-index: 2; 
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}
.concert-list { display: flex; flex-direction: column; gap: 20px; width: 100%; }

.concert-card {
    display: grid;
    grid-template-columns: 100px 1fr 180px;
    align-items: center;
    background-color: rgba(30, 11, 54, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px 40px; 
    text-decoration: none;
    color: white;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}
.concert-card:hover { transform: translateY(-5px); background-color: rgba(50, 20, 80, 0.8); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

.date-block { text-align: center; border-right: 1px solid rgba(255,255,255,0.1); padding-right: 30px; margin-right: 30px; }
.date-num { display: block; font-size: 2.4rem; font-weight: 700; color: var(--accent-gold); line-height: 1; }
.date-month { display: block; font-size: 1rem; text-transform: uppercase; font-weight: 500; margin-top: 5px; letter-spacing: 1px; }

.info-block { display: flex; flex-direction: column; }
.city-name { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; color: white; }
.venue-info { font-size: 1.1rem; color: var(--text-gray); font-weight: 400; }

.btn-col { display: flex; justify-content: flex-end; }
.btn-premium { background: var(--btn-gradient); color: white; padding: 14px 35px; border-radius: 50px; font-size: 1rem; font-weight: 700; text-transform: uppercase; box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4); transition: 0.3s; border: none; cursor: pointer; text-align: center; letter-spacing: 1px; }
.concert-card:hover .btn-premium { transform: scale(1.05); box-shadow: 0 8px 20px rgba(211, 47, 47, 0.6); }

/* --- ГЛАВНАЯ СТРАНИЦА --- */
.hero-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Уменьшил отступ */
    margin-bottom: 60px;
}

.promo-section {
    text-align: center;
    position: relative;
    /* Кнопка теперь первая, поэтому отступы перенастроим */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Порядок элементов на главной через flex order */
.promo-btn-container { order: 1; margin-bottom: 30px; width: 100%; }
.promo-title { order: 2; margin-bottom: 20px; font-size: 4rem; line-height: 1.1; text-transform: uppercase; background: linear-gradient(90deg, #fff, #ffd700); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.promo-text { order: 3; font-size: 1.3rem; max-width: 800px; margin: 0 auto 40px auto; line-height: 1.6; color: #e0e0e0; font-weight: 300; }

.festival-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: 0.3s;
}
.feature-card:hover { transform: translateY(-10px); background: rgba(255,255,255,0.07); border-color: var(--accent-gold); }
.feature-card i { font-size: 3rem; color: var(--accent-gold); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: white; }
.feature-card p { font-size: 1rem; color: #ccc; }

.cta-block {
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2), rgba(18, 5, 36, 0.8));
    padding: 60px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

/* --- ФУТЕР --- */
footer {
    background-color: #0b0214;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 60px 0 20px 0;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-col h4 { color: var(--accent-gold); text-transform: uppercase; font-size: 1.2rem; margin-bottom: 20px; font-family: 'Oswald', sans-serif; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu li a { color: #ccc; transition: 0.3s; font-weight: 400; font-size: 1rem; }
.footer-menu li a:hover { color: white; padding-left: 5px; }
.social-links a { display: flex; align-items: center; gap: 10px; color: #ccc; margin-bottom: 10px; transition: 0.3s; font-weight: 400; font-size: 1rem; }
.social-links a i { width: 25px; text-align: center; color: var(--accent-gold); font-size: 1.3rem; }
.social-links a:hover { color: white; }
.partner-block img { width: 100px; height: auto; margin-top: 10px; opacity: 0.8; transition: 0.3s; }
.partner-block img:hover { opacity: 1; }
.footer-contacts p { margin: 8px 0; color: #ccc; font-weight: 400; font-size: 1rem; }
.footer-contacts a { color: white; font-weight: 500; }
.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); color: #666; font-size: 0.9rem; }

/* Внутренние страницы */
.back-link { color: #bbb; text-decoration: none; display: inline-block; margin-bottom: 20px; font-size: 1.1rem; transition: 0.3s; }
.back-link:hover { color: white; transform: translateX(-5px); }
.inner-page { background: rgba(30, 11, 54, 0.6); border-radius: 20px; padding: 40px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); }
.event-content { display: flex; gap: 40px; flex-wrap: wrap; }
.poster-full { flex: 1; min-width: 300px; cursor: zoom-in; position: relative; }
.poster-full img { width: 100%; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: transform 0.3s ease; }
.poster-full img:hover { transform: scale(1.02); }
.info-full { flex: 1.5; }
.event-meta { font-size: 1.3rem; font-weight: 400; margin-bottom: 30px; }
.full-description { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); line-height: 1.7; color: #ddd; font-weight: 400; font-size: 1.1rem; }
.artist-list-styled { list-style: none; padding: 0; }
.artist-list-styled li { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; }
.artist-bullet { color: var(--accent-gold); margin-right: 15px; font-size: 1.2rem; }
.highlight { color: white; font-weight: 700; }
.lightbox { display: none; position: fixed; z-index: 9999; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px); animation: fadeIn 0.3s; }
.lightbox-content { margin: auto; display: block; width: auto; max-width: 90%; max-height: 90vh; border-radius: 5px; box-shadow: 0 0 20px rgba(255,255,255,0.2); }
.close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 10000; }
.close:hover { color: var(--accent-gold); }

/* АНИМАЦИИ */
@keyframes fadeIn { from {opacity: 0;} to {opacity: 1;} }
@keyframes floatIn { 0% { opacity: 0; transform: translateY(-20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { 0% { opacity: 0; transform: translateY(50px); } 100% { opacity: 1; transform: translateY(0); } }
.star { position: absolute; background: white; border-radius: 50%; opacity: 0; animation: twinkle var(--duration) ease-in-out infinite; animation-delay: var(--delay); box-shadow: 0 0 5px rgba(255, 255, 255, 0.9); }
@keyframes twinkle { 0% { opacity: 0.2; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } 100% { opacity: 0.2; transform: scale(0.8); } }

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-desktop-block { display: none; } 
    
    .mobile-menu-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(18, 5, 36, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        gap: 20px;
        list-style: none;
    }
    .mobile-menu-list.active { display: flex; }
    .mobile-menu-list li a { color: white; font-size: 1.2rem; text-transform: uppercase; font-family: 'Oswald', sans-serif; }
    .mobile-contacts { display: flex; flex-direction: column; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); width: 80%; gap: 10px; }
    
    header { padding-top: 80px; }
    .header-logos { flex-direction: row !important; gap: 15px; margin-top: 10px; align-items: center; }
    .logo-main { width: 65%; max-width: none; }
    .logo-tour { width: 30%; max-width: none; }
    .artists-desktop { display: none; }
    .artists-mobile-container { display: flex; }
    
    .concert-card { grid-template-columns: 1fr; gap: 15px; padding: 20px; text-align: center; }
    .date-block { border: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 0 0 10px 0; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-right: 0; }
    .info-block { align-items: center; }
    .btn-col { justify-content: center; }
    
    /* ФИКС КНОПКИ В МОБИЛЬНОЙ ВЕРСИИ */
    .btn-premium { 
        width: auto; /* Не на 100%, чтобы не рвало */
        max-width: 90%; /* Ограничение ширины */
        display: inline-block;
        padding: 15px 30px; /* Чуть меньше отступы */
        font-size: 1rem;
    }
    
    .inner-page { padding: 20px; }
    h1 { font-size: 2.5rem; }
    .promo-title { font-size: 2.5rem; } /* Уменьшаем заголовок на главной */
    .event-content { flex-direction: column; }
    .poster-full { width: 100%; max-width: 100%; }
    .footer-container { text-align: center; grid-template-columns: 1fr; }
    .social-links a { justify-content: center; }
}