:root {
    --primary: #1a1a2e;
    --secondary: #6366f1;
    --accent: #8b5cf6;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #f8fafc;
    --dark: #0f172a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    min-height: 100vh;
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

.main-content {
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    min-height: 100vh;
    padding: 40px 0;
}

/* style.css */

/* Стили для фонового видео */
#bgVideo {
    position: absolute; /* Позиционируем относительно hero-section */
    top: 50%; /* Центрируем по вертикали */
    left: 50%; /* Центрируем по горизонтали */
    min-width: 100%; /* Растягиваем на всю ширину */
    min-height: 100%; /* Растягиваем на всю высоту */
    width: auto;
    height: auto;
    z-index: 1; /* ПОМЕЩАЕТ ВИДЕО ПОД КОНТЕНТ */
    transform: translate(-50%, -50%); /* Точная центровка */
    object-fit: cover; /* Гарантирует, что видео покроет контейнер, обрезая лишнее */
}

/* Настраиваем контейнер для контента */
.hero-section {
    position: relative; /* Необходим для позиционирования видео (position: absolute) */
    overflow: hidden; /* Скрывает части видео, выходящие за границы секции */
    /* Здесь могут быть дополнительные стили для наложения градиента/цвета, 
       чтобы улучшить читаемость текста поверх видео */
}

