* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #222;
    line-height: 1.6;
}
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.logo { font-size: 21px; font-weight: 700; color: #111; }
.logo:hover { text-decoration: none; }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { font-size: 14px; color: #444; }
.hero { padding: 56px 0 36px; text-align: center; }
.hero h1 { margin: 0 0 14px; font-size: clamp(30px, 5.5vw, 48px); line-height: 1.15; color: #111; }
.hero p { max-width: 720px; margin: 0 auto; color: #555; font-size: 18px; }
.section { padding: 28px 0; }
.card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}
h2 { margin-top: 0; font-size: 26px; }
h3 { font-size: 20px; margin-top: 28px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e5e7eb; text-align: left; vertical-align: top; }
th { background: #f8fafc; font-weight: 700; }
.note, .disclaimer {
    background: #f8fafc;
    border-left: 4px solid #222;
    padding: 16px 18px;
    margin: 20px 0;
}
.disclaimer { border-left-color: #b45309; background: #fffbeb; font-size: 14px; color: #444; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    color: #222;
}
.tool-card:hover { border-color: #94a3b8; text-decoration: none; }
.tool-card strong { display: block; margin-bottom: 6px; }
.small, .caption { color: #666; font-size: 14px; }
footer { background: #fff; border-top: 1px solid #e5e7eb; padding: 30px 0 36px; margin-top: 8px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 18px 28px; flex: 1; }
.footer-cols h2 { font-size: 14px; margin: 0 0 8px; text-transform: none; }
.footer-cols a { display: block; font-size: 14px; color: #444; margin: 4px 0; }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
input[type="number"], input[type="text"], select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: #fff;
}
.btn {
    appearance: none;
    border: 0;
    background: #111827;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 18px;
    cursor: pointer;
}
.btn:hover { background: #000; }
.results {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-top: 8px;
}
.results strong.out { font-size: 22px; display: block; margin: 4px 0 10px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.check input { width: auto; }
.ok { color: #047857; }
.warn { color: #b45309; }
@media (max-width: 768px) {
    .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
    nav { gap: 12px; }
    .hero { padding: 40px 0 24px; }
    .card { padding: 20px; }
    .grid, .calc-grid, .footer-cols { grid-template-columns: 1fr; }
    table { min-width: 480px; }
}
