:root {
    color-scheme: dark;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #050a12;
    color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100vh;
    height: 100%;
}

body {
    background: linear-gradient(180deg, #1f3d67 0%, #142b49 40%, #0f1725 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #e2e8f0;
}

.page {
    position: relative;
    padding: 32px 16px 48px;
    max-width: 960px;
    margin: 0 auto;
}

.page-header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.cards {
    display: grid;
    gap: 12px;
}

.group-cards {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.group-header {
    grid-column: 1 / -1;
    padding: 0.25rem 0 0.5rem;
}

.group-header h2 {
    margin: 0;
    color: #94a3b8;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
}

.button-card {
    border-radius: 16px;
    background: rgba(30, 45, 72, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.26);
}

.button-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    padding: 0.8rem 1rem;
    color: #e2e8f0;
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.button-card a:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #f8fafc;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
}

@media (max-width: 600px) {
    .page {
        padding: 32px 16px 48px;
    }
    .button-card a {
        min-height: 100px;
    }
}
