html {
    color-scheme: light dark;
}

/* 🌑 DARK */
:root {
    --bg: #0f172a;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --card: #1f2937;
    --border: #374151;
    --hover: #2a3441;

    --link: #e5e7eb;
}

/* ☀️ LIGHT (строго серый, без синего) */
@media (prefers-color-scheme: light) {
    :root {
        --bg: #f3f4f6;
        --text: #111827;
        --muted: #6b7280;
        --card: #ffffff;
        --border: #d1d5db;
        --hover: #e5e7eb;

        --link: #111827;
    }
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    transition: background 0.2s ease, color 0.2s ease;
}

.container {
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

a {
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--card);
    color: var(--link);
    border: 1px solid var(--border);
    transition: 0.2s ease;
    min-width: 140px;
    display: inline-block;
}

a:hover {
    background: var(--hover);
    transform: translateY(-2px);
}

.footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--muted);
}

/* убираем браузерный синий акцент */
a:focus {
    outline: 2px solid #9ca3af;
    outline-offset: 2px;
}

img {
    max-height: 300px;
    width: auto;
    display: block;
    margin: 0 auto;
}
