/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0d1117;
    --bg-surface: #161b22;
    --bg-hover: #1c2333;
    --border: #30363d;
    --text: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-green: #00d26a;
    --accent-green-hover: #00b35a;
    --accent-gold: #f0b429;
    --accent-blue: #58a6ff;
    --danger: #f85149;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,.4);
    --max-w: 1200px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-green); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ===== HEADER / NAV ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13,17,23,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    max-width: var(--max-w);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}
.logo img {
    width: 250px;
    max-width: min(250px, 70vw);
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 28px;
}
.nav-menu a {
    color: var(--text-secondary);
    font-size: .9rem;
    font-weight: 500;
    transition: color .2s;
    white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--text); }

/* ===== DROPDOWN SUBMENUS ===== */
.nav-menu .has-sub { position: relative; }
.nav-menu .has-sub > a { display: flex; align-items: center; gap: 4px; }
.nav-menu .has-sub > a .arrow {
    font-size: .6rem;
    opacity: .6;
    transition: transform .2s;
    line-height: 1;
}
.nav-menu .has-sub:hover > a .arrow { transform: rotate(180deg); }
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 180px;
    margin-top: -1px;
    padding: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    list-style: none;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
/* Invisible bridge: keeps :hover on parent while moving cursor into submenu */
.nav-menu .has-sub::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 4px;
    z-index: 998;
}
.sub-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: .88rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color .15s, background .15s;
}
.sub-menu li a:hover {
    color: var(--accent-green);
    background: var(--bg-hover);
}
.nav-menu .has-sub:hover .sub-menu { display: block; }

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(160deg, #0d1117 0%, #111a28 50%, #0d1117 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0,210,106,.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.hero h1 em { font-style: normal; color: var(--accent-green); }
.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.hero-inner {
    padding: 50px 0 40px;
}
.hero-inner h1 {
    font-size: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: all .2s;
    border: none;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent-green);
    color: #000;
}
.btn-primary:hover {
    background: var(--accent-green-hover);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,210,106,.3);
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* ===== SECTION ===== */
.section {
    padding: 10px 0;
}
.section-alt {
    background: var(--bg-surface);
}
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 32px;
}
.section-title em { font-style: normal; color: var(--accent-green); }

/* ===== CASINO LIST v2 ===== */
.casino-list { display: flex; flex-direction: column; gap: 24px; }

.casino-card-v2 {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .25s, box-shadow .25s;
}
.casino-card-v2:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 32px rgba(0,210,106,.1);
}
.casino-card-featured {
    border-color: rgba(0,210,106,.3);
    box-shadow: 0 0 0 1px rgba(0,210,106,.1);
}

.cc-rank {
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background: var(--accent-green);
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 0 var(--radius-sm) 0;
    z-index: 2;
}

.cc-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-gold);
    color: #000;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 6px 14px;
    border-radius: 0 0 0 var(--radius-sm);
    z-index: 2;
}

.cc-inner {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 0;
    align-items: stretch;
}

.cc-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-hover);
    border-right: 1px solid var(--border);
    min-height: 120px;
}
.cc-logo img {
    width: 120px;
    height: 80px;
    object-fit: contain;
}
.cc-logo span {
    font-weight: 700;
    font-size: .9rem;
    color: var(--text-secondary);
}

