/* Главная: два входа (покупатель / поставщик), заявки с ценой за единицу, рынок, как это работает. Только токены base.css. */

.home-page .content-public { max-width: 1440px; }
.btn-amber { background: var(--signal); border-color: var(--signal); color: oklch(0.25 0.05 65); box-shadow: none; }
.btn-amber:hover { background: oklch(0.84 0.14 80); border-color: oklch(0.84 0.14 80); color: oklch(0.25 0.05 65); }
.btn-ghost-inv { background: transparent; border-color: oklch(1 0 0 / 0.35); color: oklch(0.99 0 0); box-shadow: none; }
.btn-ghost-inv:hover { border-color: oklch(1 0 0 / 0.6); color: oklch(0.99 0 0); background: oklch(1 0 0 / 0.06); }
.up { color: var(--ok); } .dn { color: var(--danger); }

/* ---------- Два входа ---------- */
.doors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.door { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-lg); padding: 28px 30px; display: flex; flex-direction: column; border: 1px solid transparent; }
.door .lbl { font-size: 14px; font-weight: 650; }
.door h1, .door .door-h { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 750; margin: 10px 0 0; max-width: 22ch; text-wrap: balance; }
.door-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start; margin: 16px 0 20px; }
.door-body p { margin: 0; font-size: 17px; line-height: 1.5; }
.door-acts { margin-top: auto; display: flex; align-items: center; gap: 18px; flex-wrap: nowrap; }
.door-link { font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.d1 { background: var(--brand-soft); border-color: var(--brand-soft-2); }
.d1 .lbl { color: var(--brand-ink); }
.d1 h1 { color: var(--ink); }
.d1 .door-body p { color: var(--ink-2); }
.d1 .door-link { color: var(--brand-ink); }
.forest { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 80px; z-index: -1; fill: oklch(0.88 0.07 150); opacity: .55; }
.d2 { background: var(--wood-deep); color: oklch(0.86 0.02 60); }
.d2 .lbl { color: var(--signal); }
.d2 .door-h { color: oklch(0.99 0.005 60); }
.d2 .door-body { grid-template-columns: minmax(0, 1fr) 300px; }
.d2 .door-body p { color: oklch(0.86 0.02 60); }
.d2 .door-link { color: oklch(0.86 0.04 70); }
.rings { position: absolute; right: -170px; top: -150px; width: 520px; height: 520px; z-index: -1; pointer-events: none; }
.rings circle { fill: none; stroke: var(--signal); stroke-opacity: .09; stroke-width: 1.6; }

.ex-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.ex-tag { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); }
.ex-card { background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 44px -20px oklch(0.3 0.08 150 / 0.45); padding: 14px; transform: rotate(1.2deg); }
.ex-card .ex-h { color: var(--muted); }
.ex-card .ex-tag { background: var(--brand-soft); color: var(--brand-ink); }
.ex-t { display: block; font-size: 14.5px; font-weight: 700; }
.ex-spec { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 8px; }
.ex-spec span { font-family: var(--mono); font-size: 11px; padding: 3px 6px; border-radius: 5px; background: var(--surface-3); color: var(--ink-2); }
.ex-card ul { list-style: none; margin: 0; padding: 0; }
.ex-card li { position: relative; display: flex; align-items: center; gap: 5px; padding: 9px 8px; border-top: 1px solid var(--line); border-radius: 6px; }
.ex-card .who { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--brand); margin-right: auto; }
.ex-card .who.nv { color: var(--muted); font-weight: 500; }
.ex-card em { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ex-card .ok { background: var(--brand-soft); color: var(--brand-ink); }
.ex-card .no { background: var(--surface-3); color: var(--muted); }
.ex-card li.best { background: var(--signal-soft); border-top-color: transparent; }
.ex-card .bt { position: absolute; top: -9px; right: 8px; font-size: 10px; font-weight: 700; color: #fff; background: var(--signal-ink); padding: 2px 7px; border-radius: var(--r-pill); }

.ex-list { background: oklch(0.26 0.03 38); border: 1px solid oklch(0.37 0.035 40); border-radius: var(--radius); padding: 14px 16px; transform: rotate(-1deg); box-shadow: 0 20px 40px -20px oklch(0 0 0 / 0.6); }
.ex-list .ex-h { color: oklch(0.72 0.03 60); }
.ex-list .ex-tag { background: var(--signal); color: var(--wood-deep); }
.ex-list ul { list-style: none; margin: 0; padding: 0; }
.ex-list li { padding: 11px 0; border-top: 1px solid oklch(0.34 0.03 40); }
.ex-list li:first-child { border-top: 0; }
.lt { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.lt b { font-size: 15px; color: oklch(0.99 0.005 60); font-weight: 650; line-height: 1.25; }
.lt em { font-style: normal; font-family: var(--mono); font-size: 13.5px; color: var(--signal); font-weight: 600; white-space: nowrap; }
.chips-s { display: flex; flex-wrap: wrap; gap: 4px; margin: 5px 0; }
.chips-s span { font-size: 12px; padding: 2px 7px; border-radius: 5px; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.chips-s span.law { background: var(--info-soft); color: var(--info); font-family: var(--mono); }
.ex-list .chips-s span { background: oklch(0.32 0.035 40); color: oklch(0.9 0.03 70); }
.lf { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: oklch(0.72 0.03 60); }
.lf span { display: inline-flex; align-items: center; gap: 4px; }
.lf a { color: var(--signal); font-weight: 600; white-space: nowrap; }

/* ---------- Разделы ---------- */
.sec { margin-top: 44px; }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.sh h2 { font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.sh p { color: var(--ink-2); margin: 6px 0 0; font-size: 16px; }
.more { font-weight: 600; color: var(--brand-ink); display: inline-flex; gap: 6px; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chips a { padding: 8px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chips a i { font-style: normal; color: var(--faint); margin-left: 4px; font-weight: 500; }
.chips a.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chips a:hover { text-decoration: none; border-color: var(--line-strong); }
.pn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pn h3 { font-size: 13px; font-weight: 650; padding: 12px 16px; margin: 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.pn h3 span { color: var(--muted); font-weight: 500; }
.pn ul { list-style: none; margin: 0; padding: 0; }

.own-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.own { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.own:hover { text-decoration: none; border-color: var(--brand); color: var(--ink); }
.own-n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.own-m { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--muted); margin-top: auto; }
.own-m span { display: inline-flex; align-items: center; gap: 5px; }

.mk { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.bids { width: 100%; border-collapse: collapse; }
.bids td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.bids tr:last-child td { border-bottom: 0; }
.bids tr:hover td { background: var(--surface-2); }
.bids td b { font-weight: 600; }
.bids .t { font-family: var(--mono); color: var(--muted); width: 60px; }
.bids .reg { display: block; font-size: 12.5px; color: var(--muted); }
.bids .r { text-align: right; white-space: nowrap; }
.bids .pu { display: block; font-family: var(--mono); font-size: 14.5px; color: var(--ink); }
.bids .q { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.bids .m { font-family: var(--mono); color: var(--muted); }
.bids .act a { font-size: 13px; font-weight: 600; color: var(--wood-ink); }
.side2 { display: flex; flex-direction: column; gap: 16px; }
.want li { display: grid; grid-template-columns: 110px 1fr 34px; gap: 10px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
.want li:last-child, .rg li:last-child, .mo li:last-child { border-bottom: 0; }
.want .bar { height: 7px; background: var(--surface-3); border-radius: 9px; overflow: hidden; }
.want .bar i { display: block; height: 100%; background: var(--wood); border-radius: 9px; }
.want b, .rg b { text-align: right; font-weight: 600; font-family: var(--mono); }
.lockn { display: flex; gap: 10px; align-items: flex-start; background: var(--wood-soft); border: 1px solid var(--wood-soft-2); border-radius: var(--radius); padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.lockn .ico { color: var(--wood); margin-top: 2px; }
.lockn a { color: var(--wood-ink); font-weight: 600; }
.rg li { display: flex; justify-content: space-between; padding: 9px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }

.sell { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center;
  background: var(--wood-deep); color: oklch(0.86 0.02 60); border-radius: var(--r-lg); padding: 36px 40px; position: relative; overflow: hidden; }
.sell .lbl { font-size: 14px; font-weight: 650; color: var(--signal); }
.sell h2 { font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; margin: 10px 0 12px; color: oklch(0.99 0.005 60); max-width: 18ch; }
.sell p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.55; max-width: 50ch; }
.sell-acts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sell .door-link { color: oklch(0.86 0.04 70); }
.sell-n { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: oklch(0.36 0.035 40); border: 1px solid oklch(0.36 0.035 40); border-radius: var(--radius); overflow: hidden; }
.sell-n div { background: oklch(0.25 0.03 38); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.sell-n b { font-size: 36px; line-height: 1; letter-spacing: -0.04em; font-weight: 780; color: var(--signal); white-space: nowrap; }
.sell-n span { font-size: 14.5px; line-height: 1.35; color: oklch(0.84 0.02 60); }

.how { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hw { border-radius: var(--r-lg); padding: 24px 26px; }
.hw h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 14px; }
.hw ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hw li { display: flex; gap: 14px; }
.hw li > b { flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.hw h4 { font-size: 16.5px; margin: 0 0 2px; color: var(--ink); }
.hw p { font-size: 15px; line-height: 1.5; margin: 0; color: var(--ink-2); }
.hw1 { background: var(--surface); border: 1px solid var(--line); }
.hw1 h3 { color: var(--brand-ink); }
.hw1 li > b { background: var(--brand); color: var(--on-brand); }
.hw2 { background: var(--wood-soft); border: 1px solid var(--wood-soft-2); }
.hw2 h3 { color: var(--wood-ink); }
.hw2 li > b { background: var(--signal); color: var(--wood-deep); }

.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tc .ico { color: var(--brand); }
.tc.w .ico { color: var(--wood); }
.tc h4 { font-size: 16.5px; margin: 12px 0 6px; }
.tc p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; margin: 0; }

.final { margin-top: 48px; border-radius: var(--r-lg); padding: 36px 40px; color: oklch(0.99 0 0);
  background: radial-gradient(90% 140% at 100% 0%, oklch(0.36 0.07 150), transparent 60%), oklch(0.27 0.06 152);
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.final h2 { font-size: 30px; letter-spacing: -0.03em; line-height: 1.1; max-width: 20ch; margin: 0; color: oklch(0.99 0 0); }
.final p { color: oklch(0.85 0.03 150); margin: 8px 0 0; font-size: 16px; }
.final .acts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
  .door-body, .d2 .door-body { grid-template-columns: minmax(0, 1fr); }
  .ex-card, .ex-list { transform: none; max-width: 380px; }
  .mk { grid-template-columns: minmax(0, 1fr); }
  .trust { grid-template-columns: 1fr 1fr; }
  .sell { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  .doors, .how { grid-template-columns: minmax(0, 1fr); }
  .own-grid { grid-template-columns: 1fr 1fr; }
  .door { padding: 24px 20px; }
  .door-acts { flex-wrap: wrap; }
  .final { padding: 26px 22px; }
  .sell { padding: 28px 24px; }
}
@media (max-width: 600px) {
  .door h1, .door .door-h { font-size: 24px; }
  .door-acts .btn { width: 100%; }
  .trust, .own-grid { grid-template-columns: minmax(0, 1fr); }
  .sh h2 { font-size: 24px; }
  .sell { padding: 26px 20px; }
  .sell h2 { font-size: 24px; }
  .sell-n b { font-size: 28px; }
  .bids .m, .bids .act, .bids .t { display: none; }
  .bids td { padding: 12px; }
  .final h2 { font-size: 24px; }
  .final .acts .btn { flex: 1; }
}
