﻿:root {
    --bg: #0b0a12;
    --surface: #1a1218;
    --surface-2: #241820;
    --text: #f3eee6;
    --muted: #c8bdb0;
    --gold: #d4af37;
    --gold-soft: #e8c96a;
    --burgundy: #9e1b32;
    --burgundy-deep: #6e1224;
    --line: #3a2a32;
    --header-h: 72px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    font-family: Georgia, "Times New Roman", Times, serif;
    line-height: 1.55;
}

p { line-height: 1.6; font-weight: 400; margin: 0 0 1em; }
a { color: var(--gold-soft); text-decoration: none; }
.content a:not(.btn) {
    text-decoration: underline;
    text-underline-offset: 3px;
}
h1, h2, h3, h4 {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.25;
    margin: 1.2em 0 0.6em;
    color: var(--text);
}
h1 { font-size: 1.85rem; margin-top: 0; }
h2 { font-size: 1.45rem; border-left: 3px solid var(--gold); padding-left: 0.55em; scroll-margin-top: calc(var(--header-h) + 12px); }
h3 { font-size: 1.2rem; color: var(--gold-soft); }
#faq { scroll-margin-top: calc(var(--header-h) + 12px); }

table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 1em 0 1.5em;
    background: var(--surface);
}
caption {
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--gold);
}
th, td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    word-wrap: break-word;
}
th {
    background: var(--surface-2);
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 700;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-inline-start: 1.4em;
}
ul li::marker { color: var(--gold); }
ol { list-style: none; counter-reset: num; padding-inline-start: 2.4em; }
ol li {
    position: relative;
    margin: 0 0 0.7em;
    padding: 0 0 0.2em;
}
ol li:before {
    content: counter(num);
    counter-increment: num;
    position: absolute;
    left: -2.2em;
    top: 0;
    width: 1.7em;
    height: 1.7em;
    border: 1px solid var(--gold);
    border-radius: 50%;
    text-align: center;
    line-height: 1.6em;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85em;
    color: var(--gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    border: none;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--gold-soft) 0%, var(--gold) 55%, #b8922a 100%);
    color: #1a1008;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn-login {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--gold);
}
.btn-login:hover { background: rgba(212, 175, 55, 0.12); filter: none; }
.btn-sign-up {
    background: linear-gradient(180deg, #c62845 0%, var(--burgundy) 50%, var(--burgundy-deep) 100%);
    color: #fff;
}
.cta-main {
    margin: 0.4em 0 1.4em;
    padding: 14px 22px;
    font-size: 1.05rem;
}

.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    min-height: var(--header-h);
    background: rgba(14, 10, 16, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}
.top .wrapper {
    max-width: 1180px;
    margin: 0 auto;
    min-height: var(--header-h);
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.top .btn { margin: 0; padding: 10px 14px; font-size: 0.9rem; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo {
    display: flex;
    align-items: center;
    margin-right: 12px;
    flex-shrink: 0;
    min-width: 0;
}
.logo img {
    display: block;
    width: 57px;
    height: 45px;
    object-fit: contain;
}
.header-spacer { height: var(--header-h); }

.top-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    margin: 0 auto 0 8px;
    font-family: Arial, Helvetica, sans-serif;
}
.top-menu a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.top-menu a:hover { color: var(--gold); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--surface-2);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nav-toggle-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
}
.nav-toggle-lines span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.top.is-open .nav-toggle-lines span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.top.is-open .nav-toggle-lines span:nth-child(2) { opacity: 0; }
.top.is-open .nav-toggle-lines span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 19;
    background: rgba(11, 10, 18, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 20px;
    font-family: Arial, Helvetica, sans-serif;
}
.top.is-open .mobile-nav { display: block; }
.mobile-nav a {
    display: block;
    padding: 14px 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--gold); }
.mobile-nav a:last-child { border-bottom: none; }
body.nav-open { overflow: hidden; }

.wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 16px;
}

.banner { margin: 12px 0 8px; }
.banner a {
    display: block;
    position: relative;
    text-decoration: none;
    width: 100%;
    aspect-ratio: 1350 / 422;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--surface);
    overflow: hidden;
}
.banner picture,
.banner img {
    display: block;
    width: 100%;
    height: 100%;
}
.banner img {
    object-fit: cover;
    border-radius: 8px;
}

.content .html-block { padding-top: 8px; padding-bottom: 8px; }
.blocks > div:nth-child(odd) {
    background: var(--surface);
}
.blocks > div:nth-child(odd) .wrapper {
    border-radius: 0;
}
.blocks section { padding: 0.4em 0 1em; }

.content-table {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px 14px 0;
    margin: 1em 0 1.5em;
    background: var(--surface-2);
}
.content-table-title {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding-bottom: 14px;
    min-height: 1.5em;
    font-family: Arial, Helvetica, sans-serif;
}
.content-table-title p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}
.content-table nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out;
}
.content-table.active nav { max-height: 800px; }
.content-table ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}
.content-table li {
    margin-bottom: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
}
.menu-icon, .menu-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.menu-arrow { margin-left: auto; }

.faq-question {
    padding: 12px 8px 12px 0;
    border-bottom: 1px solid var(--line);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}
.faq-question p { margin: 0; }
.faq-answer { padding: 0.4em 0 1em; color: var(--muted); }
.faq-answer p { margin: 0.4em 0 0; }

.bottom {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 24px 0 32px;
    margin-top: 1em;
}
.bottom .wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.bottom-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.92rem;
}
.bottom-menu a { color: var(--muted); text-decoration: none; }
.bottom-menu a:hover { color: var(--gold); }
.copyright {
    margin: 12px auto 0;
    text-align: center;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .top-menu { display: none; }
    .nav-toggle { display: inline-flex; }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .top .btn { padding: 10px 12px; font-size: 0.85rem; }
    .logo img { width: 51px; height: 40px; }
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    th, td { min-width: 140px; }
}

@media (max-width: 719px) {
    :root { --header-h: 60px; }
    body { font-size: 15px; }
    h1 { font-size: 1.55rem; }
    h2 { font-size: 1.28rem; }
    .banner a { aspect-ratio: 800 / 1000; }
    .header-actions { gap: 6px; }
    .btn-login { padding: 10px 10px; }
    .cta-main {
        width: 100%;
        text-align: center;
        white-space: normal;
        min-height: 48px;
    }
}

@media (max-width: 420px) {
    .btn-login { display: none; }
    .top .btn-sign-up { padding: 11px 14px; }
}

.top-menu a.is-active,
.mobile-nav a.is-active {
    color: var(--gold);
}