.cc-details {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.cc-head {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cc-head h3 {
    font-size: 1.3rem;
    font-weight: 700;
}
.cc-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cc-stars {
    color: var(--accent-gold);
    font-size: .9rem;
    letter-spacing: 1px;
}
.cc-score {
    background: var(--accent-green);
    color: #000;
    font-weight: 800;
    font-size: .8rem;
    padding: 2px 8px;
    border-radius: 4px;
}

.cc-bonus {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.05rem;
}

.cc-advantages {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
}
.cc-advantages li {
    font-size: .85rem;
    color: var(--text-secondary);
}
.cc-advantages li::before {
    content: '\2713';
    color: var(--accent-green);
    font-weight: 700;
    margin-right: 6px;
}

.cc-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 20px 28px;
    border-left: 1px solid var(--border);
    min-width: 180px;
}

/* ===== TOC (collapsible, 2 columns) ===== */
.toc {
    padding: 20px 0 4px;
}
.toc-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent-green);
    border-radius: var(--radius);
    overflow: hidden;
}
.toc-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-family: var(--font);
    transition: background .2s;
}
.toc-toggle:hover { background: var(--bg-hover); }
.toc-heading {
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.toc-icon {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--accent-green);
    line-height: 1;
}
.toc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
}
.toc-box.open .toc-body {
    max-height: 600px;
    padding: 0 20px 16px;
}
.toc-list {
    list-style: none;
    counter-reset: toc;
    columns: 2;
    column-gap: 28px;
}
.toc-list li {
    counter-increment: toc;
    break-inside: avoid;
    padding-bottom: 5px;
}
.toc-list li::before {
    content: counter(toc) '.';
    display: inline-block;
    width: 20px;
    color: var(--accent-green);
    font-weight: 600;
    font-size: .82rem;
}
.toc-list a {
    color: var(--text-secondary);
    font-size: .85rem;
    transition: color .2s;
}
.toc-list a:hover {
    color: var(--accent-green);
}

/* ===== REVIEWS ===== */
.section:has(.reviews-grid) { padding-top: 32px; }
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.review-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-green);
}
.review-name { font-weight: 600; font-size: .95rem; }
.review-stars { color: var(--accent-gold); font-size: .85rem; }
.review-text { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-section { padding-top: 32px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
h3.faq-question {
    width: 100%;
    background: var(--bg-surface);
    border: none;
    padding: 11px 20px;
    text-align: left;
    color: var(--text);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background .2s;
    font-family: var(--font);
    margin: 0;
}
h3.faq-question:hover { background: var(--bg-hover); }
h3.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform .3s;
    flex-shrink: 0;
    margin-left: 12px;
}
.faq-item.open h3.faq-question::after {
    content: '\2212';
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
}
.faq-answer-inner {
    padding: 12px 20px 16px;
    font-size: .9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.faq-item.open .faq-answer {
    max-height: 400px;
}

/* ===== BLOG CARDS ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    color: var(--text);
    text-decoration: none;
}
.blog-card:hover {
    border-color: var(--accent-green);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    transform: translateY(-3px);
    color: var(--text);
}
.blog-card-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-hover);
}
.blog-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.blog-card-tag {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 1;
    background: var(--accent-green);
    color: #000;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 10px;
    border-radius: 4px;
}
.blog-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.blog-card-body p {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .8rem;
    color: var(--text-secondary);
}
.blog-card-read {
    color: var(--accent-green);
    font-weight: 600;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding: 14px 0;
    font-size: .8rem;
    color: var(--text-secondary);
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent-green); }
.breadcrumbs span { margin: 0 6px; }

/* ===== CONTENT (stub pages) ===== */
.page-content {
    padding: 40px 0 60px;
}
.page-content h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}
.page-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== CONTENT TYPOGRAPHY ===== */
/*
 * Universal prose styles used by .legal-content, .article-body, .page-body.
 * All three wrappers delegate to .prose for consistent text rendering.
 */

.legal-content,
.article-body,
.page-body {
    padding: 28px 0 0;
}

.content-illu {
    margin: 12px auto 24px;
    max-width: 900px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-surface);
}
.content-illu img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ---- Headings ---- */
.legal-content h2,
.article-body h2,
.page-body h2,
.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.legal-content h2:first-child,
.article-body h2:first-child,
.page-body h2:first-child {
    margin-top: 0;
}

.legal-content h3,
.article-body h3,
.page-body h3,
.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    margin: 32px 0 10px;
}

.legal-content h4,
.article-body h4,
.page-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 24px 0 8px;
}

/* ---- Paragraphs ---- */
.legal-content p,
.article-body p,
.page-body p,
.legal-section p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

/* Lead paragraph - larger intro text */
.legal-content p.lead,
.article-body p.lead,
.page-body p.lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text);
}

