106 lines
7.6 KiB
HTML
106 lines
7.6 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Подбор норм — Инфосмета</title>
|
|
<style>
|
|
:root { color-scheme: light; --bg:#f4f2ee; --card:#fff; --text:#272824; --muted:#626760;
|
|
--line:#d8d9d2; --accent:#176c63; --bad:#a83c31; --warn:#fff5da; }
|
|
* { box-sizing:border-box; }
|
|
body { margin:0; background:var(--bg); color:var(--text); font:16px/1.48 system-ui,-apple-system,Arial,sans-serif; }
|
|
button,input,select { font:inherit; }
|
|
button { cursor:pointer; }
|
|
:focus-visible { outline:3px solid #65aba4; outline-offset:2px; }
|
|
a { color:var(--accent); }
|
|
.wrap { max-width:1240px; margin:auto; padding:24px clamp(16px,3vw,40px) 64px; }
|
|
header { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:32px; }
|
|
.brand { font-weight:750; font-size:1.15rem; text-decoration:none; color:var(--text); }
|
|
h1 { font-size:clamp(2rem,4vw,3rem); line-height:1.1; margin:0 0 12px; }
|
|
h2 { font-size:1.35rem; margin:0 0 12px; }
|
|
h3 { font-size:1.05rem; margin:0 0 8px; }
|
|
p { margin:0 0 12px; }
|
|
.intro { max-width:760px; color:var(--muted); margin-bottom:22px; }
|
|
.panel,.card { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:20px; }
|
|
.search-row,.controls,.actions { display:flex; gap:10px; align-items:end; flex-wrap:wrap; }
|
|
label { display:grid; gap:5px; font-size:.84rem; color:var(--muted); font-weight:600; }
|
|
input,select { min-height:42px; padding:8px 11px; color:var(--text); background:var(--card);
|
|
border:1px solid var(--line); border-radius:8px; max-width:100%; }
|
|
#query { flex:1 1 330px; }
|
|
.search-row label:has(#query) { flex:1 1 330px; }
|
|
.primary,.secondary { min-height:42px; padding:8px 16px; border-radius:8px; font-weight:650; }
|
|
.primary { background:var(--accent); border:1px solid var(--accent); color:#fff; }
|
|
.secondary { background:var(--card); border:1px solid var(--line); color:var(--text); }
|
|
.small { min-height:34px; padding:5px 10px; font-size:.84rem; }
|
|
.examples { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-top:14px; color:var(--muted); font-size:.85rem; }
|
|
.examples button { border:0; border-bottom:1px dotted var(--accent); background:transparent; color:var(--accent); padding:0; }
|
|
.status { min-height:24px; margin:14px 0; color:var(--muted); }
|
|
.status.error { color:var(--bad); }
|
|
.results { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr)); gap:14px; }
|
|
.card { display:flex; flex-direction:column; gap:7px; }
|
|
.card-head { display:flex; align-items:start; justify-content:space-between; gap:12px; }
|
|
.code { color:var(--accent); font-weight:750; font-variant-numeric:tabular-nums; }
|
|
.badge { background:#e9f4f1; color:#155f56; padding:3px 8px; border-radius:999px; font-size:.72rem; white-space:nowrap; }
|
|
.meta,.hint { font-size:.82rem; color:var(--muted); }
|
|
.card .actions { margin-top:auto; padding-top:7px; }
|
|
.section { margin-top:28px; }
|
|
.detail-grid { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(270px,.8fr); gap:18px; }
|
|
.list { margin:0; padding-left:20px; }
|
|
.scroll { max-width:100%; overflow:auto; }
|
|
table { border-collapse:collapse; width:100%; font-size:.86rem; }
|
|
th,td { border-bottom:1px solid var(--line); text-align:left; padding:8px; vertical-align:top; }
|
|
th { color:var(--muted); font-weight:650; }
|
|
.num { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
|
|
.comparison { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
|
|
.comparison .card { overflow-wrap:anywhere; }
|
|
.notice { background:var(--warn); border-radius:9px; padding:10px 12px; font-size:.86rem; }
|
|
.result-amount { font-size:1.5rem; font-weight:750; font-variant-numeric:tabular-nums; }
|
|
.quote-controls label { min-width:140px; }
|
|
.quote-controls #qty { width:125px; }
|
|
[hidden] { display:none !important; }
|
|
@media (max-width:760px) { .wrap { padding:18px 14px 40px; } header { margin-bottom:24px; }
|
|
.detail-grid,.comparison { grid-template-columns:1fr; } .panel,.card { padding:15px; }
|
|
.search-row > *, .controls > label { flex:1 1 100%; } .search-row button { width:100%; }
|
|
.quote-controls label { min-width:0; } }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<main class="wrap">
|
|
<header><a class="brand" href="/">ИНФОСМЕТА</a><a href="/">Вернуться в чат</a></header>
|
|
<h1>Подбор норм</h1>
|
|
<p class="intro">Найдите работу по названию или шифру, проверьте состав и измеритель, сравните варианты. Цены считаются только по доступной форме выбранной зоны и квартала.</p>
|
|
<div id="auth-notice" class="notice" hidden>Чтобы искать нормы, <a href="/">войдите в Инфосмету</a>.</div>
|
|
<form id="search-form" class="panel">
|
|
<div class="search-row">
|
|
<label for="query">Работа или шифр<input id="query" type="search" maxlength="160" placeholder="Например, монтаж пожарного извещателя" required></label>
|
|
<label for="base">Нормативная база<select id="base" aria-label="Нормативная база"></select></label>
|
|
<button class="primary" type="submit">Найти нормы</button>
|
|
</div>
|
|
<div class="examples">Примеры: <button type="button" data-query="монтаж извещателя">монтаж извещателя</button>
|
|
<button type="button" data-query="устройство стяжки пола">устройство стяжки пола</button>
|
|
<button type="button" data-query="10-08-002-02">10-08-002-02</button></div>
|
|
</form>
|
|
<div id="status" class="status" role="status" aria-live="polite"></div>
|
|
<section id="results-section" class="section" hidden><h2>Подходящие нормы</h2><div id="results" class="results"></div></section>
|
|
<section id="detail-section" class="section" hidden><div class="detail-grid">
|
|
<div class="panel"><h2 id="detail-title">Состав нормы</h2><div id="detail"></div></div>
|
|
<div class="panel"><h2>Предварительный расчёт</h2><p class="hint">Объём вводится в выбранной единице. Недостающие цены и затраты будут отмечены.</p>
|
|
<div class="controls quote-controls">
|
|
<label for="subject">Регион<select id="subject"></select></label>
|
|
<label for="zone">Ценовая зона<select id="zone"></select></label>
|
|
<label for="period">Квартал<select id="period"></select></label>
|
|
<label for="qty">Объём<input id="qty" type="number" min="0.000001" max="1000000" step="any" value="1"></label>
|
|
<label for="unit">Единица<select id="unit"></select></label>
|
|
</div>
|
|
<div class="actions" style="margin-top:16px"><button id="calc" type="button" class="primary">Рассчитать</button>
|
|
<button id="to-chat" type="button" class="secondary">Перенести в чат</button></div>
|
|
<div id="quote" style="margin-top:16px" aria-live="polite"></div>
|
|
</div>
|
|
</div></section>
|
|
<section id="compare-section" class="section" hidden><h2>Сравнение норм</h2><p id="compare-warning" class="notice" hidden></p>
|
|
<div id="comparison" class="comparison"></div></section>
|
|
</main>
|
|
<script src="/static/norm-finder.js" defer></script>
|
|
</body>
|
|
</html>
|