/* noneERP — публичная часть: лендинг, правовые, биржа подрядов, вход.
   Подключать после public.css:
     <link rel="stylesheet" href="/css/app.css">
     <link rel="stylesheet" href="/css/public.css">
     <link rel="stylesheet" href="/css/noneerp-theme.css">
     <link rel="stylesheet" href="/css/noneerp-theme-public.css">
   Правится только заменой файла целиком. Тексты не менялись.
   Шкалы те же, что в noneerp-theme.css. */

/* ═══ 1. Шапка и меню ═════════════════════════════════════════ */

.pub-top {
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}
.pub-top__inner { height: 68px; gap: var(--gap-xl); }
.pub-nav { gap: 4px; }
.pub-nav a {
  height: var(--control-h-sm);
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.pub-nav a:hover { background: var(--field); color: var(--text); }
.pub-top__actions { gap: var(--gap-sm); }
.pub-burger span { border-radius: 2px; transition: transform .24s, opacity .24s; }
.pub-menu {
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
}
.pub-menu a {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pub-menu__cta { color: var(--primary); font-weight: 600; border-bottom: none; }

/* ═══ 2. Секции лендинга ══════════════════════════════════════ */

.pub-section { padding: 76px 0; }
.pub-section--tint { background: var(--bg); }
.pub-section h2 { font-size: 32px; letter-spacing: -.02em; text-wrap: balance; }
.pub-lead { font-size: 17px; color: var(--text-muted); line-height: 1.65; text-wrap: pretty; max-width: 62ch; }

.pub-hero { padding: 84px 0 68px; }
.pub-hero h1 { font-size: 46px; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.pub-hero__actions { gap: 12px; flex-wrap: wrap; }
.pub-hero__actions .btn { min-height: 46px; padding: 0 22px; font-size: 15px; }
.pub-hero__note { font-size: 13px; color: var(--text-disabled); }

.pub-strip { border-block: 1px solid var(--line); background: var(--field); }
.pub-strip__inner { gap: var(--gap-xl); padding: var(--gap) 20px; flex-wrap: wrap; }

.pub-facts__row { gap: var(--gap-lg); }
.pub-fact {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: var(--gap-lg);
}
.pub-fact strong { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: block; }
.pub-fact span { font-size: 13px; color: var(--text-muted); text-wrap: pretty; }

.pub-grid { gap: var(--gap-lg); }
.pub-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: none;
  padding: var(--gap-lg);
  transition: box-shadow .16s, transform .16s;
}
.pub-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pub-card h3 { font-size: 17px; margin: 0 0 6px; }
.pub-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; text-wrap: pretty; margin: 0; }
.pub-card__tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--radius-sm);
  background: var(--tint-strong);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pub-card__tag--soon { background: rgba(255, 159, 67, .16); color: var(--warning); }

.pub-steps { gap: var(--gap-lg); counter-reset: step; }
.pub-step { position: relative; padding-left: 52px; }
.pub-step__n {
  position: absolute;
  left: 0; top: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint-strong);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
}
.pub-chain { gap: 10px; flex-wrap: wrap; align-items: center; }
.pub-chain__node {
  border-radius: var(--radius-pill);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 8px var(--gap);
  font-size: 13px;
}
.pub-chain__n { font-family: var(--mono); font-size: 10px; color: var(--text-disabled); }

/* Утечки: суммы моно и с цветом состояния */
.pub-leaks { gap: var(--gap); }
.pub-leak {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: var(--gap-lg);
}
.pub-leak__sum {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--danger);
}
.pub-leak__label { font-size: 13px; color: var(--text-muted); }
.pub-leak__label--ok { color: var(--success); }
.pub-leak__states { font-size: 12px; color: var(--text-disabled); }

/* Калькулятор */
.pub-calc {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: var(--gap-xl);
}
.pub-calc__label { font-size: 13px; color: var(--text-muted); }
.pub-calc__result { border-top: 1px solid var(--line); padding-top: var(--gap); margin-top: var(--gap); }
.pub-calc__sum {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}
.pub-calc input[type="range"] { accent-color: var(--primary); width: 100%; height: 44px; }

/* Роли */
.pub-roles { gap: var(--gap); }
.pub-role {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: var(--gap-lg);
}
.pub-role__who {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Тарифы */
.pub-plans { gap: var(--gap-lg); align-items: stretch; }
.pub-plan {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: none;
  padding: var(--gap-xl);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.pub-plan--accent {
  box-shadow: 0 12px 40px rgba(115, 103, 240, .22), inset 0 0 0 2px var(--primary);
}
.pub-plan__price {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.pub-plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--gap-sm); }
.pub-plan li { font-size: 14px; color: var(--text-muted); padding-left: 20px; position: relative; text-wrap: pretty; }
.pub-plan li::before { content: '·'; position: absolute; left: 6px; color: var(--primary); font-weight: 700; }
.pub-plan .btn { margin-top: auto; min-height: 44px; }

/* Снимки экранов */
.pub-shots { gap: var(--gap-lg); }
.pub-shot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
}
.pub-shot img { display: block; width: 100%; height: auto; }

