/* kak-ekonomit.study — design signature: dense guide / documentation style, navy+teal+gold */
:root {
  --navy: #1b2a4a;
  --navy-light: #e8ecf4;
  --navy-mid: #2d4270;
  --teal: #0d9e9a;
  --teal-light: #e6f7f7;
  --teal-dark: #087875;
  --gold: #e8920a;
  --gold-light: #fff8ed;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --border: #d8e2ef;
  --text: #1a2436;
  --text-muted: #5a6b85;
  --text-light: #96aac0;
  --radius: 8px;
  --radius-sm: 5px;
  --shadow: 0 2px 10px rgba(27,42,74,.10);
  --shadow-md: 0 5px 22px rgba(27,42,74,.15);
  --max-w: 1200px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.72; color: var(--text); background: var(--bg); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* ── Header ── */
.site-header { background: var(--navy); border-bottom: 3px solid var(--teal); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(27,42,74,.4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.logo-icon { width: 34px; height: 34px; background: var(--teal); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; flex-shrink: 0; font-weight: 900; }
.site-nav { display: flex; gap: 3px; flex-wrap: wrap; }
.site-nav a { font-size: .86rem; font-weight: 500; color: rgba(255,255,255,.78); padding: 6px 12px; border-radius: var(--radius-sm); transition: background .2s, color .2s; }
.site-nav a:hover, .site-nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-cta { background: var(--gold) !important; color: #fff !important; font-weight: 700 !important; }
.nav-cta:hover { background: #c47808 !important; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 14px 0 0; font-size: .82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span + span::before { content: ' / '; margin: 0 5px; }

/* ── Hero — guide style ── */
.hero { background: var(--navy); color: #fff; padding: 60px 0 52px; }
.hero-tag { display: inline-block; background: var(--teal); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 12px; border-radius: 4px; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); font-weight: 900; line-height: 1.18; margin-bottom: 16px; max-width: 820px; }
.hero p { font-size: 1.1rem; opacity: .87; max-width: 620px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 44px; }
.hero-stat { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 16px 20px; }
.hero-stat-num { font-size: 1.6rem; font-weight: 900; color: var(--gold); line-height: 1; }
.hero-stat-label { font-size: .82rem; opacity: .78; margin-top: 4px; }

/* ── Buttons ── */
.btn { display: inline-block; font-weight: 700; border-radius: var(--radius-sm); padding: 12px 24px; font-size: .95rem; cursor: pointer; border: none; transition: transform .15s, box-shadow .15s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #c47808; color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: .84rem; }

/* ── Section ── */
.section { padding: 56px 0; }
.section-sm { padding: 36px 0; }
.section-title { font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 1rem; margin-bottom: 30px; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; max-width: 580px; }

/* ── Guide cards (dense) ── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.guide-card { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--teal); border-radius: var(--radius); padding: 22px 24px; transition: box-shadow .2s; }
.guide-card:hover { box-shadow: var(--shadow-md); }
.guide-card-num { display: inline-block; background: var(--teal); color: #fff; font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; letter-spacing: .04em; }
.guide-card h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 7px; line-height: 1.4; }
.guide-card h3 a { color: var(--navy); }
.guide-card h3 a:hover { color: var(--teal); text-decoration: none; }
.guide-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.guide-card-meta { display: flex; gap: 12px; margin-top: 12px; font-size: .78rem; color: var(--text-light); }
.guide-card-link { display: inline-block; margin-top: 10px; font-size: .86rem; font-weight: 600; color: var(--teal); }

/* ── Step-by-step ── */
.steps-numbered { display: flex; flex-direction: column; gap: 0; }
.step-n { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: flex-start; position: relative; }
.step-n:not(:last-child)::before { content: ''; position: absolute; left: 23px; top: 44px; bottom: -16px; width: 2px; background: var(--border); }
.step-n-num { width: 46px; height: 46px; background: var(--navy); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.1rem; flex-shrink: 0; z-index: 1; position: relative; }
.step-n-body { padding: 10px 0 32px; }
.step-n-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.step-n-body p { font-size: .93rem; color: var(--text-muted); margin-bottom: 0; }

/* ── Checklist ── */
.checklist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: .93rem; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.checklist li::before { content: '✓'; color: var(--teal); font-weight: 900; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Article guide layout ── */
.guide-layout { display: grid; grid-template-columns: 1fr 280px; gap: 44px; align-items: start; }
.guide-body h2 { font-size: 1.38rem; font-weight: 800; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--teal-light); color: var(--navy); }
.guide-body h3 { font-size: 1.08rem; font-weight: 700; margin: 22px 0 8px; color: var(--navy); }
.guide-body p { margin-bottom: 14px; }
.guide-body ul, .guide-body ol { padding-left: 22px; margin-bottom: 14px; }
.guide-body li { margin-bottom: 5px; }
.guide-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .91rem; }
.guide-body table th { background: var(--navy); color: #fff; padding: 10px 14px; text-align: left; }
.guide-body table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.guide-body table tr:nth-child(even) td { background: var(--navy-light); }
.guide-intro { font-size: 1.06rem; color: var(--text-muted); border-left: 4px solid var(--teal); padding-left: 16px; margin-bottom: 24px; }

/* ── TOC ── */
.toc { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 20px 22px; position: sticky; top: 80px; }
.toc-title { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 12px; }
.toc-list { list-style: none; padding: 0; }
.toc-list li { margin-bottom: 6px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.toc-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.toc-list a { font-size: .87rem; color: var(--text-muted); display: block; padding: 2px 0; }
.toc-list a:hover { color: var(--teal); text-decoration: none; }
.toc-cta { background: linear-gradient(135deg, var(--teal-light), var(--gold-light)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; margin-top: 16px; }
.toc-cta h4 { font-size: .95rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.toc-cta p { font-size: .82rem; color: var(--text-muted); margin-bottom: 12px; }
.toc-cta .price { font-size: 1.3rem; font-weight: 900; color: var(--gold); display: block; margin-bottom: 10px; }

/* ── CTA blocks ── */
.cta-strip { background: var(--gold-light); border: 1px solid #f0c080; border-left: 4px solid var(--gold); border-radius: var(--radius-sm); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 28px 0; }
.cta-strip p { font-weight: 600; font-size: .95rem; margin: 0; }
.cta-banner { background: linear-gradient(135deg, var(--navy), var(--navy-mid)); border-radius: var(--radius); padding: 44px 36px; text-align: center; color: #fff; }
.cta-banner h2 { font-size: 1.7rem; font-weight: 900; margin-bottom: 10px; }
.cta-banner p { opacity: .87; margin-bottom: 24px; font-size: 1.02rem; }

/* ── Note / Warning ── */
.note { background: var(--teal-light); border-left: 4px solid var(--teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 13px 17px; font-size: .91rem; margin: 16px 0; }
.note strong { color: var(--teal-dark); }
.note-gold { background: var(--gold-light); border-left-color: var(--gold); }
.note-gold strong { color: #a06008; }
.note-navy { background: var(--navy-light); border-left-color: var(--navy); }

/* ── Table comparison ── */
.comparison-wrap { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: .91rem; }
.comparison-table th { background: var(--navy); color: #fff; padding: 11px 14px; text-align: left; }
.comparison-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.comparison-table tr:nth-child(even) td { background: var(--navy-light); }
.comparison-table .winner-row td { background: var(--gold-light) !important; font-weight: 600; }
.check { color: var(--teal); font-weight: 700; }
.cross { color: #c0392b; }
.winner-badge { display: inline-block; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 8px; margin-left: 5px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq-q { width: 100%; background: none; border: none; padding: 15px 18px; text-align: left; font-size: .95rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--navy); }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--teal); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 18px 14px; color: var(--text-muted); font-size: .91rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── Featured product ── */
.product-featured { background: linear-gradient(135deg, var(--teal-light), var(--gold-light)); border: 2px solid var(--teal); border-radius: var(--radius); padding: 32px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.product-featured h3 { font-size: 1.4rem; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.product-featured .price { font-size: 1.9rem; font-weight: 900; color: var(--gold); }
.product-featured .price-old { font-size: .95rem; color: var(--text-light); text-decoration: line-through; margin-right: 7px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 8px; }
.badge-teal { background: var(--teal-light); color: var(--teal-dark); }
.badge-gold { background: var(--gold-light); color: var(--gold); }
.badge-hot { background: var(--gold); color: #fff; }
.badge-wrap { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }

/* ── Related ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.related-link { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 15px; font-size: .87rem; font-weight: 600; color: var(--teal); display: block; transition: box-shadow .2s; }
.related-link:hover { box-shadow: var(--shadow); text-decoration: none; }
.related-link span { display: block; font-size: .77rem; font-weight: 400; color: var(--text-muted); margin-top: 3px; }

/* ── Page header ── */
.page-header { background: var(--navy); color: #fff; padding: 46px 0 36px; }
.page-header h1 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 900; margin-bottom: 10px; }
.page-header p { opacity: .85; font-size: 1rem; max-width: 620px; }

/* ── Rating ── */
.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rating-num { font-size: 1.35rem; font-weight: 900; color: var(--gold); }
.stars { color: #f0a500; font-size: 1rem; }

/* ── Blog cards ── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card-top { padding: 16px 20px 0; }
.blog-tag { display: inline-block; background: var(--teal-light); color: var(--teal); font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 8px; letter-spacing: .04em; }
.blog-card-body { padding: 10px 20px 20px; }
.blog-card-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin-bottom: 7px; }
.blog-card-body h3 a { color: var(--navy); }
.blog-card-body h3 a:hover { color: var(--teal); text-decoration: none; }
.blog-card-body p { font-size: .86rem; color: var(--text-muted); }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.footer-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.05rem; color: #fff; margin-bottom: 10px; }
.footer-about p { font-size: .86rem; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: .87rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .85rem; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .79rem; color: rgba(255,255,255,.42); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-featured { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
  .site-nav { justify-content: center; }
  .hero { padding: 40px 0 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; text-align: center; }
}
