* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 40px 0 20px;
    margin-bottom: 40px;
    border-bottom: 2px solid #4a4a8a;
}

header h1 {
    font-size: 2.5em;
    color: #fff;
    text-shadow: 0 0 10px rgba(74, 74, 138, 0.5);
    margin-bottom: 10px;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 5px;
    margin: 25px 0;
}

.section-card {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid #4a4a8a;
    border-radius: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

.section-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(74, 74, 138, 0.3);
    border-color: #6a6aaa;
    background: rgba(32, 32, 52, 0.95);
}

.section-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(100%);
}

.section-icon {
    font-size: 2.2em;
    flex-shrink: 0;
    min-width: 48px;
    text-align: center;
}

.section-content {
    flex: 1;
    min-width: 0;
}

.section-card h2 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.section-card p {
    color: #aaa;
    line-height: 1.3;
    font-size: 0.75rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filters-section {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #4a4a8a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    background: #1a1a2e;
    border: 2px solid #4a4a8a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #6a6aaa;
    box-shadow: 0 0 10px rgba(74, 74, 138, 0.3);
}

.search-box input::placeholder {
    color: #666;
}

.filter-select {
    padding: 12px 25px;
    background: #1a1a2e;
    border: 2px solid #4a4a8a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: #6a6aaa;
}

.filter-select:focus {
    outline: none;
    border-color: #6a6aaa;
}

footer {
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 1px solid #4a4a8a;
    color: #888;
}

.loading {
    text-align: center;
    padding: 60px;
    font-size: 1.2em;
    color: #888;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #4a4a8a;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error {
    text-align: center;
    padding: 60px;
    color: #ff6b6b;
    font-size: 1.2em;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 10px;
    margin: 20px;
}

@media (min-width: 1200px) {
    .sections-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 14px;
    }
    
    .section-card {
        padding: 14px 18px;
        gap: 16px;
    }
    
    .section-icon {
        font-size: 2.4em;
        min-width: 52px;
    }
    
    .section-card h2 {
        font-size: 1.1rem;
    }
    
    .section-card p {
        font-size: 0.8rem;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .sections-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 12px;
    }
    
    .section-card {
        padding: 12px 16px;
        gap: 14px;
    }
    
    .section-icon {
        font-size: 2.2em;
        min-width: 48px;
    }
    
    .section-card h2 {
        font-size: 0.95rem;
    }
    
    .section-card p {
        font-size: 0.73rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .wrapper {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .sections-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 10px;
    }
    
    .section-card {
        padding: 10px 14px;
        gap: 12px;
    }
    
    .section-icon {
        font-size: 2em;
        min-width: 44px;
    }
    
    .section-card h2 {
        font-size: 0.9rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .section-card p {
        font-size: 0.7rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .filters-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-select {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .wrapper {
        padding: 10px;
    }
    
    header {
        padding: 20px 0 15px;
        margin-bottom: 20px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section-card {
        padding: 12px 16px;
        gap: 14px;
    }
    
    .section-icon {
        font-size: 2em;
        min-width: 44px;
    }
    
    .section-content {
        flex: 1;
    }
    
    .section-card h2 {
        font-size: 1rem;
        white-space: normal;
        margin-bottom: 6px;
    }
    
    .section-card p {
        font-size: 0.75rem;
        white-space: normal;
        line-height: 1.3;
        color: #999;
    }
    
    .section-card:hover {
        transform: translateX(4px);
    }
    
    .filters-section {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .search-box {
        min-width: 100%;
    }
    
    .filter-select {
        width: 100%;
    }
    
    footer {
        padding: 20px 0 10px;
        margin-top: 30px;
        font-size: 0.85em;
    }
}

.back-link {
    display: inline-block;
    margin: 10px 0 20px;
    color: #4a90e2;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #6a6aaa;
    text-decoration: underline;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #888;
    font-style: italic;
    background: #1a1a2e;
    border-radius: 10px;
    margin: 20px 0;
}

.site-header {
    background: rgba(26, 26, 46, 0.95);
    border-bottom: 2px solid #4a4a8a;
    padding: 8px 0;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo {
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-shadow: 0 0 10px rgba(74, 74, 138, 0.5);
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 5px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.main-nav li a:hover {
    color: #fff;
    background: rgba(74, 74, 138, 0.3);
}

.main-nav li.active a {
    color: #fff;
    background: #4a4a8a;
}
.section-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    .main-nav li a {
        font-size: 0.85em;
        padding: 3px 6px;
    }
    
    .logo {
        font-size: 1.2em;
    }
}

@media (max-width: 992px) {
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .main-nav ul {
        width: 100%;
        justify-content: flex-start;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        gap: 3px;
    }
    
    .main-nav li a {
        font-size: 0.8em;
        padding: 2px 5px;
    }
}

.site-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid #4a4a8a;
    color: #888;
}

.filters-section {
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid #4a4a8a;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.filters-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filters-form .search-box {
    flex: 2;
    min-width: 250px;
}

.filters-form .filter-box {
    flex: 1;
    min-width: 120px;
}

.filters-form input,
.filters-form select {
    width: 100%;
    padding: 10px 15px;
    background: #1a1a2e;
    border: 2px solid #4a4a8a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.filters-form input:focus,
.filters-form select:focus {
    outline: none;
    border-color: #6a6aaa;
    box-shadow: 0 0 10px rgba(74, 74, 138, 0.3);
}

.filters-form button {
    padding: 10px 25px;
    background: #4a4a8a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filters-form button:hover {
    background: #5a5aaa;
}

.clear-btn {
    padding: 10px 25px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    transition: background 0.3s ease;
}

.clear-btn:hover {
    background: #5a6268;
}

.results-info {
    margin: 15px 0;
    padding: 10px;
    background: rgba(74, 74, 138, 0.2);
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 0.95em;
}