/* CalcAvenue V2 - Apple-clean, 100% static, no external dependencies, system fonts only */
* { box-sizing: border-box; }
:root { --text: #1d1d1f; --muted: #86868b; --line: #d2d2d7; --bg: #ffffff; --grey: #f5f5f7; --accent: #0071e3; --accent-dark: #0060c8; --error: #d70015; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; color: var(--text); background: var(--bg); font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.85); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
.nav { max-width: 980px; margin: 0 auto; padding: 0 20px; min-height: 48px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links > a { color: var(--text); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 999px; }
.nav-links > a:hover { background: var(--grey); }
.lang-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-left: 6px; }
.lang-toggle a, .lang-toggle span { padding: 5px 11px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); }
.lang-toggle span.active { background: var(--text); color: #fff; }
main { margin: 0 auto; padding: 40px 20px 64px; }
main.hub { max-width: 980px; }
main.tool { max-width: 720px; }
.hero { margin-bottom: 32px; }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin: 8px 0 14px; }
h2 { font-size: 24px; letter-spacing: -0.01em; font-weight: 700; margin: 36px 0 10px; }
h3 { font-size: 19px; margin: 24px 0 6px; }
p.lead { font-size: 21px; line-height: 1.4; color: #424245; }
section.grey { background: var(--grey); border-radius: 18px; padding: 28px; margin: 32px 0; }
article h2 { margin-top: 32px; }
.card { background: var(--grey); border-radius: 18px; padding: 28px; margin: 24px 0; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.tool-card { display: block; background: var(--grey); border-radius: 18px; padding: 24px; text-decoration: none; color: var(--text); }
.tool-card:hover { background: #ececee; }
.tool-name { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.tool-desc { display: block; color: var(--muted); font-size: 15px; line-height: 1.45; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input, select { width: 100%; padding: 14px 16px; font-size: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); }
input[type="radio"] { width: auto; }
input[type="number"] { appearance: textfield; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
button, .btn { background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 13px 24px; font-size: 17px; font-weight: 600; cursor: pointer; margin-top: 18px; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: var(--accent-dark); }
button.secondary { background: var(--grey); color: var(--text); }
.result { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; margin: 22px 0; display: none; }
.result.show { display: block; }
.result .big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; }
.result p { margin: 6px 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.pills button { margin: 0; padding: 10px 18px; font-size: 15px; background: var(--grey); color: var(--text); }
.pills button.active { background: var(--accent); color: #fff; }
table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.note, .muted { color: var(--muted); font-size: 15px; }
.error { color: var(--error); font-weight: 600; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-bottom: 1px solid var(--line); padding: 20px 0; }
.post-list li:first-child { border-top: 1px solid var(--line); }
.post-list a { display: block; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.post-list a:hover { color: var(--accent); }
.post-list span { display: block; color: var(--muted); font-size: 15px; margin-top: 4px; }
.tool-list { list-style: none; padding: 0; margin: 0; }
.tool-list li { border-bottom: 1px solid var(--line); }
.tool-list a { display: block; padding: 16px 4px; text-decoration: none; font-weight: 600; color: var(--text); }
.tool-list a span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }
.tool-list a:hover { color: var(--accent); }
footer { max-width: 980px; margin: 0 auto; padding: 24px 20px 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
.course-row, .note-row { display: grid; grid-template-columns: 1fr 110px 110px 44px; gap: 10px; align-items: end; margin-bottom: 10px; }
.course-row label, .note-row label { margin-top: 0; }
.remove-btn { background: #fff; color: var(--error); border: 1px solid #f5c6c6; padding: 11px 0; font-size: 16px; margin: 0; }
@media (max-width: 640px) {
  h1 { font-size: 32px; } p.lead { font-size: 19px; }
  .tool-grid, .row, .row3 { grid-template-columns: 1fr; }
  .course-row, .note-row { grid-template-columns: 1fr; }
  .card, section.grey { padding: 20px; }
  main { padding-top: 28px; }
}
