:root {
    --brand: #1e5a9e;
    --brand-light: #3b82c4;
    --brand-glow: rgba(59, 130, 196, 0.35);
    --bg-0: #0a1220;
    --bg-1: #0f1a2e;
    --bg-2: #152845;
    --text: #e8eef7;
    --text-muted: #9aabc2;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(30, 90, 158, 0.25), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(59, 130, 196, 0.18), transparent 50%),
        linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 196, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 196, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 18, 32, 0.7);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.nav-brand span {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--text); }

@media (max-width: 720px) {
    .nav-links { display: none; }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lang-switch:hover {
    background: var(--surface-hover);
    border-color: var(--brand-light);
    color: var(--text);
}

main {
    flex: 1;
    padding: 4rem 0 5rem;
}

.doc {
    max-width: 820px;
    margin: 0 auto;
}

.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.75rem;
    transition: color 0.2s ease;
}

.doc-back:hover { color: var(--brand-light); }

.doc-label {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--brand-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.doc h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #9aabc2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.doc-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.doc-body h2 {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.005em;
}

.doc-body p {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.doc-body strong { color: var(--text); font-weight: 600; }

.doc-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.doc-body li {
    color: var(--text-muted);
    font-size: 0.96rem;
    line-height: 1.65;
    padding-left: 1.3rem;
    position: relative;
    margin-bottom: 0.55rem;
}

.doc-body li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-light);
}

.doc-body a {
    color: var(--brand-light);
    text-decoration: none;
}

.doc-body a:hover { text-decoration: underline; }

footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover { color: var(--brand-light); }

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

.footer-copy { font-size: 0.85rem; }
