/*
Theme Name: VitaliyMishin
Theme URI: https://vitaliymishin.ru
Author: Roman Nikolaev
Author URI: https://roman-developer.ru
Description: Авторская тема для сайта Виталия Мишина — эксперта по налоговым вычетам
Version: 1.0.19
License: GNU General Public License v2 or later
Text Domain: vitaliymishin
*/

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

:root {
  --bg:       #f4f6f9;
  --surface:  #ffffff;
  --blue:     #2563eb;
  --blue-lt:  #eff4ff;
  --blue-mid: #bfcfff;
  --text:     #111827;
  --mid:      #4b5563;
  --muted:    #4b5563;
  --border:   #e5e7eb;
  --green:    #047857;
  --green-bg: #ecfdf5;
  --r:        12px;
  --max-w:    1060px;
}

html { scroll-behavior: smooth; }

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

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

/* BUTTONS */
.btn-primary {
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--r);
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }

.btn-ghost {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 12px 22px;
  border-radius: var(--r);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); text-decoration: none; }

/* NAV */
.site-header {
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid rgba(229,231,235,0.6);
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nav-logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name {
  font-family: 'Montserrat', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: inline-block;
}
.nav-logo-name b { color: var(--blue); font-weight: 400; }
.nav-logo-tag {
  font-family: 'Montserrat', 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--text);
  letter-spacing: 0.04em;
  margin-top: 1px;
  display: block;
  width: 100%;
  text-align: center;
}
.nav-logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-link-featured { color: var(--blue) !important; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.nav-badge { font-size: 9.5px; font-weight: 700; color: #fff; background: var(--blue); padding: 2px 7px; border-radius: 99px; letter-spacing: 0.02em; text-transform: uppercase; }

.nav-btn {
  background: var(--blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s;
}
.nav-btn:hover { opacity: 0.88; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

/* FOOTER */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.site-footer p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.site-footer a { color: var(--mid); }
.site-footer a:hover { color: var(--blue); }

/* PAGE CONTENT */
.page-content {
  background: var(--surface);
  border-radius: var(--r);
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: var(--max-w);
}

.page-content h1 { font-size: 2rem; margin-bottom: 1rem; color: var(--text); }
.page-content h2 { font-size: 1.4rem; margin: 2rem 0 0.75rem; color: var(--text); }
.page-content h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; color: var(--text); }
.page-content p  { margin-bottom: 1rem; color: var(--mid); line-height: 1.8; }
.page-content ul, .page-content ol { margin: 0 0 1rem 1.5rem; color: var(--mid); }
.page-content li { margin-bottom: 0.4rem; line-height: 1.7; }

/* SECTION */
.section {
  padding: 4rem 2rem;
}
.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--mid);
  margin-bottom: 2.5rem;
}

/* CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.5rem;
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

/* CTA BLOCK */
.cta-block {
  background: var(--blue);
  border-radius: var(--r);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-block h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-block p  { color: rgba(255,255,255,0.92); margin-bottom: 1.5rem; }
.btn-white {
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: var(--r);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.15s;
}
.btn-white:hover { opacity: 0.92; text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .header-inner { padding: 0 1.25rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    gap: 1rem;
    z-index: 99;
  }
  .nav-links.open > a,
  .nav-links.open .nav-btn {
    width: 100%;
  }
  .nav-links.open .nav-btn {
    justify-content: center;
    margin-top: 0.25rem;
  }
  .nav-toggle { display: flex; }
  .section { padding: 2.5rem 1.25rem; }
  .page-content { padding: 2rem 1.25rem; margin: 1rem; }
}

/* ── CALCULATOR ── */
.calc-section {
  background: var(--bg);
  padding: 5rem 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  margin-top: 2.5rem;
  align-items: start;
}
.calc-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.calc-group {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.calc-group:last-child { border-bottom: none; }
.calc-group-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.calc-row:last-child { border-bottom: none; padding-bottom: 0; }
.calc-row:first-of-type { padding-top: 0; }
.calc-check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  background: var(--surface);
}
.calc-check.on { background: var(--blue); border-color: var(--blue); }
.calc-check svg { display: none; }
.calc-check.on svg { display: block; }
.calc-row-label {
  flex: 1;
  font-size: 14px;
  color: var(--text);
  user-select: none;
  line-height: 1.4;
}
.calc-inp {
  width: 100px;
  padding: 5px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  text-align: right;
  transition: border-color 0.15s;
}
.calc-inp:focus { outline: none; border-color: var(--blue); }
.calc-inp:disabled { opacity: 0.3; pointer-events: none; }
.calc-unit { font-size: 12px; color: var(--muted); min-width: 18px; }

/* Result card */
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: sticky;
  top: 76px;
}
.result-head {
  background: var(--blue);
  padding: 1.5rem;
  text-align: center;
}
.result-head-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: 8px;
}
.result-amount {
  font-family: 'Manrope', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: all 0.25s;
}
.result-amount-sub { font-size: 12px; color: rgba(255,255,255,0.92); margin-top: 6px; }
.result-body { padding: 1.25rem 1.5rem; }
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.result-line:last-child { border-bottom: none; }
.result-line-name { color: var(--mid); }
.result-line-val { font-weight: 600; color: var(--text); }
.result-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 1rem 0; }
.result-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.result-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.btn-full {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--r);
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: opacity 0.15s;
}
.btn-full:hover { opacity: 0.88; }

