/* KOSTYAN TECH / public cost calculator. All rules are scoped to this section. */
.cost-heading-aside{max-width:360px}.cost-preliminary{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin-top:17px}.cost-preliminary>span{width:6px;height:6px;flex:0 0 6px;background:#6e8350;border-radius:50%}.cost-workspace{display:grid;grid-template-columns:320px minmax(0,1fr);border:1px solid var(--line);border-radius:12px;background:white;align-items:start}.cost-sidebar{position:sticky;top:108px;border-radius:12px 0 0 12px;overflow:hidden;background:#edf0e6;min-width:0}.cost-controls{padding:28px 24px 12px}.cost-controls .controls-heading{margin-bottom:26px;gap:5px}.cost-controls .controls-heading .mono{font-size:10px}.cost-controls .controls-heading button{font-size:11px}.cost-controls .field{margin-bottom:19px}.cost-controls .field label{font-size:12px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:8px}.cost-controls .field label span{font-size:10px;font-weight:400;color:var(--muted)}.cost-controls input,.cost-controls select{display:block;width:100%;min-width:0;border:1px solid #d2d9c9;background:#fffefb;color:var(--ink);border-radius:6px;padding:11px 12px;font-size:15px;line-height:1.3;min-height:44px}.cost-controls select{padding-right:28px;font-size:13px}.cost-controls .field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cost-controls input:focus,.cost-controls select:focus{border-color:#7e9756}.cost-controls #cost-text{font-size:20px;font-weight:600;letter-spacing:.02em}.cost-summary{border-top:1px solid #d5ddc6;padding:23px 24px 27px;background:#e2ebce;min-width:0}.cost-summary>.mono{font-size:9px;letter-spacing:.08em}.cost-summary>strong{display:block;font-size:34px;font-weight:600;letter-spacing:-.045em;margin:7px 0 20px;line-height:1.2;overflow-wrap:anywhere;min-height:41px;font-variant-numeric:tabular-nums}.cost-summary .button{width:100%;justify-content:space-between;font-size:13px;min-height:48px;gap:12px}.cost-copy{display:flex;width:100%;align-items:center;justify-content:space-between;font-size:11px;margin-top:14px;padding:8px 0;border-bottom:1px solid #bbcba4}.cost-copy span{font-size:17px;line-height:1}.cost-copy:disabled{opacity:.4;cursor:not-allowed}#cost-copy-status{display:block;font-size:11px;line-height:1.5;margin-top:8px;min-height:0}.cost-results{min-width:0;min-height:740px;border-left:1px solid var(--line)}.cost-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:17px 20px;border-bottom:1px solid var(--line)}.cost-tabs button{min-height:41px;padding:9px 7px;border-radius:5px;font-size:12px;white-space:nowrap}.cost-tabs button span{font-family:var(--mono);font-size:9px;margin-right:6px;opacity:.65}.cost-tabs button[aria-selected=true]{background:var(--ink);color:#fff}.cost-panel{padding:28px 26px 30px;min-width:0}.cost-panel h3{font-size:31px;line-height:1.15;margin-top:18px;overflow-wrap:anywhere}.cost-panel .panel-topline{font-size:10px}.cost-panel .panel-subtitle{font-size:12px;line-height:1.6;margin-top:9px;color:var(--muted)}.cost-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:23px 0 25px}.cost-kpis>div{padding:14px 12px;background:#f0f3e9;border:1px solid #e5eadd;border-radius:6px;min-width:0}.cost-kpis span{display:block;font-size:10px;color:var(--muted)}.cost-kpis strong{display:block;font-size:19px;line-height:1.3;font-weight:600;letter-spacing:-.03em;margin-top:5px;white-space:nowrap;font-variant-numeric:tabular-nums}.cost-kpis small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.cost-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.5}.cost-table th,.cost-table td{padding:12px 7px;border-bottom:1px solid #e9ede4;vertical-align:middle}.cost-table th:first-child,.cost-table td:first-child{padding-left:0}.cost-table th:last-child,.cost-table td:last-child{padding-right:0}.cost-table thead th{font-size:10px;text-align:right;color:var(--muted);font-weight:400;padding-bottom:10px;white-space:nowrap}.cost-table thead th:first-child{text-align:left}.cost-table td:first-child{width:46%;font-size:12px;font-weight:400;padding-right:16px}.cost-number{text-align:right;white-space:nowrap;font-size:11px;font-variant-numeric:tabular-nums}.cost-table .cost-number .qty-unit{display:block;font-size:9px;color:var(--muted);line-height:1.3}.cost-table tr.cost-group th{text-align:left;font-size:10px;letter-spacing:.04em;text-transform:uppercase;background:#f1f4ea;padding:12px 10px;border-bottom:0}.cost-table tr.cost-subtotal th{text-align:right;font-size:10px;font-weight:400;color:var(--muted);border:0;padding-top:10px;padding-bottom:20px}.cost-table tr.cost-subtotal td{font-weight:600;border:0;padding-top:10px;padding-bottom:20px}.cost-table tfoot th{text-align:left;font-size:13px;font-weight:600;border-top:1px solid #94a47c;border-bottom:0;padding-top:20px}.cost-table tfoot td{text-align:right;font-size:21px;font-weight:600;letter-spacing:-.025em;white-space:nowrap;border-top:1px solid #94a47c;border-bottom:0;padding-top:20px}.cost-panel>svg{width:100%;height:auto;margin:20px 0 10px;background:#f2f5ec;border:1px solid #e2e8d8;border-radius:6px}.cost-geometry{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);margin:22px 0;border-radius:6px;overflow:hidden}.cost-geometry>div{padding:15px;background:#f7f8f3;min-width:0}.cost-geometry span{display:block;font-size:10px;color:var(--muted);line-height:1.4}.cost-geometry strong{display:block;font-size:14px;font-weight:500;margin-top:6px;line-height:1.5;overflow-wrap:anywhere}.cost-brief-specs{margin:26px 0}.cost-brief-specs>div{display:grid;grid-template-columns:130px 1fr;gap:18px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;line-height:1.6}.cost-brief-specs dt{color:var(--muted)}.cost-brief-specs dd{margin:0;overflow-wrap:anywhere}.cost-brief-work-heading{font-size:14px;margin-top:25px;font-weight:600}.cost-operations{padding-left:19px;font-size:12px;line-height:1.7;margin:13px 0 0}.cost-operations li{padding:3px 0 3px 3px}.cost-layout-sheets{display:grid;gap:20px;max-height:680px;overflow:auto;padding-right:3px}.cost-sheet{min-width:0;padding:17px;background:#f6f8f1;border:1px solid #e0e7d3;border-radius:6px}.cost-sheet h4{font-family:var(--mono);font-size:11px;font-weight:400;letter-spacing:.02em}.cost-sheet svg{width:100%;height:auto;margin-top:12px}.cost-sheet-caption{display:flex;justify-content:space-between;gap:14px;font-size:10px;color:var(--muted);margin-top:8px}.cost-layout-empty{padding:35px 0;font-size:14px;color:var(--muted);line-height:1.6}.cost-error{font-size:12px;color:#9a3a25;line-height:1.5;background:#fff0e8;border:1px solid #ecd1c2;padding:12px;border-radius:5px;margin:8px 0 14px}.cost-summary a[aria-disabled=true]{pointer-events:none;opacity:.4}.cost-error-state .cost-panel{opacity:.4}
@media(max-width:1150px){.cost-workspace{grid-template-columns:285px minmax(0,1fr)}.cost-controls{padding:24px 19px 8px}.cost-summary{padding:22px 19px}.cost-summary>strong{font-size:31px}.cost-panel{padding:25px 20px}.cost-tabs{padding:15px 12px}.cost-tabs button{font-size:11px}.cost-kpis{gap:6px}.cost-kpis>div{padding:12px 9px}.cost-kpis strong{font-size:16px}.cost-table td:first-child{font-size:11px}.cost-table .cost-number{font-size:10px}}
@media(max-width:900px){.cost-workspace{grid-template-columns:1fr}.cost-sidebar{position:static;display:grid;grid-template-columns:minmax(0,1fr) 255px;border-radius:12px 12px 0 0}.cost-summary{border-left:1px solid #d5ddc6;border-top:0;display:flex;flex-direction:column;justify-content:center;padding:25px}.cost-controls{padding:27px 25px 12px}.cost-controls select{font-size:14px}.cost-summary>strong{font-size:29px}.cost-results{border-left:0;border-top:1px solid var(--line);min-height:0}.cost-panel{padding:28px}.cost-table td:first-child{font-size:12px}.cost-table .cost-number{font-size:12px}.cost-kpis strong{font-size:21px}.cost-tabs{padding:16px 24px}.cost-tabs button{font-size:13px}.cost-heading-aside{max-width:450px}.cost-preliminary{margin-top:12px}}
@media(max-width:650px){.cost-sidebar{grid-template-columns:1fr}.cost-controls{padding:25px 22px 8px}.cost-controls .field{margin-bottom:18px}.cost-summary{border-left:0;border-top:1px solid #d5ddc6;padding:23px 22px}.cost-summary>strong{font-size:37px;margin-top:8px;margin-bottom:18px}.cost-summary>.mono{font-size:10px}.cost-summary .button{font-size:14px}.cost-copy{font-size:12px}.cost-tabs{padding:14px 9px;gap:3px}.cost-tabs button{font-size:12px;padding:9px 5px}.cost-tabs button span{display:none}.cost-panel{padding:24px 18px}.cost-panel h3{font-size:28px}.cost-panel .panel-subtitle{font-size:11px}.cost-kpis{gap:7px;margin:22px 0}.cost-kpis>div{padding:12px 9px}.cost-kpis strong{font-size:14px}.cost-kpis small{font-size:9px}.cost-table{display:block}.cost-table thead{display:none}.cost-table tbody{display:block}.cost-table tr[data-row]{display:grid;grid-template-columns:1fr 1fr 1fr;border-bottom:1px solid #e5eadd;padding:11px 0 13px;column-gap:6px}.cost-table tr[data-row] td{display:block;border:0;padding:0;font-size:12px}.cost-table tr[data-row] td:first-child{grid-column:1/-1;width:auto;padding:0 0 10px;font-size:13px;font-weight:500;line-height:1.4}.cost-table tr[data-row] td.cost-number{text-align:left;white-space:normal}.cost-table tr[data-row] td.cost-number:last-child{text-align:right}.cost-table tr[data-row] td.cost-number:before{content:attr(data-label);display:block;font-size:9px;font-family:var(--sans);color:var(--muted);margin-bottom:4px}.cost-table tr[data-row] .qty-unit{display:inline;font-size:10px;margin-left:3px}.cost-table .cost-group{display:block;margin-top:8px}.cost-table .cost-group th{display:block;width:100%;font-size:10px;padding:11px}.cost-table .cost-subtotal{display:flex;align-items:center;justify-content:space-between;padding:13px 0 15px;gap:10px}.cost-table .cost-subtotal th,.cost-table .cost-subtotal td{display:block;padding:0!important;font-size:11px!important}.cost-table tfoot{display:block;border-top:1px solid #94a47c;padding-top:19px}.cost-table tfoot tr{display:flex;justify-content:space-between;align-items:center;gap:15px}.cost-table tfoot th,.cost-table tfoot td{display:block;padding:0;border:0}.cost-table tfoot th{font-size:12px;max-width:130px}.cost-table tfoot td{font-size:22px}.cost-geometry>div{padding:13px 11px}.cost-geometry strong{font-size:12px}.cost-brief-specs>div{grid-template-columns:97px 1fr;gap:10px;font-size:11px}.cost-operations{font-size:12px}.cost-sheet{padding:13px}.cost-sheet-caption{font-size:9px}.cost-panel .panel-topline .mono{font-size:9px}.cost-layout-sheets{max-height:600px}}
@media(max-width:360px){.cost-controls{padding:23px 17px 6px}.cost-summary{padding:22px 17px}.cost-summary>strong{font-size:34px}.cost-panel{padding:22px 13px}.cost-tabs{padding:12px 5px}.cost-tabs button{font-size:10px}.cost-kpis strong{font-size:12px}.cost-kpis>div{padding:10px 7px}.cost-kpis small{font-size:8px}.cost-table tfoot td{font-size:20px}}
@media print{.cost-sidebar,.cost-tabs{display:none!important}.cost-workspace{display:block;border:0}.cost-results{border:0}.cost-panel{display:block!important;padding:12px 0;opacity:1!important}.cost-panel svg{max-height:300px}.cost-layout-sheets{max-height:none;overflow:visible}.cost-sheet,.cost-table tr{break-inside:avoid}.cost-table{display:table}.cost-table thead{display:table-header-group}.cost-table tbody{display:table-row-group}.cost-table tr[data-row]{display:table-row}.cost-table tr[data-row] td{display:table-cell}.cost-table td:before{display:none!important}}
@media print{.cost-section:before{content:'KOSTYAN TECH — себестоимость изготовления. Расчёт предварительный.'!important}}
@media(min-width:901px) and (max-height:900px){.cost-sidebar{position:static}}
