/* CFinder — дизайн-система (перенос из Claude Design «CFinder App»)
   Шрифты: Unbounded (акценты), Onest (текст), JetBrains Mono (коды). */
:root {
  --bg: #F3F6F5;
  --surface: #FFFFFF;
  --ink: #0F1B1A;
  --text: #33413F;
  --muted: #5B6B69;
  --dim: #8A9997;
  --line: #E3E8E7;
  --line2: #EEF2F1;
  --teal: #0F766E;
  --teal2: #0D9488;
  --mint: #5EEAD4;
  --mint-bg: #F0FDFA;
  --mint-line: #CCFBF1;
  --amber-bg: #FEF3C7; --amber: #92400E; --amber-dot: #F59E0B;
  --green-bg: #D1FAE5; --green: #065F46; --green-dot: #10B981; --ok: #059669;
  --red-bg: #FEE2E2; --red: #991B1B; --red-dot: #EF4444; --danger: #DC2626;
  --blue-bg: #E0F2FE; --blue: #075985;
  --warn: #D97706;
  --grey-bg: #E7ECEB; --grey: #4B5B59; --grey-dot: #9AA7A5;
  --r-card: 20px; --r-btn: 14px; --r-input: 12px;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --sans: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --teal-dark: var(--teal); --teal-bg: var(--mint-bg); --radius: var(--r-card);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal2); }