@media (max-width: 768px) {
  .calc-layout { grid-template-columns: 1fr; }
  .result-card { position: static; }
}

/* ── MOBILE RESPONSIVE ─────────────────────── */
@media (min-width: 901px) {
  .vm-hero-grid > div:first-child {
    position: sticky;
    top: 76px;
    align-self: start;
  }
}
@media (max-width: 900px) {
.vm-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .vm-hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .vm-author-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .vm-author-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .vm-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }
  .vm-awards-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .vm-certs-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .vm-products-grid {
    grid-template-columns: 1fr !important;
  }
  .calc-layout {
    grid-template-columns: 1fr !important;
  }
  .result-card {
    position: static !important;
  }
}

@media (max-width: 480px) {
  .calc-row {
    padding: 12px 0 !important;
    gap: 10px !important;
  }
  .calc-check {
    width: 22px !important;
    height: 22px !important;
  }
  .calc-inp {
    width: 84px !important;
  }
  .vm-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .vm-awards-grid {
    grid-template-columns: 1fr !important;
  }
  .vm-certs-grid {
    grid-template-columns: 1fr !important;
  }
  .header-inner {
    padding: 0 1rem !important;
  }
  .section {
    padding: 2rem 1rem !important;
  }
  .container {
    padding: 0 1rem !important;
  }
  .cta-block {
    padding: 2rem 1.25rem !important;
  }
  .cta-block h2 {
    font-size: 1.4rem !important;
  }
}

/* ── DROPDOWN MENU ────────────────────────── */
.nav-links { position: relative; }

.nav-links > a,
.nav-links > .nav-dropdown { position: relative; }

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  padding: 0;
  transition: color 0.15s;
}
.nav-dropdown-toggle:hover { color: var(--blue); }
.nav-dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s;
  color: var(--muted);
}
/* стрелка управляется через JS */

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  transform: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  min-width: 360px;
  z-index: 200;
  overflow: hidden;
  padding: 16px 0 6px;
  /* Невидимый мост между кнопкой и меню */
  margin-top: 0;
}
/* Псевдоэлемент закрывает зазор между кнопкой и меню */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
}
/* hover управляется через JS с задержкой */

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.12s;
  border-bottom: 1px solid var(--border);
  line-height: 1.3;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover { background: var(--blue-lt); color: var(--blue); text-decoration: none; }
.dropdown-item:hover .di-icon svg { stroke: var(--blue); }
.di-icon {
  width: 24px;
  height: 24px;
  background: var(--bg);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.di-icon svg { stroke: var(--mid); }
.dropdown-item:hover .di-icon { background: var(--blue-lt); }
.dropdown-label { flex: 1; }
.dropdown-sum {
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 6px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Мобильное меню — dropdown */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border-radius: 8px;
    margin-top: 4px;
    border: 1px solid var(--border);
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-dropdown-toggle { width: 100%; }
}


/* ══════════════════════════════════════════
   ARTICLE / SEO PAGE STYLES
══════════════════════════════════════════ */
/* ── ARTICLE LAYOUT ───────────────────────── */
.article-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* BREADCRUMBS */
.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--mid); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs span { color: var(--border); }

/* ARTICLE HEADER */
.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-lt);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}
.article-h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.article-meta a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mid);
  text-decoration: none;
  font-weight: 500;
}
.article-meta a:hover { color: var(--blue); }
.meta-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.meta-divider { color: var(--border); }

