
:root {
  --quartz: var(--surface-2); --blank: var(--surface); --plate: var(--line); --oil: var(--text); --steel: var(--text-2);
  --seal: var(--accent); --seal-tint: var(--brand-wash); --ochre: var(--warn-ink); --ochre-tint: var(--warn-wash);
  --rust: var(--crit-ink); --rust-tint: var(--crit-wash); --r: 10px; --gutter: 16px;
}

body { font-size: 16px; line-height: 1.45; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
:where(button:not(.btn)) { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--steel); }
.small { font-size: 15px; line-height: 1.4; }

/* Кнопка-ссылка */
.linkbtn { color: var(--seal); font-weight: 500; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }

.roles {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  margin: 0 var(--gutter); background: var(--plate); padding: 2px; border-radius: var(--r);
}
.roles button {
  min-height: 44px; text-align: center; border-radius: 3px; font-weight: 500; font-size: 16px; color: var(--steel);
}
.roles button[aria-pressed="true"] { background: var(--oil); color: var(--blank); font-weight: 600; }
.search-line { padding: 12px var(--gutter) 12px; font-size: 15px; color: var(--steel); }
.search-line b { color: var(--oil); font-weight: 500; }

/* Вердикт */
.verdict { font: 700 28px/1.1 var(--num); padding: 12px var(--gutter); color: var(--blank); letter-spacing: 0.002em; }
.verdict--go { background: var(--seal); }
.verdict--if { background: var(--ochre); }
.verdict--no { background: var(--rust); }
.verdict--ask { background: var(--steel); }
.verdict-sub { display: block; font: 500 15px/1.3 var(--sans); margin-top: 4px; }
.word--go { color: var(--seal); } .word--if { color: var(--ochre); } .word--no { color: var(--rust); } .word--ask { color: var(--steel); }

/* Главный кандидат */
.hero { background: var(--blank); }
.hero-body { padding: 14px var(--gutter) 16px; }
.hero h1, .head h1 { font: 600 22px/1.25 var(--sans); }
.customer { color: var(--steel); font-size: 15px; margin-top: 4px; }
.because { margin-top: 12px; font-size: 16px; line-height: 1.4; }
.because li { margin-top: 6px; }
.because ul { margin: 0; padding: 0 0 0 18px; }

.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 16px; }
.fig dt { font-size: 15px; color: var(--steel); line-height: 1.25; }
.fig dd { margin: 2px 0 0; font: 700 25px/1.1 var(--num); font-variant-numeric: tabular-nums; }
.fig--lead { grid-column: 1 / -1; }
.fig--lead dd { font-size: min(42px, 10.2vw); letter-spacing: -0.01em; white-space: nowrap; }
.fig--bad dd { color: var(--rust); }
.fig small { display: block; font: 400 15px/1.3 var(--sans); color: var(--steel); margin-top: 2px; }
dl { margin: 0; }

.primary {
  display: flex; justify-content: center; align-items: center; width: 100%; min-height: 54px; margin-top: 16px;
  background: var(--oil); color: var(--blank); border-radius: var(--r); font-weight: 600; font-size: 17px; text-align: center; text-decoration: none;
}
.secondary {
  display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 16px;
  background: var(--plate); border-radius: var(--r); font-weight: 500; font-size: 16px; text-decoration: none; color: var(--oil);
}
.hero .pit { margin-top: 14px; }

/* Список кандидатов */
.section { margin-top: 8px; background: var(--blank); padding: 16px var(--gutter); }
.section > h2 { font: 600 19px/1.25 var(--sans); }
.section-lead { margin-top: 4px; font-size: 15px; color: var(--steel); }
.rows { margin-top: 8px; }
.row:first-child { border-top: 0; }
.row-word { font: 700 17px/1.2 var(--num); }
.row-title { grid-column: 1 / -1; font-weight: 500; font-size: 16px; line-height: 1.3; }
.row-money { font: 700 19px/1.2 var(--num); text-align: right; font-variant-numeric: tabular-nums; }
.row-note { grid-column: 1 / -1; font-size: 15px; color: var(--steel); line-height: 1.35; }

