:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth; /* Вмикає плавне гортання для всіх якорів */
    scroll-padding-top: 80px; /* Відступ зверху, щоб фіксоване меню не перекривало контент */
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; top: 0;
    background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(10px);
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05);
}
/* --- ЛОГОТИП ТА НАВІГАЦІЯ --- */
.logo { 
    font-size: 1.5rem; 
    font-weight: 800; 
    display: flex;          /* Вишиковуємо іконку і текст в один ряд */
    align-items: center;    /* Центруємо їх по вертикалі */
    gap: 10px;              /* Відстань між іконкою та текстом */
    text-decoration: none;  /* Якщо колись зробиш логотип посиланням */
}

/* Розмір самого SVG логотипу */
.logo svg {
    width: 28px;
    height: 28px;
}


.logo span { color: var(--primary); }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-white); font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* Hero Section */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; background: radial-gradient(circle at center, #1e1b4b 0%, var(--bg-dark) 100%);
}
.badge {
    display: inline-block; padding: 6px 16px; background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary); border-radius: 100px; color: var(--primary);
    font-size: 0.8rem; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--primary); }
.hero p { max-width: 600px; margin: 0 auto 30px; color: var(--text-muted); font-size: 1.1rem; }

/* Buttons */
/* --- ЗАГАЛЬНІ НАЛАШТУВАННЯ КНОПОК --- */
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1); /* Плавна анімація */
    cursor: pointer;
    display: inline-block;
    border: none;
    text-align: center;
}

/* --- СИНЯ КНОПКА (Primary) --- */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    /* Синє світіння для синьої кнопки */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    background-color: var(--primary-dark);
}

/* --- БІЛА КНОПКА (Secondary/Online Pass) --- */
.btn-outline {
    background-color: #ffffff;
    color: var(--bg-dark) !important; /* ТЕМНИЙ ТЕКСТ для контрасту */
}

.btn-outline:hover {
    transform: translateY(-2px);
    /* ТАКЕ Ж САМЕ синє світіння для білої кнопки */
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
    background-color: #f0f0f0; /* Легкий сірий відтінок при наведенні */
}

/* Ефект натискання для обох кнопок */
.btn:active {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
}

/* Speakers & Pricing Grids */
.section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.speakers-grid, .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.speaker-card, .price-card {
    background: var(--bg-card); padding: 30px; border-radius: 20px; 
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.speaker-card:hover { border-color: var(--primary); transform: translateY(-10px); }
.speaker-img { width: 100%; height: 300px; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
.speaker-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.speaker-card:hover img { filter: grayscale(0%); }

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.about-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.5); /* Легке підсвічування рамки */
}

.about-card h3 {
    font-size: 4rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 800;
}

.about-card p {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
/* Pricing Featured */
.price-card.featured { border: 2px solid var(--primary); position: relative; }
.popular-tag {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--primary); padding: 4px 12px; border-radius: 10px; font-size: 0.7rem; font-weight: bold;
}
.amount { font-size: 3rem; font-weight: 800; margin: 20px 0; }
.price-card ul { list-style: none; margin-bottom: 30px; color: var(--text-muted); }

