* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #111;
    color: #e0e0e0;
    font-family: system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Заголовок */
.header {
    width: min(90%, 900px);       /* чуть меньше экрана */
    background: #1c1c1c;          /* фон шапки — темнее */
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    font-weight: 500;
}

/* Окно со ссылками */
.links {
    width: min(90%, 900px);       /* та же ширина */
    max-height: 70vh;             /* ограничение по высоте → появляется прокрутка */
    overflow-y: auto;             /* вертикальная прокрутка */
    background: #1f1f1f;          /* фон окна — чуть светлее шапки */
    padding: 20px;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    gap: 12px;                    /* пробелы между ссылками */
}

.links a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 6px;
    background: #262626;
    transition: background 0.15s;
}

.links a:hover {
    background: #333;
    color: #fff;
}
