/* Главная - концепция 3 «Сначала - что это» (утверждена 25.10.2026).
   Первый экран: один оффер площадки + схема «заявка → предложения → выбор» + тёмная полоса цифр.
   Ниже: два входа (покупаю / продаю), открытые заявки, доверие, разделы площадки. Только токены base.css. */

.topbar-spacer { flex: 1 1 auto; }

/* ---------- Герой ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 48px; padding: 44px 44px 0; align-items: start; overflow: hidden; }
.intro-l { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.intro h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1.04; letter-spacing: -0.035em; max-width: 14ch; margin: 0; }
.intro-p { font-size: 19px; line-height: 1.45; color: var(--ink-2); max-width: 36ch; margin: 0; }
.intro-acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.intro-acts .sec-more { font-size: 17px; }
.intro-note { font-size: 14px; font-weight: 600; color: var(--brand); }

.scheme { background: var(--bg); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.sc-step { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0 4px; }
.sc-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--surface); font-size: 12.5px; font-weight: 700; flex: 0 0 auto; }
.sc-cnt { margin-left: auto; font: 600 18px/1 var(--display); color: var(--ink); }
.sc-req { background: var(--surface); border-radius: var(--r-sm); padding: 14px 16px; }
.sc-req b { font-size: 17px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sc-chips span { font-size: 12.5px; padding: 3px 9px; border-radius: var(--r-pill); background: var(--bg); }
.sc-offers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.of { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr) 76px; gap: 12px; align-items: center; background: var(--surface); border-radius: var(--r-sm); padding: 11px 14px;
  animation: of-in .6s var(--ease) both; animation-delay: calc(.5s + var(--i) * .35s); }
@keyframes of-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.of.best { box-shadow: 0 0 0 2px var(--brand); }
.of-n { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.of-n b { font-size: 14.5px; }
.of-n em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand); display: inline-flex; align-items: center; gap: 4px; }
.of-p { font-weight: 700; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.of-p small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
.of-c { font-size: 12.5px; color: var(--muted); }
.of-go { justify-self: end; font-size: 13px; font-weight: 700; border-radius: var(--r-pill); padding: 6px 12px; background: var(--ink); color: var(--surface); }

.intro-proof { grid-column: 1 / -1; margin: 0 -44px; border-radius: 0; grid-template-columns: 1.15fr 1.7fr repeat(3, 0.9fr); }
.intro-proof .big b { font-size: clamp(28px, 2.7vw, 42px); }
.intro-proof .big b small { font-size: .5em; color: inherit; }
.intro-proof .big span { color: var(--surface); font-weight: 600; font-size: 14.5px; }

/* ---------- Два входа ---------- */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.door { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.door h3 { font: 700 26px/1.12 var(--display); letter-spacing: -0.02em; max-width: 18ch; margin: 0; }
.door-big { font: 700 30px/1 var(--display); letter-spacing: -0.02em; margin: 0; }
.door-more { font-weight: 700; font-size: 19px; color: var(--signal); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.door-more:hover { color: oklch(0.86 0.13 82); }
.door .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Открытые заявки ---------- */
.reqs { padding: 18px 18px 10px; display: flex; flex-direction: column; gap: 12px; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 4px; }
.fchips a { font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink); }
.fchips a:hover { text-decoration: none; background: var(--surface-3); }
.fchips a i { font-style: normal; color: var(--muted); margin-left: 2px; }
.fchips .on { background: var(--ink); color: var(--surface); }
.fchips .on i { color: oklch(0.8 0.01 150); }
.rrow { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.1fr) minmax(0, .6fr) 150px; gap: 14px; align-items: center;
  padding: 13px 10px; border-top: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); transition: background-color .15s var(--ease); }
