:root {
    --bg-main: #050816;
    --bg-dark: #0f1724;
    --bg-card: #151e30;
    --accent: #ff2b6b;
    --accent-2: #00e0ff;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
    color: var(--text-main);
    line-height: 1.6;
}

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

a:hover {
    text-decoration: underline;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* HEADER */

header {
    background: rgba(5, 8, 22, 0.98);
    border-bottom: 1px solid #111827;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff2b6b, #ff9f1c);
    display: block;
    object-fit: cover;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text span:first-child {
    font-weight: 700;
    font-size: 16px;
}

.logo-text span:last-child {
    font-size: 11px;
    color: var(--text-muted);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 18px;
    font-size: 14px;
}

nav a {
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}

nav a.active,
nav a:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #fff;
    text-decoration: none;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.header-cta span {
    white-space: nowrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ff2b6b, #ff9f1c);
    color: #fff;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.35);
    text-decoration: none;
}

.btn-primary:hover {
    filter: brightness(1.05);
    text-decoration: none;
}

.age-badge {
    border-radius: 999px;
    border: 1px solid #4b5563;
    padding: 4px 9px;
    font-size: 10px;
    text-transform: uppercase;
}

/* LAYOUT */

.main {
    flex: 1 1 auto;
}

.layout {
    max-width: 1200px;
    margin: 18px auto 40px;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 2.7fr 1.3fr;
    gap: 20px;
}

/* HERO */

.hero {
    background: radial-gradient(circle at top left, #1f2937 0, #020617 60%);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    min-height: 260px;
    display: flex;
    align-items: stretch;
}

.hero-media {
    flex: 2;
    position: relative;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(15,23,42,0.1), rgba(15,23,42,0.9));
}

.hero-main {
    position: absolute;
    inset: 0;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
}

.hero-title {
    font-size: 28px;
    max-width: 380px;
}

.hero-sub {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 420px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid #4b5563;
    color: #e5e7eb;
    background: rgba(15,23,42,0.85);
}

.btn-ghost:hover {
    background: rgba(31,41,55,0.9);
    text-decoration: none;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.hero-badge {
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.35);
    backdrop-filter: blur(8px);
    background: rgba(15,23,42,0.8);
}

.hero-side {
    flex: 1.2;
    padding: 18px 20px;
    background: radial-gradient(circle at top right, #1e293b 0, #020617 55%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.hero-side h2 {
    font-size: 15px;
    margin-bottom: 8px;
}

.hero-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.hero-meta strong {
    color: #e5e7eb;
}

.hero-list {
    list-style: none;
    font-size: 12px;
    color: var(--text-muted);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    margin-top: 8px;
}

/* CONTENT */

.content {
    margin-top: 20px;
    background: rgba(15,23,42,0.95);
    border-radius: var(--radius);
    padding: 20px 20px 24px;
}

.content h1 {
    font-size: 22px;
    margin-bottom: 10px;
}

.content h2 {
    font-size: 18px;
    margin: 22px 0 10px;
}

.content h3 {
    font-size: 16px;
    margin: 18px 0 8px;
}

.content p {
    font-size: 14px;
    color: #e5e7eb;
    margin-bottom: 10px;
}

.content strong {
    color: #fff;
}

/* контентні картинки */

.content-image,
.content-image-wide {
    border-radius: var(--radius);
    display: block;
    margin: 10px auto 14px;
    max-width: 100%;
}

.content-image {
    max-width: 420px;
    width: 100%;
}

.content-image-wide {
    max-width: 100%;
}

figure {
    text-align: center;
    margin: 10px auto 16px;
}

figcaption {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.toc {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: #020617;
}

.toc-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.toc ul {
    list-style: none;
    font-size: 13px;
    display: grid;
    gap: 4px;
}

.toc a {
    color: var(--text-muted);
}

.toc a:hover {
    color: var(--accent-2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 6px;
}

.info-card {
    background: #020617;
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 13px;
}

.info-card span {
    display: block;
}

.info-card span.label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.highlight-box {
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px dashed rgba(148,163,184,0.5);
    background: rgba(15,23,42,0.9);
    font-size: 13px;
}

.highlight-box p {
    margin-bottom: 4px;
}

.tagline {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* FAQ */

.faq {
    margin-top: 24px;
}

.faq h2 {
    margin-bottom: 12px;
}

.faq-item {
    border-top: 1px solid #1f2937;
}

.faq-header {
    cursor: pointer;
    padding: 10px 4px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-header span {
    margin-right: 10px;
}

.faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--text-muted);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    font-size: 13px;
    color: #e5e7eb;
}

.faq-content-inner {
    padding: 0 4px 12px;
}

/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.brand-card {
    background: rgba(15,23,42,0.98);
    border-radius: var(--radius);
    padding: 14px 14px 16px;
    border: 1px solid #111827;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.brand-label {
    font-size: 11px;
    color: var(--text-muted);
}

.brand-logo {
    width: 52px;
    height: 28px;
    border-radius: 6px;
    background: #020617;
    object-fit: contain;
}

.brand-name {
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.brand-name span.badge {
    font-size: 10px;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.35);
    color: #bbf7d0;
}

.brand-bonus {
    font-size: 13px;
    margin-bottom: 12px;
}

.btn-brand {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #ff2b6b, #ff9f1c);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.btn-brand:hover {
    filter: brightness(1.05);
}

.brand-links {
    margin-top: 8px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.brand-links a {
    font-size: 10px;
}

.sidebar-note {
    font-size: 11px;
    color: var(--text-muted);
    padding: 10px 12px;
    border-radius: var(--radius);
    background: #020617;
}

/* FOOTER */

footer {
    border-top: 1px solid #111827;
    background: #020617;
    padding: 18px 16px;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    font-size: 11px;
}

/* RESPONSIVE */

@media (max-width: 992px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .hero {
        flex-direction: column;
        min-height: 0;
    }
    .hero-main {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .hero-title {
        font-size: 22px;
    }
    .hero-sub {
        font-size: 12px;
    }
    .info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .hero-main {
        padding: 16px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}