/* Вопросы */
.pub-faq { display: flex; flex-direction: column; gap: var(--gap-sm); }
.pub-faq details {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: var(--gap) var(--gap-lg);
}
.pub-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  min-height: 24px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
}
.pub-faq summary::-webkit-details-marker { display: none; }
.pub-faq summary::after { content: '+'; color: var(--primary); font-size: 20px; font-weight: 400; }
.pub-faq details[open] summary::after { content: '−'; }
.pub-faq p { font-size: 14px; color: var(--text-muted); line-height: 1.65; text-wrap: pretty; }

/* Баннер для инвесторов */
.pub-companion {
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: #fff;
  padding: var(--gap-xl);
  box-shadow: 0 16px 48px rgba(115, 103, 240, .3);
}
.pub-companion__badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pub-companion__text { color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.pub-companion__note { color: rgba(255, 255, 255, .68); font-size: 13px; }
.pub-companion .btn {
  background: #fff;
  color: var(--primary);
  border-color: transparent;
  font-weight: 600;
  min-height: 44px;
}
.pub-companion .btn:hover { background: rgba(255, 255, 255, .9); }
.pub-cta { text-align: center; }

/* Подвал */
.pub-foot { border-top: 1px solid var(--line); background: var(--field); }
.pub-foot__inner { gap: var(--gap-xl); padding: 40px 20px; }
.pub-foot__note { font-size: 13px; color: var(--text-muted); text-wrap: pretty; }
.pub-foot__legal { font-size: 12px; color: var(--text-disabled); padding-bottom: 28px; }
.pub-foot a { color: var(--text-muted); text-decoration: none; }
.pub-foot a:hover { color: var(--primary); }

/* ═══ 3. Правовые документы ═══════════════════════════════════ */

.pub-doc {
  max-width: 76ch;
  margin: 0 auto;
  padding: 56px 20px 96px;
}
.pub-doc h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 6px; text-wrap: balance; }
.pub-doc__date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-disabled);
  margin-bottom: 36px;
  padding-bottom: var(--gap);
  border-bottom: 1px solid var(--line);
}
.pub-doc h2 {
  font-size: 19px;
  margin: 40px 0 12px;
  letter-spacing: -.01em;
}
.pub-doc h3 { font-size: 16px; margin: 28px 0 10px; }
.pub-doc p, .pub-doc li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  text-wrap: pretty;
}
.pub-doc ol, .pub-doc ul { padding-left: 22px; }
.pub-doc li { margin-bottom: var(--gap-sm); }
.pub-doc li::marker { color: var(--text-disabled); font-family: var(--mono); font-size: 13px; }
.pub-doc table { width: 100%; border-collapse: collapse; margin: var(--gap-lg) 0; font-size: 14px; }
.pub-doc th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--field);
  padding: 10px var(--gap);
  border-bottom: 1px solid var(--line);
}
.pub-doc td { padding: 10px var(--gap); border-bottom: 1px solid var(--line); vertical-align: top; }
.pub-doc a { color: var(--primary); }
.pub-doc strong { font-weight: 600; }

/* ═══ 4. Биржа подрядов ═══════════════════════════════════════ */