a.rrow:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.rrow.hd { border-top: 0; font-size: 12.5px; font-weight: 600; color: var(--muted); padding-top: 4px; padding-bottom: 4px; }
.r-t { display: flex; align-items: baseline; gap: 4px 8px; flex-wrap: wrap; min-width: 0; }
.r-t b { font-weight: 600; }
.r-t small { flex-basis: 100%; color: var(--muted); font-size: 13px; }
.law { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-xs); background: var(--wood-deep); color: var(--surface); white-space: nowrap; }
.r-reg { font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.r-reg .dlv { font-size: 12.5px; color: var(--muted); white-space: normal; align-items: flex-start; }
.law-own { background: var(--signal); color: var(--wood-deep); }
.r-wait { font-weight: 600; color: var(--brand); font-size: 14px; }
.r-vol { font-size: 14px; color: var(--ink-2); }
.rrow > * { min-width: 0; }
/* Число и «руб.» связаны неразрывным пробелом; перенос допустим только после «/» (<wbr>) - длинная единица не залезает в соседнюю колонку */
.r-pr { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
.r-d { font-size: 14px; white-space: nowrap; }
.r-go { justify-self: end; font-size: 13.5px; font-weight: 700; padding: 8px 14px; border-radius: var(--r-pill); background: var(--bg); white-space: nowrap; }
a.rrow:hover .r-go { background: var(--signal); color: var(--wood-deep); }

/* ---------- Доверие ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tr { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.tr .ico { color: var(--brand); margin-bottom: 6px; }
.tr b { font-size: 17px; }
.tr span { font-size: 14.5px; color: var(--muted); }

/* ---------- Ещё на площадке ---------- */
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "p p a b" "p p c c"; gap: 14px; }
.more > .mp { grid-area: p; }
.more > .mt:nth-of-type(2) { grid-area: a; } .more > .mt:nth-of-type(3) { grid-area: b; }
.more > .mt:nth-of-type(4) { grid-area: c; }
.more > a { display: flex; flex-direction: column; gap: 12px; min-height: 220px; color: inherit; transition: transform .2s var(--ease); }
.more > a:hover { text-decoration: none; transform: translateY(-2px); color: inherit; }
.m-k { font: 600 18px/1.2 var(--display); letter-spacing: -0.01em; }
.m-txt { color: var(--muted); font-size: 15px; }
.tile-brand .m-txt { color: oklch(0.9 0.04 150); }
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.m-chips span { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); }
.m-go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ptab { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptab td { padding: 11px 0; border-top: 1px solid var(--line); }
.ptab td.num { font-weight: 700; padding-left: 12px; white-space: nowrap; }
.ptab td.chg { text-align: right; white-space: nowrap; padding-left: 10px; font-size: 13px; font-weight: 600; color: var(--muted); width: 1%; }
.ptab .up { color: var(--danger); } .ptab .down { color: var(--ok); }
.idx .by { font: 600 12px/1 var(--font); letter-spacing: 0; padding: 4px 9px; border-radius: var(--r-pill); background: var(--ink); color: var(--signal); vertical-align: 4px; margin-left: 6px; }
.usd { font-size: 14px; color: var(--ink-2); padding-top: 4px; }
.usd b { color: var(--ink); } .usd i { font-style: normal; color: var(--muted); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .intro { grid-template-columns: 1fr; }
  .rrow { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; }
  .r-vol, .r-d, .rrow.hd span:nth-child(3), .rrow.hd span:nth-child(5) { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .more { grid-template-columns: 1fr 1fr; grid-template-areas: "p p" "a b" "c c"; }
}
@media (max-width: 720px) {
  .intro { padding: 24px 18px 0; gap: 22px; border-radius: var(--radius); }
  .intro h1 { font-size: 32px; }
  .intro-p { font-size: 16.5px; }
  .intro-acts .btn { width: 100%; }
  .scheme { padding: 10px; border-radius: var(--r-sm); }
  .of { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .of-c { grid-column: 1; }
  .of-go { grid-column: 2; grid-row: 2; }
  .intro-proof { margin: 0 -18px; }
  .doors { grid-template-columns: 1fr; }
  .door { padding: 22px 20px; }
  .door h3 { font-size: 22px; }
  .door-big { font-size: 24px; }
  .door-more { font-size: 17px; }
  .door .btn { width: 100%; align-self: stretch; }
  .reqs { padding: 12px 10px 6px; }
  .rrow.hd { display: none; }
  .rrow { grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 8px; }
  .r-t { grid-column: 1 / -1; }
  .r-go { display: none; }
  .r-pr { white-space: normal; overflow-wrap: anywhere; text-align: right; }
  .trust { grid-template-columns: 1fr; }
  .more { grid-template-columns: 1fr; grid-template-areas: "p" "a" "b" "c"; }
  .more > a { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .of { animation: none; } }

/* Мини-таблица индекса на телефоне (26.10.2026): цена и изменение - столбиком справа, без переносов;
   название позиции занимает всю остальную ширину */
.ptab td.num, .ptab td.chg { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .ptab, .ptab tbody { display: block; }
  .ptab tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t n" "t c"; column-gap: 12px;
    padding: 9px 0; border-top: 1px solid var(--line); }
  .ptab td { display: block; padding: 0; border: 0; }
  .ptab td:first-child { grid-area: t; align-self: center; line-height: 1.35; }
  .ptab td.num { grid-area: n; padding: 0; text-align: right; }
  .ptab td.chg { grid-area: c; padding: 0; width: auto; }
}
