/* ===== Фирменная палитра CVForge — дуотон: глубокий синий + теплый янтарь ===== */
:root {
  --brand: #1e40af;
  --brand-2: #3b82f6;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius-1: 10px;
  --radius-2: 14px;
  --radius-3: 18px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow-2: 0 4px 12px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
  --shadow-3: 0 12px 32px rgba(15,23,42,.08), 0 4px 12px rgba(15,23,42,.05);
  --font-sans: 'Segoe UI', system-ui, -apple-system, 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Segoe UI', system-ui, -apple-system, 'Inter', Roboto, Arial, sans-serif;
}

/* ===== Базовый сброс ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Mesh-градиентные пятна на фоне */
body::before {
  content: '';
  position: fixed;
  top: -10%; right: -5%;
  width: 50%; height: 60%;
  background: radial-gradient(circle, rgba(59,130,246,.10) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  bottom: -10%; left: 10%;
  width: 45%; height: 55%;
  background: radial-gradient(circle, rgba(245,158,11,.07) 0%, transparent 60%);
  z-index: 0;
  pointer-events: none;
}

/* ===== App layout: rail + content ===== */
.app { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ----- Rail ----- */
.rail {
  width: 240px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
  transition: transform .3s var(--ease-out, cubic-bezier(.4,0,.2,1));
}

.rail-brand { margin-bottom: 32px; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--radius-1);
  letter-spacing: -0.5px;
  box-shadow: var(--shadow-2);
  flex-shrink: 0;
}
.brand-mark.sm { width: 28px; height: 28px; font-size: 11px; }
.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.rail-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-1);
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s, color .2s;
}
.nav-item:hover {
  background: color-mix(in srgb, var(--brand) 6%, transparent);
  color: var(--text);
}
.nav-item.is-active {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-weight: 600;
}
.nav-ico { width: 20px; height: 20px; flex-shrink: 0; }

.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.user-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-1);
  border: 1px solid var(--border);
}
.user-ava {
  width: 32px; height: 32px;
  border-radius: var(--radius-pill);
  background: var(--grad);
  color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.user-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ----- Content ----- */
.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease-out, cubic-bezier(.4,0,.2,1));
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar-spacer { flex: 1; }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 6px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

.main {
  flex: 1;
  padding: 48px 32px 64px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-1);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-2); }
.btn-primary:hover { box-shadow: var(--shadow-3); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.btn-accent { background: var(--grad-accent); color: #1a1206; box-shadow: var(--shadow-2); }
.btn-block { width: 100%; }

/* ===== Секции ===== */
.section { margin-bottom: 64px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ===== Карточки-«surface» ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }

/* ===== Герой ===== */
.hero {
  position: relative;
  padding: 56px 0 48px;
  margin-bottom: 56px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: #92400e;
  border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--text) 50%, var(--brand-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}
.hero-ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

.hero-mesh {
  position: absolute;
  top: -20px; right: -10%;
  width: 60%; height: 120%;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(59,130,246,.12