:root {
    --color-bg: #1A1A1D;
    --color-gray: #4E4E50;
    --color-dark-red: #6F2232;
    --color-magenta: #950740;
    --color-bright-red: #C3073F;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

/* Исправленный универсальный селектор */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: #ffffff;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

.nav-toggle {
    position: fixed;
    top: 25px;
    left: 25px;
    background: transparent;
    border: none;
    color: var(--color-gray);
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle:hover {
    color: var(--color-bright-red);
    transform: scale(1.1);
}

.nav-toggle svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

.page {
    display: none;
    opacity: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    min-height: 100vh;
    transition: opacity 0.5s ease, transform 0.5s ease;
    transform: translateY(10px);
}

.page.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.logo-container h1 {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 15vw, 8rem);
    line-height: 0.85;
    color: var(--color-bright-red);
    text-transform: uppercase;
    transform: skew(-6deg);
    text-align: center;
}

.logo-container .highlight {
    color: var(--color-dark-red);
}

.subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 3vw, 1.3rem);
    letter-spacing: 3px;
    margin-top: 25px;
    text-align: center;
    text-transform: uppercase;
}

.exhibition-btn {
    margin-top: 45px;
    padding: 14px 40px;
    background: transparent;
    border: 2px dashed var(--color-gray);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
}

.exhibition-btn:hover {
    border-color: var(--color-bright-red);
    background: rgba(195, 7, 63, 0.1);
}

.panel-container {
    width: 100%;
    max-width: 800px;
}

section {
    background: rgba(255, 255, 255, 0.02);
    border-left: 5px solid var(--color-dark-red);
    padding: 35px;
    margin-bottom: 35px;
}

h2 {
    font-family: var(--font-heading);
    color: var(--color-bright-red);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.drop-zone {
    border: 2px dashed var(--color-gray);
    padding: 50px 20px;
    text-align: center;
    color: var(--color-gray);
    cursor: pointer;
    transition: 0.3s;
}

.drop-zone.dragover {
    background: rgba(149, 7, 64, 0.15);
    border-color: var(--color-magenta);
}

.action-btn {
    width: 100%;
    padding: 18px;
    background: var(--color-magenta);
    border: none;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s;
}

.action-btn:hover {
    background: var(--color-bright-red);
}

.empty-state {
    text-align: center;
    color: var(--color-gray);
    padding: 30px;
}

.file-list {
    list-style: none;
}

.file-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--color-gray);
    background: rgba(26, 26, 29, 0.5);
    gap: 15px;
}

.file-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.8rem;
    color: var(--color-gray);
    margin-top: 5px;
}

.file-actions {
    display: flex;
    gap: 10px;
}

.download-btn, .delete-btn {
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: 0.2s;
}

.download-btn {
    background: var(--color-dark-red);
}

.download-btn:hover {
    background: var(--color-bright-red);
}

.delete-btn {
    background: transparent;
    border: 1px solid var(--color-gray);
}

.delete-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

footer {
    padding: 40px;
    text-align: center;
    margin-top: auto;
}

.footer-link svg {
    width: 32px;
    fill: var(--color-gray);
    transition: 0.3s;
}

.footer-link svg:hover {
    fill: var(--color-bright-red);
}