/* ════════════════════════════════════════════════════════════════════════════
   CardOS UI — единый дизайн-слой для всех публичных поверхностей.
   Один источник токенов + общая шапка (.cos-header) и подвал (.cos-footer).

   ДИЗАЙН-ДНК CardOS (полная версия — Obsidian DESIGN_DNA.md):
   Формула: Dark Minimalism (база) + Bento Box (композиция) + Oversized Type (акценты) + Lightweight 3D (точечно).
   1. Доверие прежде всего — это деньги/карты: сдержанность, читаемость, воздух.
   2. Bento — модульные скруглённые карточки в сетке.
   3. Типографика: Unbounded (дисплей/oversized-акценты) + Onest (текст). Unbounded НЕ для абзацев.
   4. Дисциплина акцента: один лайм #C8F250 (точечно) + фиолетовый #8B7CF6 (вторичный). Не множить.
   5. Лёгкая глубина: lightweight-3D только на карточных/продуктовых моментах.
   НЕЛЬЗЯ: Neo-Brutalism, Y2K/chrome, несущий glassmorphism на длинных формах, 2+ конкурирующих акцента.
   Ориентир доверия: Tinkoff / Plata / Stripe. Любой UI — через этот язык, не изобретать заново.
   ════════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@500;600;700&family=Onest:wght@400;500;600;700&display=swap');

:root {
  --bg: #0A0B0D;
  --bg-2: #101216;
  --surface: #16181E;
  --surface-2: #1C1F26;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .05);
  --txt: #F3F4F6;
  --dim: #8A90A0;
  --faint: #5A606C;
  --accent: #C8F250;
  --accent-ink: #0B0D08;
  --violet: #8B7CF6;
  --ok: #5BE08A;
  --warn: #E8B341;
  --danger: #FF6B6B;
  --r: 16px;
  --display: 'Unbounded', sans-serif;
  --body: 'Onest', system-ui, -apple-system, sans-serif;
  --wrap: 1080px;
}

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

/* ── Шапка ── */
.cos-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 13, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.cos-header .bar { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.cos-logo { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--txt); text-decoration: none; }
.cos-logo .d { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.cos-header nav.cos-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; height: auto; } /* портативность: бьёт глобальные nav{} страниц */
.cos-nav { display: flex; align-items: center; gap: 6px; }
.cos-nav a { color: var(--dim); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 9px; transition: .15s; }
.cos-nav a:hover { color: var(--txt); background: var(--surface-2); }
.cos-nav a.active { color: var(--txt); }
.cos-login { border: 1px solid var(--line) !important; background: var(--surface-2) !important; color: var(--txt) !important; font-weight: 500; }
.cos-login:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)) !important; background: var(--surface-2) !important; }
.cos-cta { background: var(--accent) !important; color: var(--accent-ink) !important; font-weight: 600; }
.cos-cta:hover { filter: brightness(1.05); }
.cos-burger { display: none; }
@media (max-width: 720px) {
  .cos-nav a:not(.cos-cta) { display: none; }
}

/* ── Подвал ── */
.cos-footer { border-top: 1px solid var(--line); margin-top: 60px; background: var(--bg-2); }
.cos-footer .inner { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 32px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.cos-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 14px; font-weight: 600; }
.cos-footer a { display: block; color: var(--dim); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: .15s; }
.cos-footer a:hover { color: var(--accent); }
.cos-footer .brand { font-family: var(--display); font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 9px; color: var(--txt); }
.cos-footer .brand .d { width: 26px; height: 26px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.cos-footer .tag { color: var(--dim); font-size: 13.5px; margin-top: 14px; max-width: 280px; line-height: 1.6; }
.cos-footer .bottom { border-top: 1px solid var(--line-2); max-width: var(--wrap); margin: 0 auto; padding: 18px 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--faint); font-size: 13px; }
.cos-footer .bottom a { display: inline; color: var(--faint); }
@media (max-width: 720px) { .cos-footer .inner { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ── Кнопки ── */
.cos-btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 11px 18px; border-radius: 11px; text-decoration: none; font-size: 14px; border: none; cursor: pointer; transition: .15s; }
.cos-btn:hover { filter: brightness(1.05); }
.cos-btn.ghost { background: var(--surface-2); color: var(--txt); border: 1px solid var(--line); }
.cos-btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); filter: none; }
