:root {
    color-scheme: light;
    --background: #f4f6f8;
    --surface: #ffffff;
    --text: #17202a;
    --muted: #607080;
    --line: #dce3e8;
    --accent: #2255a4;
    --accent-hover: #173f7c;
    --success: #14804a;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.container {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo:hover {
    color: var(--text);
    text-decoration: none;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.nav a {
    color: var(--muted);
    font-size: 15px;
}

.hero {
    padding: 86px 0 54px;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.hero p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 19px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding-bottom: 72px;
}

.card {
    min-height: 210px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.card h2 {
    margin: 0 0 12px;
    font-size: 21px;
}

.card p {
    margin: 0 0 22px;
    color: var(--muted);
}

.content {
    max-width: 820px;
    padding: 62px 0 80px;
}

.content h1 {
    margin-top: 0;
    font-size: 42px;
    line-height: 1.15;
}

.content h2 {
    margin-top: 42px;
    font-size: 26px;
}

.content p,
.content li {
    color: #344454;
}

.content code {
    padding: 2px 6px;
    background: #e9eef2;
    border-radius: 4px;
    font-family: "Cascadia Code", Consolas, monospace;
}

.status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0;
    padding: 18px 20px;
    background: #edf8f2;
    border: 1px solid #b9e2cc;
    border-radius: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(20, 128, 74, 0.12);
}

.status strong {
    color: var(--success);
}

.meta {
    color: var(--muted);
    font-size: 14px;
}

.footer {
    padding: 26px 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.error-page {
    min-height: calc(100vh - 136px);
    display: flex;
    align-items: center;
}

.error-code {
    margin: 0;
    font-size: 90px;
    line-height: 1;
    color: var(--accent);
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 58px;
    }
}
