* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
    background: #f4f7fb;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Кнопка гамбургера */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    background: #0F2D69;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 45, 105, 0.3);
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.app {
    display: flex;
    width: 1300px;
    max-width: 95vw;
    height: 90vh;
    background: white;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Затемняющий фон для мобильного меню */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid #e9ecf0;
    padding: 28px 16px;
    overflow-y: auto;
    position: relative;
    transition: transform 0.3s ease;
}

.sidebar-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
}

.sidebar h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0F2D69;
    padding-left: 12px;
    margin-bottom: 24px;
    letter-spacing: -0.2px;
}

/* Глобальный поиск */
.global-search-container {
    margin-bottom: 20px;
    position: relative;
}

.global-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #dde3ed;
    border-radius: 40px;
    background: white;
    outline: none;
    transition: all 0.2s;
}

.global-search-input:focus {
    border-color: #0F2D69;
    box-shadow: 0 4px 12px rgba(15,45,105,0.1);
}

.global-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e7ef;
    border-radius: 16px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 100;
    display: none;
}

.global-search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f3f8;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 14px;
    line-height: 1.4;
}

.global-search-result-item:hover {
    background: #f0f5fd;
}

.global-search-result-item strong {
    color: #0F2D69;
    display: block;
    margin-bottom: 4px;
}

.sections-list {
    list-style: none;
}

.section-item {
    padding: 12px 16px;
    margin-bottom: 6px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-item:hover {
    background: #f0f4fa;
    color: #0F2D69;
}

.section-item.active {
    background: rgba(15, 45, 105, 0.08);
    color: #0F2D69;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #0F2D69;
}

.section-item.active .section-icon {
    color: #0F2D69;
}

.section-icon {
    font-size: 22px;
    transition: color 0.2s;
}

.main {
    flex: 1;
    background: #fafcff;
    padding: 32px 36px;
    overflow-y: auto;
}

/* Шапка конференции */
.conference-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(15, 45, 105, 0.15);
    text-align: center;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    color: #0F2D69;
    margin-bottom: 12px;
    line-height: 1.2;
}

.header-name {
    font-size: 32px;
    font-weight: 700;
    color: #0F2D69;
    margin-bottom: 12px;
    line-height: 1.2;
}

.header-org {
    font-size: 18px;
    color: #2d4b6e;
    margin-bottom: 6px;
    font-weight: 500;
}

.header-date {
    font-size: 18px;
    color: #0F2D69;
    font-weight: 500;
    background: rgba(15, 45, 105, 0.05);
    display: inline-block;
    padding: 6px 20px;
    border-radius: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #0F2D69;
    margin-bottom: 8px;
    border-bottom: 2px solid rgba(15, 45, 105, 0.2);
    padding-bottom: 12px;
}