/* HERO STAT BLOCK */
.stat-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.stat-hero-item {
  background: var(--surface);
  padding: 1.25rem 1rem;
  text-align: center;
}
.stat-hero-val {
  font-family: 'Manrope', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 4px;
}
.stat-hero-label {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ARTICLE BODY */
.article-body h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  letter-spacing: -0.02em;
}
.article-body h2:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.article-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}
.article-body p {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.article-body ul, .article-body ol {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--mid);
  font-size: 15px;
  line-height: 1.8;
}
.article-body li { margin-bottom: 0.35rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* CALLOUT BLOCKS */
.callout {
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 14px;
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.callout-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}
.callout.info { background: var(--blue-lt); border-left: 3px solid var(--blue); color: #1e40af; }
.callout.warn { background: #fffbeb; border-left: 3px solid #f59e0b; color: #92400e; }
.callout.success { background: var(--green-bg); border-left: 3px solid var(--green); color: #065f46; }
.callout.danger { background: #fef2f2; border-left: 3px solid #ef4444; color: #991b1b; }

/* EXAMPLE BLOCK */
.example-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.example-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.example-block p { font-size: 14px; margin-bottom: 0.5rem; }
.example-block p:last-child { margin-bottom: 0; }
.example-result {
  font-family: 'Manrope', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green);
  margin-top: 0.75rem !important;
}

/* COMPARISON TABLE */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1.5rem 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.comp-table th {
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
}
.comp-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--mid);
  vertical-align: top;
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:nth-child(even) td { background: var(--bg); }
.comp-table td strong { color: var(--text); }

/* CHECKLIST */
.checklist { list-style: none; margin-left: 0 !important; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.checklist li:last-child { border-bottom: none; }
.checklist-icon {
  width: 20px;
  height: 20px;
  background: var(--green-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* MISTAKES BLOCK */
.mistake-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.mistake-item:last-child { border-bottom: none; }
.mistake-num {
  width: 28px;
  height: 28px;
  background: #fef2f2;
  color: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.mistake-text { font-size: 14px; color: var(--mid); line-height: 1.6; }
.mistake-text strong { color: var(--text); display: block; margin-bottom: 2px; }

/* FAQ ACCORDION */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1rem 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
}
.faq-q:hover { color: var(--blue); }
.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 1rem;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.75;
}
.faq-item.open .faq-a { display: block; }

/* ARTICLE CTA */
.article-cta {
  background: linear-gradient(135deg, var(--blue) 0%, #1d4ed8 100%);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
  color: #fff;
}
.article-cta h2 {
  color: #fff !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 0.75rem !important;
  font-size: 1.4rem !important;
}
.article-cta p { color: rgba(255,255,255,0.8) !important; margin-bottom: 1.5rem; }
.article-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
  display: inline-block;
}
.btn-cta-white:hover { opacity: 0.9; text-decoration: none; }
.btn-cta-outline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: background 0.15s;
  display: inline-block;
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.2); text-decoration: none; }

/* RELATED LINKS */
.related-links {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.related-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 500;
  transition: color 0.12s;
}
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--blue); text-decoration: none; }
.related-sum {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  padding: 2px 8px;
  border-radius: 99px;
  white-space: nowrap;
}

/* ── SIDEBAR ──────────────────────────────── */
.article-sidebar { position: sticky; top: 76px; }

.sidebar-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.toc-link {
  display: block;
  font-size: 12.5px;
  color: var(--mid);
  text-decoration: none;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.12s;
  line-height: 1.4;
}
.toc-link:last-child { border-bottom: none; padding-bottom: 0; }
.toc-link:hover { color: var(--blue); text-decoration: none; }
.toc-link.active { color: var(--blue); font-weight: 600; }

.sidebar-book {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.sidebar-book img {
  width: 90px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.15);
  margin: 0 auto 1rem;
  display: block;
}
.sidebar-book-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.sidebar-book-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 1rem;
}
.sidebar-book-price {
  font-family: 'Manrope', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  margin-bottom: 0.75rem;
}
.btn-sidebar {
  display: block;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s;
  margin-bottom: 6px;
}
.btn-sidebar:hover { opacity: 0.88; text-decoration: none; }
.btn-sidebar.green { background: var(--green); }
.btn-sidebar.outline {
  background: none;
  color: var(--blue);
  border: 1.5px solid var(--blue-mid);
}
.btn-sidebar.outline:hover { background: var(--blue-lt); }

.sidebar-related {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}
.sidebar-related-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* MOBILE */
@media (max-width: 860px) {
  .article-wrap {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 3rem;
  }
  .article-sidebar {
    position: static;
    order: -1;
  }
  .sidebar-toc { display: none; }
  .stat-hero { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 500px) {
  .stat-hero { grid-template-columns: 1fr; gap: 0; }
  .article-cta { padding: 1.75rem 1.25rem; }
}
.container-stats {
  max-width: 640px;
}

/* SCROLL TO TOP */
.scroll-top-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(17,24,39,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.15s;
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.2);
  border-color: var(--blue);
}
.scroll-top-btn svg { color: var(--blue); width: 20px; height: 20px; }
@media (max-width: 768px) {
  .scroll-top-btn {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn { transition: opacity 0.25s ease, visibility 0.25s; }
}