/* Карточка */
.backbar {
  position: sticky; top: 0; z-index: 5; background: var(--blank);
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px;
  border-bottom: 1px solid var(--plate);
}
.backbar a { font-weight: 500; font-size: 16px; color: var(--seal); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.stick { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; visibility: hidden; }
.stick.on { visibility: visible; }
.stick b { font: 700 16px/1.15 var(--num); }
.stick span { font: 700 17px/1.15 var(--num); font-variant-numeric: tabular-nums; }

.dealcard { display: flex; flex-direction: column; padding-bottom: calc(env(safe-area-inset-bottom) + 84px); }
.pane { display: contents; }
.block { background: var(--blank); margin-top: 8px; padding: 16px var(--gutter); }
.block > h2 { font: 600 20px/1.25 var(--sans); }
.block-lead { margin-top: 4px; color: var(--steel); font-size: 15px; }
.head { margin-top: 0; padding: 0; }
.head-body { padding: 14px var(--gutter) 16px; }
.head .plain { margin-top: 10px; font-size: 17px; }

.deadline { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--plate); }
.deadline b { font: 700 21px/1.1 var(--num); }
.deadline--soon b { color: var(--rust); }

/* Яма: геометрия тянется по контейнеру, подписи остаются обычным текстом нужного размера. */
.pit { display: block; margin: 14px 0 0; container-type: inline-size; }
.pit-head { display: block; }
.pit-head b { display: block; font-size: 14px; font-weight: 600; }
.pit-head span { display: block; font-size: 13px; color: var(--text-3); margin-top: 1px; }
.pit-plot { position: relative; margin-top: 4px; touch-action: pan-y; }
.pit-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pit-plot path, .pit-plot line { vector-effect: non-scaling-stroke; }
.pit-fill { fill: var(--seal-tint); }
.pit-fill--short { fill: var(--rust); fill-opacity: .8; }
.pit-fill--gain { fill: var(--brand); }
.pit-line { fill: none; stroke: var(--oil); stroke-width: 2; stroke-linejoin: round; }
.pit-zero { stroke: var(--text-3); stroke-width: 1; }
.pit-reserve { stroke: var(--rust); stroke-width: 1.5; stroke-dasharray: 6 4; }
.pit-tag { position: absolute; font-size: 12px; line-height: 1.2; white-space: nowrap; color: var(--text-2); font-variant-numeric: tabular-nums; pointer-events: none; }
.pit-tag--zero { left: 0; transform: translateY(calc(-100% - 3px)); }
.pit-tag--reserve { right: 0; transform: translateY(3px); color: var(--rust); padding: 0 3px; background: var(--surface); border-radius: 3px; }
@container (max-width: 420px) { .pit-tag__note { display: none; } }
.pit-tag--peak { transform: translate(14px, 3px); }
.pit-tag--left { right: auto; left: 0; }
.pit-tag--flip { transform: translate(calc(-100% - 14px), 3px); }
.pit-tag--end { transform: translate(calc(-100% - 14px), -50%); }
.pit-tag--peak, .pit-tag--end { font-size: 15px; font-weight: 700; color: var(--text); background: var(--surface); border-radius: 4px; padding: 0 4px; }
.pit-tag--loss { color: var(--rust); }
.pit-no { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--oil); color: var(--surface); font: 700 12px/20px var(--num); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--surface); pointer-events: none; }
.pit-axis { position: relative; height: 18px; margin-top: 4px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pit-axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.pit-axis span:first-child { transform: none; }
.pit-axis span:last-child { transform: translateX(-100%); }
.pit-rule { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--text-3); pointer-events: none; }
.pit-tip { position: absolute; top: 0; z-index: 2; padding: 5px 8px; border-radius: 6px; background: var(--oil); color: var(--surface); font-size: 12.5px; line-height: 1.25; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.pit-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 16px; margin: 12px 0 0; padding: 0; list-style: none; }
[data-live="pit"] .pit-story { min-height: 170px; align-content: start; }
@container (min-width: 520px) { [data-live="pit"] .pit-story { min-height: 100px; } .pit-story--2 { grid-template-columns: 1fr 1fr; } .pit-story--3 { grid-template-columns: 1fr 1.7fr 1fr; } }
.pit-story li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.pit-story i { width: 20px; height: 20px; border-radius: 50%; background: var(--oil); color: var(--surface); font: 700 12px/20px var(--num); text-align: center; font-style: normal; }
.pit-story b { display: block; font-weight: 600; color: var(--text); }

