/* =============================================
   ФінансПро — News Site CSS
   ============================================= */

:root {
  --ink: #0d0d0d;
  --ink-light: #2a2a2a;
  --muted: #5a5a5a;
  --text-muted: #888;
  --rule: #e0dbd4;
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-warm: #faf8f4;
  --accent: #c8392b;
  --accent-dark: #a02d22;
  --accent-light: #fdf1f0;
  --gold: #b8962e;
  --gold-light: #fdf8eb;
  --green: #1a6b3c;
  --green-light: #edf6f1;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-w: 1280px;
  --col-gap: 40px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
  background: var(--ink);
  color: #aaa;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 6px 0;
}

.topbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-sep {
  opacity: 0.3;
}

.topbar-socials {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

.topbar-social-link {
  color: #888;
  transition: color 0.2s;
}

.topbar-social-link:hover {
  color: #fff;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  background: var(--surface);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  height: 68px;
}

.site-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  flex-shrink: 0;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-main em {
  color: var(--accent);
  font-style: normal;
}

.logo-tagline {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 3px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--ink);
  background: var(--surface-warm);
}

.nav-link--active {
  color: var(--accent);
  background: var(--accent-light);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s;
}

/* =============================================
   MOBILE NAV
   ============================================= */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding: 12px 24px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* =============================================
   TICKER
   ============================================= */
.ticker-wrap {
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}

.ticker-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: rgba(0,0,0,0.25);
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.ticker-track {
  flex: 1;
  overflow: hidden;
}

.ticker-content {
  display: flex;
  white-space: nowrap;
  animation: ticker 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0 20px;
}

.ticker-content span {
  padding-right: 0;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* =============================================
   SECTION NAV
   ============================================= */
.section-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.section-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav-inner::-webkit-scrollbar {
  display: none;
}

.snav-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 12px 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.snav-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.snav-link--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =============================================
   MAIN LAYOUT
   ============================================= */
.main-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--col-gap);
  align-items: start;
}

/* =============================================
   ARTICLE
   ============================================= */
.article-col {
  min-width: 0;
}

.article-meta-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.article-category {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--surface);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 2px;
}

.article-read-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 20px;
}

.article-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.55;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 28px;
  font-style: italic;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.author-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.share-buttons {
  margin-left: auto;
}

.share-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 7px 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--ink);
  color: #fff;
}

/* HERO CTA BANNER */
.hero-cta-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, #1a4d2e 0%, #1e6b3a 100%);
  color: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 40px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(26, 77, 46, 0.25);
}

.hero-cta-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(26, 77, 46, 0.35);
}

.hero-cta-badge {
  font-size: 2rem;
  flex-shrink: 0;
}

.hero-cta-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-cta-text strong {
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-cta-text span {
  font-size: 0.9rem;
  opacity: 0.85;
}

.hero-cta-text em {
  font-style: normal;
  font-weight: 700;
  color: #7dda97;
}

.hero-cta-arrow {
  font-size: 1.4rem;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ARTICLE BODY */
.article-body {
  color: var(--ink-light);
}

.article-lead {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 24px;
}

.article-body p {
  margin-bottom: 22px;
  line-height: 1.8;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 48px 0 18px;
  padding-top: 16px;
  border-top: 2px solid var(--rule);
}

/* STATS BLOCK */
.stats-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  margin: 32px 0;
}

.stat-item {
  background: var(--surface);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* FUNDS GRID */
.funds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 36px;
}

.fund-card {
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.fund-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}

.fund-card--reit {
  border-top: 3px solid var(--accent);
}

.fund-card--energy {
  border-top: 3px solid var(--gold);
}

.fund-card--bonds {
  border-top: 3px solid var(--green);
}

.fund-card-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.fund-card-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}

.fund-card-yield {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.fund-card-yield span {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  font-family: var(--font-serif);
}

.fund-card--energy .fund-card-yield span {
  color: var(--gold);
}

.fund-card--bonds .fund-card-yield span {
  color: var(--green);
  font-size: 1rem;
}

.fund-card-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}

.fund-card-entry {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--text-muted);
  background: var(--surface-warm);
  padding: 6px 10px;
  border-radius: 4px;
}

.fund-card-btn {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
  padding: 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.fund-card--energy .fund-card-btn {
  background: var(--gold);
}

.fund-card--bonds .fund-card-btn {
  background: var(--green);
}

.fund-card-btn:hover {
  filter: brightness(1.1);
}

/* QUOTE */
.article-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--ink-light);
  border-left: 4px solid var(--gold);
  background: var(--gold-light);
  padding: 20px 24px;
  margin: 32px 0 8px;
  border-radius: 0 8px 8px 0;
}

.quote-author {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 32px !important;
  padding-left: 8px;
}

/* MID-ARTICLE CTA */
.mid-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 20px 28px;
  margin: 36px 0;
  transition: filter 0.2s;
}

.mid-cta-banner:hover {
  filter: brightness(1.05);
}

.mid-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mid-cta-gift {
  font-size: 2.2rem;
}

.mid-cta-texts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mid-cta-texts strong {
  font-size: 1rem;
}

.mid-cta-texts span {
  font-size: 0.875rem;
  opacity: 0.85;
}

.mid-cta-right {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap;
  background: rgba(255,255,255,0.18);
  padding: 10px 18px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: background 0.2s;
}

.mid-cta-banner:hover .mid-cta-right {
  background: rgba(255,255,255,0.28);
}

/* STEPS */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0 36px;
  border: 1.5px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}

.step-item {
  display: flex;
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
}

