.container{
  max-width:1240px;
}

.calc-site{
  --calc-bg:rgba(15, 11, 7, .78);
  --calc-panel:linear-gradient(180deg, rgba(26,20,12,.96), rgba(12,9,6,.94));
  --calc-panel-soft:linear-gradient(180deg, rgba(33,25,15,.9), rgba(16,12,8,.9));
  --calc-border:rgba(200,154,58,.18);
  --calc-border-strong:rgba(200,154,58,.34);
  --calc-muted:#d5c7ac;
  --calc-muted-soft:#bda984;
  --calc-text:#f6f1e6;
  --calc-accent:#d1a654;
  --calc-accent-2:#b8832c;
  --calc-shadow:0 24px 60px rgba(0,0,0,.32);
  --calc-shadow-soft:0 18px 36px rgba(0,0,0,.22);
  color:var(--calc-text);
}

.calc-site h1{
  margin:0;
  font-family:var(--font-display);
  font-size:52px;
  line-height:1;
  font-weight:700;
  letter-spacing:.02em;
}

.calc-site b{
  font-weight:800;
}

.calc-site .calc-page-head{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin:4px 0 20px;
  padding:28px 30px;
  border-radius:28px;
  border:1px solid var(--calc-border);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(200,154,58,.16), transparent 38%),
    radial-gradient(80% 120% at 100% 0%, rgba(200,154,58,.08), transparent 44%),
    linear-gradient(180deg, rgba(28,21,13,.98), rgba(13,10,6,.96));
  box-shadow:var(--calc-shadow);
  overflow:hidden;
}

.calc-site .calc-page-head::after{
  content:"";
  position:absolute;
  inset:auto -8% -42% auto;
  width:320px;
  height:320px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(200,154,58,.16), rgba(200,154,58,0));
  pointer-events:none;
}

.calc-site .calc-page-copy{
  position:relative;
  z-index:1;
  max-width:740px;
}

.calc-site .calc-page-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(200,154,58,.22);
  background:rgba(255,255,255,.03);
  color:#f4ddb0;
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.calc-site .calc-page-copy p{
  margin:14px 0 0;
  max-width:620px;
  color:var(--calc-muted);
  font-size:15px;
  line-height:1.65;
}

.calc-site .calc-page-actions{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.calc-site .calc-page-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:16px;
  border:1px solid var(--calc-border-strong);
  background:linear-gradient(180deg, rgba(209,166,84,.18), rgba(209,166,84,.08));
  color:#f5e6c2;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  transition:background .18s ease, border-color .18s ease, transform .18s ease;
}

.calc-site .calc-page-link:hover{
  background:linear-gradient(180deg, rgba(209,166,84,.24), rgba(209,166,84,.12));
  border-color:rgba(244,221,176,.36);
  transform:translateY(-1px);
}

.calc-site .calc-page-link.subtle{
  background:rgba(255,255,255,.04);
  color:var(--calc-muted);
  border-color:var(--calc-border);
}

.calc-site .wrap{
  max-width:none;
  margin:0;
  padding:0;
}

.calc-site .card{
  background:var(--calc-panel);
  border:1px solid var(--calc-border);
  border-radius:28px;
  padding:22px;
  box-shadow:var(--calc-shadow);
  backdrop-filter:blur(10px);
}

.calc-site .row{
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
}

.calc-site .currencyRow{
  margin-bottom:18px;
}

.calc-site .tabs{
  display:inline-flex;
  gap:8px;
  flex-wrap:wrap;
  padding:8px;
  border-radius:18px;
  border:1px solid rgba(200,154,58,.16);
  background:rgba(255,255,255,.03);
}

.calc-site .tab,
.calc-site .segBtn{
  border:0;
  cursor:pointer;
  color:var(--calc-muted);
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .18s ease,
    box-shadow .18s ease;
}

.calc-site .tab{
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  background:transparent;
  font-size:14px;
  font-weight:800;
  letter-spacing:.02em;
}

.calc-site .tab:hover,
.calc-site .segBtn:hover{
  color:var(--calc-text);
  background:rgba(255,255,255,.05);
}

.calc-site .tab.active,
.calc-site .segBtn.active{
  color:#1a1207;
  background:linear-gradient(180deg, var(--calc-accent), var(--calc-accent-2));
  box-shadow:0 12px 26px rgba(200,154,58,.24);
}