details.fold > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; color: var(--oil); cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: '+'; font: 700 26px/1 var(--num); color: var(--seal); flex: none; }
details.fold[open] > summary::after { content: '−'; }
details.fold > summary h2, details.fold > summary h3 { font: 600 20px/1.25 var(--sans); margin: 0; }
.fold--assume { margin-top: 16px; border-top: 1px solid var(--plate); padding-top: 4px; }
.fold--assume > summary h3 { font-size: 17px !important; }

/* Сбои */
.shock { margin-top: 18px; }
.shock-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.shock-name { font-weight: 500; font-size: 16px; }
.shock-val { font: 700 21px/1 var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shock-hit { font-size: 15px; color: var(--steel); margin-top: 2px; min-height: 21px; }
.shock-hit.bad { color: var(--rust); font-weight: 500; }
.track { position: relative; height: 52px; margin: 2px 8px 0; }
.track input[type=range] {
  -webkit-appearance: none; appearance: none; position: absolute; left: -8px; right: -8px; width: calc(100% + 16px); top: 0; height: 52px; margin: 0;
  background: transparent; touch-action: pan-y; cursor: pointer;
}
.track input::-webkit-slider-runnable-track { height: 8px; background: var(--plate); border-radius: 2px; }
.track input::-moz-range-track { height: 8px; background: var(--plate); border-radius: 2px; }
.track input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 44px; height: 44px; margin-top: -18px; background: var(--seal); border-radius: var(--r); border: 0;
  background-image: repeating-linear-gradient(90deg, transparent 0 13px, rgba(255,255,255,.75) 13px 15px, transparent 15px 19px);
}
.track input::-moz-range-thumb { width: 44px; height: 44px; background: var(--seal); border-radius: var(--r); border: 0; }
.track input.over::-webkit-slider-thumb { background-color: var(--rust); }
.track input.over::-moz-range-thumb { background: var(--rust); }
.zero-mark { position: absolute; top: 10px; width: 3px; height: 32px; background: var(--rust); transform: translateX(-1px); pointer-events: none; }
.steps { display: flex; gap: 6px; margin-top: 2px; }
.steps button { flex: 1; min-height: 40px; text-align: center; font: 600 16px var(--num); background: var(--quartz); border-radius: var(--r); color: var(--steel); }
.steps button[aria-pressed="true"] { background: var(--oil); color: var(--blank); }
.reset { margin-top: 16px; }

/* Допущения */
.assume { margin-top: 12px; border: 1.5px dashed var(--steel); border-radius: var(--r); padding: 4px 12px; }
.assume-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--plate); min-height: 56px; }
.assume-row:first-child { border-top: 0; }
.assume-row label { font-size: 15px; line-height: 1.3; }
.assume-row .why { display: block; color: var(--steel); }
.stepper { display: flex; align-items: center; flex: none; }
.stepper button { width: 44px; height: 44px; text-align: center; font: 700 22px/1 var(--num); background: var(--plate); border-radius: var(--r); }
.stepper output { min-width: 76px; text-align: center; font: 700 19px/1 var(--num); font-variant-numeric: tabular-nums; }

/* Точки внимания */
.trap { padding: 14px 0; border-top: 1px solid var(--plate); }
.trap:first-of-type { border-top: 0; margin-top: 4px; }
.trap-title { font-weight: 600; font-size: 17px; line-height: 1.3; }
.trap-title.danger { color: var(--rust); }
.trap-title.watch { color: var(--ochre); }
.trap-rub { font: 700 21px/1.2 var(--num); margin-top: 4px; font-variant-numeric: tabular-nums; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; font-size: 15px; line-height: 1.35; }
.compare dt { color: var(--steel); }
.compare dd { margin: 0; font-weight: 500; }
.srcbtn { display: inline-flex; align-items: center; min-height: 40px; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--seal); text-decoration: underline; text-underline-offset: 3px; }
.notice { margin-top: 12px; padding: 12px; background: var(--ochre-tint); border-radius: var(--r); font-size: 15px; line-height: 1.4; }
.notice--info { background: var(--seal-tint); }

/* Списки */
.kv { display: block; margin-top: 10px; }
.kv-row { display: grid; grid-template-columns: minmax(0, 38%) 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--plate); font-size: 16px; line-height: 1.35; }
.kv-row:first-child { border-top: 0; }
.kv-row dt { color: var(--steel); font-size: 15px; }
.kv-row dd { margin: 0; }
.todo { list-style: none; margin: 10px 0 0; padding: 0; }
.todo li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid var(--plate); font-size: 16px; line-height: 1.35; }
.todo li:first-child { border-top: 0; }
.todo input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--seal); }
.todo label { cursor: pointer; }
.subhead { font: 600 17px/1.3 var(--sans); margin-top: 18px; }

