:root {
    --bg:        #0D1117;
    --bg-card:   #161B22;
    --bg-card-2: #1C2128;
    --border:    #30363D;
    --text:      #E6EDF3;
    --text-2:    #8B949E;
    --text-muted:#6E7681;
    --primary:   #00DA9D;
    --primary-d: #00B897;
    --blue:      #58A6FF;
    --red:       #F85149;
    --yellow:    #E3B341;
    --green:     #3FB950;
    --radius:    10px;
    --shadow:    0 4px 16px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── HEADER ── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13,17,23,0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.logo-journal { color: var(--primary); font-weight: 500; }

.nav {
    display: flex;
    gap: 2px;
    flex: 1;
}

.nav-link {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    transition: all 0.15s;
}

.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--primary); }

.header-right { margin-left: auto; }

.btn-subscribe {
    padding: 7px 16px;
    border-radius: 6px;
    background: var(--primary);
    color: #0D1117;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s;
}

.btn-subscribe:hover { background: var(--primary-d); }

/* ── ARTICLE HERO ── */
.article-hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #111820 0%, var(--bg) 100%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.breadcrumb a { transition: color 0.15s; }
.breadcrumb a:hover { color: var(--primary); }

.article-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(0,218,157,0.1);
    border: 1px solid rgba(0,218,157,0.25);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 20px;
}

.article-title {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 20px;
    max-width: 820px;
}

.article-lead {
    font-size: 18px;
    line-height: 1.65;
    color: var(--text-2);
    max-width: 720px;
    margin-bottom: 28px;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00DA9D, #00B4D8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #0D1117;
    flex-shrink: 0;
}

.author-name { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.author-role { display: block; font-size: 12px; color: var(--text-muted); }

.meta-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-dot { opacity: 0.4; }

/* ── ARTICLE LAYOUT ── */
.article-main { padding: 48px 0 80px; }

.article-layout {
    display: grid;
    grid-template-columns: 200px 1fr 260px;
    gap: 40px;
    align-items: start;
}

/* ── TOC SIDEBAR ── */
.sidebar-toc { position: sticky; top: 80px; }

.toc-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.toc-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.toc-list { display: flex; flex-direction: column; gap: 4px; }

.toc-link {
    display: block;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-2);
    border-left: 2px solid transparent;
    transition: all 0.15s;
    line-height: 1.4;
}

.toc-link:hover { color: var(--text); background: var(--bg-card-2); }
.toc-link.active { color: var(--primary); border-left-color: var(--primary); background: rgba(0,218,157,0.06); }

.toc-share {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.toc-share-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 10px;
}

.toc-share-btns { display: flex; gap: 8px; }

.share-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--bg-card-2);
    border: 1px solid var(--border);
    color: var(--text-2);
    transition: all 0.15s;
}

.share-btn:hover { color: var(--primary); border-color: var(--primary); }

/* ── ARTICLE CONTENT ── */
.article-content section {
    margin-bottom: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--border);
}

.article-content section:last-of-type { border-bottom: none; }

.article-content h2 {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 18px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-top: 28px;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.article-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-2);
    margin-bottom: 18px;
}

.article-content p:last-child { margin-bottom: 0; }

.article-content strong { color: var(--text); font-weight: 600; }
.article-content em { font-style: italic; }

/* Callouts */
.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius);
    border-left: 3px solid;
    margin: 28px 0;
}

.callout-green { background: rgba(0,218,157,0.06); border-color: var(--primary); }
.callout-blue  { background: rgba(88,166,255,0.06); border-color: var(--blue); }
.callout-red   { background: rgba(248,81,73,0.06);  border-color: var(--red); }

.callout-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.callout-text { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.callout-text strong { color: var(--text); }

/* Stats row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.03em;
    margin-bottom: 6px;
}

.stat-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Steps list */
.steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 20px 0;
}

.steps-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.7;
}

.steps-list li strong { color: var(--text); }

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,218,157,0.12);
    border: 1.5px solid rgba(0,218,157,0.3);
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Coins list */
.coins-list { display: flex; flex-direction: column; gap: 24px; margin: 24px 0; }

.coin-item {
    display: flex;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.15s;
}