.calc-site .seg{
  display:inline-flex;
  width:100%;
  gap:6px;
  padding:6px;
  border-radius:18px;
  border:1px solid rgba(200,154,58,.16);
  background:rgba(255,255,255,.03);
}

.calc-site .segBtn{
  display:block;
  flex:1 1 0;
  min-width:0;
  min-height:48px;
  padding:12px 14px;
  border-radius:14px;
  background:transparent;
  font-size:13px;
  font-weight:800;
  letter-spacing:.02em;
  text-align:center;
  line-height:1.15;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  text-wrap:balance;
}

.calc-site .segBtn:focus,
.calc-site .tab:focus,
.calc-site .btn:focus{
  outline:2px solid rgba(200,154,58,.55);
  outline-offset:2px;
}

.calc-site .viewTabs{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  margin-bottom:18px;
  padding:8px;
  border-radius:24px;
  border:1px solid rgba(200,154,58,.14);
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(200,154,58,.1), transparent 34%),
    linear-gradient(180deg, rgba(23,17,10,.94), rgba(11,8,5,.92));
  box-shadow:var(--calc-shadow-soft);
}

.calc-site .viewTabs .segBtn{
  min-height:54px;
  padding:14px 12px;
}

.calc-site .sectionTitle{
  margin:24px 0 14px;
  color:#f3e1ba;
  font-family:var(--font-display);
  font-size:42px;
  line-height:1;
  font-weight:700;
  letter-spacing:.06em;
}

.calc-site .grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
  margin-top:8px;
}

