/* ============================================================
   smartcapital.com.ua — shared design system
   Warm, friendly fintech. Green growth + warm gold accent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&display=swap');

:root {
  /* paper / surface */
  --paper:      #FAF6EE;
  --paper-2:    #F3ECDE;
  --surface:    #FFFFFF;
  --surface-2:  #F6F1E7;

  /* ink */
  --ink:        #14271D;
  --ink-2:      #4C5C53;
  --ink-3:      #7C887F;
  --line:       #E7DFCF;
  --line-2:     #EFE8DA;

  /* brand green */
  --brand-900:  #082A1E;
  --brand-800:  #0C3B2A;
  --brand-700:  #0E5A3C;
  --brand-600:  #11815A;   /* primary */
  --brand-500:  #1AA06E;
  --brand-300:  #8FD2B2;
  --brand-100:  #DCEFE3;
  --brand-50:   #EDF7F0;

  /* warm gold accent */
  --gold-600:   #D99413;
  --gold-500:   #F1B23C;
  --gold-300:   #F8D38A;
  --gold-100:   #FBE9C5;
  --gold-50:    #FCF3E0;

  /* signal */
  --up:         #11815A;
  --down:       #C7472B;
  --danger:     #B43A22;

  /* radius */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* shadow (warm) */
  --sh-sm: 0 1px 2px rgba(36,28,12,.06), 0 1px 1px rgba(36,28,12,.04);
  --sh:    0 4px 14px rgba(36,28,12,.07), 0 1px 3px rgba(36,28,12,.05);
  --sh-md: 0 14px 36px -12px rgba(20,40,29,.18), 0 4px 12px rgba(36,28,12,.06);
  --sh-lg: 0 30px 60px -22px rgba(12,40,28,.32);

  --maxw: 1200px;
  --font: 'Onest', system-ui, -apple-system, sans-serif;
  --display: 'Unbounded', 'Onest', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600);
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--gold-500); border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 13px 22px; font-size: 16px; font-weight: 600;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 18px -6px rgba(17,129,90,.55); }
.btn-primary:hover { background: var(--brand-700); box-shadow: 0 10px 26px -8px rgba(17,129,90,.6); }
.btn-gold { background: var(--gold-500); color: #3a2a06; box-shadow: 0 6px 18px -6px rgba(217,148,19,.5); }
.btn-gold:hover { background: var(--gold-600); color:#fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand-300); background: var(--brand-50); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 15px; font-size: 14.5px; font-weight: 500;
  color: var(--ink-2); transition: all .16s ease;
}
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); background: var(--brand-50); }
.chip svg { width: 15px; height: 15px; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: var(--sh-sm);
}

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(250,246,238,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tickerbar { background: var(--brand-900); color: #D7E7DF; }
.ticker { display: flex; gap: 26px; align-items: center; overflow: hidden; padding: 8px 24px; max-width: var(--maxw); margin: 0 auto; font-size: 13.5px; color: #BFE0CE; }
.ticker .tk { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ticker .tk b { color: #fff; font-weight: 600; }
.ticker .tk .up { color: #6FE0A6; }
.ticker .tk .down { color: #FF9D86; }
.ticker .tk-label { color: #7FA593; }
.ticker .sep { width: 4px; height: 4px; border-radius: 50%; background: #2C5443; flex: none; }
.ticker .tk-live { margin-left: auto; display:inline-flex; align-items:center; gap:7px; color:#7FA593; }
.ticker .dot { width:7px;height:7px;border-radius:50%;background:#6FE0A6; box-shadow:0 0 0 0 rgba(111,224,166,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(111,224,166,.5);} 70%{box-shadow:0 0 0 7px rgba(111,224,166,0);} 100%{box-shadow:0 0 0 0 rgba(111,224,166,0);} }

.nav { display: flex; align-items: center; gap: 22px; height: 70px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; color: var(--ink); }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand small { display: block; white-space: nowrap; line-height: 1.1; margin-top: 1px; font-family: var(--font); font-weight: 600; font-size: 11px; color: var(--ink-3); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 0 0 8px; padding: 0; list-style: none; }
.nav-links li { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-links li::marker { content: ""; }
.nav-links a { display: inline-flex; align-items: center; padding: 9px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: 15.5px; line-height: 1; color: var(--ink-2); white-space: nowrap; transition: color .15s, background .15s; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-menu-parent > a,
.nav-links a.active { color: var(--brand-700); background: var(--brand-50); font-weight: 600; }
.nav-spacer { flex: 1; }
.nav-search { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; color: var(--ink-3); font-size: 14.5px; min-width: 210px; transition: border-color .15s; cursor: text; }
.nav-search:hover { border-color: var(--brand-300); }
.nav-search svg { width: 17px; height: 17px; }
.nav-search input { border:none; outline:none; background:transparent; font-family:var(--font); font-size:14.5px; color:var(--ink); flex:1; min-width:0; }
.nav-search kbd { margin-left: auto; font-family: var(--font); font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--ink-3); }
.nav-toggle { display:none; margin-left:auto; width:42px; height:42px; border-radius:12px; border:1px solid var(--line); background:var(--surface); color:var(--ink); align-items:center; justify-content:center; }
.nav-toggle svg { width:22px; height:22px; }

/* ---------- footer ---------- */
.site-foot { background: var(--brand-900); color: #BCD8C8; margin-top: 90px; }
.site-foot a { color: #BCD8C8; transition: color .15s; }
.site-foot a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; padding: 64px 24px 40px; max-width: var(--maxw); margin: 0 auto; }
.foot-col h5 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; margin: 0 0 16px; text-transform: uppercase; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.foot-brand .brand { color: #fff; }
.foot-brand p { color: #87AC99; font-size: 14.5px; margin-top: 16px; max-width: 280px; line-height: 1.6; }
.foot-bottom { border-top: 1px solid #143A2A; padding: 22px 24px; max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; font-size: 13.5px; color: #6F9482; }
.foot-bottom .disc { max-width: 640px; }

/* ---------- section title ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); }
.sec-head p { color: var(--ink-2); margin-top: 10px; max-width: 560px; }
.sec-link { color: var(--brand-700); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; font-size: 15.5px; }
.sec-link svg { width: 16px; height: 16px; transition: transform .15s; }
.sec-link:hover svg { transform: translateX(3px); }

/* tabular figures helper */
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* badges */
.tag { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; padding:4px 9px; border-radius:7px; }
.tag-calc { background: var(--brand-100); color: var(--brand-700); }
.tag-ref  { background: var(--gold-100); color: var(--gold-600); }
.tag-exp  { background: #E7E9F4; color:#4B53A0; }
.tag-hot  { background: #FCE3D9; color: var(--danger); }

/* freshness pill */
.fresh { display:inline-flex; align-items:center; gap:7px; font-size:13px; color: var(--ink-3); }
.fresh b { color: var(--ink-2); font-weight:600; }

/* mobile nav panel */
.mnav { display:none; }

@media (max-width: 980px) {
  .nav-links, .nav-search { display: none; }
  .nav-toggle { display: inline-flex; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mnav.open { display:block; background:var(--surface); border-bottom:1px solid var(--line); }
  .mnav.open ul { list-style:none; margin:0; padding:10px 24px 18px; display:grid; gap:2px; max-width:var(--maxw); margin:0 auto; }
  .mnav.open a { display:block; padding:11px 12px; border-radius:12px; font-weight:600; color:var(--ink-2); }
  .mnav.open a:hover { background:var(--brand-50); color:var(--brand-700); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .wrap, .wrap-narrow { padding: 0 18px; }
}