.step-item:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.35;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 3px;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* FINAL CTA */
.final-cta-block {
  background: linear-gradient(135deg, #0d1f14 0%, #1a3d28 100%);
  color: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.final-cta-block::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.final-cta-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.final-cta-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.final-cta-desc {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto 28px;
}

.final-cta-desc strong {
  color: #7dda97;
}

.final-cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0d1f14;
  background: #7dda97;
  padding: 16px 36px;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(125, 218, 151, 0.3);
}

.final-cta-btn:hover {
  background: #9ae8af;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(125, 218, 151, 0.4);
}

.final-cta-fine {
  margin-top: 14px !important;
  font-size: 0.78rem !important;
  opacity: 0.5;
  font-family: var(--font-mono);
}

/* TAGS */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  margin-top: 32px;
}

.tag-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--surface-warm);
  border: 1px solid var(--rule);
  padding: 4px 12px;
  border-radius: 3px;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* RELATED */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--ink);
}

.related-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 24px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: all 0.2s;
}

.related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--ink);
}

.related-card-cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.related-card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.related-card-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: auto;
}

/* =============================================
   SIDEBAR
   ============================================= */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* SIDEBAR CTA TOP */
.sidebar-cta-top {
  display: block;
  background: linear-gradient(145deg, #1a6b3c 0%, #0d4224 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  transition: filter 0.2s, transform 0.2s;
  box-shadow: 0 6px 24px rgba(26,107,60,0.3);
}

.sidebar-cta-top:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}

.sidebar-cta-gift-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.sidebar-cta-headline {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.sidebar-cta-sub {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 20px;
  line-height: 1.5;
}

.sidebar-cta-action {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #0d4224;
  background: #7dda97;
  padding: 12px 24px;
  border-radius: 6px;
  width: 100%;
  transition: background 0.2s;
}

.sidebar-cta-top:hover .sidebar-cta-action {
  background: #9ae8af;
}

/* SIDEBAR WIDGET */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
}

.widget-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-warm);
}

.popular-list {
  display: flex;
  flex-direction: column;
}

.popular-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}

.popular-item:last-child {
  border-bottom: none;
}

.popular-item:hover {
  background: var(--surface-warm);
}

.popular-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.popular-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-light);
}

/* SIDEBAR BANNER MID */
.sidebar-banner-mid {
  display: block;
  background: linear-gradient(145deg, #8a6d1a 0%, #b8962e 100%);
  color: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: filter 0.2s;
}

.sidebar-banner-mid:hover {
  filter: brightness(1.07);
}

.sbm-top {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.75;
  margin-bottom: 8px;
}

.sbm-yield {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.sbm-currency {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-bottom: 12px;
}

.sbm-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.sbm-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #8a6d1a;
  background: #fff;
  padding: 10px;
  border-radius: 6px;
  transition: background 0.2s;
}

.sidebar-banner-mid:hover .sbm-cta {
  background: #fdf8eb;
}

/* TOPICS CLOUD */
.topics-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
}

.topics-cloud a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-warm);
  border: 1px solid var(--rule);
  padding: 5px 12px;
  border-radius: 3px;
  transition: all 0.2s;
}

.topics-cloud a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* SIDEBAR BANNER ENERGY */
.sidebar-banner-energy {
  display: block;
  background: linear-gradient(145deg, #1a2a4a 0%, #253a6b 100%);
  color: #fff;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  transition: filter 0.2s;
}

.sidebar-banner-energy:hover {
  filter: brightness(1.07);
}

.sbe-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: 10px;
}

.sbe-yield {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.sbe-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.75;
  margin-bottom: 16px;
}

.sbe-cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: #1a2a4a;
  background: #a0c4ff;
  padding: 10px;
  border-radius: 6px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--ink);
  color: #aaa;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.footer-logo em {
  color: var(--accent);
  font-style: normal;
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #777;
}

.footer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-group h5 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555;
  margin-bottom: 6px;
}

.footer-nav-group a {
  font-size: 0.85rem;
  color: #888;
  transition: color 0.2s;
}

.footer-nav-group a:hover {
  color: #fff;
}

.footer-subscribe {
  display: flex;
  gap: 0;
}

.footer-subscribe input {
  flex: 1;
  background: #1a1a1a;
  border: 1px solid #333;
  border-right: none;
  color: #ccc;
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.footer-subscribe input::placeholder {
  color: #555;
}

.footer-subscribe button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 9px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-subscribe button:hover {
  background: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding: 16px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #555;
  gap: 20px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .sidebar-cta-top {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .stats-block {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .mid-cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .hero-cta-banner {
    flex-wrap: wrap;
  }

  .article-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .stats-block {
    grid-template-columns: 1fr;
  }

  .final-cta-block {
    padding: 32px 24px;
  }

  .step-item {
    flex-direction: column;
    gap: 8px;
  }
}



.article-body a:not(.mid-cta-banner):not(.fund-card-btn){
  color: #c8392b;
  text-decoration: underline;
  text-decoration-color: rgba(200, 57, 43, 0.4);
  text-underline-offset: 3px;
  transition: all 0.2s ease-in-out;
}

.article-body a:not(.mid-cta-banner):hover {
  color: #a02d22;
  text-decoration-color: #a02d22;
}

.responsive-banner {
    display: block;
    width: 100%;
    text-align: center; /* Помогает центрировать баннер, если экран очень широкий */
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: auto;
    max-height: 450px; /* Ограничение максимальной высоты для десктопа */
    object-fit: contain; /* Картинка заполнит ширину, обрезав лишнее, если пропорции не совпадают */
    display: block;
    margin: 0 auto;
}

/* Настройки для мобилок */
@media (max-width: 768px) {
    .banner-image {
        max-height: none; /* Убираем десктопный лимит высоты, чтобы мобильный баннер показывался в своих пропорциях */
        /* max-height: 300px; - раскомментируй и поменяй цифру, если на мобилке тоже нужен лимит по высоте */
    }
}