.pt-budget-page .page-intro {padding-block:1.25rem .75rem;}
.pt-budget-page .page-intro h1 {font-size:clamp(1.9rem,3vw,2.65rem);line-height:1.15;}
.pt-budget-page .page-intro .shell.prose,.pt-budget-page .content-section .shell.prose {padding:0;}
.pt-budget-page .content-section {padding-top:0;}
.pt-budget-page .pt-budget__intro p:first-child {margin-top:0;}
.pt-budget-page .pt-budget form.affiliate-slot {padding:0;margin-top:1.25rem;background:transparent;border-radius:0;}
.pt-budget { color:#133c37; }
.pt-budget__intro {max-width:70ch;}
.pt-budget__people {display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:1.8rem 0;}
.pt-budget input {font:inherit;color:#133c37;background:#fff;border:1px solid #91aaa4;border-radius:8px;padding:.7rem;min-height:44px;width:100%;font-variant-numeric:tabular-nums;caret-color:#b74332;}
.pt-budget input:focus-visible,.pt-budget button:focus-visible {outline:3px solid #b74332;outline-offset:3px;}
.pt-budget input::placeholder {color:#486660;opacity:1;}
.pt-budget__people input {max-width:7rem;}
.pt-budget__options {display:grid;grid-template-columns:1fr 1fr;gap:2rem;}
.pt-budget fieldset {min-width:0;border:1px solid #bacbc7;border-radius:12px;padding:1.5rem;margin:0;}
.pt-budget legend {font-size:1.45rem;font-weight:700;padding:0 .4rem;}
.pt-budget label {display:block;margin:.8rem 0 .35rem;line-height:1.4;}
.pt-budget small {display:block;margin:.5rem 0 1rem;color:#344740;line-height:1.5;}
.pt-budget__actions {display:flex;gap:1rem;flex-wrap:wrap;margin:1.5rem 0;}
.pt-budget button {font:inherit;min-height:44px;padding:.8rem 1.1rem;border-radius:8px;cursor:pointer;border:1px solid #0d5c52;background:#0d5c52;color:#fff;}
.pt-budget button:hover {background:#093e38;}
.pt-budget button[type=reset] {color:#0d5c52;background:transparent;}
.pt-budget button[type=reset]:hover {background:#e2efea;}
.pt-budget__result {background:#e2efea;padding:1.5rem;border-radius:12px;margin:2rem 0;scroll-margin-top:1rem;}
.pt-budget__result:focus {outline:2px solid #0d5c52;outline-offset:3px;}
.pt-budget__totals {display:grid;grid-template-columns:1fr 1fr;gap:1.5rem;font-variant-numeric:tabular-nums;}
.pt-budget__totals strong {display:block;font-size:1.6rem;line-height:1.3;margin:.5rem 0;overflow-wrap:anywhere;}
.pt-budget__error {color:#8a271a;font-weight:600;}
.pt-budget ::selection {background:#c8e1d8;color:#133c37;}
.pt-budget [hidden] {display:none;}
@media(max-width:600px) {.pt-budget__options,.pt-budget__totals {grid-template-columns:1fr;gap:1.5rem;}.pt-budget fieldset {padding:.75rem;}}
@media print {.site-header,.site-footer,.pt-services-nav,.pt-budget__actions {display:none;}.pt-budget__options {display:block;}.pt-budget fieldset {break-inside:avoid;margin:1rem 0;}}

.pt-budget__sharing {margin:1rem 0 1.5rem;}
.pt-budget__sharing input {width:100%;max-width:100%;font:inherit;padding:.7rem;border:1px solid #91aaa4;border-radius:8px;}
.pt-budget details {margin:1rem 0 1.5rem;}
.pt-budget summary {padding:.7rem 0;cursor:pointer;font-weight:600;min-height:44px;}
.pt-budget__ledger {margin-top:1.5rem;}
.pt-budget__ledger table {width:100%;table-layout:fixed;border-collapse:collapse;font-size:1rem;font-variant-numeric:tabular-nums;}
.pt-budget__ledger th,.pt-budget__ledger td {padding:.6rem .35rem;border-bottom:1px solid #bacbc7;vertical-align:top;text-align:left;overflow-wrap:anywhere;}
.pt-budget__ledger th:first-child {width:42%;}
.pt-budget__ledger caption {text-align:left;margin-bottom:.75rem;font-weight:600;}
.pt-budget__ledger summary {font-weight:400;}
.pt-budget button:focus-visible,.pt-budget summary:focus-visible {outline:2px solid #b74332;outline-offset:3px;}
@media print {
 .site-header,.site-footer,.pt2-header,.pt2-footer,.breadcrumbs,.pt-budget__sharing,.pt-budget__actions,.pt-budget__result button,.pt-budget details:not(.pt-budget__ledger),.pt-budget__result~h2,.pt-budget__result~p,.pt-budget__result~ul,.pt-budget__result~nav {display:none!important;}
 .pt-budget:has([data-budget-result]:not([hidden])) form {display:none!important;}
 .pt-budget__ledger>summary {display:none;}
 .pt-budget__ledger>div {display:block!important;}
 .pt-budget__ledger {content-visibility:visible;}
 .pt-budget__result {background:#fff;color:#133c37;padding:0;break-inside:avoid;}
 main,.shell.prose {max-width:none!important;}
}
@media screen and (max-width:600px) {
 .pt-budget__ledger caption {display:block;width:100%;}
 .pt-budget__ledger table,.pt-budget__ledger tbody,.pt-budget__ledger tr {display:block;width:100%;}
 .pt-budget__ledger thead {display:none;}
 .pt-budget__ledger tr {padding:.8rem 0;border-bottom:1px solid #bacbc7;}
 .pt-budget__ledger th,.pt-budget__ledger th:first-child {display:block;width:auto;padding:0 0 .4rem;border:0;overflow-wrap:normal;}
 .pt-budget__ledger td {display:block;width:auto;padding:.25rem 0;border:0;white-space:nowrap;overflow-wrap:normal;}
 .pt-budget__ledger td::before {display:block;font-size:1rem;line-height:1.4;white-space:normal;}
 .pt-budget__ledger td:nth-child(2)::before {content:'Вариант А';}
 .pt-budget__ledger td:nth-child(3)::before {content:'Вариант Б';}
}