.calc-site .field{
  min-width:0;
  padding:16px;
  border-radius:22px;
  border:1px solid rgba(200,154,58,.12);
  background:var(--calc-panel-soft);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.calc-site .label{
  margin-bottom:10px;
  color:#f1ddb0;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  overflow-wrap:anywhere;
}

.calc-site .control{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.calc-site .control.split{
  align-items:stretch;
}

.calc-site .monthWrap{
  width:100%;
}

.calc-site .input{
  width:100%;
  min-width:0;
  height:52px;
  padding:0 16px;
  border-radius:18px;
  border:1px solid rgba(200,154,58,.18);
  background:rgba(5,4,2,.42);
  color:var(--calc-text);
  font-size:15px;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

.calc-site .input:focus{
  outline:none;
  border-color:rgba(200,154,58,.46);
  box-shadow:0 0 0 4px rgba(200,154,58,.14), inset 0 1px 0 rgba(255,255,255,.04);
}

.calc-site .suffix{
  flex:0 0 auto;
  min-width:76px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:18px;
  border:1px solid rgba(200,154,58,.28);
  background:rgba(200,154,58,.08);
  color:#f4ddb0;
  font-size:13px;
  font-weight:800;
  letter-spacing:.06em;
}

.calc-site .resultRow{
  display:flex;
  gap:16px;
  align-items:stretch;
  justify-content:space-between;
  margin-top:18px;
}

.calc-site .resultBox,
.calc-site .mortSummary{
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(200,154,58,.18), transparent 42%),
    linear-gradient(180deg, rgba(30,22,12,.98), rgba(15,11,7,.96));
  border:1px solid rgba(200,154,58,.22);
  border-radius:24px;
  box-shadow:var(--calc-shadow-soft);
}

.calc-site .resultBox{
  flex:1 1 auto;
  min-width:0;
  padding:18px 18px 16px;
}

.calc-site .resultTitle{
  margin-bottom:10px;
  color:#f1ddb0;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.calc-site .resultValue{
  margin-bottom:8px;
  color:var(--calc-text);
  font-size:34px;
  line-height:1.05;
  font-weight:900;
  word-break:break-word;
}

.calc-site .resultMeta{
  color:var(--calc-muted);
  font-size:14px;
  line-height:1.6;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.calc-site .mortSummary{
  width:100%;
  min-width:0;
  padding:16px;
  color:var(--calc-text);
  font-size:16px;
  line-height:1.45;
  font-weight:850;
  overflow-wrap:anywhere;
  word-break:break-word;
}

.calc-site .mortSummary .summaryParagraph + .summaryParagraph{
  margin-top:10px;
}

.calc-site .actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}

.calc-site .btn{
  min-height:52px;
  padding:0 18px;
  border-radius:18px;
  border:1px solid rgba(200,154,58,.28);
  background:linear-gradient(180deg, rgba(32,24,14,.96), rgba(16,11,7,.96));
  color:var(--calc-text);
  font-size:14px;
  font-weight:800;
  box-shadow:var(--calc-shadow-soft);
}

.calc-site .btn:hover{
  border-color:rgba(244,221,176,.34);
  background:linear-gradient(180deg, rgba(44,31,18,.98), rgba(20,14,9,.98));
  transform:translateY(-1px);
}

.calc-site .tableCard{
  margin-top:18px;
}

.calc-site .tableHead{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}

.calc-site .title{
  color:var(--calc-text);
  font-size:18px;
  font-weight:900;
  letter-spacing:.01em;
}

.calc-site .hint{
  color:var(--calc-muted);
  font-size:12px;
  line-height:1.5;
  text-align:right;
}

.calc-site .tableScroll{
  overflow:auto;
  border-radius:22px;
  border:1px solid rgba(200,154,58,.12);
  background:rgba(6,5,3,.36);
  -webkit-overflow-scrolling:touch;
}

.calc-site table{
  width:100%;
  min-width:720px;
  border-collapse:separate;
  border-spacing:0;
}

.calc-site thead th{
  position:sticky;
  top:0;
  z-index:2;
  padding:14px 14px;
  background:rgba(20,15,10,.94);
  border-bottom:1px solid rgba(200,154,58,.16);
  color:#f1ddb0;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(10px);
}

.calc-site tbody td{
  padding:14px;
  border-bottom:1px solid rgba(200,154,58,.08);
  color:var(--calc-text);
  font-size:13px;
  font-weight:650;
}

.calc-site tbody tr:hover td{
  background:rgba(255,255,255,.025);
}

.calc-site .right{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.calc-site .totals td{
  background:rgba(200,154,58,.08);
  border-bottom:0;
  font-weight:900;
  background-clip:padding-box;
}

.calc-site .totals td:first-child{
  border-top-left-radius:16px;
  border-bottom-left-radius:16px;
}

.calc-site .totals td:last-child{
  border-top-right-radius:16px;
  border-bottom-right-radius:16px;
}

.calc-site .stackTable{
  display:block;
  min-width:0;
  table-layout:fixed;
}

.calc-site .stackTable thead{
  display:none;
}

.calc-site .stackTable tbody{
  display:grid;
  gap:14px;
}

.calc-site .stackTable tbody tr{
  display:grid;
  grid-template-columns:minmax(128px, 176px) minmax(0, 1fr);
  gap:14px;
  padding:14px;
  border-radius:20px;
  border:1px solid rgba(200,154,58,.12);
  background:linear-gradient(180deg, rgba(23,17,10,.92), rgba(12,9,6,.90));
  box-shadow:var(--calc-shadow-soft);
}

.calc-site .stackTable tbody tr.totals{
  background:linear-gradient(180deg, rgba(23,17,10,.92), rgba(12,9,6,.90));
}

.calc-site .stackTable tbody td{
  padding:0;
  border-bottom:0;
}

.calc-site .stackTable .totals td{
  background:transparent;
}

.calc-site .stackTable tbody tr:hover td{
  background:transparent;
}

.calc-site .stackTable td.stackPrimary{
  width:auto;
  display:flex;
  align-items:flex-start;
  justify-content:flex-start;
  padding-top:2px;
  padding-right:8px;
  border-bottom:0;
  border-right:1px solid rgba(200,154,58,.12);
  color:#f1ddb0;
  font-size:15px;
  font-weight:850;
}

.calc-site .stackTable tbody tr.totals td.stackPrimary{
  padding-bottom:0;
  border-bottom:0;
  border-right:1px solid rgba(200,154,58,.12);
}

.calc-site .stackTable td.stackCell{
  display:block;
}

.calc-site .stackMetrics{
  display:grid;
  gap:0;
}

.calc-site .stackMetrics.stackMetrics--1{
  grid-template-columns:1fr;
}

.calc-site .stackMetrics.stackMetrics--2{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.calc-site .stackMetrics.stackMetrics--3{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.calc-site .stackMetrics.stackMetrics--4{
  grid-template-columns:repeat(4, minmax(0, 1fr));
}

.calc-site .stackMetric{
  display:grid;
  gap:6px;
  align-items:start;
  padding:0 10px;
  border:0;
  border-right:1px solid rgba(200,154,58,.08);
  border-radius:0;
  background:transparent;
}

.calc-site .stackMetric:first-child{
  padding-top:0;
  padding-left:0;
}

.calc-site .stackMetric:last-child{
  padding-bottom:0;
  padding-right:0;
  border-bottom:0;
  border-right:0;
}

.calc-site .stackMetricLabel{
  color:var(--calc-muted);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.calc-site .stackMetricValue{
  color:var(--calc-text);
  font-size:15px;
  font-weight:850;
  text-align:left;
  font-variant-numeric:tabular-nums;
  word-break:break-word;
}

@media (max-width: 760px){
  .calc-site .stackTable tbody tr{
    grid-template-columns:1fr;
    gap:12px;
  }

  .calc-site .stackTable tbody td{
    display:block;
  }

  .calc-site .stackTable tbody td::before{
    content:none !important;
  }

  .calc-site .stackTable td.stackPrimary,
  .calc-site .stackTable tbody tr.totals td.stackPrimary{
    padding-right:0;
    padding-bottom:10px;
    border-right:0;
    border-bottom:1px solid rgba(200,154,58,.12);
  }

  .calc-site .stackMetrics{ grid-template-columns:1fr; }
  .calc-site .stackMetrics.stackMetrics--2{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .calc-site .stackMetrics.stackMetrics--3,
  .calc-site .stackMetrics.stackMetrics--4{ grid-template-columns:repeat(2, minmax(0, 1fr)); }

  .calc-site .stackMetric{
    padding:10px 0;
    border-right:0;
    border-bottom:1px solid rgba(200,154,58,.08);
  }

  .calc-site .stackMetric:first-child{
    padding-top:0;
  }

  .calc-site .stackMetric:last-child{
    padding-bottom:0;
    border-bottom:0;
  }
}

.calc-site .stackPrimary.hit,
.calc-site .stackMetricValue.hit{
  color:#f5e6c2;
}

.calc-site .good,
.calc-site .hit{
  color:#f5e6c2;
}

.calc-site .foot{
  margin-top:14px;
  padding:0 6px 0 2px;
  color:var(--calc-muted);
  font-size:12px;
  line-height:1.55;
}

.calc-site .steps{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.calc-site .step{
  padding:14px 16px;
  border-radius:20px;
  border:1px solid rgba(200,154,58,.12);
  background:linear-gradient(180deg, rgba(24,18,11,.94), rgba(12,9,6,.92));
}

.calc-site .stepSmall{
  margin-bottom:6px;
  color:#f1ddb0;
  font-size:11px;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.calc-site .stepBig{
  color:var(--calc-text);
  font-size:18px;
  line-height:1.35;
  font-weight:850;
}

.calc-site .pieGrid{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 320px;
  gap:14px;
  align-items:stretch;
}

.calc-site .pieCanvas{
  width:100%;
  height:420px;
  border-radius:22px;
  border:1px solid rgba(200,154,58,.12);
  background:rgba(6,5,3,.36);
}

.calc-site .pieLegend{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.calc-site .legendItem{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(200,154,58,.12);
  background:linear-gradient(180deg, rgba(23,17,10,.92), rgba(12,9,6,.9));
}

.calc-site .dot{
  width:12px;
  height:12px;
  flex:0 0 12px;
  border-radius:999px;
  box-shadow:0 0 0 5px rgba(255,255,255,.04);
}

.calc-site .legendText{
  display:flex;
  flex-direction:column;
}

.calc-site .legendTitle{
  margin-bottom:4px;
  color:var(--calc-text);
  font-size:14px;
  font-weight:850;
}

.calc-site .legendVal{
  color:var(--calc-muted);
  font-size:13px;
  font-weight:700;
}

.calc-site .hero{
  position:relative;
  width:100%;
  height:320px;
  margin-top:6px;
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(200,154,58,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}

.calc-site .heroImg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02);
  filter:saturate(1.02) contrast(1.03);
}

.calc-site .heroOverlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(7,5,3,.78) 0%, rgba(7,5,3,.36) 46%, rgba(7,5,3,.76) 100%),
    linear-gradient(180deg, rgba(0,0,0,.06), rgba(0,0,0,.28));
}

.calc-site .heroContent{
  position:absolute;
  right:5.5%;
  top:50%;
  transform:translateY(-50%);
  max-width:52%;
  text-align:left;
}

.calc-site .heroTitle{
  margin-bottom:12px;
  color:#fff7ea;
  font-family:var(--font-display);
  font-size:56px;
  line-height:.98;
  font-weight:700;
}

.calc-site .heroText{
  color:#f0e0bd;
  font-size:21px;
  line-height:1.4;
  font-weight:600;
}

.calc-site .heroStamp{
  position:absolute;
  left:18px;
  bottom:16px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.36);
  backdrop-filter:blur(6px);
  color:#fff2d3;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.calc-site input[type="number"]::-webkit-outer-spin-button,
.calc-site input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

.calc-site input[type="number"]{
  -moz-appearance:textfield;
}

html[data-theme="light"] .calc-site{
  --calc-bg:rgba(255, 250, 242, .88);
  --calc-panel:linear-gradient(180deg, rgba(255,250,242,.98), rgba(242,233,219,.96));
  --calc-panel-soft:linear-gradient(180deg, rgba(255,253,249,.98), rgba(245,237,226,.94));
  --calc-border:rgba(159,106,25,.14);
  --calc-border-strong:rgba(159,106,25,.24);
  --calc-muted:#7f6b53;
  --calc-muted-soft:#9f7c4c;
  --calc-text:#2f2418;
  --calc-accent:#d7ae61;
  --calc-accent-2:#b8832c;
  --calc-shadow:0 18px 40px rgba(90,70,39,.08);
  --calc-shadow-soft:0 12px 28px rgba(90,70,39,.06);
}

html[data-theme="light"] .calc-site .calc-page-head{
  border-color:rgba(159,106,25,.14);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(200,154,58,.14), transparent 38%),
    radial-gradient(80% 120% at 100% 0%, rgba(200,154,58,.08), transparent 44%),
    linear-gradient(180deg, rgba(255,250,242,.98), rgba(239,229,214,.96));
}

html[data-theme="light"] .calc-site .calc-page-head::after{
  background:radial-gradient(circle, rgba(200,154,58,.10), rgba(200,154,58,0));
}

html[data-theme="light"] .calc-site .tabs,
html[data-theme="light"] .calc-site .seg{
  border-color:rgba(159,106,25,.14);
  background:rgba(255,255,255,.64);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.56);
}

html[data-theme="light"] .calc-site .tab,
html[data-theme="light"] .calc-site .segBtn{
  color:#775f3f;
  border:1px solid rgba(159,106,25,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(246,239,229,.94));
  box-shadow:
    0 6px 14px rgba(90,70,39,.05),
    inset 0 1px 0 rgba(255,255,255,.84);
}

html[data-theme="light"] .calc-site .tab:hover,
html[data-theme="light"] .calc-site .segBtn:hover{
  color:var(--calc-text);
  border-color:rgba(159,106,25,.18);
  background:linear-gradient(180deg, rgba(255,250,242,.98), rgba(241,230,213,.96));
  box-shadow:
    0 8px 18px rgba(90,70,39,.07),
    inset 0 1px 0 rgba(255,255,255,.9);
}

html[data-theme="light"] .calc-site .viewTabs{
  border-color:rgba(159,106,25,.14);
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(200,154,58,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,250,242,.98), rgba(239,229,214,.96));
  box-shadow:var(--calc-shadow-soft);
}

html[data-theme="light"] .calc-site .tab.active,
html[data-theme="light"] .calc-site .segBtn.active{
  color:#23180c;
  border-color:rgba(159,106,25,.34);
  background:linear-gradient(180deg, #deb86e, #c99233);
  box-shadow:
    0 14px 28px rgba(184,131,44,.22),
    inset 0 1px 0 rgba(255,244,219,.45);
}

html[data-theme="light"] .calc-site .field{
  border-color:rgba(159,106,25,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.74);
}

html[data-theme="light"] .calc-site .label,
html[data-theme="light"] .calc-site .resultTitle,
html[data-theme="light"] .calc-site .stepSmall,
html[data-theme="light"] .calc-site thead th{
  color:#8f5e18;
}

html[data-theme="light"] .calc-site .sectionTitle{
  color:#8f5e18;
}

html[data-theme="light"] .calc-site .input{
  border-color:rgba(159,106,25,.18);
  background:#fffdf9;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72);
}

html[data-theme="light"] .calc-site .input:focus{
  border-color:rgba(159,106,25,.34);
  box-shadow:0 0 0 4px rgba(184,131,44,.12), inset 0 0 0 1px rgba(255,255,255,.8);
}

html[data-theme="light"] .calc-site .suffix{
  border-color:rgba(159,106,25,.18);
  background:rgba(184,131,44,.10);
  color:#8f5e18;
}

html[data-theme="light"] .calc-site .resultBox,
html[data-theme="light"] .calc-site .mortSummary{
  border-color:rgba(159,106,25,.18);
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(200,154,58,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,250,242,.98), rgba(242,233,219,.96));
}

html[data-theme="light"] .calc-site .btn{
  border-color:rgba(159,106,25,.18);
  background:linear-gradient(180deg, #fffaf2, #efe2cf);
  color:var(--calc-text);
}

html[data-theme="light"] .calc-site .btn:hover{
  border-color:rgba(159,106,25,.28);
  background:linear-gradient(180deg, #f8efdf, #ead7b8);
}

html[data-theme="light"] .calc-site .tableScroll,
html[data-theme="light"] .calc-site .pieCanvas{
  border-color:rgba(159,106,25,.12);
  background:rgba(255,251,246,.88);
}

html[data-theme="light"] .calc-site thead th{
  background:rgba(248,243,236,.98);
  border-bottom-color:rgba(159,106,25,.14);
}

html[data-theme="light"] .calc-site tbody td{
  border-bottom-color:rgba(159,106,25,.08);
}

html[data-theme="light"] .calc-site tbody tr:hover td{
  background:rgba(184,131,44,.05);
}

html[data-theme="light"] .calc-site .totals td{
  background:rgba(184,131,44,.10);
}

html[data-theme="light"] .calc-site .stackTable tbody tr,
html[data-theme="light"] .calc-site .stackTable tbody tr.totals,
html[data-theme="light"] .calc-site .step,
html[data-theme="light"] .calc-site .legendItem{
  border-color:rgba(159,106,25,.12);
  background:linear-gradient(180deg, rgba(255,250,242,.98), rgba(242,233,219,.95));
}

html[data-theme="light"] .calc-site .stackTable td.stackPrimary{
  color:#8f5e18;
  border-right-color:rgba(159,106,25,.12);
}

html[data-theme="light"] .calc-site .stackTable tbody tr.totals td.stackPrimary{
  border-right-color:rgba(159,106,25,.12);
}

html[data-theme="light"] .calc-site .stackMetric{
  border-right-color:rgba(159,106,25,.08);
}

html[data-theme="light"] .calc-site .stackPrimary.hit,
html[data-theme="light"] .calc-site .stackMetricValue.hit,
html[data-theme="light"] .calc-site .good,
html[data-theme="light"] .calc-site .hit{
  color:#8f5e18;
}

html[data-theme="light"] .calc-site .dot{
  box-shadow:0 0 0 5px rgba(184,131,44,.10);
}

html[data-theme="light"] .calc-site .heroStamp{
  border-color:rgba(159,106,25,.14);
  background:rgba(255,250,242,.78);
  color:#8f5e18;
}

html[data-theme="light"] .flatpickr-calendar{
  background:#fffaf2;
  border-color:rgba(159,106,25,.18);
  box-shadow:0 18px 40px rgba(90,70,39,.12);
}

html[data-theme="light"] .flatpickr-months{
  background:rgba(184,131,44,.06);
  border-bottom-color:rgba(159,106,25,.14);
}

html[data-theme="light"] .flatpickr-current-month,
html[data-theme="light"] .flatpickr-weekday,
html[data-theme="light"] .flatpickr-day,
html[data-theme="light"] .flatpickr-monthSelect-month{
  color:#2f2418 !important;
}

html[data-theme="light"] .flatpickr-day:hover,
html[data-theme="light"] .flatpickr-monthSelect-month:hover{
  background:rgba(184,131,44,.10);
}

.flatpickr-calendar{
  background:#1a140c;
  border:1px solid rgba(200,154,58,.24);
  border-radius:18px;
  box-shadow:0 24px 60px rgba(0,0,0,.4);
  overflow:hidden;
}

.flatpickr-calendar.open{
  z-index:9999;
}

.flatpickr-months{
  background:rgba(255,255,255,.03);
  border-bottom:1px solid rgba(200,154,58,.16);
}

.flatpickr-current-month,
.flatpickr-weekday,
.flatpickr-day,
.flatpickr-monthSelect-month{
  color:#f6f1e6 !important;
}

.flatpickr-day:hover,
.flatpickr-monthSelect-month:hover{
  background:rgba(200,154,58,.12);
}

.flatpickr-day.selected,
.flatpickr-monthSelect-month.selected{
  background:var(--calc-accent);
  border-color:transparent;
  color:#1a1207 !important;
}

.flatpickr-day.today{
  border-color:rgba(200,154,58,.62);
}

@media (max-width: 1120px){
  .calc-site .calc-page-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .calc-site .calc-page-actions{
    justify-content:flex-start;
  }

  .calc-site .hero{
    height:280px;
  }

  .calc-site .heroContent{
    max-width:64%;
  }

  .calc-site .heroTitle{
    font-size:44px;
  }

  .calc-site .heroText{
    font-size:18px;
  }

  .calc-site .sectionTitle{
    font-size:36px;
  }
}

@media (max-width: 860px){
  .container{
    padding-left:14px;
    padding-right:14px;
  }

  .calc-site h1{
    font-size:42px;
  }

  .calc-site .viewTabs{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .calc-site .grid{
    grid-template-columns:1fr;
  }

  .calc-site .row,
  .calc-site .resultRow{
    flex-direction:column;
    align-items:stretch;
  }

  .calc-site .tabs{
    width:100%;
  }

  .calc-site .tab{
    flex:1 1 auto;
  }

  .calc-site .actions,
  .calc-site .btn{
    width:100%;
  }

  .calc-site .control.split{
    flex-direction:column;
  }

  .calc-site .tableScroll{
    overflow:visible;
    border:0;
    background:transparent;
  }

  .calc-site table{
    min-width:0;
    display:block;
  }

  .calc-site thead{
    display:none;
  }

  .calc-site tbody{
    display:grid;
    gap:12px;
  }

  .calc-site tbody tr{
    display:grid;
    gap:10px;
    padding:14px;
    border-radius:20px;
    border:1px solid rgba(200,154,58,.12);
    background:linear-gradient(180deg, rgba(23,17,10,.92), rgba(12,9,6,.90));
    box-shadow:var(--calc-shadow-soft);
  }

  .calc-site tbody td{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:12px;
    align-items:start;
    padding:0;
    border-bottom:0;
  }

  .calc-site tbody td::before{
    color:var(--calc-muted);
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
  }

  .calc-site tbody td:first-child{
    display:block;
    margin-bottom:2px;
    padding-bottom:8px;
    border-bottom:1px solid rgba(200,154,58,.12);
    color:#f1ddb0;
    font-size:14px;
    font-weight:850;
  }

  .calc-site tbody td:first-child::before{
    content:none;
  }

  .calc-site tbody tr:hover td{
    background:transparent;
  }

  .calc-site .totals td:first-child{
    padding-bottom:0;
    border-bottom:0;
  }

  .calc-site #partnerTbody td:nth-child(2)::before{content:"База";}
  .calc-site #partnerTbody td:nth-child(3)::before{content:"Ставка";}
  .calc-site #partnerTbody td:nth-child(4)::before{content:"Прибыль";}
  .calc-site #partnerTbody td:nth-child(5)::before{content:"Тип";}

  .calc-site #tbody td:nth-child(2)::before{content:"Начало";}
  .calc-site #tbody td:nth-child(3)::before{content:"Пополнение";}
  .calc-site #tbody td:nth-child(4)::before{content:"Прибыль";}
  .calc-site #tbody td:nth-child(5)::before{content:"Конец";}

  .calc-site #mortTbody td:nth-child(2)::before,
  .calc-site #travelTbody td:nth-child(2)::before,
  .calc-site #shopTbody td:nth-child(2)::before{content:"Ежемесячная прибыль";}
  .calc-site #mortTbody td:nth-child(3)::before,
  .calc-site #travelTbody td:nth-child(3)::before,
  .calc-site #shopTbody td:nth-child(3)::before{content:"Депозит";}

  .calc-site #carTbody td:nth-child(2)::before{content:"Ежемесячная прибыль";}
  .calc-site #carTbody td:nth-child(3)::before{content:"Депозит";}
  .calc-site #carTbody td:nth-child(4)::before{content:"Оплата автокредита";}

  .calc-site #parentTbody td:nth-child(2)::before,
  .calc-site #freedomTbody td:nth-child(2)::before{content:"Капитал на начало срока";}
  .calc-site #parentTbody td:nth-child(3)::before,
  .calc-site #freedomTbody td:nth-child(3)::before{content:"Дополнительные вложения";}
  .calc-site #parentTbody td:nth-child(4)::before,
  .calc-site #freedomTbody td:nth-child(4)::before{content:"Прибыль";}
  .calc-site #parentTbody td:nth-child(5)::before,
  .calc-site #freedomTbody td:nth-child(5)::before{content:"Итог";}

  .calc-site .suffix{
    width:100%;
  }

  .calc-site .pieGrid{
    grid-template-columns:1fr;
  }

  .calc-site .pieCanvas{
    height:360px;
  }
}

@media (max-width: 620px){
  .calc-site .calc-page-head{
    padding:22px 20px;
    border-radius:24px;
  }

  .calc-site .calc-page-kicker{
    font-size:11px;
  }

  .calc-site h1{
    font-size:34px;
  }

  .calc-site .calc-page-copy p{
    font-size:14px;
  }

  .calc-site .card{
    padding:16px;
    border-radius:22px;
  }

  .calc-site .field{
    padding:14px;
    border-radius:20px;
  }

  .calc-site .hero{
    height:230px;
    border-radius:18px;
  }

  .calc-site .heroContent{
    right:18px;
    left:18px;
    max-width:none;
  }

  .calc-site .heroTitle{
    font-size:32px;
  }

  .calc-site .heroText{
    font-size:16px;
    max-width:none;
  }

  .calc-site .heroStamp{
    left:14px;
    bottom:12px;
    padding:8px 10px;
    font-size:11px;
  }

  .calc-site .sectionTitle{
    margin-top:22px;
    font-size:28px;
  }

  .calc-site .control{
    display:grid;
    grid-template-columns:1fr;
    align-items:stretch;
  }

  .calc-site .control.split{
    gap:10px;
  }

  .calc-site .control > *{
    width:100%;
    min-width:0;
  }

  .calc-site .segBtn,
  .calc-site .tab,
  .calc-site .input,
  .calc-site .suffix,
  .calc-site .btn{
    min-height:50px;
  }

  .calc-site .suffix{
    min-width:0;
    justify-content:flex-start;
    padding:0 16px;
  }

  .calc-site .seg.segStackMobile{
    display:grid;
    grid-template-columns:1fr;
  }

  .calc-site .seg.segStackMobile .segBtn{
    width:100%;
  }

  .calc-site .resultValue{
    font-size:28px;
  }

  .calc-site .tableHead{
    flex-direction:column;
    align-items:flex-start;
    gap:6px;
  }

  .calc-site .hint{
    text-align:left;
  }

  .calc-site .stepBig{
    font-size:16px;
  }

  .calc-site .pieCanvas{
    height:320px;
  }
}

@media (max-width: 430px){
  .container{
    padding-left:12px;
    padding-right:12px;
  }

  .calc-site .viewTabs{
    display:flex;
    gap:8px;
    overflow-x:auto;
    flex-wrap:nowrap;
    padding-bottom:10px;
    scroll-snap-type:x proximity;
    -webkit-overflow-scrolling:touch;
  }

  .calc-site .viewTabs .segBtn{
    flex:0 0 172px;
    width:172px;
    scroll-snap-align:start;
  }

  .calc-site .hero{
    height:210px;
  }

  .calc-site .heroTitle{
    font-size:28px;
  }

  .calc-site .heroText{
    font-size:15px;
  }

  .calc-site .card{
    padding:14px;
    border-radius:20px;
  }

  .calc-site .field{
    padding:12px;
    border-radius:18px;
  }

  .calc-site .tableHead{
    flex-direction:column;
    align-items:flex-start;
  }

  .calc-site .hint{
    text-align:left;
  }

  .calc-site .pieCanvas{
    height:280px;
  }

  .calc-site .heroStamp{
    left:12px;
    bottom:10px;
    padding:7px 9px;
    font-size:10px;
  }
}
