/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    color: #2c3e50;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header / Логотип */
.header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    overflow: hidden; /* Предотвращает выход контента за пределы */
}

.logo {
    max-width: 100%; /* Логотип не будет шире родительского контейнера */
    width: auto;
    height: auto;
    margin: 0 auto;
    padding: 0 15px; /* Добавляем отступы по бокам для мобильных устройств */
    box-sizing: border-box;
}

.logo svg {
    width: 100%; /* SVG занимает всю ширину родителя */
    height: auto; /* Высота подстраивается пропорционально */
    max-width: 400px; /* Но не становится слишком большим на десктопах */
    display: block;
    margin: 0 auto;
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .logo svg {
        max-width: 280px; /* Еще меньше на телефонах */
    }
}

/* Меню */
.menu {
    display: flex;
    justify-content: center;
    gap: 20px;
    /*margin: 30px 0;*/
    flex-wrap: wrap;
}

.menu-button {
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
    border: 2px solid #3498db;
}

.menu-button:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.3);
}

.menu-button.active {
    background: #3498db;
    color: white;
}

/* Формы */
.upload-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

h1.archive-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

/* Загрузка файла */
.file-upload {
    background: #f8f9fa;
    border: 2px dashed #3498db;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload:hover {
    background: #e3f2fd;
    border-color: #2980b9;
}

.file-upload input[type="file"] {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.file-upload-icon {
    font-size: 48px;
    color: #3498db;
}

.file-name {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* Чекбокс согласия */
.consent {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.consent label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.consent a {
    color: #3498db;
    text-decoration: none;
}

.consent a:hover {
    text-decoration: underline;
}

/* Информация о файле */
.file-info {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 14px;
    color: #2980b9;
    border-left: 4px solid #3498db;
}

/* Поля формы */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
}

/* Подсказки (хинты) */
.hint-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    margin-left: 8px;
    cursor: help;
    position: relative;
}

.hint-icon:hover::after {
    content: attr(data-hint);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 10px;
}

.hint-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
    margin-bottom: -2px;
}

/* Кнопки */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52,152,219,0.4);
}

.btn-secondary {
    background: #ecf0f1;
    color: #34495e;
}

.btn-secondary:hover {
    background: #bdc3c7;
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

/* Таблица архива */
.archive-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #3498db;
    background: transparent;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #3498db;
    color: white;
}

.table-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #3498db;
    color: white;
    padding: 15px;
    font-weight: 600;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #ecf0f1;
}

tr:hover {
    background: #f8f9fa;
}

.file-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.file-link:hover {
    text-decoration: underline;
}

/* Плеер */
.audio-player {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.audio-player audio {
    width: 100%;
}

/* Статистика */
.file-stats {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: #ecf0f1;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
}

.stat-item strong {
    color: #3498db;
    margin-right: 5px;
}

/* Страницы правил и политики */
.policy-page {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.policy-page h2 {
    color: #2c3e50;
    margin: 30px 0 15px;
}

.policy-page h2:first-child {
    margin-top: 0;
}

.policy-page p {
    margin-bottom: 15px;
    color: #34495e;
}

.policy-page ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .upload-form {
        padding: 20px;
    }
    
    .menu {
        flex-direction: column;
        align-items: stretch;
    }
    
    .menu-button {
        text-align: center;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .archive-filters {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}