.lots-hero { padding: 40px 0 var(--gap-lg); }
.lots-hero__lead { color: var(--text-muted); text-wrap: pretty; }
.lots-hero__actions { gap: 10px; flex-wrap: wrap; }
.lots-filter {
  gap: 10px;
  padding: var(--gap);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  align-items: end;
}
.lots-list { gap: var(--gap); }
.lot-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  border: none;
  padding: var(--gap-lg);
  transition: box-shadow .16s;
}
.lot-card:hover { box-shadow: var(--shadow-lg); }
.lot-card__title { font-size: 17px; font-weight: 600; margin: 0 0 6px; text-wrap: pretty; }
.lot-card__meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-disabled);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.lot-card__scope { font-size: 14px; color: var(--text-muted); text-wrap: pretty; }
.lot-card__budget {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.lot-breadcrumb { font-size: 13px; color: var(--text-muted); }
.lot-gate {
  border-radius: var(--radius-lg);
  background: var(--field);
  border: 1px dashed var(--line);
  padding: var(--gap-lg);
  text-align: center;
}
.lots-empty { color: var(--text-disabled); text-align: center; padding: 56px 20px; text-wrap: pretty; }

/* ═══ 5. Вход и регистрация ═══════════════════════════════════ */

.auth-shell {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 20, 34, .18);
  border: none;
}
.auth-side { background: var(--navy); color: rgba(255, 255, 255, .82); padding: 40px; }
.auth-side__brand { margin-bottom: var(--gap-xl); }
.auth-side__list { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.auth-side__back { font-size: 13px; color: rgba(255, 255, 255, .6); }
.auth-side__back a { color: rgba(255, 255, 255, .82); }
.auth-main { padding: 40px; background: var(--surface); }
.auth-main h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.auth-main .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: var(--gap-xl); }
.auth-tabs { gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: var(--gap-lg); }
.auth-tabs__item {
  height: 36px;
  padding: 0 var(--gap);
  border-radius: var(--radius) var(--radius) 0 0;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.auth-tabs__item.is-active { color: var(--primary); font-weight: 600; box-shadow: inset 0 -2px 0 var(--primary); }
.auth-remember { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: var(--gap-sm); }
.auth-submit { width: 100%; min-height: 46px; font-size: 15px; margin-top: var(--gap-sm); }
.auth-alt { font-size: 13px; color: var(--text-muted); margin-top: var(--gap); }
.auth-doors { border-top: 1px solid var(--line); margin-top: var(--gap-xl); padding-top: var(--gap-lg); }
.auth-doors__title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-disabled);
  margin-bottom: 10px;
}
.auth-doors__soon { color: var(--text-disabled); font-size: 13px; }

/* ═══ 6. Мобайл (≤760px) ══════════════════════════════════════ */

@media (max-width: 760px) {
  .pub-shell { padding: 0 16px; }
  .pub-top__inner { height: 56px; gap: 12px; }
  .pub-burger { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
  .pub-top__actions .btn { min-height: 40px; }
  .pub-menu a { min-height: 52px; font-size: 16px; }

  .pub-section { padding: 44px 0; }
  .pub-section h2 { font-size: 24px; }
  .pub-lead { font-size: 15px; }
  .pub-hero { padding: 36px 0 32px; }
  .pub-hero h1 { font-size: 30px; letter-spacing: -.02em; }
  .pub-hero__actions { flex-direction: column; align-items: stretch; }
  .pub-hero__actions .btn { min-height: 48px; }
  .pub-strip__inner { gap: 12px; padding: 12px 16px; font-size: 13px; }
  .pub-facts__row, .pub-grid, .pub-steps, .pub-leaks, .pub-roles, .pub-plans, .pub-shots { grid-template-columns: 1fr; gap: 12px; }
  .pub-fact strong { font-size: 22px; }
  .pub-card, .pub-role, .pub-leak { padding: var(--gap); }
  .pub-plan { padding: var(--gap-lg); }
  .pub-plan__price { font-size: 24px; }
  .pub-calc { padding: var(--gap-lg); }
  .pub-calc__sum { font-size: 24px; }
  .pub-companion { padding: var(--gap-lg); border-radius: var(--radius-lg); }
  .pub-companion .btn { width: 100%; }
  .pub-faq details { padding: 12px var(--gap); }
  .pub-faq summary { font-size: 14px; min-height: 44px; }
  .pub-foot__inner { flex-direction: column; gap: var(--gap-lg); padding: 32px 16px; }

  .pub-doc { padding: 32px 16px 64px; }
  .pub-doc h1 { font-size: 24px; }
  .pub-doc__date { margin-bottom: 24px; }
  .pub-doc h2 { font-size: 17px; margin: 28px 0 10px; }
  .pub-doc p, .pub-doc li { font-size: 15px; line-height: 1.7; }
  /* Таблица в документе на 390px — карточками по строкам не переверстать
     без разметки, поэтому даём горизонтальную прокрутку обёрткой */
  .pub-doc table { display: block; overflow-x: auto; white-space: nowrap; }

  .lots-filter { grid-template-columns: 1fr; }
  .lots-hero__actions .btn { flex: 1; }
  .lot-card { padding: var(--gap); }
  .lot-card__title { font-size: 15px; }
  .lot-card__budget { font-size: 16px; }

  .auth-wrap { padding: 0; }
  .auth-shell { border-radius: 0; box-shadow: none; grid-template-columns: 1fr; }
  /* Левая колонка на телефоне — короткая шапка, а не полстраницы обещаний */
  .auth-side { padding: 20px 16px; }
  .auth-side__list, .auth-side__back { display: none; }
  .auth-main { padding: 24px 16px calc(32px + env(safe-area-inset-bottom)); }
  .auth-main h1 { font-size: 21px; }
  .auth-submit { min-height: 48px; }
}