input::placeholder, textarea::placeholder { color: var(--dim); }
button { font-family: inherit; }
img { max-width: 100%; }
h1, h2, h3 { text-wrap: balance; }
@keyframes cfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 14px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo .wordmark { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo .wordmark-c { font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; }
.logo .wordmark-c .i { position: relative; display: inline-block; }
.logo .wordmark-c .i span { position: absolute; left: 50%; top: .04em; width: .26em; height: .26em; border-radius: 50%; background: #14B8A6; transform: translateX(-50%); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--text); font-weight: 600; font-size: 13.5px; padding: 8px 11px; border-radius: 10px; white-space: nowrap; flex: none; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.active { background: var(--ink); color: #fff; }
.nav a.admin { color: #B45309; background: var(--amber-bg); margin-left: 4px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.userchip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 5px; font-weight: 600; font-size: 13.5px; color: var(--ink); max-width: 220px; }
.userchip:hover { color: var(--ink); border-color: #CFD8D6; }
.userchip .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-ini { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-family: var(--display); font-size: 12px; font-weight: 700; flex: none; }
.iconbtn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 0; }
.iconbtn:hover { color: var(--ink); border-color: #CFD8D6; }
.inline-form { display: inline; margin: 0; }

/* ---------- контейнеры ---------- */
.main { flex: 1; display: flex; flex-direction: column; }
.wrap { max-width: 1120px; margin: 0 auto; width: 100%; padding: clamp(20px, 3vw, 40px) 20px 56px; display: grid; gap: 18px; align-content: start; }
.wrap-narrow { max-width: 480px; margin: 0 auto; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
h1.page { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
.page-meta { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.sub { color: var(--muted); font-size: 14.5px; }
.small { font-size: 12.5px; color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.nowrap { white-space: nowrap; }
.mb0 { margin-bottom: 0 !important; } .mt0 { margin-top: 0 !important; }
h2.sec { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; margin: 0; display: flex; align-items: center; gap: 8px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.link-more { color: var(--teal); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section { display: grid; gap: 12px; }

/* ---------- карточки ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; }
.card h2 { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; margin: 0 0 12px; }
.card-dashed { background: var(--surface); border: 1px dashed #CFD8D6; border-radius: var(--r-card); padding: clamp(32px, 5vw, 56px) 20px; display: grid; gap: 12px; justify-items: center; text-align: center; }
.card-dashed .ico { width: 72px; height: 72px; border-radius: 22px; background: var(--mint-bg); color: var(--teal); display: grid; place-items: center; }
.card-dashed .ico.grey { background: var(--bg); color: var(--muted); }
.card-dashed .ttl { font-weight: 700; font-size: 17px; }
.card-dashed p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 380px; }
.grid { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.grid-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.stat .lbl { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* тёмный hero-блок (баланс) */
.hero-dark { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(22px, 3vw, 32px); position: relative; overflow: hidden; }
.hero-dark::before { content: ''; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; border: 38px solid rgba(94,234,212,.08); pointer-events: none; }
.hero-dark > * { position: relative; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; align-items: end; }
.hero-lbl { font-size: 13px; color: rgba(255,255,255,.65); font-weight: 500; }
.hero-num { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1; color: var(--mint); }
.hero-sub { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.hero-sub .k { font-size: 12px; color: rgba(255,255,255,.55); }
.hero-sub .v { font-family: var(--display); font-weight: 600; font-size: 17px; display: flex; align-items: center; gap: 6px; }
.hero-actions { display: flex; justify-content: flex-end; }
.btn-ghost-dark { background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.14); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ink); color: #fff; border: 0; font: 600 14px var(--sans); padding: 11px 16px; border-radius: 12px; cursor: pointer; text-decoration: none; white-space: nowrap; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: #1B2B2A; color: #fff; }
.btn-lg { font-size: 15px; padding: 15px 22px; border-radius: var(--r-btn); }
.btn-sm { font-size: 13px; padding: 7px 12px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #4FDCC6; color: var(--ink); }
.btn-secondary, .btn-outline, .btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid rgba(15,27,26,.14); padding: calc(11px - 1.5px) 16px; }
.btn-secondary:hover, .btn-outline:hover, .btn-ghost:hover { background: var(--bg); color: var(--ink); border-color: rgba(15,27,26,.3); }
.btn-ghost { color: var(--muted); border-color: var(--line); }
.btn-lg.btn-secondary, .btn-lg.btn-outline, .btn-lg.btn-ghost { padding: calc(15px - 1.5px) 22px; }
.btn-sm.btn-secondary, .btn-sm.btn-outline, .btn-sm.btn-ghost { padding: calc(7px - 1.5px) 12px; }
.btn-soft { background: var(--mint-bg); color: var(--teal); }
.btn-soft:hover { background: var(--mint-line); color: var(--teal); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #B91C1C; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--bg); color: var(--ink); }
.btn-link { background: none; border: 0; padding: 0; color: var(--teal); font: 600 14px var(--sans); cursor: pointer; }
.btn[disabled], .btn:disabled { background: #CFD8D6; color: var(--dim); cursor: not-allowed; }

/* ---------- флеш и алерты ---------- */
.flash-wrap { max-width: 1120px; margin: 14px auto 0; padding: 0 20px; width: 100%; }
.flash, .alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r-btn); padding: 12px 14px; font-size: 14px; font-weight: 500; line-height: 1.5; animation: cfIn .3s ease; }
.flash svg, .alert > svg { flex: none; margin-top: 2px; }
.flash > span { flex: 1; }
.flash-close { background: none; border: 0; cursor: pointer; color: inherit; padding: 0; display: grid; place-items: center; opacity: .7; }
.flash-success, .alert-success { background: var(--green-bg); color: var(--green); }
.flash-info, .alert-info { background: var(--blue-bg); color: var(--blue); }
.flash-error, .alert-error { background: var(--red-bg); color: var(--red); }
.alert { display: block; }
.alert ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.alert a { color: inherit; text-decoration: underline; }

/* ---------- статусы и бейджи ---------- */
.badge, .st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 999px; font-weight: 600; font-size: 11.5px; line-height: 1.4; white-space: nowrap; vertical-align: middle; }
.badge::before, .st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; flex: none; }
.badge-pending, .st-pending, .badge-attention { background: var(--amber-bg); color: var(--amber); }
.badge-approved, .st-approved, .badge-done, .st-done, .badge-ok { background: var(--green-bg); color: var(--green); }
.badge-rejected, .st-rejected, .badge-error { background: var(--red-bg); color: var(--red); }
.badge-muted, .st-muted, .badge-ignored { background: var(--grey-bg); color: var(--grey); }
.badge-featured { background: var(--amber-bg); color: var(--amber); padding: 4px 9px 4px 7px; font-size: 12px; }
.badge-featured::before { display: none; }
.badge-plain::before { display: none; }

/* ---------- чипы категорий ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px 9px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 500; font-size: 13.5px; white-space: nowrap; flex: none; cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: #BFCBC8; color: var(--ink); }
.chip .ic { color: var(--teal); display: inline-flex; }
.chip .cnt { font-family: var(--display); font-size: 10.5px; color: var(--dim); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active .ic { color: var(--mint); } .chip.active .cnt { color: var(--mint); }
.chip.empty { background: var(--bg); color: var(--dim); }
.chip.empty .ic { color: var(--dim); }
.chip.dark { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); color: #fff; padding: 9px 14px 9px 11px; }
.chip.dark .ic { color: var(--mint); }
.chip.chip-ink { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.cat-desc { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); margin-top: -6px; }
.cat-desc .ic { color: var(--teal); display: inline-flex; }

/* ---------- фильтры каталога ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-input); padding: 0 14px; }
.search:focus-within { border-color: var(--teal); }
.search svg { color: var(--dim); flex: none; }
.search input { font: 500 15px var(--sans); padding: 12px 0; border: 0; color: var(--ink); outline: none; background: transparent; width: 100%; }
.filters select { flex: 0 0 auto; width: auto; }

/* ---------- карточка предложения ---------- */
.avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 12px; flex: none; overflow: hidden; letter-spacing: -0.01em; }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 5px; display: block; }
.avatar-sm { width: 42px; height: 42px; border-radius: 13px; font-size: 11px; }
.avatar-md { width: 44px; height: 44px; border-radius: 13px; font-size: 11.5px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 15px; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: grid; gap: 14px; align-content: space-between; animation: cfIn .3s ease; }
.ocard-top { display: grid; gap: 12px; }
.ocard-head { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.ocard-head:hover { color: var(--ink); }
.ocard-head .t { flex: 1; min-width: 0; }
.ocard-title { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.ocard-partner { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ocard-desc { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.ocard-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ocard-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.reward { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--teal); letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.reward-sm { font-size: 22px; }
.reward-lg { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.03em; }
.tagpill { font-size: 12px; font-weight: 500; color: var(--ink); background: var(--bg); border: 0; border-radius: 999px; padding: 6px 10px; display: inline-flex; align-items: center; gap: 5px; cursor: pointer; text-decoration: none; }
.tagpill .ic { color: var(--teal); display: inline-flex; }
.tagpill.muted { color: var(--muted); cursor: default; }
a.tagpill:hover { background: var(--line2); color: var(--ink); }

/* ---------- списки-строки ---------- */
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 20px; }
.rows-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0 8px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.row.start { align-items: flex-start; }
.row-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--mint-bg); color: var(--teal); display: grid; place-items: center; flex: none; }
.row-ico.grey { background: var(--bg); color: var(--ink); }
.row-main { flex: 1 1 200px; min-width: 0; }
.row-title { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.row-title.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row-body { flex: 2 1 300px; min-width: 0; font-size: 13.5px; color: var(--text); line-height: 1.5; }
.row-right { text-align: right; flex: none; min-width: 110px; }
.row-amt { font-family: var(--display); font-weight: 600; font-size: 15px; }
.row-amt.ok { color: var(--ok); } .row-amt.dim { color: var(--dim); }
.row-right .st, .row-right .badge { margin-top: 4px; }
.rows .pad { height: 8px; }
.codebox { flex: 1; font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.codebox-lg { font-size: 14px; padding: 13px 14px; border-radius: 12px; }
.linkbar { display: flex; align-items: center; gap: 8px; flex: 1 1 300px; min-width: 0; }
.clicks-cnt { font-size: 12.5px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }

/* ---------- формы ---------- */
label.f { display: block; font-size: 13.5px; font-weight: 600; margin: 14px 0 6px; }
label.f:first-child { margin-top: 0; }
label.f .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], select, textarea {
  font: 500 15px var(--sans); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--r-input); color: var(--ink); outline: none; background: #fff; width: 100%; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6B69' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.form-row label.f { margin-top: 14px; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; margin: 14px 0; }
.checkline input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal2); flex: none; }
.code-input { font-family: var(--display) !important; font-weight: 600 !important; font-size: 34px !important; letter-spacing: .35em; text-align: center; padding: 16px 10px 16px 18px !important; border-radius: var(--r-btn) !important; background: var(--bg) !important; }
.amount-input { font-family: var(--display) !important; font-weight: 600 !important; font-size: 20px !important; }
.mono-input { font-family: var(--mono) !important; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); border-radius: 12px; padding: 4px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg span { display: block; text-align: center; font-weight: 600; font-size: 14px; padding: 10px; border-radius: 9px; color: var(--muted); transition: background .15s, color .15s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,27,26,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--teal); }
.copyline { display: flex; gap: 8px; flex-wrap: wrap; }
.copybox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.copybox code { flex: 1 1 240px; font-family: var(--mono); font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.doc-body { max-width: 820px; font-size: 15px; line-height: 1.6; color: var(--text); padding: clamp(22px, 3vw, 36px); }
.doc-body h1, .doc-body h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); font-size: 20px; margin: 0 0 12px; }
.doc-body h3 { font-size: 16px; color: var(--ink); margin: 18px 0 8px; }
.doc-body p { margin: 0 0 12px; }
.doc-body ul, .doc-body ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- таблицы (админка) ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px; border-top: 1px solid var(--line2); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .badge { margin: 1px 0; }
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.subnav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--text); background: #fff; border: 1px solid var(--line); }
.subnav a:hover { color: var(--ink); border-color: #BFCBC8; }
.subnav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
details summary { cursor: pointer; }
pre { font-family: var(--mono); }

/* ---------- лендинг ---------- */
.hero { background: var(--ink); color: #fff; padding: clamp(40px, 7vw, 88px) 20px clamp(32px, 5vw, 64px); overflow: hidden; }
.hero-in { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.pill-tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(94,234,212,.12); color: var(--mint); font-weight: 600; font-size: 12.5px; letter-spacing: .04em; }
.pill-tag::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.025em; margin: 0; }
.hero p.lead { margin: 0; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.55; color: rgba(255,255,255,.72); max-width: 540px; text-wrap: pretty; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-hero-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.28); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.hero-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,.6); }
.hero-stats b { color: #fff; font-family: var(--display); font-weight: 600; }
.hero-visual { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.hv-card { width: min(100%, 340px); background: #fff; color: var(--ink); border-radius: 20px; padding: 18px; display: grid; gap: 12px; transform: rotate(-3deg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.hv-card .avatar { width: 46px; height: 46px; }
.hv-card .ttl { font-weight: 700; font-size: 15px; line-height: 1.3; }
.hv-card .sub { font-size: 13px; }
.hv-card .cta { background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; text-align: center; }
.hv-badge { position: absolute; left: 0; bottom: 6px; background: var(--mint); color: var(--ink); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; transform: rotate(4deg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.hv-badge .ck { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; flex: none; }
.hv-badge .k { font-size: 12px; font-weight: 600; opacity: .75; }
.hv-badge .v { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.hv-note { position: absolute; right: 0; top: 0; background: #fff; color: var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 600; transform: rotate(6deg); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.hero-cats { max-width: 1120px; margin: clamp(28px, 4vw, 56px) auto 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; mask-image: linear-gradient(90deg, #000 88%, transparent); }
.hero-cats::-webkit-scrollbar { display: none; }
.land-section { padding: clamp(40px, 6vw, 80px) 20px; }
.land-section.tight { padding-top: 0; }
.land-in { max-width: 1120px; margin: 0 auto; }
.land-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.land-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 10px; align-content: start; }
.step .n { font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--teal2); }
.step .t { font-weight: 700; font-size: 17px; }
.step p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.step.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.step.dark .n { color: var(--mint); }
.step.dark p { color: rgba(255,255,255,.72); }
.about-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px clamp(20px, 4vw, 36px); display: grid; gap: 12px; }
.about-card h3 { font-family: var(--display); font-weight: 600; font-size: 18px; margin: 0; letter-spacing: -0.01em; }
.about-card p { margin: 0; font-size: 14.5px; color: var(--text); line-height: 1.6; max-width: 78ch; }
.about-card p + p { color: var(--muted); font-size: 13.5px; }
.req { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.req dt { color: var(--muted); } .req dd { margin: 0; font-weight: 600; }
.req dd.mono { font-weight: 500; font-size: 13.5px; }
.cta-band { max-width: 1120px; margin: 0 auto; background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(32px, 5vw, 56px) clamp(22px, 4vw, 48px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 3.2vw, 36px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.7); font-size: 15px; }

/* ---------- auth ---------- */
.auth { padding: clamp(28px, 5vw, 64px) 20px; display: flex; justify-content: center; width: 100%; }
.auth-in { width: 100%; max-width: 440px; display: grid; gap: 18px; }
.auth-in.wide { max-width: 480px; }
.auth h1 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
.auth .card { display: grid; gap: 4px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; padding: 0 4px; color: var(--muted); }
.auth-links.center { justify-content: center; text-align: center; }
.auth-links a { font-weight: 600; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.note svg { flex: none; margin-top: 2px; }

/* ---------- страница ошибки ---------- */
.error-page { flex: 1; padding: clamp(40px, 8vw, 110px) 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.error-page .code { font-family: var(--display); font-weight: 800; font-size: clamp(72px, 14vw, 128px); line-height: 1; letter-spacing: -0.04em; color: var(--teal2); }
.error-page h1 { font-family: var(--display); font-weight: 700; font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.02em; margin: 0; }
.error-page p { margin: 0; color: var(--muted); font-size: 15px; max-width: 440px; text-wrap: pretty; }

/* ---------- условия в карточке предложения ---------- */
.terms { background: var(--mint-bg); border: 1px solid var(--mint-line); border-radius: 16px; padding: 18px 20px; display: grid; gap: 10px; }
.terms .h { font-weight: 700; font-size: 14px; color: var(--teal); display: flex; align-items: center; gap: 8px; }
.terms p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.terms .hold { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--text); padding-top: 8px; border-top: 1px solid var(--mint-line); }
.terms .hold svg { flex: none; margin-top: 2px; }
.legend { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-size: 13.5px; color: var(--text); line-height: 1.5; }
.legend svg { flex: none; margin-top: 2px; }
.steps-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.steps-mini div { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--text); line-height: 1.45; }
.steps-mini b { font-family: var(--display); font-weight: 700; color: var(--teal2); font-size: 13px; flex: none; margin-top: 2px; }

/* ---------- промокоды ---------- */
.promo-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: grid; gap: 14px; align-content: space-between; }
.promo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.promo-shop { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.promo-title { font-weight: 700; font-size: 17px; line-height: 1.3; margin-top: 4px; }
.code-box { display: flex; gap: 8px; }
.code-box code { flex: 1; font-family: var(--mono); font-weight: 600; font-size: 16px; letter-spacing: .06em; color: var(--ink); background: var(--bg); border: 1.5px dashed #B8C4C2; border-radius: 12px; padding: 11px 14px; display: flex; align-items: center; overflow: hidden; text-overflow: ellipsis; }
.code-box .btn { min-width: 118px; }
.promo-valid { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tiers { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; display: grid; gap: 10px; }
.tiers .h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); }
.tiers p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.tiers p.note { font-size: 12.5px; }
.tiers ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tiers li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.tiers li:last-child { border-bottom: 0; }
.tiers li.main { font-weight: 600; }
.tiers li.main .v { color: var(--green); }
.tiers .n { color: var(--text); min-width: 0; }
.tiers .v { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.promo-badge { display: inline-block; background: var(--mint); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: 0; border-radius: 8px; padding: 2px 8px; margin-right: 8px; vertical-align: 2px; white-space: nowrap; }
.promo-conds { margin: 0; padding: 0 0 0 18px; font-size: 13px; color: var(--muted); display: grid; gap: 3px; }
.promo-conds li::marker { color: var(--teal); }

/* ---------- футер и мобильная навигация ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 20px 28px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.footer-in { max-width: 1120px; margin: 0 auto; display: grid; gap: 26px; }
.footer-top { display: grid; grid-template-columns: minmax(260px, 1.3fr) minmax(240px, 1fr); gap: 28px 40px; align-items: start; }
.footer-brand { display: grid; gap: 12px; max-width: 420px; }
.footer-brand .logo { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand p { margin: 0; font-size: 13.5px; color: var(--muted); }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px 28px; }
.footer-nav div { display: grid; gap: 8px; align-content: start; }
.fn-h { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.footer-nav a { color: var(--muted); font-weight: 500; }
.footer-nav a:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 12.5px; }
.footer-bottom span:last-child { color: var(--muted); }
@media (max-width: 700px) { .footer-top { grid-template-columns: 1fr; gap: 22px; } .footer { padding-top: 32px; } }
.bottomnav { display: none; }
@media (max-width: 760px) {
  body.authed { padding-bottom: 84px; }
  .nav { display: none; }
  .userchip .name { display: none; }
  .userchip { padding: 5px; }
  .bottomnav { display: grid; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); }
  .bottomnav a { display: grid; justify-items: center; gap: 3px; padding: 6px 2px; color: var(--muted); font-weight: 600; font-size: 10.5px; }
  .bottomnav a .pill { width: 44px; height: 28px; border-radius: 999px; display: grid; place-items: center; }
  .bottomnav a.active { color: var(--teal); }
  .bottomnav a.active .pill { background: var(--mint-line); }
  .topbar-right .btn { padding: 9px 12px; font-size: 13px; }
  .row-right { min-width: 0; }
  .hero-visual { min-height: 300px; }
  .wrap { padding-bottom: 40px; }
}

/* компактная карточка (топ-3 на дашборде) */
.ocard.compact { padding: 16px; gap: 12px; }
.ocard.compact .avatar { width: 44px; height: 44px; border-radius: 13px; font-size: 11.5px; }
.ocard.compact .ocard-title { font-size: 14.5px; }
.ocard.compact .ocard-partner { font-size: 12.5px; }
.ocard.compact .ocard-meta .btn { padding: 10px 14px; font-size: 13.5px; }
.btn.copied { background: var(--green-bg); color: var(--green); }
.st-pending::before { background: var(--amber-dot); } .st-approved::before, .st-done::before { background: var(--green-dot); } .st-rejected::before { background: var(--red-dot); }
.badge-pending::before, .badge-attention::before { background: var(--amber-dot); } .badge-approved::before, .badge-done::before, .badge-ok::before { background: var(--green-dot); } .badge-rejected::before, .badge-error::before { background: var(--red-dot); } .badge-muted::before, .badge-ignored::before { background: var(--grey-dot); }