/* Видео */
.video video { display: block; width: 100%; max-width: 480px; aspect-ratio: 4 / 5; background: var(--oil); border-radius: var(--r); margin-top: 10px; }
details summary { min-height: 44px; display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--seal); cursor: pointer; }

/* Нижняя панель */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--blank);
  padding: 10px var(--gutter) calc(env(safe-area-inset-bottom) + 10px);
  border-top: 1px solid var(--plate); display: flex; gap: 8px;
}
.dock .primary { margin: 0; flex: 1; }

/* Лист */
dialog.sheet {
  border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88dvh; background: var(--blank); color: var(--oil);
  border-radius: 8px 8px 0 0;
}
dialog.sheet::backdrop { background: rgba(17, 22, 28, .55); }
.sheet-in { padding: 16px var(--gutter) calc(env(safe-area-inset-bottom) + 16px); overflow-y: auto; }
.sheet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-top h2 { font: 600 20px/1.25 var(--sans); }
.close { min-width: 44px; min-height: 44px; text-align: right; color: var(--seal); font-weight: 500; font-size: 16px; flex: none; }
blockquote { margin: 12px 0 0; padding: 0 0 0 12px; border-left: 3px solid var(--seal); font-size: 16px; line-height: 1.45; white-space: pre-wrap; }
.layer { padding: 10px 0; border-top: 1px solid var(--plate); font-size: 16px; }
.layer b { font-weight: 600; display: block; }
.footnote { padding: 16px var(--gutter) 32px; font-size: 15px; color: var(--steel); }

#toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 84px); transform: translate(-50%, 8px); z-index: 20;
  background: var(--oil); color: var(--blank); padding: 12px 16px; border-radius: var(--r); font-size: 15px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; max-width: calc(100vw - 32px);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Своя цена */
