/* Calcoli Italia · visual system, October 2026.
   Kept separate from calculation modules and the original reviewed styles. */
:root {
  --paper: #f7f8f5;
  --white: #ffffff;
  --ink: #102d42;
  --muted: #526675;
  --line: #dce4e7;
  --green: #0b6b61;
  --green-light: #e6f3ed;
  --accent: #d9ef83;
  --danger: #9e2926;
  --radius: 18px;
  --shadow: 0 4px 6px #102d4202, 0 14px 36px #102d4206;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
html { scroll-padding-top: 24px; }
body { font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { color: var(--ink); background: var(--accent); }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: #064e47; }
button, input, select, textarea, a { -webkit-tap-highlight-color: #0b6b611a; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h1 { line-height: 1.08; }
h2 { line-height: 1.22; }
h3 { line-height: 1.35; }
.wrap { width: 100%; max-width: 1264px; padding-inline: 40px; }
.eyebrow { color: var(--green); font-size: .7rem; font-weight: 750; letter-spacing: .12em; line-height: 1.55; }
.skip { border-radius: 8px; color: var(--ink); box-shadow: var(--shadow); }
.preview { color: #526049; background: #edf1e6; padding: 5px 16px; font-size: .67rem; letter-spacing: .025em; border-bottom: 1px solid #dce4d2; }

/* Identity and navigation */
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.nav { min-height: 94px; gap: 32px; }
.brand { gap: 11px; color: var(--ink); flex-shrink: 0; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand-symbol { display: block; width: 40px; height: 40px; flex: 0 0 40px; }
.brand-copy { display: block; }
.brand-name { display: block; font-size: 1.18rem; font-weight: 760; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: .67rem; line-height: 1.5; font-weight: 500; letter-spacing: .025em; margin-top: 3px; }
.brand-mark { background: var(--green); border-radius: 11px; width: 40px; height: 40px; }
.navlinks { gap: 30px; font-size: .82rem; font-weight: 600; }
.navlinks > a { color: #3a5262; }
.navlinks > a:hover { color: var(--green); }
.navlink-pill { border-color: var(--line); border-radius: 9px; padding: 11px 17px; background: var(--paper); }
.navlink-pill:hover { border-color: #a6beb7; background: var(--green-light); }

/* Landing page: useful introduction, followed by the searchable directory. */
.hero { padding: 68px 0 60px; border-bottom: 1px solid var(--line); background: #f4f7f4; }
.hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 72px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 6px 11px; border: 1px solid #cbded5; border-radius: 6px; background: #e9f3ec; color: #175c51; font-size: .68rem; font-weight: 750; letter-spacing: .095em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.hero h1 { font-size: clamp(2.65rem, 4.2vw, 3.65rem); max-width: 700px; margin: 22px 0 24px; letter-spacing: -.047em; }
.hero h1 span { color: var(--green); }
.hero .intro { color: #4d6573; max-width: 580px; font-size: 1.02rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.hero-button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; padding: 13px 19px; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: #fff; font-size: .85rem; font-weight: 650; text-decoration: none; min-height: 50px; }
.hero-button:hover { color: #fff; background: #08574f; border-color: #08574f; }
.hero-actions > a:not(.hero-button) { font-size: .8rem; font-weight: 600; }
.hero-note { gap: 10px 20px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: .72rem; }
.hero-note span::before { color: var(--green); margin-right: 6px; }
.hero-panel { display: block; background: var(--ink); color: #fff; padding: 30px; border-radius: 19px; transform: none; box-shadow: 0 18px 36px #102d4214; border: 1px solid #102d42; overflow: hidden; }
.hero-panel .eyebrow { color: #c6e5da; font-size: .63rem; letter-spacing: .13em; }
.hero-panel h2 { color: #fff; font-size: 1.38rem; font-weight: 650; letter-spacing: -.025em; margin: 18px 0 25px; max-width: 270px; line-height: 1.3; }
.hero-panel .sample-row { margin: 13px 0; color: #d5e3e7; font-size: .83rem; gap: 20px; }
.hero-panel .sample-row strong { color: #fff; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero-panel hr { border-top: 1px dashed #ffffff40; margin: 26px 0 22px; }
.hero-panel .small { color: #c8dadd; font-size: .75rem; line-height: 1.7; }
.hero-panel .num { color: var(--accent); font-size: clamp(2.6rem, 3.8vw, 3.2rem); font-weight: 650; letter-spacing: -.05em; line-height: 1.25; margin: 3px 0 13px; }
.hero-panel .sample-caption { border-top: 1px solid #ffffff26; margin-top: 20px; padding-top: 16px; font-size: .69rem; color: #c8dadd; }
.hero-metrics { display: flex; flex-wrap: wrap; gap: 28px; border-top: 1px solid #d7e2db; padding-top: 23px; margin-top: 29px; }
.hero-metrics > * { min-width: 0; }
.hero-metrics strong { display: block; color: var(--ink); font-size: 1.25rem; line-height: 1.25; letter-spacing: -.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-metrics span { display: block; color: var(--muted); font-size: .7rem; margin-top: 4px; }

/* Directory, search and filters */
.catalog { padding: 48px 0 68px; }
.catalog.wrap { padding-inline: 40px; }
.section-top { gap: 32px; align-items: end; margin-bottom: 25px; }
.section-top .eyebrow { margin-bottom: 8px; }
.section-top h2 { font-size: clamp(1.65rem, 2.5vw, 2rem); letter-spacing: -.035em; max-width: 650px; }
.section-top p { margin-top: 10px; font-size: .81rem; }
.section-top p.eyebrow { margin-top: 0; font-size: .68rem; }
.search { width: 305px; }
.search input { padding: 14px 16px 14px 44px; border-radius: 9px; font-size: .82rem; min-height: 49px; border-color: #78929a; box-shadow: 0 2px 5px #102d4203; }
.search svg { width: 17px; height: 17px; top: 17px; left: 16px; color: #627b89; }
.search input::placeholder { color: #627785; opacity: 1; }
.filter-list { gap: 9px; margin-bottom: 27px; }
.filter { border-radius: 7px; min-height: 40px; padding: 9px 13px; border-color: #d6e0e2; background: #fff; color: #4a6371; font-size: .73rem; font-weight: 550; line-height: 1.5; text-decoration: none; }
.filter:hover { background: #edf4f0; color: #16594f; border-color: #abc8bc; }
.filter[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 2px 4px #0b6b6112; }
.catalog-grid { gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-card { min-height: 247px; padding: 26px; border: 1px solid #dce4e7; border-radius: 13px; color: var(--ink); box-shadow: 0 2px 4px #102d4202; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.tool-card:hover { color: var(--ink); border-color: #94bdb0; box-shadow: 0 7px 20px #102d4208; transform: translateY(-2px); }
.card-top { display: flex; align-items: center; gap: 11px; margin-bottom: 21px; width: 100%; min-height: 35px; }
.category-icon { display: inline-grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; padding: 8px; border: 1px solid #d9e9e1; border-radius: 9px; background: #eef6f1; color: var(--green); }
svg.category-icon { display: block; }
.category-icon svg { display: block; width: 19px; height: 19px; }
.tool-card .eyebrow { font-size: .6rem; line-height: 1.45; letter-spacing: .065em; margin-bottom: 17px; color: #436f67; }
.tool-card .card-top .eyebrow { margin: 0; }
.tool-card h3 { color: var(--ink); font-size: 1.12rem; line-height: 1.35; font-weight: 680; letter-spacing: -.022em; margin-bottom: 12px; text-wrap: pretty; }
.tool-card p { color: #566a78; font-size: .81rem; line-height: 1.75; }
.tool-card .card-link { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 23px; border-top: 1px solid #edf1f2; padding-top: 15px; color: var(--green); font-size: .73rem; font-weight: 650; }
.tool-card .card-link::after { content: "→"; display: inline-grid; place-items: center; width: 23px; height: 23px; border: 1px solid #deebe5; border-radius: 50%; margin: 0; background: #f7faf8; font-size: .9rem; }
.tool-card:hover .card-link::after { background: var(--green-light); border-color: #b9d3c7; }
.empty { border: 1px dashed #beced0; border-radius: 12px; padding: 28px; background: #fff; font-size: .9rem; }
.category-navigation { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 0; }
.category-navigation a { border: 1px solid #cfded7; border-radius: 7px; padding: 9px 13px; color: #245e54; background: #fff; text-decoration: none; font-size: .75rem; line-height: 1.5; }
.category-navigation a:hover { background: var(--green-light); border-color: #91bca9; }
.home-help { max-width: 1184px; margin: 0 auto 66px; padding: 38px 40px; border: 1px solid #d8e5dd; border-radius: 16px; background: #edf4ef; }
.home-help h2 { font-size: 1.8rem; margin-bottom: 20px; }
.home-help h3 { font-size: 1.05rem; margin: 25px 0 12px; }
.home-help p { max-width: 900px; color: #4e6772; font-size: .91rem; line-height: 1.85; }
.home-help .filter-list { margin: 26px 0 0; }

/* Calculator work area. The form remains the first interactive component. */
.breadcrumb { font-size: .72rem; gap: 8px; line-height: 1.7; padding-top: 26px; color: #607683; }
.breadcrumb a { color: #587180; }
.breadcrumb a:hover { color: var(--green); text-decoration: underline; }
.breadcrumb > span[aria-hidden="true"] { color: #95a7ae; }
.tool-hero { padding: 34px 0 27px; }
.tool-hero .eyebrow { font-size: .66rem; letter-spacing: .11em; }
.category-label { display: flex; align-items: center; gap: 10px; }
.tool-hero h1 { font-size: clamp(2.05rem, 3.8vw, 3rem); max-width: 960px; line-height: 1.12; letter-spacing: -.04em; margin: 13px 0 19px; }
.tool-hero p { color: #526a78; font-size: .96rem; line-height: 1.8; max-width: 850px; }
.tool-hero p.eyebrow { color: var(--green); font-size: .66rem; }
.page-jumps { gap: 9px; margin: 0 0 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.page-jumps a { padding: 7px 12px; border-radius: 6px; border-color: #d6e1e3; font-size: .74rem; color: #476270; background: #fff; }
.page-jumps a:first-child { color: #12594e; background: #e9f3ed; border-color: #caddd2; font-weight: 650; }
.page-jumps a:hover { color: var(--green); background: #eef6f0; border-color: #a4c6b6; }
#calcolatore, #guida, #metodo-di-calcolo, #domande-frequenti, #fonti { scroll-margin-top: 24px; }
.workspace { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 25px; align-items: start; }
.panel { background: #fff; border: 1px solid #d6e1e5; border-radius: 16px; box-shadow: var(--shadow); }
.panel-body { padding: 30px; }
.panel-heading { margin-bottom: 26px; gap: 12px; padding-bottom: 21px; border-bottom: 1px solid #e5ecee; }
.panel-heading h2 { font-size: 1.13rem; font-weight: 700; letter-spacing: -.02em; }
.step { width: 31px; height: 31px; border: 1px solid #d3e7dd; background: #e9f4ee; color: #276959; border-radius: 9px; font-size: .69rem; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 19px; }
.field label, .field legend { color: #29485b; font-size: .8rem; font-weight: 650; line-height: 1.5; margin-bottom: 8px; }
.field input:not([type="checkbox"]), .field select, .field textarea { min-width: 0; width: 100%; color: var(--ink); background: #fff; border: 1px solid #78929a; border-radius: 8px; padding: 12px 13px; font-size: .94rem; min-height: 49px; line-height: 1.45; font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px #102d4203; }
.field select { padding-right: 28px; }
.field textarea { min-height: 112px; }
.field input:hover, .field select:hover, .field textarea:hover, .search input:hover { border-color: #54777b; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus { outline: 2px solid var(--green); outline-offset: 2px; border-color: var(--green); box-shadow: 0 0 0 4px #0b6b6108; }
.field input::placeholder, .field textarea::placeholder { color: #627785; opacity: 1; }
.field .hint { color: #5c7180; font-size: .73rem; line-height: 1.65; margin-top: 8px; overflow-wrap: break-word; }
.input-wrap:has(.suffix) input { padding-right: 58px; }
.suffix { color: #5f7784; top: 13px; right: 13px; font-size: .82rem; }
.check-label { padding: 12px 0; align-items: flex-start; line-height: 1.6 !important; }
.check-label input { width: 18px; height: 18px; flex: 0 0 18px; margin: 3px 0 0; accent-color: var(--green); }
.form-actions { gap: 13px; margin-top: 28px; }
.primary { background: var(--green); border-color: var(--green); border-radius: 8px; padding: 13px 20px; min-height: 49px; font-size: .82rem; font-weight: 650; box-shadow: 0 2px 3px #0b6b6110; line-height: 1.5; }
.primary:hover { background: #08574f; border-color: #08574f; }
.primary .arrow { margin-left: 22px; }
.quiet-button { color: #546d7a; font-size: .77rem; min-height: 44px; padding: 10px; text-decoration-color: #99aeb6; }
.quiet-button:hover { color: var(--green); text-decoration-color: var(--green); }
.secondary { color: #245e58; background: #fff; border-color: #bcd0ca; border-radius: 7px; padding: 10px 13px; min-height: 43px; font-size: .73rem; font-weight: 600; line-height: 1.5; }
.secondary:hover { background: #e9f4ed; border-color: #82af9c; }
button:disabled { opacity: .58; }
.privacy-note { color: #607482; font-size: .69rem; line-height: 1.65; margin-top: 19px; }
.privacy-note svg { color: var(--green); width: 12px; height: 12px; }
.row-item { padding: 16px; background: #f5f8f7; border: 1px solid #d8e3e1; border-radius: 10px; margin-bottom: 13px; }
.row-head { padding-bottom: 10px; border-bottom: 1px solid #dde7e3; color: #3d5f65; font-size: .75rem; margin-bottom: 15px; }
.row-item .fields { gap: 16px 13px; }
.row-item .quiet-button { color: #8a3831; font-size: .7rem; }
.error { color: #922d28; background: #fff3ef; border-color: #efc6bb; border-radius: 8px; padding: 14px 16px; line-height: 1.65; font-size: .8rem; }
.result-panel { position: sticky; top: 24px; background: #ecf5f0; border-color: #c8ded2; box-shadow: 0 6px 22px #154b3c05; }
.result-panel .panel-heading { border-color: #d0e3d8; padding-bottom: 21px; }
.result-panel .step { background: #d9ebdf; border-color: #c5ddce; color: #27624e; }
.result-placeholder { min-height: 241px; padding: 26px 12px 30px; gap: 16px; color: #607a72; }
.result-placeholder svg { width: 44px; height: 44px; color: #5c8e79; }
.result-placeholder h3 { max-width: 265px; color: #355d52; font-size: 1rem; font-weight: 650; line-height: 1.5; letter-spacing: -.015em; }
.result-placeholder p { max-width: 255px; color: #567267; font-size: .8rem; line-height: 1.8; }
.result-label { color: #486b5e; font-size: .78rem; margin-top: 21px; }
.result-value { color: #114c3e; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; margin: 7px 0 27px; }
.result-value small { color: #3c6758; font-size: 1.1rem; font-weight: 550; }
.result-row { gap: 18px; padding: 13px 0; font-size: .8rem; border-color: #d0e2d7; line-height: 1.7; }
.result-row dt { color: #4d6b60; min-width: 0; flex: 1 1 0; overflow-wrap: break-word; }
.result-row dd { color: #244e40; font-weight: 650; min-width: 0; flex: 0 0 auto; max-width: 60%; overflow-wrap: anywhere; }
.result-notes { padding-left: 18px; font-size: .75rem; color: #536f63; line-height: 1.8; margin-top: 22px; }
.result-notes li + li { margin-top: 8px; }
.result-actions { gap: 8px; margin-top: 23px; }
.result-actions button { max-width: 100%; overflow-wrap: anywhere; }
.result-table-title { font-size: .9rem; margin: 26px 0 8px; }
.table-scroll { margin: 16px 0; border: 1px solid #cbded3; border-radius: 8px; background: #fff; }
table { font-size: .74rem; line-height: 1.6; }
th, td { padding: 11px 12px; border-bottom-color: #e0e9e4; vertical-align: top; }
th { color: #2f594b; font-weight: 650; background: #dfede4; }
td { color: #38594c; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: #f8fbf9; }
.barcode { background: #fff; border: 1px solid #cbded3; border-radius: 8px; padding: 12px; }

/* Editorial reading area and transparent sources */
.below-tool { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 64px; margin: 60px 0 78px; }
.calculator-guide { margin-bottom: 35px; padding-bottom: 31px; border-color: var(--line); }
.calculator-guide > .eyebrow { font-size: .65rem; }
.calculator-guide > h2 { font-size: 1.65rem; line-height: 1.3; letter-spacing: -.025em; margin: 9px 0 29px; }
.guide-chapter { margin: 28px 0; }
.guide-chapter h3, .guide-pitfalls h3 { font-size: 1.04rem; font-weight: 680; letter-spacing: -.015em; line-height: 1.5; margin-bottom: 12px; }
.guide-chapter p, .guide-pitfalls li { color: #506775; font-size: .91rem; line-height: 1.9; }
.guide-chapter p + p { margin-top: 14px; }
.guide-pitfalls { padding: 23px; background: #edf4ef; border: 1px solid #d3e4da; border-radius: 11px; margin-top: 30px; }
.guide-pitfalls h3 { color: #2b594b; }
.guide-pitfalls ul { margin-bottom: 0; padding-left: 19px; }
.guide-pitfalls li { color: #4d6b5e; font-size: .85rem; line-height: 1.85; }
.guide-pitfalls li + li { margin-top: 12px; }
.guide-return { font-size: .77rem; margin-top: 25px; font-weight: 600; }
.prose-section + .prose-section { margin-top: 33px; }
.prose-section h2 { font-size: 1.3rem; line-height: 1.35; letter-spacing: -.025em; margin-bottom: 15px; }
.prose-section p { color: #506775; font-size: .89rem; line-height: 1.85; overflow-wrap: break-word; }
.below-tool aside { min-width: 0; }
.aside-box { background: #fff; border: 1px solid #dce5e7; border-radius: 12px; padding: 24px; margin-bottom: 22px; }
.aside-box h2 { color: #2e4c5d; font-size: .95rem; line-height: 1.4; font-weight: 700; letter-spacing: -.015em; margin-bottom: 16px; }
.source-list { padding-left: 18px; margin: 0; color: #576d7b; font-size: .75rem; line-height: 1.85; overflow-wrap: break-word; }
.source-list li + li { margin-top: 13px; }
.source-list small { color: #607482; font-size: .66rem; margin-top: 3px; }
.contextual-related { margin: 0; padding: 0; list-style: none; }
.contextual-related li { padding: 13px 0 16px; border-bottom: 1px solid #e7edef; }
.contextual-related li:first-child { padding-top: 0; }
.contextual-related li:last-child { padding-bottom: 0; border-bottom: 0; }
.contextual-related .related-link { padding: 3px 0 8px; font-size: .8rem; font-weight: 650; line-height: 1.6; align-items: baseline; }
.related-link::after { content: "→"; flex-shrink: 0; }
.contextual-related p { color: #607583; font-size: .74rem; line-height: 1.85; }
.faq { border-color: #dbe5e7; padding: 18px 0; }
.faq summary { color: #355466; font-size: .87rem; line-height: 1.6; font-weight: 650; padding-right: 3px; }
.faq summary::marker { color: var(--green); font-size: .8em; }
.faq[open] summary { color: var(--green); }
.faq p { font-size: .84rem; margin-top: 13px; line-height: 1.85; }
.category-intro { max-width: 880px; }
.category-intro p { font-size: .94rem; line-height: 1.85; }
#category-tools { font-size: 1.45rem; margin-bottom: 25px; }
.method-layout { max-width: 820px; margin: 55px auto 80px; }
.method-layout h1 { font-size: clamp(2.2rem, 3.7vw, 3.1rem); line-height: 1.14; margin: 16px 0 35px; }
.method-layout h2 { font-size: 1.35rem; line-height: 1.4; margin: 34px 0 15px; }
.method-layout p { color: #506775; font-size: .96rem; line-height: 1.85; }
.method-layout li { color: #506775; line-height: 1.85; }
.footer { background: #102d42; color: #c2d2db; border: 0; padding: 39px 0 43px; font-size: .75rem; }
.footer-inner { gap: 46px; }
.footer p { max-width: 600px; line-height: 1.8; }
.footer p + p { margin-top: 8px; color: #a9c2ce; }
.footer strong { color: #fff; font-weight: 650; }
.footer a { color: #e0ebef; text-decoration-color: #69848f; }
.footer a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.footer .brand { color: #fff; margin-bottom: 20px; }
.footer .brand:hover { color: #fff; }
.footer .brand small { color: #b9d0dc; }
.footer-links { gap: 17px 23px; font-size: .73rem; padding-top: 2px; }
.footer :focus-visible { outline-color: var(--accent); }

@media (min-width: 801px) and (max-width: 1050px) {
  .wrap, .catalog.wrap { padding-inline: 30px; }
  .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: 35px; }
  .hero h1 { font-size: 2.8rem; }
  .hero-panel { padding: 25px; }
  .hero-note { font-size: .68rem; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-top { gap: 24px; }
  .search { width: 275px; }
  .panel-body { padding: 24px; }
  .workspace { gap: 20px; }
  .fields { gap: 20px 14px; }
  .below-tool { gap: 34px; }
  .home-help { width: calc(100% - 60px); padding: 32px; }
}
@media (max-width: 800px) {
  .wrap, .catalog.wrap { padding-inline: 22px; }
  .nav { min-height: 80px; gap: 20px; }
  .brand-symbol { width: 36px; height: 36px; flex-basis: 36px; }
  .brand-name { font-size: 1.08rem; }
  .brand small { font-size: .63rem; }
  .navlinks { font-size: .75rem; gap: 18px; }
  .navlinks .method-nav { display: inline-flex; }
  .hero { padding: 39px 0 37px; }
  .hero-grid { grid-template-columns: 1fr; gap: 29px; }
  .hero h1 { font-size: clamp(2.3rem, 6.1vw, 3.1rem); line-height: 1.09; margin: 19px 0 21px; max-width: 620px; }
  .hero .intro { font-size: .95rem; line-height: 1.8; }
  .hero-actions { margin-top: 23px; gap: 16px; }
  .hero-note { font-size: .7rem; gap: 9px 18px; margin-top: 21px; }
  .hero-panel { display: block; padding: 26px; width: 100%; max-width: 520px; border-radius: 15px; }
  .hero-panel h2 { max-width: none; margin: 15px 0 20px; font-size: 1.3rem; }
  .hero-panel hr { margin: 21px 0 18px; }
  .hero-panel .num { font-size: 2.7rem; }
  .hero-metrics { gap: 25px; margin-top: 25px; padding-top: 20px; }
  .hero-metrics strong { font-size: 1.18rem; }
  .catalog { padding-top: 36px; padding-bottom: 43px; }
  .section-top { display: block; margin-bottom: 22px; }
  .section-top h2 { font-size: 1.7rem; }
  .section-top .search { width: 100%; margin-top: 23px; }
  .filter-list { gap: 8px; margin-bottom: 24px; }
  .filter { padding: 8px 11px; font-size: .7rem; min-height: 39px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
  .tool-card { padding: 23px; min-height: 230px; }
  .tool-card h3 { font-size: 1.08rem; }
  .home-help { max-width: none; width: calc(100% - 44px); padding: 28px; margin-bottom: 43px; border-radius: 13px; }
  .home-help h2 { font-size: 1.55rem; }
  .home-help p { font-size: .86rem; }
  .category-navigation { gap: 8px; }
  .category-navigation a { font-size: .72rem; }
  .breadcrumb { padding-top: 21px; font-size: .67rem; }
  .tool-hero { padding: 28px 0 24px; }
  .tool-hero h1 { font-size: clamp(2rem, 5.2vw, 2.7rem); line-height: 1.13; margin: 12px 0 17px; }
  .tool-hero p { font-size: .9rem; line-height: 1.8; }
  .page-jumps { gap: 7px; margin-bottom: 25px; padding-bottom: 20px; }
  .page-jumps a { padding: 7px 10px; font-size: .7rem; }
  .workspace, .below-tool { grid-template-columns: 1fr; }
  .workspace { gap: 20px; }
  .panel-body { padding: 25px; }
  .result-panel { position: static; }
  .result-placeholder { min-height: 205px; }
  .below-tool { gap: 29px; margin: 42px 0 47px; }
  .below-tool aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; align-items: start; }
  .aside-box { margin: 0; padding: 22px; }
  .calculator-guide > h2 { font-size: 1.5rem; }
  .guide-chapter p { font-size: .9rem; }
  .guide-pitfalls { padding: 22px; }
  .method-layout { margin: 37px auto 52px; }
  .method-layout h1 { font-size: 2.35rem; }
  .footer { padding: 32px 0 35px; }
  .footer-inner { flex-direction: column; gap: 23px; }
}
@media (max-width: 580px) {
  .wrap, .catalog.wrap { padding-inline: 20px; }
  .nav { min-height: auto; padding-block: 17px 13px; flex-wrap: wrap; gap: 15px; }
  .navlinks { width: 100%; gap: 24px; padding-top: 12px; border-top: 1px solid #e9eef0; font-size: .73rem; }
  .brand { gap: 10px; }
  .hero { padding-top: 31px; }
  .hero h1 { font-size: clamp(2.15rem, 9.6vw, 2.9rem); letter-spacing: -.04em; }
  .hero .intro { font-size: .93rem; }
  .hero-kicker { font-size: .61rem; letter-spacing: .07em; }
  .hero-button { font-size: .78rem; min-height: 47px; padding: 12px 16px; gap: 16px; }
  .hero-actions > a:not(.hero-button) { font-size: .73rem; }
  .hero-metrics { gap: 20px; }
  .hero-metrics span { font-size: .65rem; }
  .hero-panel { padding: 25px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 0; padding: 23px; }
  .card-top { margin-bottom: 18px; }
  .tool-card .card-link { margin-top: 21px; }
  .home-help { width: calc(100% - 40px); padding: 24px; }
  .home-help h2 { font-size: 1.5rem; }
  .home-help h3 { font-size: 1rem; }
  .home-help p { font-size: .86rem; }
  .category-navigation a { font-size: .69rem; padding: 8px 10px; }
  .tool-hero h1 { font-size: clamp(1.95rem, 8.2vw, 2.45rem); }
  .tool-hero p { font-size: .87rem; }
  .panel { border-radius: 13px; }
  .panel-body { padding: 23px; }
  .panel-heading { margin-bottom: 23px; padding-bottom: 19px; }
  .panel-heading h2 { font-size: 1.03rem; }
  .fields { grid-template-columns: 1fr; gap: 20px; }
  .field label, .field legend { font-size: .8rem; }
  .field input:not([type="checkbox"]), .field select, .field textarea { font-size: 1rem; }
  .field .hint { font-size: .72rem; }
  .form-actions { align-items: stretch; flex-direction: column; gap: 5px; }
  .primary { width: 100%; font-size: .82rem; }
  .quiet-button { align-self: center; }
  .row-item { padding: 14px; }
  .row-item .fields { gap: 17px; }
  .row-item .quiet-button { align-self: auto; }
  .result-value { font-size: 2.35rem; }
  .result-row { font-size: .77rem; gap: 13px; }
  .result-row dd { max-width: 60%; }
  .result-actions { gap: 8px; }
  .secondary { font-size: .71rem; }
  .below-tool aside { display: block; }
  .aside-box { padding: 23px; margin-bottom: 19px; }
  .guide-chapter h3, .guide-pitfalls h3 { font-size: 1.01rem; }
  .guide-chapter p, .prose-section p { font-size: .88rem; }
  .guide-pitfalls { padding: 21px; }
  .guide-pitfalls li { font-size: .82rem; }
  .method-layout h1 { font-size: 2.05rem; }
  .method-layout p { font-size: .91rem; }
  .footer-links { gap: 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .tool-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .primary, .hero-button, .filter[aria-pressed="true"] { border: 2px solid ButtonText; }
  .step, .category-icon { border: 1px solid CanvasText; }
}
@media print {
  body { color: #000; background: #fff; font-size: 12px; }
  .wrap, .catalog.wrap { max-width: none; padding: 0; }
  .hero-actions, .hero-note, .hero-metrics, .category-navigation, .page-jumps, .guide-return { display: none !important; }
  .hero, .hero-panel, .home-help, .panel, .result-panel, .aside-box, .guide-pitfalls { color: #000; background: #fff; border: 1px solid #bbb; box-shadow: none; }
  .hero h1 span, .hero-panel h2, .hero-panel .num, .hero-panel .small, .hero-panel .sample-row, .hero-panel .sample-row strong, .hero-panel .eyebrow, .hero-panel .sample-caption { color: #000; }
  .workspace, .below-tool { display: block; margin: 20px 0; }
  .panel { break-inside: avoid; margin-bottom: 20px; }
  .panel-body { padding: 15px; }
  .result-panel { position: static; }
  .fields { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-hero { padding-top: 0; }
  h1 { font-size: 25px !important; }
  .tool-card { break-inside: avoid; box-shadow: none; }
  .table-scroll { overflow: visible; border-color: #bbb; }
  th, td { color: #000; border-color: #ccc; background: #fff; }
  .result-value { color: #000; }
  .guide-pitfalls { break-inside: avoid; }
  a { color: inherit; }
}
