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

header {
    font-family: Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

header .header-content {
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.header-content > a {
    height: 100%;
    padding: 3px;
    text-decoration: none;
    color: #333;
    font-size: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo {
    height: 100%;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background-color: #f0f0f0;
    color: #000;
}

.active {
    background-color: #e0e0e0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.mobile-menu.active {
    height: auto;
    min-height: 150px;
}

.mobile-menu nav {
    flex-direction: column;
    gap: 0;
    padding: 20px;
}

.mobile-menu nav a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}

.mobile-menu nav a:last-child {
    border-bottom: none;
}

main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

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

@media (max-width: 768px) {
    .header-content {
        padding: 0 20px;
        height: 60px;
    }
    
    .header-content > a {
        font-size: 1.3rem;
    }
    
    .logo {
        height: 40px;
    }
    
    nav {
        gap: 20px;
    }
    
    nav a {
        padding: 5px 10px;
        font-size: 14px;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    main {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
        height: 50px;
        justify-content: space-between;
    }
    
    .header-content > a {
        font-size: 1rem;
        gap: 5px;
    }
    
    .logo {
        height: 30px;
    }
    
    .header-content nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        font-size: 1.2rem;
    }
    
    main {
        margin-top: 50px;
    }
}

/* Аудио плеер в панели карты */
.panel-audio {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-top: 1px solid #e9ecef;
}

.audio-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-controls.dual {
    gap: 20px;
}

.dual-audio-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 10px
}

.dual-audio-section label {
    font-weight: bold;
    color: #495057;
    font-size: 14px;
    margin-bottom: 5px;
}

.audio-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.audio-button:hover:not(:disabled) {
    background: #0056b3;
}

.audio-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.audio-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s ease;
}

.audio-time {
    font-size: 12px;
    color: #6c757d;
    min-width: 80px;
    text-align: right;
}

.play-icon, .pause-icon {
    font-size: 12px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .panel-audio {
        padding: 10px;
        margin-top: 15px;
    }
    
    .dual-audio-section {
        padding: 8px;
    }
    
    .audio-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .audio-time {
        font-size: 11px;
        min-width: 70px;
    }
}