.price-form { margin-top: 12px; display: grid; gap: 10px; }
.field { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.field label { font-size: 15px; line-height: 1.3; }
.field input { width: 110px; min-height: 48px; font: 700 20px var(--num); text-align: right; padding: 0 10px; border: 1.5px dashed var(--steel); border-radius: var(--r); background: var(--blank); flex: none; }
.floor { margin-top: 14px; padding: 12px; background: var(--quartz); border-radius: var(--r); }
.floor b { display: block; font: 700 25px/1.15 var(--num); font-variant-numeric: tabular-nums; margin-top: 2px; }
.floor.bad b { color: var(--rust); }

/* Планшет и десктоп */
@media (min-width: 720px) {
  :root { --gutter: 24px; }
  .fig--lead dd { font-size: 48px; }
}

@media (min-width: 1100px) {
  :root { --gutter: 28px; }
  .shell { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
  .roles { margin: 0; width: 480px; flex: none; }
  .home-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 4px 0 14px; }
  .search-line { padding: 0; text-align: right; }
  .home { display: grid; grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); gap: 12px; align-items: start; }
  .home-side { position: sticky; top: 12px; }
  .home-side .section:first-child, .home-main .section:first-child { margin-top: 0; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .hero .pit { margin-top: 0; }
  .verdict { font-size: 32px; }
  .backbar { position: sticky; padding: 0 28px; }
  .backbar-in { max-width: 1320px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
  .dealcard { display: grid; grid-template-columns: 480px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0 96px; }
  .pane { display: block; min-width: 0; }
  .video video { max-width: 340px; }
  .pane-left { position: sticky; top: 64px; max-height: calc(100dvh - 148px); overflow-y: auto; }
  .head .plain { font-size: 15px; }
  .head h1 { font-size: 20px; }
  .pane-left .figs { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .pane-left .fig--lead dd { font-size: 36px; }
  .pane .block:first-child { margin-top: 0; }
  .dock { justify-content: flex-end; padding-right: max(28px, calc((100vw - 1264px) / 2)); }
  .dock .primary { flex: 0 0 auto; width: auto; min-width: 240px; }
  dialog.sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: 520px; max-width: 520px; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }


/* Rezon: знак, герой, каталог. Всё на токенах пакета стиля */
.brand { display: inline-block; color: var(--text); font-size: 24px; line-height: 1; font-weight: 700; letter-spacing: -.035em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand::before { content: none; display: none; }
.brand span { color: var(--brand); font-weight: 700; }
body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 760 420' fill='none' stroke='%23d4a847' stroke-opacity='.42' stroke-width='1.2' stroke-dasharray='2 7' stroke-linecap='round'%3E%3Cpath d='M20 120C120 120 150 350 300 360C470 372 560 230 740 60'/%3E%3Cpath d='M20 180C140 180 190 300 320 310C480 322 570 240 740 140'/%3E%3C/svg%3E");
}
.top__row .fresh { margin-right: auto; }
.top__row { max-width: 1240px; padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; }
.page { max-width: 1240px; margin: 0 auto; padding: 0 16px 24px; }
.hero-brand { padding: 28px 0 8px; }
.hero-brand h1 { margin: 0; font-size: clamp(34px, 6.4vw, 66px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; max-width: 16em; text-wrap: balance; }
.hero-brand h1 em { font-style: normal; color: var(--brand); }
.hero-brand p { margin-top: 12px; font-size: clamp(16px, 2vw, 19px); color: var(--text-2); max-width: 36em; }
.page .section-title { font-size: 12px; }
.grid--kpi4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi__value--big { font-size: clamp(28px, 4vw, 38px) !important; }
.st--go { background: var(--brand); } .st--ask { background: var(--accent); } .st--new { background: color-mix(in srgb, var(--line-strong) 60%, var(--text-3)); } .st--no { background: var(--crit); opacity: .85; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 12px; margin-top: 12px; }
.card > h2 { margin-bottom: 12px; }
/* Обзор: 18 квадратов и доли отраслей */
.overview-side { display: flex; flex-direction: column; }
.overview-side h2 small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text-3); margin-left: 4px; }
.card > .overview-side__second { margin-top: 22px; }
.overview-side__hint { margin: auto 0 0; padding-top: 12px; font-size: 12.5px; color: var(--text-3); }
.units { display: flex; gap: 8px; }
.units__group { display: flex; gap: 3px; flex-basis: 0; min-width: 0; }
.unit { flex: 1 1 0; min-width: 0; height: 30px; border-radius: 4px; }
.ukeys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; margin-top: 8px; }
:where(.ukey, .srow) { appearance: none; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%; border-radius: 6px; }
.ukey { display: flex; align-items: center; min-height: 36px; font-size: 14px; padding: 0 4px; }
.ukey span { flex: 1; min-width: 0; }
.ukey b { font-weight: 700; font-variant-numeric: tabular-nums; }
.srows { display: grid; gap: 2px; flex: 1; grid-auto-rows: 1fr; }
.srow { display: grid; grid-template-columns: minmax(120px, 150px) 1fr 96px; gap: 10px; align-items: center; min-height: 44px; padding: 3px 4px; font-size: 14px; }
.srow small { display: block; font-size: 12px; color: var(--text-3); }
.srow__bar { height: 12px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.srow__bar i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.srow__val { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.srow__val b { display: block; font-weight: 700; }
.ukey:hover, .srow:hover { background: var(--brand-wash); }
.start { display: block; color: inherit; text-decoration: none; }
.start:hover { text-decoration: none; border-color: var(--brand-rim); }
.start > span { display: block; }
.start-figs small { text-wrap: pretty; }
.start-label { font-size: 13px; color: var(--text-2); }
.start-title { font-size: 20px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; margin-top: 3px; }
.start-sub { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.start .start-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.start-figs b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.start-figs small { display: block; font-size: 12px; line-height: 1.25; color: var(--text-3); margin-top: 2px; }
.start-word { font-size: 14px; font-weight: 600; color: var(--brand); margin-top: 12px; }
.catalog { display: grid; gap: 12px; }
.pickers, .results { min-width: 0; padding: 16px; }
.pickers-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: -.01em; }
.search { display: block; margin-top: 10px; }
.search input, .pick select { width: 100%; min-height: 46px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 15px; }
.statuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
button.status { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); min-height: 62px; align-content: center; border: 1px solid transparent; cursor: pointer; text-align: left; }
button.status:first-child { grid-column: 1 / -1; min-height: 50px; }
button.status[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-wash); }
.status-name { display: flex; align-items: center; font-size: 13.5px; font-weight: 500; line-height: 1.2; min-width: 0; }
.status-n { font-size: 20px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.status-sum { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.status-hint { font-size: 13px; color: var(--text-3); margin-top: 8px; line-height: 1.4; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
button.fchip { min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid transparent; }
button.fchip span { color: var(--text-3); font-weight: 400; margin-left: 2px; }
button.fchip[aria-pressed="true"] { background: var(--brand-wash); border-color: var(--brand); color: var(--brand); }
.pick { display: block; margin-top: 12px; font-size: 13px; color: var(--text-2); }
.pick select { display: block; margin-top: 4px; }
.results-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.results-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--text); text-transform: none; letter-spacing: -.015em; }
.results-head p { grid-column: 1; font-size: 13px; color: var(--text-2); min-height: 1em; margin: 0; }
.results-head .seg { grid-column: 2; grid-row: 1 / span 2; }
.results-head .seg button { min-height: 44px; padding: 0 10px; font-size: 13px; white-space: nowrap; }
.deals { margin-top: 10px; }
.deals-cap { display: none; }
.deal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 13px 8px; margin: 0 -8px; border-top: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; }
.deal:hover { background: var(--surface-2); text-decoration: none; }
.deal-main { grid-row: 1 / span 2; min-width: 0; }
.deal-main > span { display: block; }
.deal-title { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.deal-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.deal .deal-word { display: flex; align-items: baseline; font-size: 13px; color: var(--text-2); margin-top: 5px; line-height: 1.3; }
.deal-sector { display: none; }
.deal-sum { font-size: 16px; font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.deal-sum--closed { font-size: 13px; font-weight: 500; color: var(--text-3); }
.deal-days { font-size: 13px; color: var(--text-2); text-align: right; white-space: nowrap; }
.deal-days--soon { color: var(--crit-ink); font-weight: 600; }
.empty { padding: 24px 0; }
.empty .secondary { margin-top: 10px; }
.footnote { padding: 18px 0 8px; font-size: 13px; color: var(--text-3); line-height: 1.45; max-width: 70em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.linkbtn { color: var(--accent); font-size: 14px; }

/* Карточка сделки */
.shell { padding-bottom: 8px; }
.block, .section { background: var(--tile); border: 1px solid var(--line); border-radius: 14px; box-shadow: inset 0 1px 0 var(--hi), var(--shadow); margin: 8px 12px 0; }
.head { padding: 0; }
.head h1 { font-size: 24px; letter-spacing: -.015em; }
.backbar { background: var(--bar); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); border-bottom: 1px solid var(--line); }
.verdict-for { padding: 14px var(--gutter) 0; font-size: 13px; color: var(--text-3); }
.verdict { display: inline-block; margin: 4px var(--gutter) 0; padding: 6px 12px; border-radius: 8px; font: 600 14px/1.2 var(--sans); color: var(--surface); }
.verdict--if { background: var(--brand); }
.fig dd { font-family: var(--num); letter-spacing: -.015em; }
.fig--lead dd { font-size: clamp(44px, 12vw, 60px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.dock { background: var(--bar); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.dealcard { padding-bottom: 8px; }
.primary { border: 0; cursor: pointer; }
dialog.sheet { background: var(--surface); color: var(--text); }
.stepper button, .steps button { border: 0; cursor: pointer; color: inherit; }

@media (min-width: 720px) {
  .deal { grid-template-columns: minmax(0, 1fr) 130px 120px 92px; align-items: center; }
  .deal-main { grid-row: auto; }
  .deal-sector { display: block; font-size: 13.5px; color: var(--text-2); }
  .deals-cap { display: grid; grid-template-columns: minmax(0, 1fr) 130px 120px 92px; gap: 12px; padding: 6px 0; font-size: 12.5px; color: var(--text-3); }
  .deals-cap span:nth-child(n+3) { text-align: right; }
}
@media (max-width: 720px) {
  .fresh { display: none; }
  .grid--kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ukeys { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: 118px 1fr 90px; gap: 8px; }
  .start-figs b { font-size: 16px; }
  .top__row { flex-wrap: nowrap; justify-content: space-between; }
  .top .seg button { padding: 8px; }
  .page { padding: 0 12px 20px; }
}
@media (min-width: 1000px) {
  .catalog { grid-template-columns: 320px minmax(0, 1fr); align-items: start; }
  .pickers { position: sticky; top: 64px; }
  .results { padding: 18px 20px; }
  .block, .section { margin: 8px 0 0; }
}
