:root {
    --primary: #7c0de5;
    --secondary: #610ab2;
    --tertiary: #baea06;
    --danger: #ff4141;
    --black: #000000;
    --white: #ffffff;
    --white50: rgba(255, 255, 255, 0.5);
    --white10: rgba(255, 255, 255, 0.1);
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    height: 100%;
    overflow: auto;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

@media screen and (max-width: 400px) {
    h1 {
        font-size: 1.5rem;
    }
}

.container {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 2rem;
    background-color: var(--white10);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: var(--tertiary);
    color: var(--black);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover, .btn:focus {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    outline: none;
}

.loader {
    border: 5px solid var(--white10);
    border-top: 5px solid var(--tertiary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Улучшения доступности */
a:focus, button:focus {
    outline: 2px solid var(--tertiary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .loader {
        animation: none;
        border-top-color: transparent;
    }
    
    .btn:hover, .btn:focus {
        transform: none;
    }
}

.noscript-warning {
    padding: 2rem;
    background-color: var(--danger);
    color: var(--white);
    border-radius: 8px;
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.noscript-warning h2 {
    margin-top: 0;
    color: var(--white);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

noscript {
    display: block !important;
}

/* Для скринридеров */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}