:root{--bg:#f6f7f9;--surface:#fff;--surface-2:#f0f2f5;--text:#16181d;--muted:#5d6573;--border:#e1e4ea;--accent:#2563eb;--accent-text:#fff;--accent-soft:#e8efff;--danger:#c62828;--danger-soft:#fdecec;--ok:#1b7f3b;--radius:12px;--shadow:0 1px 2px #0000000d, 0 2px 8px #0000000a;color-scheme:light}@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--bg:#111318;--surface:#1a1d24;--surface-2:#232733;--text:#e8eaef;--muted:#9aa3b2;--border:#2e3340;--accent:#6b9bff;--accent-text:#0b1020;--accent-soft:#1f2a44;--danger:#ff7a7a;--danger-soft:#3a1f22;--ok:#5fd38a;--shadow:none;color-scheme:dark}}:root[data-theme=dark]{--bg:#111318;--surface:#1a1d24;--surface-2:#232733;--text:#e8eaef;--muted:#9aa3b2;--border:#2e3340;--accent:#6b9bff;--accent-text:#0b1020;--accent-soft:#1f2a44;--danger:#ff7a7a;--danger-soft:#3a1f22;--ok:#5fd38a;--shadow:none;color-scheme:dark}*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{background:var(--bg);color:var(--text);margin:0;font:16px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}a{color:var(--accent)}h1,h2,h3{line-height:1.25}h1{margin:0 0 .25rem;font-size:clamp(1.5rem,4vw,2rem)}h2{margin:2rem 0 .75rem;font-size:1.25rem}h3{margin:1.25rem 0 .35rem;font-size:1.05rem}p{margin:0 0 .9rem}.muted{color:var(--muted)}.wrap{max-width:1120px;margin:0 auto;padding:0 16px}.site-header{background:var(--surface);border-bottom:1px solid var(--border)}.site-header .wrap{justify-content:space-between;align-items:center;gap:12px;height:56px;display:flex}.logo{color:var(--text);align-items:center;gap:8px;font-size:1.15rem;font-weight:700;text-decoration:none;display:flex}.logo img{width:28px;height:28px}.header-links{align-items:center;gap:8px;display:flex}.header-links a{color:var(--muted);padding:6px 8px;font-size:.95rem;text-decoration:none}.header-links a:hover{color:var(--text)}.theme-btn{border:1px solid var(--border);background:var(--surface-2);width:38px;height:38px;color:var(--text);cursor:pointer;border-radius:10px;font-size:1.05rem}.site-footer{border-top:1px solid var(--border);color:var(--muted);margin-top:48px;padding:24px 0 32px;font-size:.9rem}.site-footer nav{flex-wrap:wrap;gap:6px 16px;margin-bottom:10px;display:flex}.site-footer a{color:var(--muted)}.crumbs{color:var(--muted);margin:18px 0 10px;font-size:.875rem}.crumbs a{color:var(--muted)}.tool-grid{grid-template-columns:minmax(0,1fr);gap:24px;display:grid}@media (width>=960px){.tool-grid{grid-template-columns:minmax(0,1fr) 300px}}.lead{color:var(--muted);margin-bottom:18px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px}@media (width>=640px){.card{padding:24px}}.sidebar{flex-direction:column;gap:20px;display:flex}@media (width>=960px){.sidebar-inner{flex-direction:column;gap:20px;display:flex;position:sticky;top:16px}}.sidebar h2{margin:0 0 10px;font-size:1rem}.related{gap:6px;margin:0;padding:0;list-style:none;display:grid}.related a{background:var(--surface);border:1px solid var(--border);color:var(--text);border-radius:10px;align-items:center;gap:10px;padding:10px 12px;text-decoration:none;display:flex}.related a:hover{border-color:var(--accent)}.related .soon{color:var(--muted);margin-left:auto;font-size:.8rem}.content{margin-top:8px}.content ul,.content ol{padding-left:1.25rem}.faq details{background:var(--surface);border:1px solid var(--border);border-radius:10px;margin-bottom:8px;padding:12px 16px}.faq summary{cursor:pointer;font-weight:600}.faq details p{margin:10px 0 0}.ad-slot{border:1px dashed var(--border);min-height:100px;color:var(--muted);background:repeating-linear-gradient(45deg, transparent 0 10px, var(--surface-2) 10px 20px);border-radius:10px;justify-content:center;align-items:center;margin:20px 0;font-size:.8rem;display:flex}.ad-slot[data-slot^=sidebar]{min-height:250px;margin:0}.field{flex-direction:column;gap:6px;margin-bottom:14px;display:flex}.field label{font-size:.92rem;font-weight:600}.field .hint{color:var(--muted);font-size:.82rem}.input,select.input,textarea.input{width:100%;font:inherit;color:var(--text);background:var(--surface-2);border:1px solid var(--border);border-radius:10px;min-height:46px;padding:11px 12px}.input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:#0000}.input-unit{position:relative}.input-unit .input{padding-right:64px}.input-unit span{color:var(--muted);pointer-events:none;font-size:.9rem;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.row-2{grid-template-columns:1fr;gap:0 16px;display:grid}@media (width>=560px){.row-2{grid-template-columns:1fr 1fr}}.btn{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--surface-2);min-height:44px;color:var(--text);border-radius:10px;justify-content:center;align-items:center;gap:6px;padding:10px 16px;font-weight:600;display:inline-flex}.btn:hover{border-color:var(--accent)}.btn-primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}.seg{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;flex-wrap:wrap;gap:4px;margin-bottom:16px;padding:4px;display:inline-flex}.seg button{font:inherit;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;min-height:40px;padding:8px 14px;font-weight:600}.seg button[aria-pressed=true]{background:var(--surface);color:var(--text);box-shadow:var(--shadow);outline:1px solid var(--border)}.result-big{background:var(--accent-soft);border-radius:12px;margin:6px 0 14px;padding:16px}.result-big .label{color:var(--muted);font-size:.88rem}.result-big .value{font-variant-numeric:tabular-nums;font-size:clamp(1.6rem,6vw,2.2rem);font-weight:750;line-height:1.2}.table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.table td,.table th{border-bottom:1px solid var(--border);text-align:left;padding:9px 4px}.table td:last-child,.table th:last-child{text-align:right;white-space:nowrap}.table tr.total td{border-bottom:0;font-weight:700}.note{color:var(--muted);font-size:.85rem}.badge{background:var(--accent-soft);color:var(--accent);border-radius:99px;padding:3px 9px;font-size:.78rem;font-weight:600;display:inline-block}.sr-only{clip:rect(0 0 0 0);border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}