/* ---- Inline elements ---- */
.legal-content strong,
.article-body strong,
.page-body strong,
.legal-section strong {
    color: var(--text);
    font-weight: 600;
}

.legal-content em,
.article-body em,
.page-body em,
.legal-section em {
    font-style: italic;
    color: var(--text-secondary);
}

.legal-content a,
.article-body a,
.page-body a,
.legal-section a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(88,166,255,.35);
    transition: color .2s, text-decoration-color .2s;
}
.legal-content a:hover,
.article-body a:hover,
.page-body a:hover,
.legal-section a:hover {
    color: var(--accent-green);
    text-decoration-color: rgba(0,210,106,.5);
}

/* ---- Unordered lists ---- */
.legal-content ul,
.article-body ul,
.page-body ul,
.legal-section ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legal-content ul li,
.article-body ul li,
.page-body ul li,
.legal-section ul li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
}
.legal-content ul li::before,
.article-body ul li::before,
.page-body ul li::before,
.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-green);
}

/* ---- Ordered lists ---- */
.legal-content ol,
.article-body ol,
.page-body ol {
    list-style: none;
    counter-reset: prose-ol;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.legal-content ol li,
.article-body ol li,
.page-body ol li {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    padding-left: 28px;
    position: relative;
    counter-increment: prose-ol;
}
.legal-content ol li::before,
.article-body ol li::before,
.page-body ol li::before {
    content: counter(prose-ol) '.';
    position: absolute;
    left: 0;
    font-size: .85rem;
    font-weight: 700;
    color: var(--accent-green);
    top: .05em;
}

/* ---- Nested list (ul inside li) ---- */
.legal-content ul ul,
.article-body ul ul,
.page-body ul ul {
    margin: 8px 0 0 16px;
}

/* ---- Blockquote ---- */
.legal-content blockquote,
.article-body blockquote,
.page-body blockquote {
    margin: 28px 0;
    padding: 18px 24px;
    background: var(--bg-surface);
    border-left: 3px solid var(--accent-green);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: .97rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-style: italic;
}
.legal-content blockquote p,
.article-body blockquote p,
.page-body blockquote p {
    margin: 0;
}

/* ---- Inline code & code blocks ---- */
.legal-content code,
.article-body code,
.page-body code {
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: .875em;
    font-family: 'Menlo', 'Consolas', monospace;
    color: var(--accent-gold);
}
.legal-content pre,
.article-body pre,
.page-body pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
}
.legal-content pre code,
.article-body pre code,
.page-body pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: .9rem;
}

/* ---- Tables ---- */
.legal-content table,
.article-body table,
.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: .9rem;
}
.legal-content thead th,
.article-body thead th,
.page-body thead th {
    background: var(--bg-surface);
    color: var(--text);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid var(--accent-green);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .4px;
}
.legal-content tbody td,
.article-body tbody td,
.page-body tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}
.legal-content tbody tr:last-child td,
.article-body tbody tr:last-child td,
.page-body tbody tr:last-child td {
    border-bottom: none;
}
.legal-content tbody tr:hover td,
.article-body tbody tr:hover td,
.page-body tbody tr:hover td {
    background: var(--bg-surface);
}

