.calc-page{max-width:1500px}.calc-page .calc-intro h1{margin:12px 0 16px;font-size:clamp(30px,3vw,44px);max-width:800px}.calc-intro{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:42px 48px;background:#f6f4fd;border-radius:24px;margin-bottom:60px}.calc-intro p,.calc-heading p{color:#817b90;line-height:1.6;margin:0}.calc-intro p{font-size:17px}.calc-intro__mark{font-size:72px;font-weight:700;color:#d8d1ff;line-height:1}.calc-eyebrow,.calc-step{font-size:12px;font-weight:700;letter-spacing:.1em;color:#8268ff}.calc-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.calc-heading h2{font-size:26px;margin:10px 0}.calc-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}.calc-filter{border:1px solid #e9e6f0;border-radius:30px;background:#fff;padding:11px 18px;color:#625d70;cursor:pointer;font:inherit;font-size:14px}.calc-filter[aria-pressed=true]{background:#8268ff;border-color:#8268ff;color:white}.calc-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}.calc-tile{position:relative;text-align:left;border:1px solid #eeedf2;border-radius:18px;background:#fff;padding:18px;cursor:pointer;color:#292535;font:inherit;min-height:178px;transition:border-color .2s,box-shadow .2s,transform .2s}.calc-tile:hover,.calc-tile:focus-visible{border-color:#a998ff;box-shadow:0 8px 24px #38276912;transform:translateY(-2px)}.calc-tile svg{display:block;width:100%;height:96px;margin-bottom:12px}.calc-tile strong{display:block;font-size:15px;line-height:1.35}.calc-tile small{color:#aaa5b5;font-size:12px}.calc-work{margin-top:68px}.calc-clear,.calc-remove{border:0;background:none;color:#8268ff;cursor:pointer;font:inherit}.calc-empty{border:1px dashed #dcd6ed;background:#fbfaff;border-radius:20px;padding:44px;text-align:center;color:#777184}.calc-empty span{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#eeeaff;color:#8268ff;font-size:26px;margin:0 auto 16px}.calc-empty strong{display:block;color:#322d40}.calc-empty p{margin:8px 0 0;font-size:14px}.calc-item{border:1px solid #eeedf2;border-radius:20px;padding:24px;margin-bottom:16px}.calc-item__head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:20px}.calc-item__head h3{font-size:19px;margin:0}.calc-item__body{display:grid;grid-template-columns:200px 1fr;gap:28px;align-items:center}.calc-diagram{background:#f8f7fc;border-radius:14px;padding:12px}.calc-diagram svg{display:block;width:100%;height:150px}.calc-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}.calc-fields label{font-size:13px;color:#777184;line-height:1.4}.calc-fields :is(input,select){display:block;width:100%;height:48px;margin-top:8px;padding:0 12px;border:1px solid #e5e1ec;border-radius:10px;background:#fff;color:#292535;font:inherit;font-size:16px}.calc-fields :is(input,select):focus{outline:2px solid #b5a7ff}.calc-result{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border-top:1px solid #f0edf5;margin-top:20px;padding-top:16px;color:#817b90;font-size:14px}.calc-result strong{color:#302942;font-size:20px}.calc-result small{display:block;color:#b64a65}.calc-total{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#f3f0ff;border-radius:18px;padding:24px 28px;margin-top:20px}.calc-total span,.calc-total small{display:block}.calc-total span{font-weight:700}.calc-total small{color:#817b90;margin-top:5px}.calc-total strong{font-size:28px;color:#7259ed;white-space:nowrap}.calc-note{color:#9590a1;font-size:13px;line-height:1.6;margin-top:18px}.calc-page [hidden]{display:none!important}.calc-page button:focus-visible{outline:2px solid #8268ff;outline-offset:3px}@media(max-width:1000px){.calc-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.calc-intro{padding:28px 24px;margin-bottom:42px}.calc-intro__mark{display:none}.calc-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.calc-tile{padding:14px;min-height:160px}.calc-heading h2{font-size:22px}.calc-work{margin-top:45px}.calc-item{padding:18px}.calc-item__body{grid-template-columns:1fr;gap:16px}.calc-diagram svg{height:125px}.calc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.calc-total strong{font-size:22px}.calc-empty{padding:32px 20px}}
.calc-page svg text{fill:#7566ad;stroke:none;font:11px sans-serif}.calc-total small[data-incomplete]{color:#a34962}
.calc-tile[aria-pressed=true]{border-color:#8268ff;background:#f7f5ff;box-shadow:0 0 0 1px #8268ff}.calc-tile[aria-pressed=true] small{color:#7259ed;font-weight:700}.calc-export{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-top:20px;padding:24px 28px;border:1px solid #e9e5f4;border-radius:18px}.calc-export strong,.calc-export small{display:block}.calc-export small{color:#817b90;margin-top:5px}.calc-export__buttons{display:flex;gap:10px;flex-wrap:wrap}.calc-export__buttons button{border:1px solid #8268ff;background:#fff;color:#7259ed;border-radius:10px;padding:13px 18px;font:inherit;font-weight:600;cursor:pointer}.calc-export__buttons button:last-child{background:#8268ff;color:#fff}.calc-export__buttons button:hover{filter:brightness(.95)}.calc-print{display:none}@media(max-width:700px){.calc-export{padding:20px}.calc-export__buttons{width:100%}.calc-export__buttons button{flex:1}}

.calc-page .calc-tile[aria-pressed=true]{background:#8268ff;border-color:#8268ff;color:#fff;box-shadow:none}.calc-page .calc-tile[aria-pressed=true] small{color:#fff}.calc-page .calc-tile svg,.calc-page .calc-diagram svg{color:#8875cf}.calc-page .calc-tile[aria-pressed=true] svg{color:#fff}.calc-page svg .surface{fill:currentColor;fill-opacity:.10;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.calc-page svg .edge{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.calc-page svg .dim{fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:round}.calc-page svg .extension{fill:none;stroke:currentColor;stroke-width:.7;opacity:.7}.calc-page svg .axis{fill:none;stroke:currentColor;stroke-width:.8;stroke-dasharray:4 3;opacity:.7}.calc-page svg text{fill:currentColor;stroke:none;font:600 11px Arial,sans-serif}.calc-page .calc-tile svg{height:110px}.calc-page .calc-diagram svg{height:210px}.calc-page .calc-item__body{grid-template-columns:260px 1fr}@media(max-width:700px){.calc-page .calc-item__body{grid-template-columns:1fr}.calc-page .calc-diagram svg{height:200px}.calc-page .calc-tile svg{height:95px}}
.calc-page .calc-diagram{display:block;width:100%;border:1px solid transparent;cursor:zoom-in;color:#8875cf;font:inherit}.calc-page .calc-diagram:hover,.calc-page .calc-diagram:focus-visible{border-color:#a998ff;outline:none}.calc-diagram span{display:block;color:#8268ff;text-align:center;font-size:13px;padding:4px 0}.calc-dialog{width:min(680px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:28px;border:0;border-radius:20px;background:#fff;color:#292535;box-shadow:0 20px 70px #29204044}.calc-dialog::backdrop{background:#292235b8}.calc-dialog__head{display:flex;justify-content:space-between;align-items:center;gap:20px}.calc-dialog__head h2{font-size:22px;margin:0}.calc-dialog__close{border:0;background:#f3f0ff;color:#7259ed;border-radius:50%;width:40px;height:40px;font-size:26px;line-height:1;cursor:pointer}.calc-dialog__close:focus-visible{outline:2px solid #8268ff;outline-offset:2px}.calc-dialog__image{margin-top:20px;padding:10px;border-radius:14px;background:#f8f7fc;color:#8875cf}.calc-dialog__image svg{display:block;width:100%;height:min(55dvh,450px)}.calc-dialog>p{font-size:13px;color:#817b90;margin:15px 0 0}@media(max-width:700px){.calc-dialog{padding:20px}.calc-dialog__head h2{font-size:18px}}
.calc-page .calc-diagram .calc-drawing {
  height: auto;
  max-height: 245px;
}
.calc-page .calc-drawing text {
  font: 600 12px Arial, sans-serif;
}
@media print {
  @page { size: A4; margin: 15mm 16mm; }
  body > * { display: none !important; }
  body > .calc-print {
    display: block !important; font: 10pt/1.45 Arial, sans-serif; color: #282638;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  .calc-print .report-brand, .calc-print .report-identity, .calc-print .report-overview {
    display: flex; align-items: center; justify-content: space-between; gap: 5mm;
  }
  .calc-print .report-brand { padding-bottom: 5mm; border-bottom: .5pt solid #d9d6e6; }
  .calc-print .report-identity { justify-content: flex-start; gap: 3mm; }
  .calc-print .report-identity img { max-width: 29mm; max-height: 12mm; object-fit: contain; }
  .calc-print .report-identity strong { display: block; font-size: 13pt; }
  .calc-print .report-identity span, .calc-print .report-contacts { color: #625d75; font-size: 8.5pt; }
  .calc-print .report-contacts { max-width: 48%; text-align: right; overflow-wrap: anywhere; }
  .calc-print .report-overview { margin: 7mm 0; padding: 6mm; border-radius: 4mm; background: #f2effa; break-inside: avoid; }
  .calc-print .report-overview p { margin: 0 0 2mm; font-size: 8.5pt; color: #60578b; }
  .calc-print h1 { margin: 0; font: bold 23pt/1.08 Arial,sans-serif; letter-spacing: -.6pt; }
  .calc-print .report-area { text-align: right; }
  .calc-print .report-area span { display: block; color: #5e5679; font-size: 9pt; }
  .calc-print .report-area strong { font-size: 22pt; color: #58449f; white-space: nowrap; }
  .calc-print .report-area em { font: normal 12pt Arial,sans-serif; }
  .calc-print table { border-collapse: collapse; table-layout: fixed; width: 100%; }
  .calc-print thead { display: table-header-group; }
  .calc-print th { text-align: left; font-size: 8.5pt; padding: 2mm; border-bottom: 1pt solid #9184bb; color: #514868; }
  .calc-print tr { break-inside: avoid; }
  .calc-print td { padding: 3.2mm 2mm; border-bottom: .5pt solid #dedbe8; vertical-align: top; }
  .calc-print .number { text-align: right; font-variant-numeric: tabular-nums; }
  .calc-print .sequence, .calc-print small { color: #716c7d; }
  .calc-print .measurements { margin-top: 1mm; font-size: 9pt; }
  .calc-print small { display: block; margin-top: 1mm; font-size: 8pt; }
  .calc-print .report-note { margin: 4mm 0 0; font-size: 8pt; color: #655f72; }
}