.coin-item:hover { border-color: #444D56; }

.coin-icon-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.coin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.coin-name { font-size: 16px; font-weight: 700; color: var(--text); }

.coin-cap {
    font-size: 12px;
    color: var(--primary);
    background: rgba(0,218,157,0.1);
    border-radius: 20px;
    padding: 2px 10px;
}

.coin-details p { font-size: 14px; line-height: 1.7; color: var(--text-2); margin: 0; }

/* Compare grid */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.compare-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.compare-icon { font-size: 32px; margin-bottom: 12px; }
.compare-card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.compare-card p { font-size: 14px; color: var(--text-2); margin-bottom: 16px; }

.compare-pros, .compare-cons { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

.pro { font-size: 13px; color: var(--green); }
.con { font-size: 13px; color: var(--red); }

.compare-example {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.compare-example strong { color: var(--text-2); }

/* Info table */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.info-table th {
    padding: 10px 14px;
    text-align: left;
    background: var(--bg-card-2);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
}

.info-table td {
    padding: 12px 14px;
    border: 1px solid var(--border);
    color: var(--text-2);
    vertical-align: middle;
}

.info-table tr:hover td { background: var(--bg-card); }

.level {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.level.high { background: rgba(63,185,80,0.12); color: var(--green); }
.level.mid  { background: rgba(227,179,65,0.12); color: var(--yellow); }
.level.low  { background: rgba(248,81,73,0.12);  color: var(--red); }

/* Risks grid */
.risks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.risk-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.risk-icon { font-size: 28px; margin-bottom: 12px; }
.risk-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.risk-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; margin: 0; }

/* Article end */
.article-end {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.tag {
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-2);
    transition: all 0.15s;
}

.tag:hover { border-color: var(--primary); color: var(--primary); cursor: pointer; }

.article-share { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }

.share-btn-lg {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 7px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
}

.share-btn-lg:hover { border-color: var(--primary); color: var(--primary); }

/* ── RIGHT SIDEBAR ── */
.sidebar-right { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.sidebar-card-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

/* BTC price widget */
.btc-price-widget {}

.bpw-price {
    font-size: 28px;
    font-weight: 900;
    color: var(--text);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.bpw-chg { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.bpw-chg.up { color: var(--primary); }
.bpw-chg.dn { color: var(--red); }

.bpw-chart svg { width: 100%; height: 50px; }

/* Related articles */
.related-list { display: flex; flex-direction: column; gap: 14px; }

.related-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.15s;
}

.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item:hover { opacity: 0.75; }

.related-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
}

.related-title { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* Subscribe sidebar */
.sidebar-sub-text { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.sidebar-email-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    outline: none;
    margin-bottom: 10px;
    transition: border-color 0.15s;
}

.sidebar-email-input:focus { border-color: var(--primary); }
.sidebar-email-input::placeholder { color: var(--text-muted); }

.sidebar-email-btn {
    width: 100%;
    padding: 10px;
    border-radius: 7px;
    background: var(--primary);
    color: #0D1117;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.15s;
}

.sidebar-email-btn:hover { background: var(--primary-d); }

/* ── FOOTER ── */
.footer {
    background: #080C10;
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.footer-brand .logo { margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); }

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

.footer-links-row a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.15s;
}

.footer-links-row a:hover { color: var(--text); }

.footer-requisites {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

.req-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 32px;
}

.req-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

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

.req-value {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
}

.req-note {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.footer-bottom {
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .req-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .req-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .article-layout { grid-template-columns: 1fr 240px; }
    .sidebar-toc { display: none; }
}

@media (max-width: 768px) {
    .article-layout { grid-template-columns: 1fr; }
    .sidebar-right { display: none; }
    .article-title { font-size: 26px; }
    .article-lead { font-size: 16px; }
    .stats-row { grid-template-columns: 1fr; }
    .compare-grid { grid-template-columns: 1fr; }
    .risks-grid { grid-template-columns: 1fr; }
    .coin-item { flex-direction: column; }
    .coin-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .article-meta { flex-direction: column; align-items: flex-start; }
    .article-end { flex-direction: column; }
    .nav { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .article-hero { padding: 28px 0 24px; }
    .article-main { padding: 28px 0 48px; }
}
