/* theme:teal font:Inter prefix:cbed */
/* Step 6 Generated Site */
:root {
  --bg-dark: #060f0e;
  --bg-dark-2: #0d1a18;
  --bg-card-dark: #142522;
  --border-dark: #1a3530;
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --accent-light: #ccfbf1;
  --accent-text: #115e59;
  --text-white: #f0f6fc;
  --text-muted: #8b949e;
  --text-dark: #0d1117;
  --text-body: #374151;
  --bg-light: #ffffff;
  --bg-section: #f6f8fa;
  --border-light: #d0d7de;
  --shadow: 0 1px 3px rgba(0,0,0,0.14), 0 6px 20px rgba(0,0,0,0.09);
  --shadow-card: 0 2px 6px rgba(0,0,0,0.09);
  --radius-btn: 6px;
  --radius-card: 8px;
  --radius-badge: 4px;
  --radius-toc: 8px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg-light); color: var(--text-body); line-height: 1.8; }
a { color: inherit; text-decoration: none; }

/* Header */
header { position: sticky; top: 0; z-index: 100; background: var(--bg-dark); padding: 0 20px; }
header .cbed-header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 60px; }
header.scrolled { backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--border-dark); }
.cbed-logo { font-size: 20px; font-weight: 700; color: var(--text-white); }
.cbed-logo span { color: var(--accent); }
nav { display: flex; gap: 28px; align-items: center; }
nav a { color: var(--text-muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: var(--text-white); }
.cbed-burger { display: none; background: none; border: none; color: var(--text-white); font-size: 22px; cursor: pointer; }

/* Hero */
.cbed-hero { background: var(--bg-dark); color: var(--text-white); padding: 72px 20px 80px; }
.cbed-hero-inner { max-width: 900px; margin: 0 auto; }
.cbed-date-badge { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-dark); border-radius: var(--radius-badge); padding: 4px 14px; font-size: 12px; color: var(--text-muted); margin-bottom: 20px; flex-wrap: wrap; }
.cbed-date-sep { opacity: .4; }
.cbed-hero h1 { font-size: clamp(28px, 4vw, 52px); font-weight: 900; line-height: 1.1; max-width: 700px; margin-bottom: 20px; }
.cbed-hero-sub { font-size: 18px; color: var(--text-muted); line-height: 1.7; max-width: 620px; margin-bottom: 32px; }
.cbed-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 32px; }
.cbed-stat-card { border: 1px solid var(--border-dark); border-radius: 10px; padding: 16px 20px; background: rgba(255,255,255,0.04); }
.cbed-stat-num { font-size: 28px; font-weight: 800; color: var(--text-white); }
.cbed-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.cbed-cta-btn { display: inline-block; background: var(--accent); color: white; font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: var(--radius-btn); border: none; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 12px rgba(34,197,94,0.35); margin-bottom: 24px; }
.cbed-cta-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.cbed-hero-rating { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.cbed-hero-rating .cbed-stars { color: #f59e0b; font-size: 16px; }
.cbed-author-badge { display: inline-flex; align-items: center; gap: 12px; background: var(--bg-card-dark); border: 1px solid var(--border-dark); border-radius: 50px; padding: 8px 16px 8px 8px; text-decoration: none; transition: border-color .2s; }
.cbed-author-badge:hover { border-color: var(--accent); }
.cbed-avatar-sm { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.cbed-author-badge .cbed-author-name { font-weight: 600; font-size: 14px; color: var(--text-white); }
.cbed-author-badge .cbed-author-title { font-size: 12px; color: var(--text-muted); }

/* Content */
.cbed-content-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px 80px; }
.cbed-content-section { padding-top: 56px; border-top: 1px solid var(--border-light); margin-top: 48px; }
.cbed-content-section:first-child { border-top: none; margin-top: 0; }
.cbed-content-section h2 { font-size: 28px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.cbed-section-img { width: 100%; height: 340px; object-fit: cover; border-radius: 10px; margin-bottom: 24px; display: block; }
.cbed-content-section p { font-size: 17px; line-height: 1.8; color: var(--text-body); margin-bottom: 16px; }
.cbed-content-section h3 { font-size: 20px; font-weight: 600; color: var(--text-dark); margin: 28px 0 12px; }

/* Tables */
.cbed-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--border-light); margin-bottom: 24px; }
.cbed-table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cbed-table-wrap thead tr { background: var(--bg-dark); color: var(--text-white); }
.cbed-table-wrap thead th { padding: 12px 16px; font-weight: 600; text-align: left; }
.cbed-table-wrap tbody tr:nth-child(even) { background: var(--bg-section); }
.cbed-table-wrap tbody tr:hover { background: #e8f4fd; }
.cbed-table-wrap tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border-light); }
.cbed-table-wrap tbody td:first-child { font-weight: 600; }

