/* ДОЛЯ — партнёрская площадка */
@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: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #F2F1ED;
  --line: #E2E0DA;
  --line-soft: #EAE8E3;
  --text: #17191C;
  --text-2: #565C66;
  --text-3: #7E848E;
  --accent: #0F7A52;
  --accent-hi: #0B5E3F;
  --warn: #B0740A;
  --bad: #C4321F;
  --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(247,246,243,.9);
  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: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hi); color: #FFFFFF; }
.btn-ghost { border-color: #D3D0C8; color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: #A8A49A; 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 #DCD9D2; border-radius: 5px;
  font-size: 13px; color: var(--text-3);
}
h1, h2, h3 { font-family: "Unbounded", sans-serif; letter-spacing: -.03em; margin: 0; color: var(--text); }
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: var(--text); }
.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; box-shadow: 0 1px 2px rgba(23,25,28,.04), 0 8px 24px rgba(23,25,28,.04); }
.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: var(--text); letter-spacing: -.02em; }
.balance-c { font-family: "Unbounded", sans-serif; font-size: 22px; color: var(--text-3); }
.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: var(--bad); }
.row-v { font-size: 14px; font-weight: 600; white-space: nowrap; }
.row-v.off { color: var(--text-3); 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;
  box-shadow: 0 1px 2px rgba(23,25,28,.03);
}
.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 #D3D0C8; 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: var(--accent); }
.field input::placeholder { color: #9AA0A8; }

.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: var(--accent); }
.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(15,122,82,.10); color: var(--accent); }
.badge-wait { background: rgba(176,116,10,.12); color: var(--warn); }
.badge-off { background: var(--surface-2); 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; }
}

