/* ДОЛЯ — партнёрская площадка */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700&family=Golos+Text:wght@400;500;600;700&display=swap');

:root {
  --bg: #0E1116;
  --surface: #151A21;
  --surface-2: #10151B;
  --line: #232B36;
  --line-soft: #1E242E;
  --text: #E8EAED;
  --text-2: #99A2AE;
  --text-3: #7B8492;
  --accent: #C9F24D;
  --accent-hi: #E2FF8F;
  --warn: #F0B429;
  --bad: #E5484D;
  --radius: 10px;
  --max: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hi); }

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

/* ---------- Шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,17,22,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 32px;
}
.logo {
  font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 18px;
  letter-spacing: -.02em; color: var(--text);
}
.logo:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--text-2); }
.nav a:hover, .nav a.is-active { color: var(--text); }
.head-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 24px; border-radius: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-lg { height: 56px; padding: 0 32px; font-size: 16px; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; font-weight: 500; }
.btn-primary { background: var(--accent); color: #0E1116; }
.btn-primary:hover { background: var(--accent-hi); color: #0E1116; }
.btn-ghost { border-color: #2E3844; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #46536520; border-color: #465365; color: var(--text); }
.btn-quiet { color: var(--text-2); background: transparent; }
.btn-quiet:hover { color: var(--text); }
.btn-block { width: 100%; }

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; padding: 0 13px; border: 1px solid #2A3340; border-radius: 5px;
  font-size: 13px; color: var(--text-3);
}
h1, h2, h3 { font-family: "Unbounded", sans-serif; letter-spacing: -.03em; margin: 0; color: #fff; }
h1 { font-size: 58px; line-height: 1.05; font-weight: 700; text-wrap: pretty; }
h2 { font-size: 38px; line-height: 1.12; font-weight: 600; text-wrap: pretty; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.02em; }
.lead { font-size: 19px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.muted { color: var(--text-3); font-size: 14px; }

/* ---------- Герой ---------- */
.hero { display: flex; gap: 64px; padding: 72px 0 80px; align-items: flex-start; }
.hero-copy { flex: 1 1 560px; min-width: 0; }
.hero-panel { flex: 0 0 460px; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.stats { display: flex; gap: 44px; margin-top: 48px; padding-top: 30px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.stat-n { font-family: "Unbounded", sans-serif; font-weight: 600; font-size: 25px; color: #fff; }
.stat-l { font-size: 14px; color: var(--text-3); margin-top: 5px; }

/* ---------- Панель баланса ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-title { font-size: 15px; font-weight: 600; }
.balance { display: flex; align-items: baseline; gap: 9px; }
.balance-n { font-family: "Unbounded", sans-serif; font-weight: 700; font-size: 40px; color: #fff; letter-spacing: -.02em; }
.balance-c { font-family: "Unbounded", sans-serif; font-size: 22px; color: #6E7684; }
.tiles { display: flex; gap: 8px; margin-top: 18px; }
.tile { flex: 1 1 0; background: var(--surface-2); border-radius: 9px; padding: 12px 14px; }
.tile-l { font-size: 12px; color: var(--text-3); }
.tile-v { font-size: 17px; font-weight: 600; margin-top: 4px; }
.hr { height: 1px; background: var(--line); margin: 20px 0; }

.row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: 0 0 auto; }
.dot-ok { background: var(--accent); }
.dot-wait { background: var(--warn); }
.dot-bad { background: var(--bad); }
.row-main { flex: 1 1 auto; min-width: 0; }
.row-t { font-size: 14px; }
.row-s { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.row-s.bad { color: #E5848A; }
.row-v { font-size: 14px; font-weight: 600; white-space: nowrap; }
.row-v.off { color: #6E7684; text-decoration: line-through; }
.row-v.dim { color: var(--text-2); }

/* ---------- Сетки ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 10px;
}
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.card-link { margin-top: 6px; font-size: 14px; font-weight: 500; }

.role { border-top: 2px solid #2E3844; padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.role.is-lead { border-top-color: var(--accent); }
.role p { margin: 0; color: var(--text-2); font-size: 15px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; counter-reset: s; }
.step { display: flex; flex-direction: column; gap: 9px; padding-top: 18px; border-top: 1px solid var(--line); }
.step-n { font-family: "Unbounded", sans-serif; font-size: 13px; color: var(--accent); font-weight: 600; }
.step p { margin: 0; font-size: 15px; color: var(--text-2); }

/* ---------- Формы ---------- */
.form-page { display: flex; justify-content: center; padding: 72px 0 96px; }
.form-box { width: 100%; max-width: 460px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; color: var(--text-2); }
.field input, .field select {
  height: 52px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; padding: 0 15px; color: var(--text);
  font-family: inherit; font-size: 15px; outline: none;
}
.field input:focus, .field select:focus { border-color: #3D4A5A; }
.field input::placeholder { color: #5C646F; }

.role-pick { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.role-opt {
  display: flex; align-items: flex-start; gap: 13px; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: border-color .15s ease;
}
.role-opt:hover { border-color: #3D4A5A; }
.role-opt input { margin: 3px 0 0; accent-color: var(--accent); width: 17px; height: 17px; }
.role-opt strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.role-opt span { font-size: 13px; color: var(--text-3); }

/* ---------- Кабинет ---------- */
.app-shell { display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 0; min-height: calc(100vh - 76px); }
.side { border-right: 1px solid var(--line-soft); padding: 26px 16px; display: flex; flex-direction: column; gap: 4px; }
.side a {
  display: flex; align-items: center; gap: 11px; height: 44px; padding: 0 13px;
  border-radius: 8px; color: var(--text-2); font-size: 15px;
}
.side a:hover { background: var(--surface); color: var(--text); }
.side a.is-active { background: var(--surface); color: var(--text); }
.app-main { padding: 32px 34px 64px; min-width: 0; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }

.mp-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.mp {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.mp-top { display: flex; align-items: center; justify-content: space-between; }
.mp-name { font-size: 16px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 5px; font-size: 12px; font-weight: 500; }
.badge-ok { background: rgba(201,242,77,.12); color: var(--accent); }
.badge-wait { background: rgba(240,180,41,.12); color: var(--warn); }
.badge-off { background: #1C232C; color: var(--text-3); }
.mp p { margin: 0; font-size: 13px; color: var(--text-3); line-height: 1.45; }

table.log { width: 100%; border-collapse: collapse; font-size: 14px; }
table.log th {
  text-align: left; font-weight: 500; font-size: 13px; color: var(--text-3);
  padding: 0 14px 12px; border-bottom: 1px solid var(--line);
}
table.log td { padding: 15px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.log tr:last-child td { border-bottom: none; }
.num { text-align: right; white-space: nowrap; font-weight: 600; }

/* ---------- Подвал ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 44px 0 56px; margin-top: 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 11px; font-size: 14px; }
.foot-col a { color: var(--text-3); }
.foot-col a:hover { color: var(--text); }
.foot-h { color: var(--text); font-weight: 600; margin-bottom: 3px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .hero { flex-direction: column; gap: 44px; }
  .hero-panel { flex: 1 1 auto; width: 100%; max-width: 520px; }
  .grid-3, .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  h1 { font-size: 46px; }
  h2 { font-size: 32px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .nav { display: none; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 52px; }
  h1 { font-size: 36px; }
  h2 { font-size: 27px; }
  .lead { font-size: 17px; }
  .grid-3, .grid-2, .steps, .mp-grid { grid-template-columns: minmax(0,1fr); }
  .stats { gap: 26px; }
  .app-shell { grid-template-columns: minmax(0,1fr); }
  .side { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--line-soft); padding: 12px; }
  .side a { white-space: nowrap; }
  .app-main { padding: 24px 18px 56px; }
  table.log th:nth-child(2), table.log td:nth-child(2) { display: none; }
}
