:root {
    --bg: #12081F;
    --bg-soft: #1E1033;
    --bg-header: #1A0C2E;
    --bg-footer: #1A0C2E;
    --surface: #2A1648;
    --text: #F8F4FF;
    --muted: #CDBFE0;
    --gold: #F0B429;
    --orange: #E85D18;
    --link: #FFD56A;
    --border: #4A3068;
    --cta-text: #1A0A00;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

p {
    line-height: 1.55;
    font-weight: 400;
    font-size: 1.15em;
}

h1 { font-size: 2em; line-height: 1.2; margin: 0.6em 0 0.5em; }
h2 { font-size: 1.55em; line-height: 1.25; margin: 1.2em 0 0.55em; }
h3 { font-size: 1.25em; line-height: 1.3; margin: 1em 0 0.4em; }

a { color: var(--link); text-decoration: none; }
.content a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    font-size: 1.05em;
    margin: 1em 0 1.4em;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

th, td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    word-wrap: break-word;
    line-height: 1.35;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--surface);
    font-weight: 600;
}

ul, ol {
    font-size: 1.1em;
    line-height: 1.55;
    padding-inline-start: 1.4em;
}

ul li::marker { color: var(--gold); }

ol {
    list-style-type: none;
    counter-reset: num;
    padding-inline-start: 2.6em;
}

ol li {
    position: relative;
    margin: 0 0 12px;
    padding-bottom: 4px;
    line-height: 1.45;
}

ol li::before {
    content: counter(num);
    counter-increment: num;
    position: absolute;
    left: -2.2em;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-align: center;
    line-height: 26px;
    font-size: 0.9em;
    font-weight: 600;
}

.btn {
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
    font-size: 1em;
    padding: 11px 16px;
    display: inline-block;
    width: fit-content;
    text-align: center;
    white-space: nowrap;
}

.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn-login {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--gold);
}

.btn-sign-up,
.btn-cta {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
    color: var(--cta-text);
    box-shadow: 0 4px 14px rgba(232, 93, 24, 0.35);
}

.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 10px 0;
    background: rgba(26, 12, 46, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.top .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 12px;
    min-height: 48px;
}

.header-spacer {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    overflow: hidden;
}

.logo img {
    display: block;
    height: 42px;
    width: auto;
    max-width: min(180px, 100%);
    object-fit: contain;
    object-position: left center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    max-width: none;
}

.header-actions .btn {
    margin: 0;
    padding: 9px 12px;
    font-size: 0.92em;
}

.hamburger-box {
    position: relative;
    display: none;
    flex: 0 0 auto;
    margin-right: 2px;
}

.checkbox {
    position: absolute;
    width: 40px;
    height: 40px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 5;
}

.hamburger {
    display: block;
    width: 40px;
    height: 40px;
    z-index: 3;
}

.hamburger-lines {
    height: 22px;
    width: 28px;
    margin: 9px auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-lines .line {
    display: block;
    height: 3px;
    width: 100%;
    border-radius: 4px;
    background: var(--gold);
}

.hamburger-lines .line1 { transform-origin: 0% 0%; transition: transform .3s ease; }
.hamburger-lines .line2 { transition: transform .2s ease; }
.hamburger-lines .line3 { transform-origin: 0% 100%; transition: transform .3s ease; }

.top-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0 12px;
    justify-content: center;
}

.top-menu a {
    color: var(--muted);
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: .02em;
    white-space: nowrap;
}

.top-menu a:hover { color: #fff; }

.wrapper {
    max-width: 1180px;
    margin: 0 auto 1em;
    padding: 10px 20px;
}

.banner {
    position: relative;
    margin: 0 auto 1.2em;
}

.banner a {
    display: block;
    position: relative;
    text-decoration: none;
}

.banner picture {
    display: block;
    width: 100%;
}

.banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    background: var(--bg-soft);
    aspect-ratio: 1920 / 600;
    object-fit: cover;
}

.content-intro .btn-cta {
    margin: 0.4em 0 1.2em;
    font-size: 1.1em;
    padding: 13px 22px;
}

