@font-face { font-family: "Golos Text"; src: url("/fonts/golos-text-normal-cyrillic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("/fonts/golos-text-normal-cyrillic.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("/fonts/pt-serif-normal-cyrillic.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root { color-scheme: light; --paper: #fffaf0; --paper-deep: #f5eddc; --ink: #303d33; --muted: #6e7468; --line: #d9cfb9; --green: #365b3e; --green-soft: #e6edd9; --copper: #9a6541; --danger: #9e4e36; }
* { box-sizing: border-box; }
html { background: #ebe7dc; }
body { margin: 0; min-width: 320px; color: var(--ink); background: radial-gradient(circle at 50% -20%, #fffdf8 0, #ebe7dc 55%); font-family: "Golos Text", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(54, 91, 62, .38); outline-offset: 3px; }
.site-shell { width: min(100% - 32px, 1060px); margin: 32px auto; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 20px 48px rgba(54, 61, 46, .12); }
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 28px/1 "PT Serif", serif; }
.brand img { width: 29px; height: 29px; }
.head-nav { display: flex; gap: 18px; align-items: center; font-size: 14px; color: var(--muted); }
.head-nav a { text-decoration: none; }
.head-nav a[aria-current="page"] { color: var(--green); font-weight: 700; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); min-height: 640px; }
.tool-copy { padding: clamp(34px, 6vw, 78px); border-right: 1px solid var(--line); }
.breadcrumb { margin: 0 0 38px; color: var(--muted); font-size: 14px; }
h1, h2 { font-family: "PT Serif", Georgia, serif; font-weight: 400; line-height: 1.1; letter-spacing: -.025em; }
h1 { max-width: 12ch; margin: 0 0 20px; font-size: clamp(42px, 6vw, 68px); }
h2 { margin: 54px 0 14px; font-size: 28px; }
.intro { max-width: 53ch; margin: 0; color: #4e584d; font-size: 18px; }
.tool-copy ul { max-width: 52ch; padding-left: 20px; }
.tool-copy li + li { margin-top: 8px; }
.tool-copy strong { font-weight: 700; }
.tool-form { align-self: start; margin: 32px; padding: 28px; border: 1px solid var(--line); background: #fffdf8; box-shadow: 0 10px 26px rgba(54, 61, 46, .08); }
.tool-form h2 { margin: 0 0 6px; font: 500 24px/1.25 "Golos Text", sans-serif; letter-spacing: -.015em; }
.form-note { margin: 0 0 25px; color: var(--muted); font-size: 14px; }
.field { display: block; margin-top: 20px; }
.field span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; }
input { width: 100%; min-height: 48px; border: 1px solid #b8ae9a; border-radius: 7px; padding: 11px 13px; color: var(--ink); background: #fffefb; font: inherit; font-variant-numeric: tabular-nums; }
input::placeholder { color: #898c83; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
button { width: 100%; min-height: 50px; margin-top: 28px; border: 0; border-radius: 7px; padding: 12px 16px; color: #fffdf8; background: var(--green); cursor: pointer; font: 700 16px/1.2 "Golos Text", sans-serif; transition: background-color 160ms ease, transform 160ms ease; }
button:hover { background: #294a31; transform: translateY(-1px); }
button:active { transform: translateY(0); }
.result { min-height: 112px; margin-top: 22px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.result[hidden] { display: none; }
.result[data-state="ready"] { animation: result-appear 220ms cubic-bezier(.16, 1, .3, 1) both; }
.result-label { margin: 0; color: var(--muted); font-size: 14px; }
.result-value { margin: 4px 0 5px; color: var(--green); font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-value.is-deficit { color: var(--danger); }
.result-detail { margin: 0; color: #4e584d; font-size: 14px; }
.disclosure { margin-top: 18px; color: var(--muted); font-size: 13px; }
.disclosure summary { cursor: pointer; color: var(--ink); }
.disclosure p { margin: 8px 0 0; }
.page-foot { display: flex; justify-content: space-between; gap: 16px; padding: 16px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.page-foot a { color: var(--green); }
@keyframes result-appear { from { opacity: .35; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
@media (max-width: 760px) { .site-shell { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; box-shadow: none; } .site-head { padding: 15px 20px; } .brand { font-size: 24px; } .head-nav { gap: 13px; font-size: 13px; } .tool-layout { display: flex; flex-direction: column; } .tool-copy { padding: 38px 24px 28px; border-right: 0; } .breadcrumb { margin-bottom: 24px; } h1 { max-width: 14ch; font-size: 45px; } .intro { font-size: 17px; } .tool-form { margin: 0; padding: 30px 24px 34px; border-width: 1px 0 0; box-shadow: none; } .page-foot { display: block; padding: 18px 24px; } .page-foot p { margin: 0 0 7px; } }
@media (max-width: 390px) { .site-head { align-items: flex-start; } .head-nav { flex-wrap: wrap; justify-content: flex-end; } .form-grid { grid-template-columns: 1fr; gap: 0; } }


.guide-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(280px, .78fr); }
.guide-copy { padding: clamp(34px, 6vw, 78px); border-right: 1px solid var(--line); }
.guide-copy h1 { max-width: 11ch; }
.guide-copy section { max-width: 58ch; margin-top: 46px; }
.guide-copy h2 { margin: 0 0 12px; font-size: 30px; }
.guide-copy p { margin: 0; color: #4e584d; }
.guide-copy strong { color: var(--ink); }
.guide-copy ol { margin: 0; padding-left: 22px; }
.guide-copy li + li { margin-top: 9px; }
.guide-next { border-top: 1px solid var(--line); padding-top: 26px; }
.guide-aside { align-self: start; margin: 32px; padding: 28px; background: var(--paper-deep); border: 1px solid var(--line); }
.aside-eyebrow { margin: 0 0 18px; color: var(--copper); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.guide-aside h2 { margin: 0 0 12px; font: 500 28px/1.1 "PT Serif", Georgia, serif; }
.guide-aside > p:not(.aside-eyebrow) { margin: 0; color: #4e584d; }
.guide-action { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 26px; border-radius: 7px; color: #fffdf8; background: var(--green); font-weight: 700; text-decoration: none; transition: background-color 160ms ease, transform 160ms ease; }
.guide-action:hover { color: #fffdf8; background: #294a31; transform: translateY(-1px); }
.guide-action:active { transform: translateY(0); }
.guide-links { margin-top: 22px; border-top: 1px solid var(--line); }
.guide-links a { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.guide-links a:hover span { color: var(--green); }
.guide-links span { font-weight: 700; }
.guide-links small { color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) { .guide-layout { display: flex; flex-direction: column; } .guide-copy { padding: 38px 24px; border-right: 0; } .guide-copy section { margin-top: 34px; } .guide-copy h2 { font-size: 27px; } .guide-aside { margin: 0; padding: 30px 24px 34px; border-width: 1px 0 0; } }
