* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
header p { font-size: 1.1rem; opacity: 0.95; }

.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.controls input, .controls select {
    padding: 0.8rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    min-width: 200px;
}

.controls input:focus, .controls select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.table-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.2rem 1rem;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

th:hover { background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%); }

td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

tr:hover td {
    background: #f8fafc;
}

tr.hidden { display: none; }

footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    font-size: 0.9rem;
    color: #64748b;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 { font-size: 2rem; }
    
    .controls { 
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls input, .controls select { min-width: auto; }
    
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    
    tr { 
        border: 1px solid #e2e8f0;
        margin-bottom: 1rem;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    }
    
    td {
        border: none;
        position: relative;
        padding-left: 50%;
        text-align: right;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        font-weight: 600;
        color: #4a5568;
    }
    
    td:nth-of-type(1):before { content: "Категория: "; }
    td:nth-of-type(2):before { content: "Техника: "; }
    td:nth-of-type(3):before { content: "Мелкий: "; }
    td:nth-of-type(4):before { content: "Средний: "; }
    td:nth-of-type(5):before { content: "Сложный: руб."; }
}
