:root {
    --bg: #070b14;
    --surface: #070b14;
    --surface-2: #0e1522;
    --text: #eef3f8;
    --muted: #9aa8bc;
    --accent: #00b7e0;
    --accent-btn: #00b7e0;
    --accent-btn-text: #041018;
    --line: #2a3648;
    --header-h: 64px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    font-family: Tahoma, Verdana, "Segoe UI", sans-serif;
}

p {
    line-height: 1.55;
    font-weight: 400;
    font-size: 1.15em;
}

h1, h2, h3 {
    line-height: 1.25;
}

h1 { font-size: 1.85em; }
h2 { font-size: 1.55em; }
h3 { font-size: 1.25em; }

a { color: var(--accent); text-decoration: none; }

.content .wrapper a:not(.btn),
.html-block a:not(.btn) {
    text-decoration-line: underline;
    text-underline-offset: 4px;
}

table {
    border-spacing: 0;
    border-collapse: initial;
    font-size: 1.05em;
    width: 100%;
    max-width: 100%;
}

td, th {
    border: 1px solid var(--line);
    padding: 10px 8px;
    word-wrap: break-word;
    line-height: 1.35;
    vertical-align: top;
}

td:first-child,
th:first-child { border-left: none; text-align: left; }

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 { text-align: left; background: rgba(0, 183, 224, 0.08); }

ol {
    font-size: 1.1em;
    padding-inline-start: 45px;
    list-style-type: none;
    counter-reset: num;
}

ol li {
    position: relative;
    margin: 0 0 10px 0;
    padding: 0 0 8px 0;
    line-height: 1.45;
}

ol li:before {
    content: counter(num);
    counter-increment: num;
    display: inline-block;
    position: absolute;
    top: -2px;
    left: -38px;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    color: var(--accent);
}

ul {
    font-size: 1.1em;
    line-height: 1.7;
    padding-inline-start: 22px;
    list-style-type: disc;
    margin-left: 8px;
}

ul li::marker { color: var(--accent); }

.btn {
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
    font-size: 1em;
    padding: 12px 18px;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.02em;
    text-align: center;
}

.btn:hover { transform: translateY(-1px); }

.btn-login {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--accent);
}

.btn-login:hover { background: rgba(0, 183, 224, 0.15); }

.btn-sign-up,
.btn-cta {
    background: var(--accent-btn);
    color: var(--accent-btn-text);
}

.btn-sign-up:hover,
.btn-cta:hover { background: #33c9ea; }

.top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 10px 0;
    min-height: var(--header-h);
}

.top .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    max-width: 1180px;
    margin: 0 auto;
    min-height: 44px;
    position: relative;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    gap: 4px 14px;
    flex-wrap: wrap;
    min-width: 0;
}

.top-nav a {
    color: var(--muted);
    font-size: 0.92em;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
}

.top-nav a:hover,
.top-nav a.active {
    color: var(--text);
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.top .btn {
    margin: 0;
    padding: 9px 12px;
    font-size: 0.92em;
    white-space: nowrap;
}

a.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

a.logo img {
    display: block;
    width: 160px;
    height: 32px;
    max-width: 100%;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.nav-toggle .bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 3px 0;
    background: var(--accent);
    border-radius: 2px;
}

.header-spacer {
    height: var(--header-h);
}

.wrapper {
    max-width: 1180px;
    margin: 0 auto 1em auto;
    padding: 10px 20px;
}

.bottom {
    background: var(--bg);
    width: 100%;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
}

.bottom .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.bottom .bottom-menu {
    margin: 0;
    font-size: 0.95em;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
}

.bottom .bottom-menu a {
    color: var(--muted);
    margin: 0;
    text-decoration: none;
}

.bottom .bottom-menu a:hover { color: var(--text); }

.banner {
    position: relative;
}

.banner a {
    display: block;
    position: relative;
}

.banner picture {
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 600;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.blocks > div {
    background-color: var(--bg);
}

.html-block img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 12px;
}

.content-table {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 14px 0;
    background: var(--bg);
}

.content-table-title {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-bottom: 12px;
    min-height: 1.5em;
    gap: 8px;
}

.content-table-title p {
    margin: 0;
    font-size: 1.15em;
    font-weight: 600;
}

.content-table nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.content-table.active nav {
    max-height: 1200px;
}

.menu-icon,
.menu-arrow {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.menu-arrow { margin-left: auto; }

.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;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.content-table li a { color: var(--text); }

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 1.15em;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
}

.faq-question::after {
    content: "+";
    flex-shrink: 0;
    width: 1.2em;
    text-align: center;
    color: var(--accent);
    font-weight: 700;
}

.faq-item.open .faq-question::after {
    content: "–";
}

.faq-answer {
    display: none;
    padding: 0 0 14px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
}

.cta-row {
    margin: 1.2em 0 0.4em;
}

.age-note {
    color: var(--muted);
    font-size: 0.95em;
}

@media (max-width: 1100px) {
    .top-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: var(--bg);
        border: 1px solid var(--line);
        border-radius: 8px;
        padding: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        z-index: 30;
    }

    .top-nav.open {
        display: flex;
    }

    .top-nav a {
        padding: 12px 10px;
        border-bottom: 1px solid var(--line);
        font-size: 1em;
    }

    .top-nav a:last-child {
        border-bottom: 0;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        margin-left: auto;
    }

    .top-actions {
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    td, th {
        min-width: 140px;
    }
}

@media (max-width: 719px) {
    :root { --header-h: 60px; }

    .banner picture {
        aspect-ratio: 800 / 1000;
    }

    .wrapper {
        padding: 10px 14px;
    }

    h1 { font-size: 1.55em; }
    h2 { font-size: 1.35em; }

    .bottom .bottom-menu {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    :root { --header-h: 56px; }

    a.logo img {
        width: 110px;
        height: 22px;
    }

    .top {
        padding: 8px 0;
    }

    .top .wrapper {
        padding: 0 10px;
        gap: 6px;
    }

    .top-actions {
        gap: 6px;
    }

    .top .btn {
        padding: 8px 9px;
        font-size: 0.78em;
    }

    .nav-toggle {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 360px) {
    a.logo img {
        width: 92px;
        height: 18px;
    }

    .top .btn {
        padding: 7px 7px;
        font-size: 0.72em;
    }

    .top-actions .btn-login {
        display: none;
    }
}