.content-table {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px 0;
    background: var(--bg-soft);
    margin-bottom: 1.5em;
}

.content-table-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-bottom: 12px;
    gap: 8px;
    user-select: none;
}

.content-table-title p {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.content-table nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.content-table.active nav {
    max-height: 800px;
}

.menu-icon, .menu-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.menu-arrow { margin-left: auto; transition: transform .25s ease; }
.content-table.active .menu-arrow { transform: rotate(180deg); }

.content-table ul {
    padding-inline-start: 0;
    margin: 0 0 8px;
}

.content-table li {
    list-style: none;
    margin-bottom: 12px;
    font-size: 1.05em;
    font-weight: 500;
}

.content-table li a {
    color: var(--link);
}

.article-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0 1em;
}

.faq-block h3 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.bottom {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 24px 0 18px;
    margin-top: 2em;
}

.bottom .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.bottom-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    justify-content: center;
    font-size: 0.95em;
}

.bottom-menu a { color: var(--muted); }
.bottom-menu a:hover { color: #fff; }

.bottom-copy {
    text-align: center;
    color: var(--muted);
    font-size: 0.95em;
    margin: 0.5em auto;
}

@media (max-width: 1100px) {
    .top > .wrapper > .top-menu { display: none; }

    .hamburger-box { display: block; }

    .logo {
        flex: 1 1 0;
        margin-right: 0;
    }

    .header-actions .btn-sign-up { display: none; }

    .hamburger-box .top-menu { display: none; }

    .hamburger-box input:checked ~ .top-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 18px 8% 28px;
        background: rgba(12, 6, 22, 0.97);
        border-bottom: 1px solid var(--border);
        gap: 0;
        z-index: 90;
    }

    .hamburger-box input:checked ~ .top-menu a {
        display: block;
        line-height: 2.2;
        font-size: 1.15em;
        border-bottom: 1px solid rgba(74, 48, 104, 0.5);
        padding: 2px 0;
    }

    .hamburger-box input:checked ~ .top-menu a.menu-cta {
        display: block;
        margin: 14px 0 6px;
        padding: 12px 16px;
        text-align: center;
        text-transform: none;
        letter-spacing: 0;
        font-weight: 700;
        font-size: 1.05em;
        line-height: 1.3;
        border-bottom: none;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
        color: var(--cta-text);
    }

    .hamburger-box input:checked ~ .hamburger .line1 {
        transform: rotate(45deg);
    }
    .hamburger-box input:checked ~ .hamburger .line2 {
        transform: scaleY(0);
    }
    .hamburger-box input:checked ~ .hamburger .line3 {
        transform: rotate(-45deg);
    }
}

@media (max-width: 719px) {
    .banner img {
        aspect-ratio: 800 / 1000;
    }

    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th, td {
        min-width: 120px;
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .header-spacer { height: 60px; }

    .top {
        padding: 8px 0;
    }

    .top .wrapper {
        padding: 0 8px;
        gap: 6px;
        min-height: 44px;
    }

    .logo img {
        height: 28px;
        max-width: 100%;
    }

    .header-actions .btn {
        padding: 8px 12px;
        font-size: 0.82em;
        border-radius: 6px;
        line-height: 1.2;
    }

    .hamburger-lines {
        width: 22px;
        height: 16px;
        margin: 10px auto;
    }

    .checkbox, .hamburger {
        width: 32px;
        height: 32px;
    }

    h1 { font-size: 1.55em; }
    h2 { font-size: 1.3em; }
    p { font-size: 1.05em; }

    .wrapper { padding: 8px 14px; }

    .content-intro .btn-cta {
        width: 100%;
        text-align: center;
        font-size: 1em;
    }
}

@media (max-width: 360px) {
    .top .wrapper {
        gap: 4px;
        padding: 0 6px;
    }

    .logo img {
        height: 24px;
    }

    .header-actions .btn {
        padding: 7px 10px;
        font-size: 0.78em;
    }

    .checkbox, .hamburger {
        width: 30px;
        height: 30px;
    }
}