/* Lists */
.cbed-content-section ul, .cbed-content-section ol { padding-left: 0; list-style: none; margin-bottom: 20px; }
.cbed-content-section ul li, .cbed-content-section ol li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 16px; line-height: 1.6; }
.cbed-content-section ul li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 3px; }
/* Li с strong-термином: карточный стиль */
.cbed-content-section ul li.term-item { display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.cbed-content-section ul li.term-item::before { display: none; }
.cbed-content-section ul li.term-item .cbed-term-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--text-dark); margin-bottom: 4px; }
.cbed-content-section ul li.term-item .cbed-term-label::before { content: "✓"; color: var(--accent); font-weight: 700; }
.cbed-content-section ul li.term-item .cbed-term-desc { font-size: 15px; color: var(--text-body); line-height: 1.6; }
.cbed-content-section ol { counter-reset: ol-counter; }
.cbed-content-section ol li { counter-increment: ol-counter; }
.cbed-content-section ol li::before { content: counter(ol-counter); background: var(--accent); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }

/* FAQ */
.cbed-faq-item { margin-bottom: 12px; }
.cbed-faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; background: var(--bg-section); border-radius: var(--radius-card); cursor: pointer; font-weight: 600; font-size: 16px; border-left: 3px solid var(--accent); border: 1px solid var(--border-light); border-left: 3px solid var(--accent); }
.cbed-faq-icon { color: var(--accent); transition: transform 0.2s; }
.cbed-faq-answer { padding: 0 20px 16px; border-left: 3px solid var(--accent); margin-top: -4px; background: var(--bg-section); border-radius: 0 0 8px 8px; display: none; }
.cbed-faq-item.open .cbed-faq-answer { display: block; }
.cbed-faq-item.open .cbed-faq-icon { transform: rotate(180deg); }

