@font-face {
  font-family:Inter;src:url("InterVariable.woff2") format("woff2");
  font-style:normal;font-weight:100 900;font-display:swap;
}
:root {
  color-scheme: light; --paper:#f5f6f1; --card:#fff; --ink:#1c302c; --muted:#546761;
  --green:#176b52; --line:#dce2da; --apricot:#e6ae79; --forest:#133f34;
  --mint:#e4efe5; --chart-green:#398568; --chart-peach:#ebba8d;
  font-family:Inter,"Segoe UI",Arial,sans-serif; color:var(--ink);
  font-variant-numeric:tabular-nums; background:var(--paper); font-size:16px;
}
* {box-sizing:border-box}
body {margin:0;min-width:280px}
button,input,select {font:inherit;color:inherit}
button,a,input { -webkit-tap-highlight-color:transparent }
button {cursor:pointer}
button {background:none;border:0}
a {color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible {outline:3px solid #298466;outline-offset:3px}
[hidden] {display:none!important}
.wrap {width:min(calc(100% - clamp(40px,7vw,116px)),1440px);margin-inline:auto}
.mast {background:#fff;border-bottom:1px solid var(--line)}
.mast-inner {min-height:72px;display:flex;align-items:center;gap:clamp(28px,5.4vw,108px)}
.brand {display:inline-flex;align-items:center;gap:7px;min-height:48px;flex:none;border-radius:8px;color:var(--forest)}
.brand img {display:block;width:44px;height:44px}
.brand-name {font-size:1.75rem;font-weight:650;letter-spacing:-.055em;line-height:1.1}
.main-nav {display:flex;align-items:center;gap:6px;align-self:stretch}
.nav-short {display:none}
.scenario-nav {display:inline-flex;align-items:center;gap:3px;padding:4px;margin:0 0 20px;background:#e6ece2;border:1px solid #d5ded2;border-radius:10px}
.scenario-nav a {padding:8px 15px;border-radius:6px;color:#425b4d;font-size:.94rem;font-weight:550}
.scenario-nav a:hover,.scenario-nav a:focus-visible {background:#f4f7f0}
.scenario-nav a[aria-current="page"] {background:white;color:#174e39;box-shadow:0 1px 3px #223a2419}
.history-entry {display:inline-flex;align-items:center;align-self:start;flex-shrink:0;gap:7px;padding:8px 12px;border:1px solid #c5d7c8;border-radius:7px;color:#235d47;background:#f3f7ef;font-weight:550;font-size:.88rem}
.history-entry:hover {background:#e5efe3}
@media(max-width:520px) {.scenario-nav {display:flex}.scenario-nav a {flex:1;text-align:center}}
.main-nav a {display:inline-flex;align-items:center;gap:8px;font-size:.925rem;font-weight:510;white-space:nowrap;color:#52635b}
.main-nav a {border-radius:8px;padding:10px 14px;min-height:40px}
.main-nav a:hover {color:#13553e;background:#f0f5ee}
.main-nav a[aria-current="page"] {color:#155a42;background:#e6efe6}
i[data-icon] {display:inline-flex;align-items:center;justify-content:center;flex:none;font-style:normal;width:18px;height:18px}
i[data-icon] svg {display:block;width:100%;height:100%}
.intro {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:37px 0 28px}
.intro h1 {margin:0;font-size:clamp(2rem,3.35vw,3.25rem);line-height:1.13;font-weight:600;letter-spacing:-.058em;color:#182d25}
.intro p,.chart-heading p {margin:8px 0 0;color:#58675e;font-size:1rem;line-height:1.5}
.product-switch,.chart-switch {display:inline-flex;align-items:center;flex:none;border-radius:10px;padding:4px;background:#e9ede5;border:1px solid #dfe4da;gap:3px}
.product-switch button,.chart-switch button {display:flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;color:#516056;font-weight:500;white-space:nowrap}
.product-switch button {padding:9px 16px;font-size:.94rem}
.product-switch button[aria-pressed="true"],.chart-switch button[aria-pressed="true"] {background:white;color:#174e39;box-shadow:0 1px 3px #223a2419}
.product-switch button:hover,.chart-switch button:hover {color:#134932}
.loan-context {
  margin-bottom:20px;padding:14px clamp(15px,2vw,28px) 18px;background:#edf3eb;
  border:1px solid #d5e0d3;border-radius:14px
}
.context-head {display:flex;align-items:baseline;justify-content:space-between;gap:8px 18px}
.context-head h2 {min-width:0;margin:0;font-size:clamp(1.12rem,1.8vw,1.45rem);font-weight:550;letter-spacing:-.034em;line-height:1.28}
.context-head strong {display:inline-block;max-width:100%;color:var(--forest);font-weight:650;overflow-wrap:anywhere}
#context-edit {display:inline-flex;flex:none;align-items:center;gap:6px;min-height:32px;color:var(--green);font-size:.87rem;font-weight:550}
#context-edit:hover {text-decoration:underline;text-underline-offset:3px}
#context-edit i {width:15px;height:15px}
.context-facts {display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px 16px;margin:9px 0 0;padding-top:12px;border-top:1px solid #d5e0d3}
.context-facts dt {color:var(--muted);font-size:.82rem;line-height:1.35}
.context-facts dd {margin:3px 0 0;color:var(--ink);font-weight:580;font-size:1rem;letter-spacing:-.02em;overflow-wrap:anywhere}
#parameters {scroll-margin-top:12px}
@media(max-width:1040px) {
 .context-facts:has(#context-down-field:not([hidden])) {grid-auto-flow:row;grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:620px) {
 .context-facts,.context-facts:has(#context-down-field:not([hidden])) {grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr))}
 .loan-context {padding:11px 14px 14px;margin-bottom:14px}
 .context-head {gap:8px}.context-edit-detail {display:none}
 .context-facts {gap:9px 12px}.context-facts dt {font-size:.8rem}
}
.overview-grid {display:grid;grid-template-columns:minmax(292px,.47fr) minmax(0,1fr);gap:22px;align-items:start}
.controls-column,.results-column {min-width:0;display:grid;gap:18px}
.panel {background:var(--card);border:1px solid var(--line);border-radius:16px}
.input-panel {padding:24px}
.panel-heading,.chart-heading {display:flex;justify-content:space-between;align-items:center;gap:14px}
.panel-heading {margin-bottom:20px}
.panel h2 {margin:0;font-size:1.32rem;letter-spacing:-.039em;font-weight:620;line-height:1.2}
.reset-button {border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;width:34px;height:34px;color:#52665b}
.reset-button:hover {background:#f1f5ee}
.reset-button i {width:16px;height:16px}
.fields {display:grid;gap:19px}
.field {min-width:0}
.field-label {display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px;font-size:.92rem;font-weight:530;line-height:1.35}
.derived-percent {color:#316349;background:#eaf1e6;border-radius:5px;font-weight:600;font-size:.76rem;padding:2px 6px}
.number-box {border:1px solid #d8ded5;border-radius:8px;min-width:0;position:relative;background:#fcfdfb;padding:0 13px;height:43px;display:flex;align-items:center;gap:7px}
.number-box:focus-within {border-color:#408263;box-shadow:0 0 0 2px #e0eee2}
.number-box>input {width:100%;min-width:0;outline:0;background:transparent;border:0;font-size:1.12rem;font-weight:600;letter-spacing:-.025em;height:100%}
.number-box>input:focus-visible {outline:0}
.number-box>span {color:#647369;font-size:.91rem;white-space:nowrap}
.range {appearance:none;-webkit-appearance:none;display:block;margin:-6px 6px 0;width:calc(100% - 12px);height:12px;cursor:pointer;position:relative;background:transparent;z-index:1}
.range::-webkit-slider-runnable-track {height:3px;border-radius:4px;background:linear-gradient(to right,#297656 var(--fill),#dce4d9 var(--fill))}
.range::-moz-range-track {height:3px;border-radius:4px;background:#dce4d9}
.range::-moz-range-progress {background:#297656;height:3px}
.range::-webkit-slider-thumb {appearance:none;-webkit-appearance:none;box-sizing:border-box;background:#fff;border:3px solid #287454;border-radius:50%;width:13px;height:13px;margin-top:-5px}
.range::-moz-range-thumb {background:#fff;border:3px solid #287454;border-radius:50%;width:8px;height:8px}
.range-limits {display:flex;justify-content:space-between;margin-top:3px;font-size:.76rem;color:#6b786e;line-height:1.3}
.rate-hint {margin:6px 0 0;font-size:.77rem;line-height:1.4;color:var(--muted)}
.date-row {border-top:1px solid var(--line);padding-top:17px;margin-top:20px;display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:.87rem}
.date-row label {display:flex;align-items:center;gap:7px;color:var(--muted)}
.date-row i {width:16px;height:16px}
.date-row input {max-width:145px;background:#fafbf8;border:1px solid var(--line);border-radius:6px;padding:5px 7px;font-size:.85rem}
.date-box {position:relative;display:flex}
.date-box>span {position:absolute;inset:1px 28px 1px 1px;border-radius:5px;background:#fafbf8;padding:4px 3px 4px 7px;display:flex;align-items:center;pointer-events:none;font-size:.85rem}
.date-box:focus-within>span {display:none}
.validation-message:not(:empty) {color:#8e412a;margin-top:12px;font-size:.87rem}
.daily-peek {padding:15px 19px;display:flex;align-items:center;gap:13px;text-align:left;background:#e9f0e5;border:1px solid #d9e3d3;border-radius:13px}
.daily-peek:hover {background:#e2edde}
.peek-icon {display:grid;place-items:center;background:#d5e5d0;border-radius:10px;width:40px;height:40px;color:#31664a}
.peek-icon i {width:22px;height:22px}
.peek-content {display:grid;gap:2px}
.peek-content>span {font-size:.84rem;color:#435c48}
.peek-content strong {font-size:1.15rem;font-weight:600;letter-spacing:-.035em;color:#214c34}
.daily-peek>i {margin-left:auto;color:#527358}
.summary {background:#154637;border-radius:16px;overflow:hidden;color:#f8fbf2}
.summary-main {position:relative;display:flex;align-items:center;min-height:164px;isolation:isolate}
.summary-copy {position:relative;padding:25px 28px 23px;z-index:1}
.summary-copy h2 {margin:0 0 5px;color:#d9eada;font-size:1rem;font-weight:500}
.payment-figure {font-size:clamp(2.4rem,4.2vw,4.1rem);font-weight:550;letter-spacing:-.067em;line-height:1.12;white-space:nowrap}
.payment-figure .ruble {font-weight:420;color:#b9d1ba}
.payment-type {display:block;font-size:.84rem;margin-top:11px;color:#c3dac9}
.hero-art {pointer-events:none;position:absolute;inset:0 0 0 auto;width:48%;z-index:0;overflow:hidden}
.hero-art svg {width:100%;height:100%;display:block}
.summary-stats {margin:0 27px;padding:17px 0 21px;display:grid;grid-template-columns:1fr 1.15fr 1fr;border-top:1px solid #ffffff30;position:relative}
.summary-stats div {min-width:0;padding:0 15px;border-left:1px solid #ffffff30;container-type:inline-size}
.summary-stats div:first-child {padding-left:0;border-left:none}
.summary-stats div:last-child {padding-right:0}
.summary-stats dt {font-size:.81rem;color:#c6dacb;line-height:1.3}
.summary-stats dd {margin:4px 0 0;font-weight:550;letter-spacing:-.045em;font-size:clamp(1.05rem,1.66vw,1.62rem);line-height:1.15;white-space:nowrap}
.short-sum {display:none}
@container (max-width:139px) {
 .large-sum .full-sum {display:none}.large-sum .short-sum {display:inline}
}
@container (max-width:95px) {
 .medium-sum .full-sum {display:none}.medium-sum .short-sum {display:inline}
}
.chart-panel {padding:22px 24px 0;overflow:hidden}
.chart-heading {align-items:start}
.chart-heading p {font-size:.87rem;margin-top:5px}
.chart-switch {background:#f1f3ee;padding:3px;border-radius:8px;gap:0}
.chart-switch button {padding:6px 8px;font-size:.79rem;gap:5px;border-radius:5px}
.chart-switch i {width:14px;height:14px}
.repayment-toolbar {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;margin:15px 0 10px}
.repayment-units {display:inline-flex;padding:2px;border-radius:7px;background:#edf2eb;gap:2px}
.repayment-units button {border-radius:5px;padding:7px 10px;color:var(--muted);font-size:.82rem;font-weight:550}
.repayment-units button[aria-pressed="true"] {background:var(--green);color:white}
.repayment-years {align-items:center}
.repayment-years select {height:30px;max-width:100%;border:1px solid var(--line);border-radius:6px;padding:0 6px;background:white;font-size:.81rem}
.repayment-years i {width:13px;height:13px;display:block}
.legend {display:flex;align-items:center;gap:18px;margin:18px 0 0;color:#4f6156;font-size:.82rem}
.legend span {display:flex;align-items:center;gap:7px}
.legend b {display:block;width:10px;height:10px;border-radius:3px}
.debt-key {background:var(--chart-green)} .interest-key {background:var(--chart-peach)}
.bar-chart {position:relative;width:100%;padding:10px 2px 0;min-height:192px;isolation:isolate}
.chart-axis {position:relative;display:block;width:100%;height:100%;overflow:visible}
.chart-axis text {font:12px Inter,"Segoe UI",Arial,sans-serif;fill:#647368}
.bar-target {cursor:pointer;outline:0}
.bar-target .bar-outline {opacity:0}
.bar-target:hover .bar-outline,.bar-target:focus-visible .bar-outline {opacity:1}
.bar-target:focus-visible {outline:0}
.bar-target[aria-pressed="true"] .bar-marker {opacity:1}
.chart-detail {border-top:1px solid #e6eae2;display:flex;flex-wrap:wrap;align-items:baseline;gap:7px 17px;padding:12px 0 14px;color:#546459;font-size:.83rem}
.chart-detail strong {color:#324a3b;font-weight:600;white-space:nowrap}
.chart-detail>strong {background:#edf2e8;border-radius:4px;padding:3px 7px;font-size:.8rem}
.chart-detail span {white-space:nowrap}
.chart-detail b {font-weight:550;color:var(--ink)}
.schedule-controls {display:flex;gap:6px}
.schedule-controls button {width:32px;height:30px;display:grid;place-items:center;border:1px solid var(--line);border-radius:6px}
.schedule-controls button:disabled {opacity:.35;cursor:default}
.schedule-scroll {overflow:auto}
.schedule-long {max-height:min(65vh,29rem)}
.schedule-long thead th {position:sticky;top:0;z-index:1}
.schedule {width:100%;border-collapse:collapse;font-size:.84rem;white-space:nowrap}
.schedule th,.schedule td {text-align:right;padding:8px 6px;border-bottom:1px solid #e9ede7}
.schedule th {font-size:.78rem;color:#5a685f;font-weight:550;background:#f8faf6}
.schedule th:first-child,.schedule td:first-child {text-align:left}
.schedule tr:last-child td {border:0}
#table-content {padding-bottom:12px}
.page-footer {border-top:1px solid var(--line);margin-top:32px;padding:16px 0 22px;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:.79rem;color:#627167}
.page-footer span span {margin:0 5px;color:#96a297}
.page-footer a:hover {text-decoration:underline;text-underline-offset:3px}
.skip {position:fixed;top:-100px;left:8px;background:white;padding:10px;z-index:20}
.skip:focus {top:8px}
@media(min-width:1500px) {.input-panel {padding:29px}.fields {gap:22px}.summary-main {min-height:185px}.chart-panel {padding:26px 28px 0}}
@media(max-width:1100px) {
 .mast-inner {gap:25px}.main-nav a {padding:9px 10px}.overview-grid {gap:16px;grid-template-columns:minmax(272px,.48fr) minmax(0,1fr)}
 .input-panel {padding:19px}.chart-panel {padding:19px 18px 0}.summary-copy {padding-left:22px}.summary-stats {margin-inline:21px}
 .chart-switch span {display:none}.chart-switch button {padding:7px}.intro p {max-width:560px}
}
@media(min-width:821px) and (max-width:980px) {
 .main-nav .nav-long {display:none}.main-nav .nav-short {display:inline}
}
@media(max-width:820px) {
 .wrap {width:calc(100% - 32px)}.mast-inner {flex-wrap:wrap;gap:0;min-height:0;padding-top:12px}.brand {min-height:44px;gap:6px}.brand img {width:38px;height:38px}.brand-name {font-size:1.5rem}
 .main-nav {order:2;width:100%;margin-top:9px;overflow-x:auto;gap:3px;padding-bottom:8px}
 .main-nav a {font-size:.87rem;min-height:34px;padding:7px 11px}.main-nav i {width:15px;height:15px}
 .intro {padding:24px 0 19px;align-items:flex-start}.intro h1 {font-size:2rem}.intro p {font-size:.92rem}
 .product-switch button {padding:7px 9px}.overview-grid {grid-template-columns:minmax(246px,.52fr) minmax(0,1fr);gap:12px}
 .input-panel {padding:16px}.panel h2 {font-size:1.15rem}.summary-stats {margin-inline:14px}.summary-stats div {padding-inline:7px}
 .summary-stats dt {font-size:.73rem}.summary-stats dd {font-size:.99rem}.hero-art {width:45%}.summary-main {min-height:140px}
 .chart-detail {gap:6px 10px}.fields {gap:17px}.date-row {flex-wrap:wrap}.chart-heading {gap:5px}
}
@media(max-width:650px) {
 .intro {flex-direction:column;gap:14px;padding-top:21px}.intro h1 {font-size:2.05rem}.intro p {margin-top:6px}.product-switch {align-self:stretch}
 .product-switch button {flex:1;padding:8px}.main-nav {scrollbar-width:none}.main-nav::-webkit-scrollbar {display:none}
 .main-nav {display:grid;grid-template-columns:1.15fr 1fr 1fr;overflow:visible}.main-nav a {font-size:.84rem;padding:7px 3px;gap:5px;justify-content:center}.main-nav a i {width:14px;height:14px}
 .nav-short {display:inline}.nav-long {display:none}
 .overview-grid {display:flex;flex-direction:column;gap:14px}.controls-column,.results-column {display:contents}
 .overview-grid>* >* {width:100%}.summary {order:0}.input-panel {order:1}.chart-panel {order:2}.daily-peek {order:3}
 .input-panel {padding:17px 18px}.panel-heading {margin-bottom:15px}.panel h2 {font-size:1.22rem}
 .fields {grid-template-columns:1fr 1fr;gap:16px 14px}.field-label {font-size:.84rem}.number-box {height:39px;padding:0 9px}
 .field:nth-child(-n+2) {grid-column:span 2}.field[data-key="term"]:nth-child(2) {grid-column:auto}
 .date-row {margin-top:16px;padding-top:12px}.summary-copy {padding:18px}.summary-main {min-height:121px}
 .hero-art {width:47%}.summary-copy h2 {font-size:.89rem}.payment-type {font-size:.77rem;margin-top:6px}
 .payment-figure {font-size:2.55rem}.summary-stats {margin-inline:17px;padding:11px 0 14px}
 .payment-figure.long-amount {font-size:clamp(1.75rem,7.15vw,2.4rem)}
 .summary-stats dt {font-size:.72rem}.summary-stats dd {font-size:clamp(.85rem,3.5vw,1.15rem)}
 .summary-stats dt {min-height:2.6em}
 .chart-panel {padding:18px 14px 0}.chart-switch span {display:inline}.chart-switch button {padding:5px;font-size:.72rem}
 .chart-switch i {width:12px;height:12px}.chart-heading p {font-size:.81rem}.legend {margin-top:14px}.bar-chart {min-height:168px}
 .chart-detail {font-size:.8rem}.page-footer {margin-top:23px}
}
@media(max-width:380px) {
 .wrap {width:calc(100% - 20px)}.main-nav a {font-size:.78rem;padding:7px 5px}
 .intro h1 {font-size:1.85rem}.chart-switch span {display:none}.summary-stats {margin-inline:12px}.summary-stats div {padding-inline:5px}
 .product-switch button {padding:6px}.summary-stats dt {font-size:.67rem}
}
