/* ================= Конфигуратор, документы, нормативы, новости ================= */

.version-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.version-chips span { padding: 4px 12px; border-radius: 999px; background: var(--bg-tint); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.section-more { margin-top: 28px; }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; max-width: none; flex-wrap: wrap; }
.media-sampler { background: linear-gradient(160deg, #eaf5fb, #d3e6f0); }

/* ---------- конфигуратор ---------- */
.config-head { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
.config-illus { border-radius: 24px; padding: 24px; display: grid; place-items: center; }
.config-illus .illus { max-height: 220px; }
.config-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.config-step { margin-bottom: 40px; }
.config-step h2 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; flex-wrap: wrap; }
.config-step h2 small { font-size: .9rem; font-weight: 600; }
.config-step h2 small.error { color: var(--danger); }
.step-badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; font-size: 1rem; }
.versions { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.version-card { position: relative; display: block; padding: 18px 18px 14px; cursor: pointer; border: 2px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.version-card:hover { transform: translateY(-2px); }
.version-card.active { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(27, 179, 154, .12), var(--shadow); }
.version-card input { position: absolute; opacity: 0; pointer-events: none; }
.version-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.version-top b { font-size: 1.25rem; }
.version-price { font-weight: 800; color: var(--brand); font-size: .95rem; white-space: nowrap; }
.version-card p { font-size: .88rem; color: var(--ink-2); margin-bottom: 10px; }
.version-specs { list-style: none; padding: 10px 0 0; margin: 0; border-top: 1px solid var(--line); font-size: .8rem; }
.version-specs li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.version-specs span { color: var(--muted); }
.version-specs b { text-align: right; font-weight: 600; }
.compare { margin-top: 16px; }
.compare summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.compare-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .88rem; background: #fff; }
.compare-table th, .compare-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--bg-tint); }
.compare-table tbody th { color: var(--muted); font-weight: 500; min-width: 160px; }
.gpio-card { margin-top: 20px; padding: 22px; background: linear-gradient(160deg, #fff, #f0faf8); }
.gpio-card h3 { font-size: 1.1rem; }
.kit-rules { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.kit-rules span { padding: 6px 12px; border-radius: 10px; background: rgba(27, 179, 154, .1); font-size: .85rem; }
.kit-rules b { color: var(--accent); }
.sensor-list { display: grid; gap: 8px; }
.sensor-row { display: grid; grid-template-columns: 48px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .2s, background .2s; }
.sensor-row.picked { border-color: var(--accent); background: #f3fbf9; }
.sensor-thumb { width: 48px; height: 48px; border-radius: 10px; padding: 4px; display: grid; place-items: center; background: linear-gradient(160deg, #eaf3f8, #d9e9f1); }
.sensor-info a { display: block; font-weight: 700; color: var(--ink); }
.sensor-info small { font-size: .8rem; }
.sensor-price { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.config-summary { position: sticky; top: 96px; padding: 22px; }
.config-summary h3 { margin-bottom: 14px; }
.summary-lines > div, .summary-discounts .disc { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: .9rem; border-bottom: 1px dashed var(--line); }
.summary-lines span { color: var(--ink-2); }
.summary-discounts .disc b { color: var(--accent); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 12px; font-size: 1.1rem; }
.summary-total b { font-size: 1.5rem; }
.kit-hint { padding: 12px 14px; border-radius: 12px; background: #fff8ec; border: 1px solid #f2dfbd; font-size: .9rem; margin: 12px 0; }
.kit-hint b { color: #b3700e; }
.config-summary .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- корзина ---------- */
.disc-pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: rgba(27, 179, 154, .14); color: #13806d; font-weight: 700; font-size: .75rem; }
.disc-pill-soft { background: var(--bg-tint); color: var(--muted); }
.cart-breakdown { padding: 12px 0 0; }
.cart-breakdown > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: .92rem; color: var(--ink-2); }
.cart-breakdown b { color: var(--accent); white-space: nowrap; }
.cart-breakdown .saving b { color: var(--ink); }
.promo-form { display: flex; gap: 8px; margin-top: 14px; max-width: 360px; }
.promo-form input { flex: 1; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }

/* ---------- о нас: документы ---------- */
.founder-facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.founder-facts li { padding: 14px 16px; border-radius: 14px; background: var(--bg-tint); }
.founder-facts b { display: block; font-size: 1.5rem; color: var(--brand); }
.founder-facts span { font-size: .82rem; color: var(--ink-2); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.doc-card { display: flex; gap: 16px; padding: 20px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
a.doc-card[href]:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.doc-seal { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #fff5e0, #fde6b8); color: #b3700e; }
.doc-seal svg { width: 34px; height: 34px; }
.doc-body h3 { font-size: .98rem; line-height: 1.35; margin: 4px 0 8px; }
.doc-link { font-size: .85rem; font-weight: 700; color: var(--brand); }

/* ---------- нормативы ---------- */
.norm-group { margin-bottom: 40px; scroll-margin-top: 90px; }
.norm-group h2 { font-size: 1.4rem; }
.norm-list { display: grid; gap: 10px; }
.norm-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; }
.norm-icon { flex: none; width: 44px; height: 52px; border-radius: 6px 14px 6px 6px; display: grid; place-items: center; background: var(--bg-tint); color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.norm-icon.has-file { background: #fdecec; color: var(--danger); }
.norm-text { flex: 1; display: flex; flex-direction: column; }
.norm-text span { color: var(--ink-2); font-size: .93rem; }
.norm-soon { font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* ---------- новости ---------- */
.news-card { display: flex; flex-direction: column; overflow: hidden; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card-body { padding: 18px 20px 20px; }
.news-card h3 { font-size: 1.02rem; line-height: 1.4; margin-top: 6px; }
.news-list { display: grid; gap: 14px; max-width: 920px; }
.news-row { display: flex; gap: 20px; padding: 20px 22px; color: var(--ink); transition: box-shadow .2s; }
.news-row:hover { box-shadow: var(--shadow-lg); color: var(--ink); }
.news-row img { width: 180px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; flex: none; }
.news-row h2 { font-size: 1.15rem; line-height: 1.4; margin: 6px 0; }
.news-row p { margin: 0; font-size: .92rem; }
.news-own { border-left: 4px solid var(--accent); }
.own-badge { color: var(--accent); }
.pager { display: flex; gap: 10px; }
.narrow-wide { max-width: 820px; }
.article p { font-size: 1.08rem; color: var(--ink-2); }
.article-cover { width: 100%; border-radius: 18px; margin-bottom: 24px; }
.more-news { padding-left: 18px; }
.more-news li { margin-bottom: 8px; }

/* ---------- карта: показания во всплывающем окне ---------- */
.map-values { margin: 8px 0 6px; border-collapse: collapse; font-size: .82rem; min-width: 190px; }
.map-values td { padding: 3px 6px 3px 0; border-bottom: 1px solid #eef3f6; }
.map-values td:last-child { text-align: right; white-space: nowrap; }
.map-values tr.state-alarm td { color: var(--danger); }
.map-values tr.state-warn td { color: #b3700e; }

/* ---------- админка ---------- */
.paid-input { width: 130px; }
.price-input { width: 130px; }
.sticky-save { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; margin-top: 12px; }
.order header form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
details.form-card summary { cursor: pointer; }
details.form-card[open] summary { margin-bottom: 14px; }

@media (max-width: 1024px) {
  .config-grid, .config-head { grid-template-columns: 1fr; }
  .config-illus { display: none; }
  .config-summary { position: static; }
}
@media (max-width: 600px) {
  .sensor-row { grid-template-columns: 40px 1fr; }
  .sensor-thumb { width: 40px; height: 40px; }
  .sensor-price { grid-column: 2; }
  .sensor-row .qty { grid-column: 2; justify-self: start; }
  .founder-facts { grid-template-columns: 1fr; }
  .news-row { flex-direction: column; }
  .news-row img { width: 100%; }
  .norm-item { flex-wrap: wrap; }
}

.config-head h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.config-head .lead { font-size: 1.02rem; }

/* ================= Цифровой двойник ================= */
/* размеры окна двойника: ширина панели и высота полосы контактов меняются здесь */
.twin-app { --hdr: 73px; --bar: 40px; --panel-w: clamp(480px, 34vw, 640px);
  display: grid; grid-template-columns: 1fr var(--panel-w); height: calc(100vh - var(--hdr) - var(--bar)); min-height: 600px; }
.twin-map-wrap { position: relative; }
.twin-map { position: absolute; inset: 0; z-index: 0; }
.twin-panel { overflow-y: auto; padding: 20px 26px 28px; border-left: 1px solid var(--line); background: #fff; }
.twin-head h1 { font-size: 1.5rem; margin: 0 0 6px; }
.twin-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 16px 0; padding: 4px; border-radius: 14px; background: var(--bg-tint); }
.twin-steps button { border: 0; background: none; border-radius: 10px; padding: 8px 2px; font: 600 .82rem var(--font); color: var(--ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.twin-steps button b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; font-size: .75rem; }
.twin-steps button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.twin-steps button.active b { background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; }
.twin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.twin-actions .btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.twin-search { display: flex; gap: 8px; }
.twin-search input { flex: 1; padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
.geo-results { display: grid; gap: 4px; margin-top: 8px; }
.geo-results button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; font: .85rem var(--font); cursor: pointer; }
.geo-results button:hover { border-color: var(--brand); }
.field-inline { display: flex; align-items: center; gap: 10px; }
.field-inline span { margin: 0 !important; white-space: nowrap; }
.field-inline input { max-width: 110px; }
.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
.twin-table table { width: 100%; border-collapse: collapse; font-size: .86rem; margin-top: 8px; }
.twin-table th, .twin-table td { padding: 6px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.twin-table th { color: var(--muted); font-weight: 500; padding-right: 10px; }
.twin-table td { font-weight: 600; text-align: right; }
.twin-table input { width: 110px; text-align: right; }
.twin-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; padding: 8px 10px; background: var(--bg-tint); border-radius: 8px; }
.twin-note.error { color: var(--danger); background: #fdecec; }
.twin-chart { margin-top: 12px; }
.twin-save { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.twin-save input { flex: 1; min-width: 160px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; }
#save-result { flex-basis: 100%; }
.twin-qr { display: flex; gap: 14px; align-items: center; margin-top: 8px; font-size: .85rem; word-break: break-all; }
.twin-qr img { width: 110px; height: 110px; flex: none; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: #fff; }
.twin-hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 500; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .88rem; box-shadow: var(--shadow-lg); max-width: 90%; text-align: center; }
.twin-legend { position: absolute; left: 14px; bottom: 24px; z-index: 500; padding: 10px 14px; min-width: 220px; font-size: .8rem; }
.lg-bar { height: 10px; border-radius: 5px; margin: 6px 0 4px; }
.lg-labels { display: flex; justify-content: space-between; color: var(--muted); }
.twin-busy { position: absolute; right: 14px; bottom: 24px; z-index: 600; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .88rem; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.twin-post { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); font-weight: 800; font-size: .8rem; color: var(--ink); box-shadow: 0 2px 8px rgba(7,26,40,.35); }
.twin-post.has-value { background: var(--brand); color: #fff; }
.twin-source { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 1.1rem; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(217,83,79,.3); }
.twin-source.found { background: #7b2cbf; box-shadow: 0 0 0 6px rgba(123,44,191,.25); font-weight: 800; }
.twin-flow { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: rgba(255,255,255,.85); border: 2px solid var(--brand); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.twin-flow-label { display: block; text-align: center; font-size: .65rem; font-weight: 700; color: var(--ink); text-shadow: 0 0 3px #fff; white-space: nowrap; }
.twin-page .site-footer { display: none; }

/* панель администратора в шапке (видна только в режиме администратора) */
.admin-menu { position: relative; }
.admin-menu > summary { list-style: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .9rem; }
.admin-menu > summary::-webkit-details-marker { display: none; }
.admin-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 70; display: grid; gap: 10px; width: 340px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); }
.admin-pop p { margin: 0; }
.admin-pop a, .admin-pop a:hover { padding: 0; background: none; border-radius: 0; color: var(--brand); font-size: .88rem; }
.switch-row { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.switch-row input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.adm-tag { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: #fdecec; color: var(--danger); font-size: .68rem; font-weight: 700; }
@media (max-width: 1024px) { .admin-pop { position: static; width: auto; margin-top: 8px; } }

/* полоса с контактами под окном двойника */
.twin-contacts { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 22px; min-height: 40px; padding: 6px 16px; background: var(--ink); color: #b9cbd6; font-size: .88rem; }
.twin-contacts a { color: #fff; font-weight: 600; }
.twin-contacts a:hover { color: var(--accent-2); }

/* действующие посты (данные с брокера) */
.live-box { margin: 0 0 16px; padding: 10px 14px 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); }
.live-box > summary { cursor: pointer; font-weight: 700; }
.live-count { font-weight: 500; font-size: .8rem; color: var(--muted); margin-left: 6px; }
.live-list { display: grid; gap: 4px; margin: 8px 0; max-height: 220px; overflow-y: auto; }
.live-row { display: grid; grid-template-columns: 14px 1fr auto auto; align-items: center; gap: 8px; padding: 6px 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .86rem; cursor: pointer; }
.live-row:hover { border-color: var(--brand); }
.live-name small { display: block; color: var(--muted); font-size: .74rem; }
.live-tools { display: flex; gap: 4px; }
.live-tools button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 7px; font: .74rem var(--font); cursor: pointer; }
.live-tools button:hover { border-color: var(--danger); color: var(--danger); }
.live-admin { margin: 6px 0 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.live-admin h4 { margin: 0 0 6px; font-size: .95rem; }
.twin-live { display: block; width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #2e9d57, 0 2px 8px rgba(7,26,40,.35); background: #2e9d57; }
.twin-live.off { background: #9aa8b2; box-shadow: 0 0 0 2px #9aa8b2, 0 2px 8px rgba(7,26,40,.3); }
.twin-live.sm { width: 10px; height: 10px; border-width: 0; box-shadow: none; }
.live-pop { border-collapse: collapse; margin-top: 6px; font-size: .82rem; }
.live-pop th { font-weight: 500; color: var(--muted); text-align: left; padding: 2px 12px 2px 0; }
.live-pop td { font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 1024px) {
  .twin-app { grid-template-columns: 1fr; height: auto; }
  .twin-map-wrap { height: 60vh; }
  .twin-panel { border-left: 0; }
}

/* ================= Калькулятор, методология, образование ================= */
.calc { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.calc-controls { padding: 20px; position: sticky; top: 96px; }
.calc-table-card { padding: 6px 18px; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.calc-table th, .calc-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.calc-table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.calc-table tbody th { font-weight: 600; }
.calc-table tbody th small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.calc-table input { width: 100px; }
.calc-row.state-alarm { background: #fdf0ef; }
.calc-row.state-warn { background: #fff8ec; }
.calc-q { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #f0a830; color: #fff; font-size: .7rem; font-weight: 800; cursor: help; }
.frac { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.frac-bar { position: relative; flex: 1; height: 8px; border-radius: 4px; background: var(--bg-tint); overflow: visible; }
.frac-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--accent); }
.state-warn .frac-bar i { background: #f0a830; } .state-alarm .frac-bar i { background: var(--danger); }
.frac-bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); }
.frac span { font-weight: 700; font-size: .85rem; min-width: 48px; text-align: right; }
.status-pill-calc { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg-tint); white-space: nowrap; }
.status-pill-calc.ok { background: #e3f6f2; color: #13806d; } .status-pill-calc.warn { background: #fff3dc; color: #99650f; }
.status-pill-calc.alarm { background: #fdecec; color: var(--danger); } .status-pill-calc.none { color: var(--muted); }
.calc-indices { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-index { padding: 20px; }
.calc-index-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.calc-index-head small { display: block; color: var(--muted); font-weight: 600; }
.calc-index-head b { font-size: 2.2rem; font-weight: 800; }
.izv-badge { padding: 5px 12px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .82rem; background: var(--muted); }
.calc-chart { position: relative; height: 220px; margin: 10px 0; }
.calc > p { grid-column: 2; }
.method-grid, .learn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.method-card, .learn-card { display: flex; flex-direction: column; padding: 22px; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.method-card:hover, .learn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.method-card h3, .learn-card h3 { font-size: 1.08rem; }
.method-card dl { margin: 0 0 12px; font-size: .84rem; flex: 1; }
.method-card dt { color: var(--muted); font-size: .75rem; margin-top: 6px; }
.method-card dd { margin: 0; font-weight: 600; }
.learn-card p { flex: 1; }
.learn-num { font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.learn-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.learn-more .card { padding: 22px; }
.article-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 18px 0 0; }
.article-meta div { padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.article-meta dt { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.article-meta dd { margin: 2px 0 0; font-weight: 600; font-size: .9rem; }
.article h2 { font-size: 1.35rem; margin-top: 28px; }
.article ul { padding-left: 20px; color: var(--ink-2); }
.article li { margin-bottom: 6px; }
@media (max-width: 1024px) {
  .calc { grid-template-columns: 1fr; }
  .calc-controls { position: static; }
  .calc-indices, .calc > p { grid-column: 1; }
}
@media (max-width: 700px) {
  .calc-indices, .learn-more { grid-template-columns: 1fr; }
}

/* ---------- выпадающие группы меню ---------- */
.nav-group { position: relative; }
.nav-group-btn { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font: 600 .95rem var(--font); color: var(--ink-2); cursor: pointer; }
.nav-group-btn::after { content: "▾"; margin-left: 6px; font-size: .7rem; opacity: .6; }
.nav-group:hover .nav-group-btn, .nav-group:focus-within .nav-group-btn, .nav-group.active .nav-group-btn { background: var(--bg-tint); color: var(--ink); }
.nav-drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); display: none; z-index: 60; }
.nav-drop::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { display: grid; }
.nav .nav-drop a { display: block; padding: 10px 12px; border-radius: 10px; }
.nav-drop a b { display: block; color: var(--ink); font-size: .92rem; }
.nav-drop a small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; font-size: .8rem; line-height: 1.35; }
@media (max-width: 1180px) {
  .nav-group-btn { width: 100%; text-align: left; padding: 12px 16px; }
  .nav-drop { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav-drop a small { display: none; }
}
.case-badge { color: #fff; background: #7b2cbf; padding: 1px 8px; border-radius: 999px; font-size: .75rem; }

/* ---------- корзина: монтаж и КП ---------- */
.cart-extra { padding: 20px 22px; margin-top: 16px; }
.cart-extra h3 { margin-bottom: 6px; }
.cart-extra summary { cursor: pointer; }
.install-map { height: 260px; border-radius: 14px; margin: 10px 0; z-index: 0; }
.install-quote { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-tint); }
.install-quote > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .9rem; }
.install-quote span { color: var(--ink-2); }
.install-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px !important; }
.kp-form { margin-top: 14px; }
.media-service { background: linear-gradient(160deg, #eef6f3, #dcefe9); }

/* ---------- админка: себестоимость, нормативы ---------- */
.costing { display: grid; grid-template-columns: 1fr 340px; gap: 20px; align-items: start; }
.costing-bom { padding: 18px; }
.bom-table input { width: 100%; min-width: 70px; }
.bom-table .input-wide { min-width: 200px; }
.bom-link { display: flex; gap: 6px; align-items: center; }
.bom-link a { font-weight: 800; }
.bom-sum { white-space: nowrap; font-weight: 700; }
.costing-side { display: grid; gap: 16px; position: sticky; top: 96px; }
.costing-result { padding: 18px 20px; }
.costing-result > div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .92rem; }
.costing-result span { color: var(--ink-2); }
.costing-price { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 10px !important; }
.costing-price b { font-size: 1.5rem; color: var(--brand); }
.norms-admin input.input-sm { width: 84px; }
.row-warn td { background: #fff8ec; }
@media (max-width: 1024px) { .costing { grid-template-columns: 1fr; } .costing-side { position: static; } }

/* ---------- проигрывание событий ---------- */
.player-card { padding: 20px 22px; margin-bottom: 20px; }
.player-card .live-cards { margin-top: 14px; }
.tl { position: relative; display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding-bottom: 10px; }
.tl-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; font-size: .95rem; cursor: pointer; }
.tl-range { width: 100%; accent-color: var(--brand); }
.tl-speed { padding: 4px 6px; border: 1.5px solid var(--line); border-radius: 8px; font: inherit; font-size: .85rem; }
.tl-time { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 120px; text-align: right; font-size: .9rem; }
.tl-marks { position: absolute; left: 52px; right: 200px; bottom: 0; height: 6px; }
.tl-marks i { position: absolute; width: 3px; height: 6px; border-radius: 2px; background: var(--danger); opacity: .7; }
.geo-player { margin-top: 16px; }
.dc-player { padding: 10px 12px 4px; }
.dc-map-card { display: flex; flex-direction: column; }
.dc-map-card .map-dc { flex: 1; }
.share-card { padding: 22px; margin-top: 20px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.kiosk-form { margin-top: 10px; }
@media (max-width: 700px) { .share-grid { grid-template-columns: 1fr; } .tl { grid-template-columns: auto 1fr; } .tl-speed, .tl-time { grid-column: span 1; } .tl-marks { right: 0; } }

/* ---------- уведомления ---------- */
.alert-section { padding: 22px; margin-bottom: 20px; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.channel { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg-tint); }
.channel small { color: var(--muted); font-size: .8rem; }
.channel form { margin: 0; }
.ch-ok { color: #13806d; font-weight: 700; font-size: .82rem; }
.ch-warn { color: #99650f; font-weight: 700; font-size: .82rem; }
.channel-form { align-items: end; }
.test-form { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.rule-form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.feed { display: grid; gap: 8px; }
.feed-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; background: var(--bg-tint); border-left: 4px solid var(--brand); }
.feed-item.unread { background: #fff; box-shadow: var(--shadow); }
.feed-item.ev-offline { border-left-color: #9aa9b3; } .feed-item.ev-exceed { border-left-color: var(--danger); }
.feed-item.ev-anomaly { border-left-color: #7b2cbf; } .feed-item.ev-change { border-left-color: #f0a830; }
.feed-item p { margin: 2px 0 0; font-size: .9rem; color: var(--ink-2); }
.feed-item small { text-align: right; white-space: nowrap; }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 800; display: inline-grid; place-items: center; }

/* ---------- документация изделий ---------- */
.doc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-top: 10px; }
.doc-links a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 46px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b8fb3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z'/%3E%3Cpath d='M14 3v6h6M8 13h8M8 17h5'/%3E%3C/svg%3E") no-repeat 14px 14px / 22px; color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.doc-links a:hover { border-color: var(--brand); transform: translateY(-2px); }
.doc-links small { color: var(--muted); font-size: .78rem; }
.form-grid .field-wide { grid-column: 1 / -1; }

/* ---------- двойник: научный слой ---------- */
.twin-hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0 12px; }
.twin-cand { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #6a3fa0; color: #fff; font-weight: 800; font-size: .8rem; box-shadow: 0 2px 8px rgba(0,0,0,.35); border: 2px solid #fff; }
.susp-list { display: grid; gap: 10px; margin: 10px 0; }
.susp-item { padding: 10px 12px; border-radius: 12px; background: var(--bg-tint); border-left: 3px solid var(--line); }
.susp-item.top { background: #fff; border-left-color: var(--brand); box-shadow: var(--shadow); }
.susp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: .92rem; }
.susp-head span { font-weight: 800; color: var(--brand); }
.susp-bar { height: 7px; border-radius: 99px; background: #e5edf2; overflow: hidden; margin: 5px 0 6px; }
.susp-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--brand)); }
.susp-item small { color: var(--muted); font-size: .78rem; line-height: 1.45; display: block; }
.twin-table-inner { width: 100%; border-collapse: collapse; font-size: .82rem; margin: 6px 0; }
.twin-table-inner th { text-align: left; font-weight: 600; color: var(--ink-2); padding: 4px 8px 4px 0; vertical-align: top; }
.twin-table-inner td { padding: 4px 0; text-align: right; }
.twin-table-inner td.bad { color: var(--danger); font-weight: 700; }
.twin-table-inner td.ok { color: #13806d; }
.twin-table-inner small { display: block; color: var(--muted); font-weight: 400; }
.or-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 12px; }
.or-grid .field span { font-size: .72rem; }
.or-why { margin: 6px 0 0; padding-left: 18px; font-size: .78rem; color: var(--ink-2); }
.or-why li::marker { color: var(--accent); }
.or-why.against li::marker { color: #d07c2a; }
.or-why.against { color: var(--muted); }
.or-h { margin: 14px 0 6px; font-size: .9rem; }
.twin-note.ok { color: #13806d; }
.twin-note.warn { color: #99650f; }

/* ---------- методика двойника ---------- */
.mth-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.mth-toc a { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 600; text-decoration: none; }
.mth-toc a:hover { border-color: var(--brand); color: var(--brand); }
.mth { margin-bottom: 34px; scroll-margin-top: 90px; }
.mth h2 { font-size: 1.25rem; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.mth p { color: var(--ink-2); }
.formula { margin: 14px 0; padding: 14px 18px; border-radius: 14px; background: var(--bg-tint); border-left: 3px solid var(--accent); font-family: "Cambria", "Georgia", serif; font-size: 1.05rem; color: var(--ink); overflow-x: auto; }
.formula b { font-weight: 700; }
.mth-note { padding: 12px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f0d78a; color: #6b4d0a; font-size: .9rem; }
.container.narrow { max-width: 860px; }

.twin-h3 { margin: 4px 0 6px; font-size: .95rem; }

/* ---------- классификация событий в кабинете ---------- */
.ev-card { padding: 22px; margin-bottom: 20px; }
.ev-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ev-head h2 { margin: 2px 0 0; }
.ev-conf { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem; background: #e6f6f1; color: #13806d; }
.ev-conf.warn { background: #fff3d6; color: #99650f; }
.ev-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 12px; }
.ev-grid h3 { font-size: .9rem; margin: 0 0 8px; }
@media (max-width: 720px) { .ev-grid { grid-template-columns: 1fr; } }

/* ---------- двойник: тип постов, отбор проб, EMMA ---------- */
.placement { display: grid; gap: 6px; margin: 4px 0 12px; }
.placement .pick span small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
.twin-sample { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f0a830; color: #111; font-weight: 800; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.emma-table { border-collapse: collapse; font-size: .78rem; margin: 4px 0 8px; }
.emma-table th, .emma-table td { padding: 3px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.emma-table th { text-align: left; font-weight: 600; }
.emma-table input { width: 64px; padding: 4px 6px; }
.emma-table th input { width: 110px; }
.emma-table.result td { min-width: 70px; }

/* ---------- двойник: демо-объекты ---------- */
.demo-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin: 10px 0; }
.demo-card { text-align: left; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s, transform .2s; }
.demo-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.demo-card b { display: block; font-size: .9rem; }
.demo-card small { display: block; color: var(--muted); font-size: .74rem; margin: 1px 0 4px; }
.demo-card span { display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.35; }
.demo-story { padding: 12px 14px; border-radius: 12px; background: #eef8f6; border-left: 3px solid var(--accent); margin: 6px 0 10px; }
.demo-steps { margin: 6px 0; padding-left: 20px; font-size: .82rem; }
.demo-admin { margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }
.demo-admin summary { cursor: pointer; font-weight: 700; font-size: .85rem; }

.map-twin-link { display: inline-block; margin-top: 6px; font-weight: 700; }

.flow-arrow { display: grid; place-items: center; width: 18px; height: 18px; color: #0b5f8a; font-weight: 900; font-size: 15px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.flow-mode small { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }

.dir-input { display: flex; gap: .4rem; align-items: center; }
.dir-input input { flex: 1; min-width: 0; }
.dir-src { display: block; color: var(--muted); font-size: .76rem; margin-top: .2rem; min-height: 1em; }

.water-note { margin: .4rem 0; } .water-note p { margin: .3rem 0; }

.rs-scenes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.rs-scene { border: 1px solid var(--line, #dde3ea); background: #fff; border-radius: 10px; padding: 6px 10px; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; font: 600 .8rem var(--font); color: var(--ink); }
.rs-scene small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.rs-scene.active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(11, 143, 179, .25); }
.rs-table table { width: 100%; border-collapse: collapse; font-size: .82rem; margin: 8px 0; }
.rs-table th, .rs-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--line, #e6ebf0); vertical-align: top; }
.rs-table th small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.rs-table td { white-space: nowrap; }
.rs-findings { margin: 8px 0; padding-left: 18px; font-size: .84rem; }
.rs-findings li { margin: 4px 0; }
.rs-h { margin: 14px 0 4px; font-size: .95rem; }

.reg-box { margin: 8px 0; font-size: .86rem; } .reg-box summary { cursor: pointer; font-weight: 600; }
.reg-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #6a1b9a; color: #fff; font: 700 .72rem var(--font); box-shadow: 0 0 0 2px #fff; }
.reg-obj { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.rs-table td small { display: block; color: var(--muted); font-size: .72rem; white-space: normal; }
.reg-ok { color: #2e7d32; font-weight: 600; font-size: .76rem; } .reg-no { color: #c62828; font-weight: 600; font-size: .76rem; }

.sp-player { display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 8px 10px; border-radius: 12px; background: var(--bg-tint); }
.sp-player input[type=range] { flex: 1; accent-color: var(--brand); }
.sp-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), var(--brand)); color: #fff; font-size: 14px; cursor: pointer; flex: none; }
.sp-time { font: 600 .82rem var(--font); min-width: 78px; text-align: right; }
.sp-player select { border-radius: 8px; border: 1px solid var(--line, #dde3ea); padding: 3px 4px; font-size: .8rem; }
.sp-clock { white-space: nowrap; background: rgba(10, 30, 45, .78); color: #fff; padding: 6px 10px; border-radius: 10px; font: 600 .95rem var(--font); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.sp-clock small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; }
.sp-frame { image-rendering: auto; filter: saturate(1.15); }
.sp-particles { position: absolute; pointer-events: none; z-index: 450; transition: opacity .15s; }