/* Author box */
.cbed-author-box { background: var(--accent-light); border-left: 4px solid var(--accent); border-radius: 10px; padding: 24px; margin: 48px 0; }
.cbed-author-box-inner { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.cbed-avatar-lg { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: white; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cbed-author-box .cbed-author-name { font-weight: 700; font-size: 17px; color: var(--text-dark); }
.cbed-author-box .cbed-author-role { font-size: 13px; color: var(--text-muted); }
.cbed-author-box p { font-size: 15px; color: var(--text-body); margin-bottom: 12px; }
.cbed-author-expertise { list-style: none; padding: 0; margin-bottom: 16px; }
.cbed-author-expertise li { font-size: 14px; color: var(--accent-text); padding: 3px 0; }
.cbed-author-expertise li::before { content: "✓ "; font-weight: 700; }
.cbed-author-box a { color: var(--accent); font-weight: 600; font-size: 14px; }

/* Reviewers */
.cbed-reviewers { max-width: 900px; margin: 0 auto; padding: 48px 20px; }
.cbed-reviewers h2 { font-size: 22px; font-weight: 700; margin-bottom: 24px; color: var(--text-dark); }
.cbed-reviewers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cbed-reviewer-card { background: white; border: 1px solid var(--border-light); border-radius: 10px; padding: 20px; box-shadow: var(--shadow-card); }
.cbed-reviewer-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.cbed-avatar-md { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-dark); color: white; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.cbed-reviewer-name { font-weight: 700; font-size: 15px; }
.cbed-reviewer-role { font-size: 13px; color: var(--text-muted); }
.cbed-reviewer-stars { color: #f59e0b; margin-bottom: 4px; }
.cbed-reviewer-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.cbed-reviewer-quote { font-style: italic; font-size: 14px; color: var(--text-body); line-height: 1.6; border-left: 2px solid var(--accent-light); padding-left: 12px; }

/* Footer */
footer { background: var(--bg-dark); color: var(--text-muted); padding: 40px 20px 24px; }
.cbed-footer-inner { max-width: 1100px; margin: 0 auto; }
.cbed-footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.cbed-footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.cbed-footer-nav a { color: var(--text-muted); font-size: 13px; transition: color 0.2s; }
.cbed-footer-nav a:hover { color: var(--text-white); }
.cbed-footer-links-section { display: flex; gap: 40px; flex-wrap: wrap; border-top: 1px solid var(--border-dark); padding-top: 20px; margin-bottom: 20px; }
.cbed-footer-links-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin-bottom: 10px; }
.cbed-footer-links-col a { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; transition: color .2s; }
.cbed-footer-links-col a:hover { color: var(--text-white); }
.cbed-footer-rg-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cbed-footer-rg-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--border-dark); border-radius: var(--radius-btn); padding: 5px 10px; font-size: 11px; color: var(--text-muted); text-decoration: none; transition: border-color .2s; }
.cbed-footer-rg-badge:hover { border-color: #64748b; color: var(--text-white); }
.cbed-footer-rg-badge .cbed-rg-icon { font-size: 14px; }
.cbed-footer-age { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: #ef4444; border-radius: 50%; font-size: 10px; font-weight: 800; color: #fff; flex-shrink: 0; }
.cbed-footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 16px; text-align: center; }
.cbed-footer-copy { font-size: 12px; margin-bottom: 6px; }
.cbed-footer-disclaimer { font-size: 11px; max-width: 700px; margin: 0 auto; line-height: 1.6; color: #475569; }

/* Author page */
.cbed-author-hero { background: var(--bg-dark); color: var(--text-white); padding: 64px 20px; text-align: center; }
.cbed-avatar-xl { width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: white; font-size: 36px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.cbed-author-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.cbed-author-hero .cbed-role { font-size: 18px; color: var(--text-muted); margin-bottom: 16px; }
.cbed-author-hero .cbed-bio { font-size: 16px; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.cbed-author-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 600px; margin: 0 auto; }
.cbed-expertise-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 48px auto; padding: 0 20px; }
.cbed-expertise-card { background: white; border: 1px solid var(--border-light); border-radius: 10px; padding: 20px; }
.cbed-expertise-icon { font-size: 32px; margin-bottom: 10px; }
.cbed-expertise-title { font-weight: 700; font-size: 16px; color: var(--text-dark); margin-bottom: 6px; }
.cbed-expertise-desc { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.cbed-methodology { background: var(--bg-section); padding: 48px 20px; }
.cbed-methodology-inner { max-width: 900px; margin: 0 auto; }
.cbed-methodology h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; }
.cbed-methodology p { font-size: 16px; color: var(--text-body); line-height: 1.8; margin-bottom: 16px; }
.cbed-recent-articles { max-width: 900px; margin: 0 auto; padding: 48px 20px; }
.cbed-recent-articles h2 { font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 24px; }
.cbed-articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cbed-article-card { background: white; border: 1px solid var(--border-light); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-card); }
.cbed-article-img { width: 100%; height: 140px; object-fit: cover; }
.cbed-article-body { padding: 16px; }
.cbed-article-title { font-weight: 600; font-size: 15px; color: var(--text-dark); margin-bottom: 8px; line-height: 1.4; }
.cbed-article-date { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.cbed-article-link { color: var(--accent); font-size: 13px; font-weight: 600; }

/* TOC */
.cbed-toc-block { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; max-width: 860px; margin: 0 auto 32px; overflow: hidden; }
.cbed-toc-toggle { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: none; border: none; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text-dark); text-align: left; }
.cbed-toc-toggle:hover { background: rgba(0,0,0,.03); }
.cbed-toc-toggle-icon { font-size: 16px; color: var(--accent); }
.cbed-toc-arrow { margin-left: auto; font-size: 12px; color: var(--text-muted); transition: transform .25s; }
.cbed-toc-block.open .cbed-toc-arrow { transform: rotate(180deg); }
.cbed-toc-list { display: none; padding: 0 20px 16px; border-top: 1px solid var(--border); }
.cbed-toc-block.open .cbed-toc-list { display: block; }
.cbed-toc-link { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; font-size: 14px; color: var(--text-body); border-bottom: 1px solid var(--border); transition: color .2s; }
.cbed-toc-link:last-child { border-bottom: none; }
.cbed-toc-link:hover { color: var(--accent); }
.cbed-toc-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Responsive */
@media (max-width: 768px) {
  .cbed-burger { display: block; }
  nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-dark); padding: 16px; z-index: 99; }
  nav.open { display: flex; }
  .cbed-hero { padding: 40px 16px 52px; }
  .cbed-hero h1 { font-size: 28px; font-weight: 900; line-height: 1.15; max-width: 100%; margin-bottom: 16px; letter-spacing: -0.3px; }
  .cbed-hero-sub { font-size: 15px; }
  .cbed-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cbed-reviewers-grid { grid-template-columns: 1fr; }
  .cbed-expertise-grid { grid-template-columns: 1fr; }
  .cbed-articles-grid { grid-template-columns: 1fr; }
  .cbed-author-stats { grid-template-columns: 1fr; }
  .cbed-footer-top { flex-direction: column; }
}
@media (max-width: 480px) {
  .cbed-hero h1 { font-size: 26px; font-weight: 900; line-height: 1.2; }
}
