/* Итог и маржа — рядом с расходами; тарифы доступны по запросу. */
.dp{margin:20px 0;padding:24px;font-size:14px}
.dp-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.dp h2{margin:0;font-size:22px;line-height:1.3;letter-spacing:-.02em}
.dp-scenarios{display:flex;gap:4px;flex-wrap:wrap}
.dp-quantity-controls{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}
.dp-quantity{display:grid;gap:6px;font-size:12px;color:var(--text-muted)}
.dp-quantity input{width:88px;min-height:44px;padding:8px 10px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);font:14px var(--font-body);font-variant-numeric:tabular-nums}
.dp-quantity input[aria-invalid=true]{border-color:var(--text-muted)}
.dp-scenarios button{min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text-muted);font:500 14px var(--font-body);cursor:pointer}
.dp-scenarios button[aria-pressed=true]{color:var(--text);border-color:var(--teal);background:color-mix(in srgb,var(--teal) 8%,var(--surface))}
.dp-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(280px,1fr);gap:32px}
.dp-facts{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:10px;font-size:12px;color:var(--text-muted)}
.dp-lines,.dp-result-lines{margin:0}.dp-lines>div,.dp-result-lines>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--border)}
.dp [hidden]{display:none}.dp dt{min-width:0;line-height:1.5}.dp dd{margin:0;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:500}
.dp-cost-total{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-top:14px;font-weight:500}.dp-cost-total b{font-size:18px;white-space:nowrap}
.dp-result{padding:20px;background:var(--surface-2);border-radius:10px;align-self:start}
.dp-batch{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:-6px 0 18px;font-size:12px;color:var(--text-muted)}.dp-batch b{color:var(--text);font-size:16px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.dp-eyebrow{font-size:12px;color:var(--text-muted)}.dp-result>strong{display:block;font-size:38px;line-height:1.25;letter-spacing:-.02em;font-weight:600;margin:4px 0 18px;white-space:nowrap;font-variant-numeric:tabular-nums}.dp-result>strong::before{content:"≈ ";font-weight:400;color:var(--text-muted)}
.dp-margin-label{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px}.dp-margin-label output{font-size:16px;font-weight:500;color:var(--teal)}
.dp input[type=range]{display:block;width:100%;min-height:36px;margin:0;accent-color:var(--teal);cursor:pointer}
.dp-result-lines{margin-top:8px}.dp-result-lines span{color:var(--text-muted);font-size:12px}.dp-result-lines .dp-profit{border:0;font-weight:500}.dp-profit dd{color:var(--teal);font-size:18px}
.dp-small,.dp-source{font-size:12px;line-height:1.6;color:var(--text-muted);margin:12px 0}.dp a{color:var(--teal)}
.dp-scenario-note{font-size:12px;color:var(--text-muted);line-height:1.6;margin:12px 0}.dp-error{font-size:14px;line-height:1.6;color:var(--text)}
.dp-assumptions{margin-top:20px;border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:12px 0}.dp-assumptions summary{cursor:pointer;min-height:28px;line-height:28px;font-size:14px}
.dp-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.dp-fields label{display:grid;gap:8px;color:var(--text-muted);font-size:12px}.dp-fields input,.dp-fields select{width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:6px;font:14px var(--font-body)}
.dp-source{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.dp-save{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px;font-size:12px;color:var(--text-muted)}.dp-save button{min-height:44px;padding:8px 12px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--text);font:12px var(--font-body);cursor:pointer}
.dp-references{margin-top:16px}.dp-ref-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}.dp h3{font-size:14px;margin:0;font-weight:500}.dp-ref-head>span{font-size:12px;color:var(--text-muted)}
.dp-ref-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:12px}.dp .dp-ref{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:var(--text);text-decoration:none}.dp-ref-title{display:grid;gap:3px;min-width:0}.dp-ref-title b{font-weight:500;font-size:14px;line-height:1.5}.dp-ref-title small{font-size:12px;color:var(--text-muted);line-height:1.5}.dp-ref>strong{font-size:16px;font-weight:500;white-space:nowrap}.dp-ref>strong span{font-size:12px;color:var(--teal)}.dp-ref:hover .dp-ref-title b{color:var(--teal)}
.dp button:focus-visible,.dp input:focus-visible,.dp select:focus-visible,.dp summary:focus-visible,.dp a:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media(max-width:800px){.dp-layout{grid-template-columns:1fr;gap:20px}.dp-result{grid-row:1}.dp-ref-list{grid-template-columns:1fr;gap:14px}}
@media(max-width:600px){.dp{padding:18px}.dp-heading{gap:12px;margin-bottom:16px}.dp h2{font-size:20px}.dp-quantity-controls{width:100%;gap:12px}.dp-scenarios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.dp-scenarios button{font-size:12px;padding:8px}.dp-quantity{display:flex;align-items:center;justify-content:space-between;width:100%;font-size:14px}.dp-result{padding:18px}.dp-result>strong{font-size:34px}.dp-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.dp-fields label:last-child{grid-column:1/-1}}