/* ---- Horizontal rule ---- */
.legal-content hr,
.article-body hr,
.page-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* ---- Info / callout box ---- */
.callout {
    display: flex;
    gap: 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: .93rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.callout-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.callout.callout-green { border-color: rgba(0,210,106,.3); }
.callout.callout-gold  { border-color: rgba(240,180,41,.3); }
.callout.callout-red   { border-color: rgba(248,81,73,.3); }

/* ---- Section divider ---- */
.legal-section {
    margin-bottom: 0;
}

/* ---- Last-modified note ---- */
.legal-content em:only-child,
.article-body em:only-child {
    display: block;
    font-size: .83rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .legal-content,
    .article-body,
    .page-body {
        padding: 36px 0 56px;
    }
    .legal-content h2,
    .article-body h2,
    .page-body h2,
    .legal-section h2 {
        font-size: 1.25rem;
        margin-top: 36px;
    }
    .legal-content h3,
    .article-body h3,
    .page-body h3,
    .legal-section h3 {
        font-size: 1.05rem;
    }
    .legal-content p,
    .article-body p,
    .page-body p,
    .legal-section p {
        font-size: .95rem;
        line-height: 1.75;
    }
    .legal-content table,
    .article-body table,
    .page-body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0a0d12;
    border-top: 1px solid var(--border);
    padding: 60px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.footer-col h4 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
    color: var(--text-secondary);
    font-size: .85rem;
    transition: color .2s;
}
.footer-col a:hover { color: var(--accent-green); }

.footer-responsible {
    max-width: var(--max-w);
    margin: 40px auto 0;
    padding: 24px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-responsible p {
    font-size: .8rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
.footer-responsible .age-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
}

.footer-legal {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 20px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-legal-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-legal-links a {
    color: var(--text-secondary);
    font-size: .8rem;
}
.footer-legal-links a:hover { color: var(--accent-green); }
.footer-copyright {
    font-size: .8rem;
    color: var(--text-secondary);
}

/* ===== CTA BLOCK ===== */
.cta-block {
    padding: 32px 0;
}
.cta-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
    border: 1px solid rgba(16, 185, 129, .35);
    border-radius: 16px;
    padding: 36px 40px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 0 1px rgba(16,185,129,.1) inset;
}
.cta-card-glow {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(16,185,129,.3) 0%, transparent 70%);
    pointer-events: none;
}
.cta-card-icon {
    font-size: 3rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(16,185,129,.5));
}
.cta-text {
    flex: 1;
}
.cta-text h2 {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    border: none;
    padding: 0;
    line-height: 1.25;
}
.cta-text p {
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    margin: 0;
    line-height: 1.5;
}
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.cta-block .btn-primary {
    background: #fff;
    color: #065f46;
    border-color: #fff;
    font-weight: 700;
    white-space: nowrap;
}
.cta-block .btn-primary:hover {
    background: #f0fdf4;
    border-color: #f0fdf4;
}
.cta-block .btn-outline {
    border-color: rgba(255,255,255,.5);
    color: #fff;
    white-space: nowrap;
}
.cta-block .btn-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.8);
}

@media (max-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }
    .cta-card-icon { font-size: 2.25rem; }
    .cta-actions {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }
    .cta-actions .btn { flex: 1; text-align: center; }
}

/* ===== 404 ===== */
.page-404 {
    text-align: center;
    padding: 120px 20px;
}
.page-404 h1 {
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent-green);
    margin-bottom: 12px;
}
.page-404 p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .cc-inner {
        grid-template-columns: 1fr;
    }
    .cc-logo {
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: 80px;
        padding: 20px;
    }
    .cc-actions {
        border-left: none;
        border-top: 1px solid var(--border);
        flex-direction: row;
        min-width: auto;
        padding: 16px 24px;
    }
    .cc-rank {
        width: 30px;
        height: 30px;
        font-size: .85rem;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .toc-list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px 20px;
        gap: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    .nav-menu.open { display: flex; }
    .burger { display: flex; }
    .nav-menu li {
        border-bottom: 1px solid var(--border);
        padding: 0;
    }
    .nav-menu li:last-child { border-bottom: none; }
    .nav-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 0;
        font-size: .95rem;
    }
    .nav-menu .has-sub::after { display: none; }
    .sub-menu {
        display: none;
        position: static;
        transform: none;
        min-width: unset;
        margin-top: 0;
        background: var(--bg-hover);
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }
    .has-sub.open .sub-menu { display: block; }
    .sub-menu li a {
        padding: 10px 16px;
        font-size: .9rem;
    }
    .has-sub.open > a .arrow { transform: rotate(180deg); }

    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 1.8rem; }
    .hero-inner h1 { font-size: 1.6rem; }

    .reviews-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-legal { flex-direction: column; text-align: center; }
    .footer-responsible { flex-direction: column; text-align: center; }
}