/* Navbar стили */
.navbar {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.navbar-brand:hover {
    color: var(--secondary) !important;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-switcher .btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.active-lang {
    background: var(--gradient-secondary) !important;
    color: white !important;
    border: none !important;
    transform: scale(1.05);
}

.btn-outline-primary, .btn-outline-secondary {
    border: 2px solid rgba(99, 102, 241, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.btn-outline-primary:hover, .btn-outline-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    color: white;
    border-color: var(--secondary);
}

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2000');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    /*padding-top: 70px;
    padding: 80px 0 60px;*/
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    padding-top: 70vh;
   /* padding-top: 25vh;*/
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    /*background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2) 0%, transparent 50%);
    */
    background: rgba(0, 0, 0, 0.4); 
    z-index: 2; /* Должно быть выше видео (-1), но ниже текста (0) */
    pointer-events: none;
}


/* Добавление наложения для улучшения читаемости текста 
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Черное полупрозрачное наложение 
    background: rgba(0, 0, 0, 0.4); 
    z-index: -1; /* Должно быть выше видео (-1), но ниже текста (0) 
}*/


.hero-section .container {
    position: relative;
    z-index: 3; 
}


.hero-section h1 {
    position: relative;
    font-size: 2.8rem; /* Уменьшаем базовый размер шрифта */
    z-index: 1;
    font-weight: 300;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-section .lead {
    position: relative;
    z-index: 1;
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    position: relative;
    z-index: 1;
    background: var(--gradient-secondary);
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.6);
}

/* Карточки конференции */
.conference-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.conference-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.section-header {
    background: var(--gradient-secondary);
    color: white;
    padding: 24px 30px;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.conference-card:hover .section-header::before {
    left: 100%;
}

.section-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Accordion стили */
.accordion-item {
    border: none;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    font-weight: 600;
    padding: 20px 24px;
    border: none;
    color: var(--dark);
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.accordion-button > strong{
    margin-right: 12px;
}
.accordion-button:not(.collapsed) {
    background: var(--gradient-secondary) !important;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    border-color: transparent;
}

.accordion-button::after {
    /* Критические свойства для отображения и позиционирования */
    flex-shrink: 0;
    width: 1.2rem; /* Установка явного размера */
    height: 1.2rem; /* Установка явного размера */
    margin-left: auto; /* Для выравнивания справа */
    content: ""; /* Обязательно для ::after */
    
    /* Ваш кастомный SVG-код для стрелки */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important; /* !important, чтобы гарантировать отображение */
    
    background-repeat: no-repeat;
    background-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    filter: brightness(0) invert(1);
}

.accordion-body {
    padding: 24px;
    background: #fafafa;
}

.accordion-item:hover .accordion-button.collapsed {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    transform: translateX(4px);
}

/* Временные слоты и презентации */
.time-slot {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid var(--secondary);
    padding: 20px;
    margin: 15px 0;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.time-slot:hover {
    background: linear-gradient(135deg, #fefefe 0%, #f1f5f9 100%);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.time-slot .badge {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
}

.presentation-item {
    transition: all 0.3s ease;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: white;
}

.presentation-item:hover {
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
    transform: translateX(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.presentation-item h6 {
    color: var(--dark);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 12px;
}

.presentation-item strong {
    color: var(--secondary);
    font-weight: 600;
}

.presentation-item .text-muted {
    color: #64748b !important;
    font-size: 0.9rem;
}

/* Спикеры */
.speaker-card {
    text-align: center;
    padding: 30px 24px;
    height: 100%;
    background: white;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.partner-card {
    text-align: center;
    padding: 30px 24px;
    background: white;
    border-radius: 16px;
    transition: all 0.4s ease;
}

.partner-card:hover .speaker-img {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.speaker-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.speaker-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--secondary);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    transition: all 0.4s ease;
}

.speaker-card:hover .speaker-img {
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
    transform: scale(1.05);
}

.speaker-card h5 {
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.speaker-card .text-muted {
    color: #64748b !important;
    margin-bottom: 12px;
}

.speaker-card .small {
    color: #475569;
    line-height: 1.6;
}

/* Модератор и поиск */
.moderator-info {
    border-left: 4px solid var(--accent);
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.moderator-info:hover {
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.15);
    transform: translateX(4px);
}

.search-highlight {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.btn-primary {
    background: var(--gradient-secondary);
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.form-control {
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* Partners Section */
.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px; /* Отступ между логотипами */
}

.partner-logo {
    height: 120px;
    width: 120px;
    object-fit: contain;
    background-color: white;
    border: 4px solid #e2e8f0;
    border-radius: 50%;
    padding: 15px;
    transition: all 0.3s ease-in-out;
    flex-shrink: 0; /* Предотвращает сжатие логотипов во flex-контейнере */
    filter: grayscale(50%);
}

.partner-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

/* Стили для контейнера логотипов партнеров */
.partners-logo-container {
    display: flex;
    flex-wrap: nowrap; /* Не переносить на мобильных */
    justify-content: flex-start; /* Начинать слева */
    align-items: center;
    gap: 1.5rem; /* Отступы между логотипами */
    overflow-x: auto; /* Включить горизонтальную прокрутку */
    padding-bottom: 1rem; /* Добавить отступ снизу, чтобы скроллбар не прилипал */
}

/* Badges */
.badge {
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.bg-primary {
    background: var(--gradient-secondary) !important;
}

.bg-success {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

/* Icons */
.fas, .far {
    margin-right: 8px;
}

/* Анимации */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.conference-card {
    animation: fadeIn 0.8s ease-out;
}

.presentation-item {
    animation: slideIn 0.5s ease-out;
}

.speaker-card {
    animation: fadeIn 0.8s ease-out;
}

/* Эффект загрузки */
.conference-card:nth-child(1) { animation-delay: 0.1s; }
.conference-card:nth-child(2) { animation-delay: 0.2s; }
.conference-card:nth-child(3) { animation-delay: 0.3s; }
.conference-card:nth-child(4) { animation-delay: 0.4s; }

/* Специальные классы для секций */
.section-1 .accordion-button { 
    border-left: 4px solid #16b32b;
}
.section-1 .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #16b32b 0%, #154d2a 100%) !important;
}

.section-2 .accordion-button { 
    border-left: 4px solid #539aca;
}
.section-2 .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #539aca 0%, #225d68 100%) !important;
}

.section-3 .accordion-button { 
    border-left: 4px solid #9b2ccf;
}
.section-3 .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #9b2ccf 0%, #4d1666 100%) !important;
}

.section-4 .accordion-button { 
    border-left: 4px solid #e623dc;
}
.section-4 .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #e623dc 0%, #92138c 100%) !important;
}

/* Utility классы */
.text-gradient {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

/* Адаптивность */

@media (max-width: 1200px) {
    .hero-section {
        padding: 100px 0 70px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 992px) {
    /* На ПК делаем логотипы адаптивными и распределяем по ширине */
    .partners-logo-container {
        flex-wrap: wrap; /* Разрешаем перенос */
        justify-content: space-around; /* Равномерно распределяем */
        overflow-x: hidden; /* Отключаем прокрутку */
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 90px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .speaker-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 50px;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .speaker-img {
        width: 100px;
        height: 100px;
    }
    
    .time-slot .row {
        text-align: center;
    }
    
    .time-slot .badge {
        margin-bottom: 12px;
        display: inline-block;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .lang-switcher {
        margin-top: 10px;
    }
    
    .section-header {
        padding: 20px;
    }
    
    .section-header h3 {
        font-size: 1.2rem;
    }
    .partner-logo {
        width: 90px; /* Уменьшаем на планшетах */
        height: 90px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 0 40px;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    }
    
    .speaker-img {
        width: 90px;
        height: 90px;
    }
    .partner-logo {
        width: 75px; /* И еще немного на смартфонах */
        height: 75px;
    }
    .btn-lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .conference-card {
        border-radius: 15px;
    }
    
    .section-header {
        border-radius: 15px 15px 0 0;
    }
    .presentation-item h6 {
        font-size: 0.95rem;
    }
    
    .accordion-button {
        font-size: 0.95rem;
        padding: 16px 18px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}