:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --accent: #0f9d58;
  --warn: #b54708;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 0.875rem; }

/* ---------- шапка и подвал ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.logo { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.logo::before { content: "◎ "; color: var(--brand); }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--ink); font-size: 0.95rem; }
.nav-cta { background: var(--brand); color: #fff !important; padding: 8px 14px; border-radius: 8px; }
.nav-cta:hover { background: var(--brand-dark); text-decoration: none; }
.site-footer { margin-top: 48px; padding: 24px 0; background: #fff; border-top: 1px solid var(--line); }
.site-footer p { margin: 6px 0; }
.footer-about { max-width: 70ch; font-size: 0.9rem; color: var(--muted); }

/* ---------- карточки, кнопки, бейджи ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
h1 { font-size: 1.75rem; margin: 24px 0 8px; }
h2 { font-size: 1.25rem; margin: 24px 0 8px; }
h3 { font-size: 1.05rem; margin: 18px 0 6px; }
.btn {
  display: inline-block; border: 1px solid transparent; border-radius: 8px;
  padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; background: #eef2ff; color: var(--brand-dark);
}
.badge-223 { background: #ecfdf3; color: #05603a; }
.badge-industry { background: #f2f4f7; color: #344054; }
.notice { border-left: 4px solid var(--brand); background: #eff6ff; padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.notice-ok { border-color: var(--accent); background: #ecfdf3; }
.notice-warn { border-color: #f79009; background: #fffaeb; }
.notice-error { border-color: #d92d20; background: #fef3f2; }

/* ---------- фильтры ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 0.8rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; background: #fff; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #bfdbfe; border-color: var(--brand); }
.checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: 0.9rem; }
.checkbox input { width: auto; margin-top: 3px; }

/* ---------- таблицы ---------- */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 0.92rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f9fafb; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); }
tr:hover td { background: #fcfcfd; }
.nowrap { white-space: nowrap; }
.amount { font-weight: 600; white-space: nowrap; }

/* ---------- тарифы ---------- */
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan-price { font-size: 1.9rem; font-weight: 700; }
.plan-price small { font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.plan ul { margin: 0; padding-left: 18px; color: #344054; }
.plan li { margin-bottom: 6px; }
.plan-highlight { outline: 2px solid var(--brand); }

/* ---------- cookie-баннер ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: center;
  padding: 14px 20px; background: rgba(16, 24, 40, 0.97); color: #e4e7ec; font-size: 0.9rem;
}
.cookie-text { margin: 0; max-width: 62ch; }
.cookie-text a { color: #93c5fd; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- админка ---------- */
.panel-nav { display: flex; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-top: 16px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: 0.8rem; }