/* ================= ТЁМНАЯ ТЕМА (в стиле CoinMarketCap) ================= */
/* включается атрибутом data-theme="dark" на <html>, переключатель в настройках аккаунта */
html[data-theme="dark"] {
  --bg: #0D1421;
  --surface: #171924;
  --surface-2: #12151F;
  --line: #222531;
  --line-soft: #1B1E2A;
  --text: #EFF2F5;
  --text-2: #A1A7BB;
  --text-3: #7C8398;
  --accent: #3861FB;
  --accent-hi: #5C7DFC;
  --warn: #F0B90B;
  --bad: #EA3943;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .site-head { background: rgba(13,20,33,.9); }
html[data-theme="dark"] .btn-primary { background: var(--accent); color: #FFFFFF; }
html[data-theme="dark"] .btn-primary:hover { background: var(--accent-hi); color: #FFFFFF; }
html[data-theme="dark"] .btn-ghost { border-color: #2C3140; }
html[data-theme="dark"] .btn-ghost:hover { border-color: #3D4459; }
html[data-theme="dark"] .eyebrow { border-color: #2C3140; }
html[data-theme="dark"] .role { border-top-color: #2C3140; }
html[data-theme="dark"] .role.is-lead { border-top-color: var(--accent); }
html[data-theme="dark"] .panel { box-shadow: none; }
html[data-theme="dark"] .card { box-shadow: none; }
html[data-theme="dark"] .dot-ok { background: #16C784; }
html[data-theme="dark"] .tile-v[style*="--accent"] { color: #16C784; }
html[data-theme="dark"] .badge-ok { background: rgba(22,199,132,.12); color: #16C784; }
html[data-theme="dark"] .badge-wait { background: rgba(240,185,11,.12); color: var(--warn); }
html[data-theme="dark"] .badge-off { background: #1B1E2A; color: var(--text-3); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field select { background: var(--surface-2); }
html[data-theme="dark"] .field input::placeholder { color: #5E657A; }
html[data-theme="dark"] .role-opt { background: var(--surface-2); }
html[data-theme="dark"] a { color: var(--accent); }
html[data-theme="dark"] a:hover { color: var(--accent-hi); }

/* ================= ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ ================= */
.theme-pick { display: flex; flex-direction: column; gap: 10px; }
.theme-opt {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer; transition: border-color .15s ease;
}
.theme-opt:hover { border-color: var(--accent); }
.theme-opt input { accent-color: var(--accent); width: 18px; height: 18px; flex: 0 0 auto; }
.theme-opt strong { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.theme-opt span.hint { font-size: 13px; color: var(--text-3); }
.swatch {
  width: 52px; height: 38px; border-radius: 7px; flex: 0 0 auto;
  border: 1px solid var(--line); display: grid; grid-template-rows: 14px 1fr; overflow: hidden;
}
.swatch-light { background: #F7F6F3; }
.swatch-light > i { display: block; background: #FFFFFF; border-bottom: 1px solid #E2E0DA; }
.swatch-dark { background: #0D1421; }
.swatch-dark > i { display: block; background: #171924; border-bottom: 1px solid #222531; }

/* ================= ВХОД ЧЕРЕЗ СОЦСЕТИ ================= */
.social-row { display: flex; gap: 8px; flex-wrap: wrap; }
.social-row .social-btn { flex: 1 1 calc(50% - 4px); }
.social-btn {
  flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 12px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #FFFFFF;
  border: none; transition: filter .15s ease, transform .1s ease;
}
.social-btn:hover { filter: brightness(1.08); color: #FFFFFF; }
.social-btn:active { transform: scale(.98); }
.social-btn svg { flex: 0 0 auto; }
.social-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-vk { background: #0077FF; }
.social-ok { background: #EE8208; }
.social-mail { background: #005FF9; }
.social-ya { background: #FC3F1D; }
.social-max { background: #7B2BFF; }
.social-btn[hidden] { display: none; }

.auth-sep {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0; color: var(--text-3); font-size: 13px;
}
.auth-sep::before, .auth-sep::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.auth-note {
  display: flex; gap: 10px; padding: 13px 14px; margin: 16px 0 20px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; font-size: 13px; color: var(--text-2); line-height: 1.45;
}
.auth-error {
  display: none; padding: 13px 15px; margin-bottom: 18px;
  background: rgba(196,50,31,.08); border: 1px solid rgba(196,50,31,.3);
  border-radius: 9px; font-size: 14px; color: var(--bad);
}
.auth-error.on { display: block; }

@media (max-width: 420px) {
  .social-btn span { display: none; }
  .social-btn { padding: 0; }
}

/* ==========================================================
   ОБЛОЖКА В СТИЛЕ ABACUS.AI — 04.09.2026
   Снято со скрина: тёмный сине-фиолетовый фон, плавающая
   шапка-капсула, двухцветный заголовок, БЕЛОЕ светящееся окно,
   фиолетовая кнопка-градиент.
   Включается классами page-home (главная) и page-auth (вход).
   Другие страницы не трогает.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ---------- тёмный слой во всю ширину ---------- */
.page-home,
.page-auth { background: #161D30; }

.page-home .dark-band,
.page-auth .dark-band { position: relative; }

.page-home .site-head,
.page-auth .site-head {
  position: sticky; top: 0; z-index: 60;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  padding: 14px 0 0;
}
/* шапка-капсула */
.page-home .head-in,
.page-auth .head-in {
  height: 66px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.04) 100%);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,.28);
}
.page-home .site-head .logo,
.page-auth .site-head .logo {
  font-family: "IBM Plex Sans", sans-serif; font-weight: 700;
  letter-spacing: .06em; color: #FFFFFF;
}
.page-home .site-head .nav a,
.page-auth .site-head .nav a { color: #B9C2D6; }
.page-home .site-head .nav a:hover,
.page-auth .site-head .nav a:hover { color: #FFFFFF; }
.page-home .site-head .btn-quiet,
.page-auth .site-head .btn-quiet { color: #D3DAE8; }
.page-home .site-head .btn-primary,
.page-auth .site-head .btn-primary {
  background: linear-gradient(135deg, #9B5AFF 0%, #7C3AED 100%);
  border: none; color: #fff; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(124,58,237,.4);
}

/* ---------- ОБЛОЖКА ГЛАВНОЙ ---------- */
.page-home .hero { position: relative; padding: 64px 0 96px; }
.page-home .hero::before {
  content: "";
  position: absolute; z-index: -2;
  top: -160px; bottom: -60px;
  left: calc(-50vw + 50%); right: calc(-50vw + 50%);
  background:
    radial-gradient(62% 55% at 50% 46%, rgba(84, 104, 156, .40) 0%, rgba(84, 104, 156, 0) 72%),
    radial-gradient(48% 46% at 82% 22%, rgba(129, 78, 232, .30) 0%, rgba(129, 78, 232, 0) 70%),
    linear-gradient(180deg, #171E33 0%, #1B2340 46%, #141A2B 100%);
}

/* двухцветный заголовок, как у них */
.page-home .hero h1,
.page-auth .form-box h2 {
  font-family: "IBM Plex Sans", sans-serif;
  color: #FFFFFF; letter-spacing: -.02em; line-height: 1.12;
}
.page-home .hero h1 .dim { color: #8E99B4; }
.page-home .hero .lead { color: #AAB4CC; }
.page-home .hero .eyebrow {
  color: #C4A6FF; border: 1px solid rgba(155,90,255,.32);
  background: rgba(155,90,255,.10); border-radius: 999px;
}
.page-home .hero .stats { border-top-color: rgba(255,255,255,.10); }
.page-home .hero .stat-n { color: #FFFFFF; font-family: "IBM Plex Sans", sans-serif; }
.page-home .hero .stat-l { color: #8E99B4; }

.page-home .hero .btn-primary {
  background: linear-gradient(135deg, #9B5AFF 0%, #7C3AED 100%);
  border: none; color: #fff; border-radius: 14px;
  box-shadow: 0 12px 32px rgba(124,58,237,.42);
}
.page-home .hero .btn-primary:hover { color: #fff; box-shadow: 0 14px 38px rgba(124,58,237,.55); }
.page-home .hero .btn-ghost { border-color: rgba(255,255,255,.2); color: #E7ECF6; border-radius: 14px; }
.page-home .hero .btn-ghost:hover { border-color: rgba(255,255,255,.4); color: #fff; }

/* ---------- БЕЛОЕ СВЕТЯЩЕЕСЯ ОКНО ---------- */
.page-home .hero .panel,
.page-auth .form-box {
  background: #FFFFFF;
  border: none;
  border-radius: 22px;
  box-shadow:
    0 0 90px rgba(196, 208, 255, .16),   /* ореол вокруг окна */
    0 24px 60px rgba(0, 0, 0, .38);
  color: #17191C;
}
.page-home .hero .panel { padding: 30px; }

/* кнопка внутри белого окна — фиолетовая, крупная, как у них */
.page-home .hero .panel .btn-ghost,
.page-auth .form-box .btn-primary {
  background: linear-gradient(135deg, #9B5AFF 0%, #7C3AED 100%);
  border: none; color: #FFFFFF !important; border-radius: 14px;
  font-weight: 600; box-shadow: 0 10px 26px rgba(124,58,237,.34);
}
.page-home .hero .panel .btn-ghost:hover,
.page-auth .form-box .btn-primary:hover { color: #fff !important; box-shadow: 0 12px 32px rgba(124,58,237,.46); }

/* переход обложки в светлую часть страницы */
.page-home main > section:not(.hero) { background: var(--bg); }
.page-home .hero + section { border-radius: 26px 26px 0 0; padding-top: 56px; }

/* ---------- СТРАНИЦА ВХОДА ---------- */
.page-auth main.form-page { position: relative; padding: 56px 0 96px; }
.page-auth main.form-page::before {
  content: "";
  position: absolute; z-index: -2;
  top: -160px; bottom: 0;
  left: calc(-50vw + 50%); right: calc(-50vw + 50%);
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(84, 104, 156, .42) 0%, rgba(84, 104, 156, 0) 72%),
    radial-gradient(46% 42% at 80% 18%, rgba(129, 78, 232, .28) 0%, rgba(129, 78, 232, 0) 70%),
    linear-gradient(180deg, #171E33 0%, #1B2340 50%, #141A2B 100%);
}
.page-auth .form-box { padding: 38px 34px; max-width: 520px; margin: 0 auto; }
.page-auth .form-box h2 { color: #17191C; font-size: 32px; }
.page-auth .form-box .lead { color: #565C66; }
.page-auth .form-box .auth-sep { color: #8A9099; }
.page-auth .form-box label { color: #565C66; }
.page-auth .form-box input {
  border-radius: 12px; border: 1px solid #E2E0DA; background: #FAFAF8;
}
.page-auth .form-box input:focus { border-color: #9B5AFF; outline: none; box-shadow: 0 0 0 3px rgba(155,90,255,.15); }
.page-auth .form-box .social-btn { border-radius: 12px; }

/* ---------- телефон ---------- */
@media (max-width: 900px) {
  .page-home .hero { padding: 40px 0 72px; }
  .page-home .hero::before { top: -140px; }
  .page-home .hero .panel, .page-auth .form-box { border-radius: 18px; }
  .page-auth main.form-page { padding: 34px 0 72px; }
  .page-home .head-in, .page-auth .head-in { height: 58px; padding: 0 16px; }
}

/* ==========================================================
   ОКНО ВХОДА — компактный вариант, 06.09.2026
   380px, скругление 28, всё внутри капсулами.
   Дописано в конец: перекрывает прежние значения.
   ========================================================== */

.page-auth .form-box {
  max-width: 380px;
  padding: 32px 26px 28px;
  border-radius: 28px;
}

.page-auth .form-box h2 { font-size: 27px; }
.page-auth .form-box .lead { font-size: 14.5px; line-height: 1.45; }

/* кнопки входа через сервисы — капсулы */
.page-auth .form-box .social-btn {
  border-radius: 999px;
  height: 46px;
  font-size: 14.5px;
  gap: 8px;
}
.page-auth .form-box .social-row { gap: 9px; }

/* поля ввода — капсулы */
.page-auth .form-box input {
  border-radius: 999px;
  height: 46px;
  padding: 0 20px;
  font-size: 15px;
}
.page-auth .form-box .field { margin-top: 13px; }
.page-auth .form-box label { font-size: 13.5px; margin-bottom: 6px; display: block; }

/* главная кнопка — капсула */
.page-auth .form-box .btn-primary,
.page-auth .form-box .btn-block {
  border-radius: 999px;
  height: 50px;
  font-size: 15.5px;
}

.page-auth .form-box .auth-sep { font-size: 13px; margin: 18px 0 4px; }
.page-auth .form-box .muted { font-size: 13.5px; }

/* сообщение об ошибке тоже скруглить, чтобы не выбивалось */
.page-auth .form-box .auth-error { border-radius: 999px; padding: 10px 18px; font-size: 13.5px; }

@media (max-width: 480px) {
  .page-auth .form-box { max-width: 100%; padding: 26px 20px 24px; border-radius: 22px; }
}

/* ── окно входа: поджали 06.09.2026, было растянуто по высоте ── */
.page-auth .form-box {
  max-width: 352px;
  padding: 26px 24px 22px;
  border-radius: 24px;
}
.page-auth .form-box h2 { font-size: 24px; }
.page-auth .form-box .lead { font-size: 13.5px; line-height: 1.4; margin-top: 8px !important; }

.page-auth .form-box .social-row { gap: 7px; margin-top: 18px !important; }
.page-auth .form-box .social-btn { height: 41px; font-size: 14px; }

.page-auth .form-box .auth-sep { font-size: 12.5px; margin: 14px 0 2px; }

.page-auth .form-box .field { margin-top: 10px; }
.page-auth .form-box label { font-size: 13px; margin-bottom: 5px; }
.page-auth .form-box input { height: 41px; font-size: 14.5px; padding: 0 18px; }

.page-auth .form-box .btn-primary,
.page-auth .form-box .btn-block { height: 45px; font-size: 15px; margin-top: 14px !important; }

.page-auth .form-box .muted { font-size: 13px; margin-top: 14px !important; }
.page-auth main.form-page { padding: 40px 0 72px; }

@media (max-width: 480px) {
  .page-auth .form-box { max-width: 100%; padding: 22px 18px 20px; border-radius: 20px; }
}

/* ── окно входа: ещё поджали по высоте 06.09.2026, ширина 380 оставлена ── */
.page-auth .form-box {
  max-width: 380px;
  padding: 22px 24px 18px;
}
.page-auth .form-box h2 { font-size: 23px; }
.page-auth .form-box .lead { font-size: 13px; line-height: 1.35; margin-top: 6px !important; }

.page-auth .form-box .social-row { gap: 6px; margin-top: 14px !important; }
.page-auth .form-box .social-btn { height: 38px; font-size: 13.5px; }

.page-auth .form-box .auth-sep { font-size: 12px; margin: 11px 0 0; }

.page-auth .form-box .field { margin-top: 8px; }
.page-auth .form-box label { font-size: 12.5px; margin-bottom: 3px; }
.page-auth .form-box input { height: 38px; font-size: 14px; }

.page-auth .form-box .btn-primary,
.page-auth .form-box .btn-block { height: 42px; font-size: 14.5px; margin-top: 11px !important; }

.page-auth .form-box .muted { font-size: 12.5px; margin-top: 11px !important; }
.page-auth main.form-page { padding: 34px 0 64px; }

/* ==========================================================
   ТЁМНЫЙ ФОН НА ВСЁМ САЙТЕ — 06.09.2026
   Тёмная тема на сайте уже была (в стиле CoinMarketCap).
   Здесь перекрашиваем её палитру под обложку Abacus и добавляем
   то же свечение, чтобы страницы не отличались от входа.
   ========================================================== */

html[data-theme="dark"] {
  --bg: #171E33;
  --surface: #1E2740;
  --surface-2: #1A2238;
  --line: #2A3450;
  --line-soft: #232C46;
  --text: #EEF2F8;
  --text-2: #A8B2C4;
  --text-3: #8E99B4;
  --accent: #9B5AFF;
  --accent-hi: #B47FFF;
  --warn: #F0B90B;
  --bad: #EA3943;
}

/* фон страницы: та же основа и то же свечение, что на обложке */
html[data-theme="dark"] body {
  background:
    radial-gradient(58% 42% at 50% 0%, rgba(84, 104, 156, .30) 0%, rgba(84, 104, 156, 0) 68%),
    radial-gradient(42% 34% at 88% 6%, rgba(129, 78, 232, .20) 0%, rgba(129, 78, 232, 0) 70%),
    linear-gradient(180deg, #171E33 0%, #151C2E 46%, #131A2A 100%);
  background-attachment: fixed;
}

/* шапка — стеклянная капсула на всех страницах */
html[data-theme="dark"] .site-head {
  background: transparent;
  border-bottom: none;
  padding: 14px 0 0;
}
html[data-theme="dark"] .head-in {
  height: 64px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.035) 100%);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(0,0,0,.26);
}

/* карточки и панели — стекло, а не плоский серый */
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .role,
html[data-theme="dark"] .step {
  background: linear-gradient(160deg, rgba(129,78,232,.07), rgba(48,71,108,.16));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}

/* кнопки — фиолетовый градиент как на обложке */
html[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #9B5AFF 0%, #7C3AED 100%);
  border: none; color: #fff;
  box-shadow: 0 10px 26px rgba(124,58,237,.32);
}
html[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(135deg, #A96EFF 0%, #8B4BF5 100%);
  color: #fff;
}
html[data-theme="dark"] .btn-ghost { border-color: rgba(255,255,255,.18); color: #E7ECF6; }
html[data-theme="dark"] .btn-ghost:hover { border-color: rgba(255,255,255,.36); color: #fff; }

/* подвал и разделители */
html[data-theme="dark"] .site-foot { border-top: 1px solid rgba(255,255,255,.08); background: transparent; }
html[data-theme="dark"] .hr { background: rgba(255,255,255,.09); }
html[data-theme="dark"] .eyebrow { border-color: rgba(155,90,255,.3); background: rgba(155,90,255,.09); color: #C4A6FF; }

/* поля ввода в кабинете */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
}
html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
  border-color: #9B5AFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(155,90,255,.16);
}

/* таблицы в кабинете */
html[data-theme="dark"] table th { color: var(--text-3); border-bottom-color: rgba(255,255,255,.1); }
html[data-theme="dark"] table td { border-bottom-color: rgba(255,255,255,.06); }

/* окно входа и регистрации остаётся БЕЛЫМ — так задумано,
   оно светится на тёмном фоне */
html[data-theme="dark"] .page-auth .form-box {
  background: #FFFFFF;
  border: none;
  color: #17191C;
}
html[data-theme="dark"] .page-auth .form-box h2 { color: #17191C; }
html[data-theme="dark"] .page-auth .form-box .lead,
html[data-theme="dark"] .page-auth .form-box label { color: #565C66; }
html[data-theme="dark"] .page-auth .form-box input {
  background: #FAFAF8; border: 1px solid #E2E0DA; color: #17191C;
}

/* баннер под шапкой */
.site-banner{width:100%;line-height:0;background:#0d1522}
.site-banner img{width:100%;height:auto;display:block}