/* Дата как адрес */
.section-date {
    font-size: 16px;
    color: #0F2D69;
    margin-bottom: 8px;
    font-weight: 500;
    background: rgba(15, 45, 105, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-block;
}

.section-location {
    font-size: 16px;
    color: #0F2D69;
    margin-bottom: 16px;
    font-weight: 500;
    background: rgba(15, 45, 105, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
    display: inline-block;
}

/* Контейнер фильтров */
.filters-container {
    margin: 20px 0;
}

.day-filters, .room-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.filter-btn {
    background: white;
    border: 1px solid #dde3ed;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #0F2D69;
    background: rgba(15,45,105,0.02);
}

.filter-btn.active {
    background: #0F2D69;
    color: white;
    border-color: #0F2D69;
}

.search-container {
    margin-bottom: 25px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border: 1px solid #dde3ed;
    border-radius: 50px;
    background: white;
    transition: all 0.2s;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.search-input:focus {
    border-color: #0F2D69;
    box-shadow: 0 4px 12px rgba(15,45,105,0.1);
}

.search-input::placeholder {
    color: #a0b1c6;
    font-weight: 300;
}

.section-special-time {
    font-size: 16px;
    color: #0F2D69;
    background: rgba(15, 45, 105, 0.05);
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 16px;
    display: inline-block;
    font-weight: 500;
    border: none;
}

.section-special-time::before {
    content: " ";
    font-size: 16px;
}

.talks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.day-group {
    margin-bottom: 32px;
}

.day-title {
    font-size: 20px;
    font-weight: 600;
    color: #0F2D69;
    background: rgba(15, 45, 105, 0.08);
    padding: 10px 20px;
    border-radius: 40px;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid rgba(15, 45, 105, 0.2);
}

.subsection-group {
    margin-bottom: 24px;
}

.subsection-title {
    font-size: 18px;
    font-weight: 600;
    color: #0F2D69;
    background: rgba(15, 45, 105, 0.05);
    padding: 8px 16px;
    border-radius: 40px;
    margin-bottom: 12px;
    display: inline-block;
}

.talk-card {
    background: white;
    padding: 22px 26px;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0, 20, 40, 0.03);
    border: 1px solid #eef2f6;
    transition: all 0.2s;
    margin-bottom: 8px;
}

.talk-card:hover {
    border-color: rgba(15, 45, 105, 0.3);
    box-shadow: 0 8px 20px rgba(15, 45, 105, 0.08);
}

.talk-time {
    color: #0F2D69;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.talk-title {
    font-size: 20px;
    font-weight: 600;
    color: #0b2b44;
    margin-bottom: 8px;
}

.talk-speaker {
    font-size: 16px;
    color: #2d4b6e;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Онлайн-формат */
.talk-format {
    font-size: 12px;
    color: #0F2D69;
    background: #e8edf9;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(15, 45, 105, 0.2);
}

/* Примечание (для грантов и т.п.) */
.talk-note {
    font-size: 12px;
    color: #8B5A2B;
    background: #faf0e6;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 30px;
    margin-top: 8px;
    font-weight: 400;
    border: 1px solid #e6d5b8;
    font-style: italic;
}

.placeholder {
    color: #8f9fb1;
    font-style: italic;
    padding: 40px 0;
    text-align: center;
}

/* Стили для воркшопа */
.workshop-card {
    background: white;
    padding: 22px 26px;
    border-radius: 22px;
    box-shadow: 0 4px 12px rgba(0, 20, 40, 0.03);
    border: 1px solid #eef2f6;
}

.workshop-participants {
    margin-top: 16px;
}

.workshop-participant {
    font-size: 16px;
    color: #2d4b6e;
    padding: 6px 0;
    border-bottom: 1px dashed #eef2f6;
}

.workshop-participant:last-child {
    border-bottom: none;
}

/* Мобильная версия */
@media (max-width: 700px) {
    body {
        padding: 0;
        margin: 0;
        height: 100vh;
        overflow: hidden;
        background: #f4f7fb;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 1000;
        background: #0F2D69;
        color: white;
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        font-size: 28px;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(15, 45, 105, 0.3);
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .app {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        display: flex;
        flex-direction: column;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        z-index: 1000;
        transform: translateX(-100%);
        border-right: 1px solid #ddd;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        padding: 20px 16px;
        background: white;
        transition: transform 0.3s ease;
        overflow-y: auto;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
    }
    
    .sidebar h2 {
        margin-bottom: 16px;
        padding-left: 0;
        font-size: 20px;
    }
    
    .main {
        padding: 60px 16px 20px;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
        background: #fafcff;
    }
    
    .conference-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
        text-align: center;
    }
    
    .header-name {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    
    .header-title {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .header-org, .header-date {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
        margin-top: 0;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }
    
    .section-date, .section-location {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .section-special-time {
        font-size: 15px;
        margin-bottom: 16px;
        padding: 5px 12px;
    }
    
    .filters-container {
        margin: 15px 0;
    }
    
    .day-filters, .room-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .search-container {
        margin-bottom: 20px;
    }
    
    .search-input {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .talks-list {
        gap: 12px;
        padding-bottom: 30px;
    }
    
    .day-group {
        margin-bottom: 24px;
    }
    
    .day-title {
        font-size: 18px;
        padding: 8px 16px;
        margin-bottom: 16px;
    }
    
    .subsection-group {
        margin-bottom: 20px;
    }
    
    .subsection-title {
        font-size: 16px;
        padding: 6px 14px;
        margin-bottom: 10px;
    }
    
    .talk-card {
        padding: 16px 18px;
        margin-bottom: 8px;
    }
    
    .talk-time {
        font-size: 14px;
    }
    
    .talk-title {
        font-size: 18px;
    }
    
    .talk-speaker {
        font-size: 15px;
    }
    
    .talk-format, .talk-note {
        font-size: 12px;
        padding: 3px 10px;
        margin-top: 6px;
    }
    
    .workshop-card {
        padding: 16px 18px;
    }
    
    .workshop-participant {
        font-size: 15px;
        padding: 5px 0;
    }
    
    .global-search-container {
        margin-top: 10px;
        margin-bottom: 15px;
    }
    
    .global-search-input {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .global-search-results {
        max-height: 250px;
        font-size: 13px;
    }
    
    input, button {
        -webkit-appearance: none;
        border-radius: 0;
    }
    
    button {
        cursor: pointer;
    }
    
   
    * {
        -webkit-tap-highlight-color: transparent;
    }
}
