:root {
    --bg-main: #050919;
    --bg-card: #11152a;
    --bg-card-soft: #1b2140;
    --accent: #4fd1ff;
    --accent-soft: #2f80ff;
    --text-main: #ffffff;
    --text-muted: #c8cde8;
    --radius-lg: 24px;
    --shadow-soft: 0 22px 40px rgba(0, 0, 0, 0.45);
}

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

html {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    background: #050919;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #050919;
    background: radial-gradient(circle at top, #1b2750 0, #050919 55%, #02030a 100%);
    color: var(--text-main);
    line-height: 1.5;
}

a {
    color: inherit;
}

.page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 32px 16px 80px;
}

.breadcrumbs {
    max-width: 1120px;
    margin: 0 auto 24px;
    padding: 20px 16px 0;
    font-size: 14px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 6px;
    color: rgba(200, 205, 232, 0.55);
}

.breadcrumbs a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s ease;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs li:last-child span {
    color: var(--text-muted);
}

.docs-hero {
    text-align: center;
    margin-bottom: 36px;
}

.badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(79, 209, 255, 0.12);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.docs-hero h1 {
    margin-bottom: 12px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0;
}

.subtitle {
    max-width: 760px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 15px;
}

.docs-section {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #11152a, #151a34);
    box-shadow: var(--shadow-soft);
}

.docs-section::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top left, rgba(79, 209, 255, 0.10) 0, transparent 55%);
    pointer-events: none;
}

.docs-section + .docs-section {
    margin-top: 18px;
}

.docs-section h2 {
    position: relative;
    z-index: 1;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 700;
}

.docs-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.doc-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.doc-card:hover,
.doc-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(79, 209, 255, 0.35);
    background: rgba(79, 209, 255, 0.06);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.28);
    outline: none;
}

.doc-card-icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent));
    box-shadow: 0 12px 20px rgba(47, 128, 255, 0.28);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.doc-card-body h3 {
    margin-bottom: 6px;
    font-size: 16px;
    line-height: 1.3;
}

.doc-card-body p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.docs-empty {
    padding: 20px 0 4px;
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
}

@media (max-width: 640px) {
    .page {
        padding: 24px 14px 56px;
    }

    .breadcrumbs {
        margin-bottom: 18px;
        padding: 16px 14px 0;
    }

    .docs-hero h1 {
        font-size: 28px;
    }

    .docs-section {
        padding: 18px;
        border-radius: 18px;
    }

    .docs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .doc-card {
        min-height: 0;
    }
}
