:root {
    --bg-dark: #0a0e17;
    --panel-bg: rgba(16, 22, 35, 0.9);
    --accent-it: #00d2ff;
    --accent-car: #ff3c00;
    --text-main: #e0e6ed;
    --text-muted: #8899a6;
    --shadow-it: 0 0 20px rgba(0, 210, 255, 0.3);
    --shadow-car: 0 0 20px rgba(255, 60, 0, 0.3);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    overflow-y: scroll; /* Принудительно показывает полосу прокрутки всегда */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Courier New', Courier, monospace;
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    background-image:
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiMwMGQyZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTQwIDQwaDQwdjQwSDQwVjQweiIvPjwvZz48L2c+PC9zdmc+'),
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4MCIgaGVpZ2h0PSI4MCIgdmlld0JveD0iMCAwIDgwIDgwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZjNjMDAiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTQwIDQwaDQwdjQwSDQwVjQweiIvPjwvZz48L2c+PC9zdmc+');
    background-position: left top, right top;
    background-repeat: repeat-y, repeat-y;
    background-size: 50% auto, 50% auto;
}

body::after {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, var(--accent-it), var(--accent-car));
    z-index: -1;
    opacity: 0.5;
}

.main-wrapper {
    width: 100%;
    max-width: 1100px;
    padding: 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
}

.header-main {
    text-align: center;
    margin-bottom: 2px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.header-main h1 {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin: 0;
    animation: none !important;
}

.header-main h1 .it {
    color: var(--accent-it);
    text-shadow: var(--shadow-it);
    animation: none !important;
}

.header-main h1 .car {
    color: var(--accent-car);
    text-shadow: var(--shadow-car);
    animation: none !important;
}

/* Поиск */
.search-bar {
    background: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 100%;
    box-sizing: border-box;
}

.search-bar input {
    flex: 1;
    padding: 15px 25px;
    border: 1px solid #333;
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 16px;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent-it);
}

.search-bar button {
    padding: 15px 35px;
    background: var(--accent-it);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
}

.search-bar button:hover {
    background: var(--accent-car);
    transform: translateY(-2px);
}

/* Результаты поиска */
.search-results {
    background: var(--panel-bg);
    border: 2px solid #333;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-left: 4px solid var(--accent-it);
    border-right: 4px solid var(--accent-car);
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.search-results h2 {
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    color: var(--accent-it);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.search-results-info {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.file-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.file-item-info {
    flex: 1;
}

.file-item-name {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.5;
}

.file-item-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
}

.file-item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-item-meta i {
    color: var(--accent-it);
}

/* Подсветка поиска */
.highlight {
    background: rgba(255, 235, 59, 0.3);
    padding: 2px 4px;
    border-radius: 3px;
}

/* Иконка замка */
.lock-icon {
    color: #f59e0b;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    color: var(--accent-it);
}

/* Навигация */
.back-link-2 {
    text-align: center;
}

.back-link-2 a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-it);
    text-decoration: none;
    font-size: 16px;
    padding: 12px 24px;
    background: var(--panel-bg);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 8px;
    transition: var(--transition);
}

.back-link-2 a:hover {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-it);
    box-shadow: var(--shadow-it);
}

.back-link {
    text-align: center;
    margin-top: 10px;
}

.back-link a {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent-car);
    color: var(--bg-dark);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 0 10px rgba(255, 60, 0, 0.3);
}

.back-link a:hover {
    background: #ff5500;
    transform: translateY(-2px);
    box-shadow: var(--shadow-car);
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    transition: var(--transition);
}

.pagination a:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-it);
}

.pagination .active {
    background: var(--accent-it);
    color: white;
    border-color: var(--accent-it);
}