* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f7fa; color: #2c3e50; line-height: 1.6; }
.container { max-width: 860px; margin: 0 auto; padding: 0 20px 60px; }
.header { background: linear-gradient(135deg, #e63946 0%, #c77dff 100%); color: white; padding: 48px 20px 40px; text-align: center; }
.header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.subtitle { font-size: 1.05rem; opacity: 0.9; font-weight: 300; }
.ad-space { margin: 24px auto; min-height: 90px; }
.card { background: white; border-radius: 12px; padding: 32px; box-shadow: 0 2px 12px rgba(0,0,0,0.07); border: 1px solid #eee; margin: 24px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.88rem; font-weight: 600; color: #555; }
.bp-input-wrap { position: relative; }
.bp-input-wrap input { width: 100%; padding: 11px 50px 11px 14px; border: 1.5px solid #dde2e8; border-radius: 8px; font-size: 0.95rem; color: #2c3e50; background: white; }
.bp-input-wrap input:focus { outline: none; border-color: #e63946; }
.input-group input[type=text] { padding: 11px 14px; border: 1.5px solid #dde2e8; border-radius: 8px; font-size: 0.95rem; color: #2c3e50; background: white; }
.bp-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 0.78rem; color: #7f8c8d; pointer-events: none; }
.calc-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #e63946, #c77dff); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-top: 24px; }
.calc-btn:hover { opacity: 0.9; }
.results { display: none; }
.results.show { display: block; }
.bp-result { border-radius: 12px; padding: 24px; text-align: center; margin-bottom: 12px; }
.bp-numbers { font-size: 2.4rem; font-weight: 700; }
.bp-category { font-size: 1.3rem; font-weight: 700; margin-top: 6px; }
.bp-desc { font-size: 0.9rem; margin-top: 8px; opacity: 0.85; }
.bp-chart-wrap { display: flex; flex-direction: column; gap: 8px; }
.bp-chart-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--color) 15%, white); border-left: 4px solid var(--color); }
.bp-chart-label { font-weight: 700; min-width: 100px; font-size: 0.9rem; color: #2c3e50; }
.bp-range { font-size: 0.88rem; color: #555; }
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th { background: #f0f2f7; padding: 10px 12px; text-align: left; font-weight: 600; color: #555; }
td { padding: 8px 12px; border-bottom: 1px solid #f0f2f7; color: #444; }
.info-section { background: white; border-radius: 12px; padding: 32px; margin: 24px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #eee; }
.info-section h2 { font-size: 1.2rem; margin-bottom: 12px; }
.info-section p { color: #555; font-size: 0.93rem; line-height: 1.75; margin-bottom: 10px; }
.footer { text-align: center; padding: 32px 20px; background: #2c3e50; color: #bdc3c7; font-size: 0.88rem; margin-top: 40px; }
.footer a { color: #bdc3c7; text-decoration: none; }
.footer a:hover { color: white; }
@media (max-width: 600px) { .header h1 { font-size: 1.5rem; } .form-grid { grid-template-columns: 1fr; } .card { padding: 20px 16px; } }
