﻿:root {
    --bg: #0b0b0b;
    --surface: #17140f;
    --surface-2: #221c14;
    --gold: #F4D483;
    --gold-hover: #ffe6a8;
    --gold-dark: #c4a45a;
    --text: #f5f5f5;
    --muted: #c8c2b6;
    --line: #3a3226;
    --header-h: 72px;
}

* {
    box-sizing: border-box;
}

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

p {
    line-height: 1.5em;
    font-weight: 400;
    font-size: 1.2em;
}

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

.content .wrapper a:not(.btn),
.html-block a:not(.btn) {
    text-decoration-line: underline;
    text-underline-offset: 4px;
}

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

table {
    border-spacing: 0;
    border-collapse: initial;
    font-size: 1.2em;
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
    background: var(--surface);
}

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

td:first-child,
th:first-child {
    border-left: none;
}

td:last-child,
th:last-child {
    border-right: none;
}

tr:first-child td,
tr:first-child th {
    border-top: none;
}

tr:last-child td {
    border-bottom: none;
}

tr:first-child th {
    border-bottom: 1px solid var(--line);
}

th {
    background: var(--surface-2);
    color: var(--gold);
}

ol {
    font-size: 1.2em;
    line-height: 1.5em;
    padding-inline-start: 45px;
    list-style-type: none;
    counter-reset: num;
}

ol li {
    position: relative;
    margin: 0 0 10px 0;
    padding: 0 0 10px 0;
    line-height: 1.4;
}

ol li:before {
    content: counter(num);
    counter-increment: num;
    display: inline-block;
    position: absolute;
    top: -5px;
    left: -38px;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    color: var(--gold);
}

ul {
    font-size: 1.2em;
    line-height: 1.7em;
    padding-inline-start: 20px;
    list-style-type: disc;
    margin: 1em 0 1em 10px;
}

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

.btn {
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
    font-size: 1.05em;
    padding: 12px 18px;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    background: var(--gold);
    color: #111 !important;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    background: var(--gold-hover);
}

.btn-login {
    background: transparent;
    color: var(--gold) !important;
    border: 1px solid var(--gold);
}

.btn-login:hover {
    background: rgba(212, 175, 55, 0.12);
}

.btn-sign-up {
    background: var(--gold);
    color: #111 !important;
}

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

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

.top .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 0 15px;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    flex-wrap: nowrap;
    overflow: visible;
}

.top .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 120px;
}

.top .logo img {
    display: block;
    width: auto;
    height: 40px;
    max-width: 100%;
    object-fit: contain;
}

.top-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 6px 14px;
    margin: 0 12px;
    min-width: 0;
}

.top-menu a {
    color: var(--muted);
    font-size: 0.95em;
    text-decoration: none;
    white-space: nowrap;
}

.top-menu a:hover,
.top-menu a[aria-current="page"] {
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
}

.top .btn {
    margin: 0;
    font-size: 0.95em;
    padding: 10px 14px;
    flex: 0 0 auto;
}

.menu-toggle {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    flex: 0 0 40px;
}

.menu-toggle .line {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--gold);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] .line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .line:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.header-spacer {
    height: var(--header-h);
    flex-shrink: 0;
}

.banner-mobile-cta {
    display: none;
}

.banner {
    position: relative;
}

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

.banner picture {
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 600;
    background: var(--surface);
    border-radius: 10px;
    overflow: hidden;
}

.banner img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.blocks > div:nth-child(odd) {
    background-color: var(--surface);
}

.blocks > div:nth-child(even) {
    background-color: var(--bg);
}

.content-table {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 16px 0;
    background: var(--surface-2);
}

.content-table-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-bottom: 14px;
    min-height: 1.5em;
    gap: 8px;
}

.content-table-title p {
    margin: 0;
    font-size: 1.25em;
    font-weight: 600;
    color: var(--gold);
}

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

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

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

.content-table li {
    list-style: none;
    margin-bottom: 14px;
    font-size: 1.15em;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.html-block img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 10px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 8px 0 12px;
}

.faq-item h3 {
    font-size: 1.25em;
    margin: 0.6em 0 0.35em;
}

.faq-item p {
    margin: 0.4em 0 0.2em;
    color: var(--muted);
}

.bottom {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 24px 0 18px;
}

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

.bottom .logo img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 110px;
}

.bottom-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
}

.bottom-menu a {
    color: var(--muted);
    font-size: 1em;
}

.bottom-menu a:hover {
    color: var(--gold);
}

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

@media (max-width: 1100px) {
    .top-menu {
        gap: 4px 10px;
        margin: 0 8px;
    }

    .top-menu a {
        font-size: 0.88em;
    }

    .top .btn {
        font-size: 0.88em;
        padding: 9px 12px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 56px;
    }

    .top {
        padding: 0;
        height: var(--header-h);
    }

    .top .wrapper {
        height: var(--header-h);
        min-height: var(--header-h);
        max-height: var(--header-h);
        padding: 0 10px;
        gap: 6px;
        flex-wrap: nowrap;
        position: relative;
    }

    .top .logo {
        max-width: 72px;
        flex: 0 0 auto;
    }

    .top .logo img {
        height: 28px;
        width: auto;
        max-width: 72px;
    }

    .menu-toggle {
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        order: 3;
        width: 36px;
        height: 36px;
        min-width: 36px;
        flex: 0 0 36px;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        gap: 5px;
        flex: 0 1 auto;
        max-width: calc(100% - 120px);
        overflow: hidden;
    }

    .top .btn {
        font-size: 0.78em;
        padding: 8px 9px;
        border-radius: 5px;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        margin: 0;
        padding: 8px 12px 12px;
        flex: none;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0;
        border-top: 1px solid var(--line);
        background: rgba(11, 11, 11, 0.98);
        z-index: 101;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    }

    .top-menu.is-open {
        display: flex;
    }

    .top-menu a {
        display: block;
        padding: 12px 4px;
        font-size: 1.05em;
        border-bottom: 1px solid var(--line);
        color: var(--text);
    }

    .top-menu a:last-child {
        border-bottom: none;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        table-layout: auto;
        -webkit-overflow-scrolling: touch;
    }

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

@media (max-width: 719px) {
    .wrapper {
        padding: 10px 14px;
    }

    .banner picture {
        aspect-ratio: 800 / 1000;
    }

    .banner-mobile-cta {
        display: block;
        margin: 12px 0 4px;
        min-height: 48px;
    }

    .banner-mobile-cta .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        font-size: 1.05em;
    }

    h1 { font-size: 1.55em; }
    h2 { font-size: 1.35em; }
    h3 { font-size: 1.15em; }

    p, ul, ol, table {
        font-size: 1.05em;
    }
}

@media (max-width: 400px) {
    .top .logo {
        max-width: 56px;
    }

    .top .logo img {
        height: 24px;
        max-width: 56px;
    }

    .header-actions {
        gap: 4px;
        max-width: calc(100% - 100px);
    }

    .top .btn {
        font-size: 0.72em;
        padding: 7px 7px;
    }

    .top .btn-login {
        padding-left: 6px;
        padding-right: 6px;
    }

    .menu-toggle {
        width: 34px;
        height: 34px;
        min-width: 34px;
        flex-basis: 34px;
    }
}

@media (max-width: 340px) {
    .top .btn-login {
        display: none;
    }

    .header-actions {
        max-width: none;
    }
}
