:root {
    --bg: #041b34;
    --bg-strong: #06182e;
    --bg-panel: #082440;
    --bg-soft: #0b2e46;
    --surface: #123a55;
    --text: #f4f7fb;
    --muted: #b9c7d6;
    --purple: #a24bff;
    --violet: #c66bff;
    --magenta: #ff5bcf;
    --gold: #f7c86b;
    --border: rgba(216, 226, 238, 0.18);
    --shadow: 0 18px 44px rgba(2, 8, 24, 0.36);
    font-family: Inter, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg), var(--bg-panel) 48%, var(--bg));
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.sr-only,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 20;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--gold);
    color: #06182e;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(4, 27, 52, 0.9);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.header-inner,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand-link img,
.footer-brand img {
    width: 90px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
}

.nav-button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.nav-item.is-active > .nav-link,
.nav-link:hover,
.nav-link:focus {
    color: #ffffff;
    background: rgba(198, 107, 255, 0.14);
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 210px;
    padding: 8px;
    background: rgba(6, 24, 46, 0.98);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    color: var(--muted);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.dropdown a:hover,
.dropdown a:focus {
    color: #ffffff;
    background: rgba(255, 91, 207, 0.13);
}

.header-actions {
    display: flex;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(180deg, var(--violet), var(--purple));
    box-shadow: 0 0 28px rgba(198, 107, 255, 0.34);
}

.button-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(255, 91, 207, 0.28);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    padding: 9px;
}

.menu-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
}

.hero {
    position: relative;
    min-height: clamp(430px, 68vh, 560px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--bg-strong);
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 27, 52, 0.94), rgba(4, 27, 52, 0.62) 47%, rgba(4, 27, 52, 0.24)),
        linear-gradient(180deg, rgba(4, 27, 52, 0.08), rgba(4, 27, 52, 0.88));
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 58px;
}

.hero h1,
.article-content h2,
.article-content h3 {
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 0.98;
}

.hero h1 {
    max-width: 790px;
    margin: 14px 0 18px;
    font-size: clamp(44px, 6vw, 67px);
}

.hero p {
    max-width: 650px;
    margin: 0 0 24px;
    color: #e8eef6;
    font-size: 18px;
}

.hero-cta {
    min-width: 150px;
}

.breadcrumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

.content-shell {
    background: linear-gradient(180deg, var(--bg), var(--bg-soft));
}

.content-wrap {
    width: min(1060px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 76px;
}

.table-of-contents {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 34px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.table-of-contents a {
    padding: 8px 12px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(18, 58, 85, 0.78);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 800;
}

.article-content {
    max-width: 850px;
}

.article-content h2 {
    margin: 44px 0 18px;
    font-size: clamp(34px, 4.4vw, 48px);
}

.article-content h3 {
    margin: 30px 0 12px;
    font-size: clamp(25px, 3vw, 34px);
}

.article-content p,
.article-content li,
.article-content td,
.article-content th {
    font-size: 16px;
}

.article-content p,
.article-content li {
    color: #d8e2ee;
}

.article-content ul,
.article-content ol {
    padding-left: 22px;
}

.article-content li + li {
    margin-top: 8px;
}

.article-content img {
    margin: 24px 0;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(6, 24, 46, 0.7);
}

.table-scroll {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
    background: rgba(6, 24, 46, 0.74);
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    color: #ffffff;
    background: rgba(162, 75, 255, 0.16);
}

td {
    color: #d8e2ee;
}

.site-footer {
    background: #06182e;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 34px 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #ffffff;
}

.disclaimer {
    max-width: 390px;
    margin: 0 0 0 auto;
    color: #aebccb;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 880px) {
    body.menu-open {
        overflow: hidden;
    }

    .header-inner {
        min-height: 68px;
        gap: 12px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 68px 0 auto 0;
        display: none;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        padding: 16px;
        background: rgba(4, 27, 52, 0.98);
        border-bottom: 1px solid var(--border);
    }

    .site-nav.is-open {
        display: block;
    }

    .nav-item {
        margin-bottom: 8px;
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0 10px;
    }

    .dropdown {
        position: static;
        min-width: 0;
        margin: 6px 0 0 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(8, 36, 64, 0.82);
    }

    .header-actions {
        display: none;
    }

    .hero {
        min-height: 390px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(4, 27, 52, 0.5), rgba(4, 27, 52, 0.96));
    }

    .hero-content {
        padding: 76px 0 40px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 52px);
    }

    .hero p {
        font-size: 16px;
    }

    .content-wrap {
        padding: 36px 0 56px;
    }

    .article-content h2 {
        margin-top: 36px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .disclaimer {
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .header-inner,
    .footer-inner,
    .hero-content,
    .content-wrap {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: 360px;
    }

    .button {
        padding: 0 14px;
    }

    .table-of-contents {
        display: block;
    }

    .table-of-contents a {
        display: block;
        margin-bottom: 8px;
    }

    .article-content p,
    .article-content li,
    .article-content td,
    .article-content th {
        font-size: 15px;
    }
}