/* Animation Classes */
.reveal { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

.footer { text-align: center; padding: 50px; border-top: 1px solid #1e293b; color: var(--text-muted); }
/* FAQ Accordion Styles */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question span {
    font-size: 1.5rem;
    color: var(--primary);
    transition: 0.3s;
}

.faq-answer {
    max-height: 0; /* Сховано за замовчуванням */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(255, 255, 255, 0.02);
}

.faq-answer p {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Стан при відкритті */
.faq-item.active {
    border-color: var(--primary);
}

.faq-item.active .faq-question span {
    transform: rotate(45deg); /* Плюс перетворюється на ікс */
}
/* --- ТАЙМЕР ЗВОРОТНОГО ВІДЛІКУ --- */
.countdown-section {
    padding: 60px 0;
    background: rgba(15, 23, 42, 0.5); /* Напівпрозорий темний фон */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#timer {
    display: flex;
    justify-content: center;
    gap: 40px;
    text-align: center;
}

.time-box {
    min-width: 100px;
}

.time-box span {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 8px;
    /* Синє неонове світіння, як на кнопках */
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.time-box p {
    color: var(--primary); /* Наш акцентний синій */
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Адаптивність для мобілок */
@media (max-width: 768px) {
    #timer { gap: 15px; }
    .time-box span { font-size: 2rem; }
    .time-box { min-width: 60px; }
}
/* --- МАГІЯ ДЛЯ КНОПОК BUY NOW --- */

/* 1. Підготовка кнопок для відблиску */
.btn {
    position: relative; /* Обов'язково для позиціонування відблиску */
    overflow: hidden;   /* Щоб відблиск не вилазив за краї кнопки */
}

/* 2. Створюємо саму лінію відблиску (вона ховається зліва) */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Ховаємо далеко зліва */
    width: 50%;
    height: 100%;
    /* Напівпрозорий білий градієнт */
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); /* Нахиляємо лінію для стилю */
    transition: left 0.7s ease; /* Швидкість пробігання відблиску */
}

/* 3. Коли наводимо мишку — відблиск пробігає направо */
.btn:hover::after {
    left: 200%;
}


/* --- ПУЛЬСАЦІЯ ДЛЯ ГОЛОВНОГО КВИТКА --- */

/* Створюємо анімацію хвиль */
@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Додаємо пульсацію ТІЛЬКИ до виділеної (featured) картки */
.price-card.featured .btn-primary {
    animation: pulse-ring 2s infinite; /* Пульсує кожні 2 секунди нескінченно */
}

/* Коли наводимо мишку, вимикаємо пульсацію і включаємо наше стандартне світіння */
.price-card.featured .btn-primary:hover {
    animation: none;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}
/* --- МОДАЛЬНЕ ВІКНО КАСИ (CHECKOUT) --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Темний фон з ефектом розмиття (Glassmorphism) */
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 2000;
    
    /* Сховано за замовчуванням */
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1; visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    width: 90%; max-width: 450px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    
    /* Анімація виринання знизу */
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none;
    color: var(--text-muted); font-size: 1.5rem;
    cursor: pointer; transition: 0.3s;
}

.close-modal:hover { color: var(--text-white); transform: scale(1.1); }

/* Стилі полів форми */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block; margin-bottom: 8px;
    font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
}

.input-group input, .input-group select {
    width: 100%; padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3); /* Напівпрозорий чорний всередині інпута */
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white); font-family: inherit; font-size: 1rem;
    outline: none; transition: 0.3s;
}

/* Коли користувач клікає на поле (фокус) */
.input-group input:focus, .input-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.input-group select option { background: var(--bg-card); }
/* --- БОКОВА ПАНЕЛЬ РОЗКЛАДУ (ІДЕАЛЬНА ПЛАВНІСТЬ) --- */
.schedule-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(5px);
    z-index: 1999; 
    
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

.schedule-overlay.active { 
    opacity: 1; 
    pointer-events: all;
}

.schedule-panel {
    position: fixed; top: 0; right: 0; 
    transform: translateX(100%); 
    width: 100%; max-width: 400px; height: 100%;
    background: var(--bg-card); 
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 2000; padding: 40px; 
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    
    /* ЗМІНЕНО: ease-in-out робить швидкість однаковою туди і назад */
    transition: transform 0.5s ease-in-out; 
    overflow-y: auto;
}

.schedule-panel.active { 
    transform: translateX(0); /* Повертаємо панель у початкове положення */ 
}

.close-schedule {
    position: absolute; top: 20px; right: 20px;
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; transition: 0.3s;
}
.close-schedule:hover { color: var(--text-white); transform: scale(1.1); }

.schedule-panel h2 { margin-bottom: 30px; color: var(--text-white); }

/* Дизайн лінії часу (Timeline) */
.timeline { display: flex; flex-direction: column; gap: 25px; }
.time-item { 
    border-left: 2px solid var(--primary); 
    padding-left: 20px; position: relative; 
}
.time-item::before { 
    content: ''; position: absolute; left: -6px; top: 0; 
    width: 10px; height: 10px; background: var(--primary); 
    border-radius: 50%; box-shadow: 0 0 10px var(--primary); 
}
.time-item span { color: var(--primary); font-weight: bold; font-size: 0.9rem; }
.time-item h4 { color: var(--text-white); margin: 5px 0; font-size: 1.1rem; }
.time-item p { color: var(--text-muted); font-size: 0.85rem; }