.hb-ppm-calculator {
--hb-bg: #f5f7fb;
--hb-card: #ffffff;
--hb-text: #172033;
--hb-muted: #5f6b85;
--hb-border: #f0e8d9;
--hb-primary: #cb9274;
--hb-primary-hover: #174fc3;
--hb-danger: #c62828;
--hb-shadow: 0 20px 50px rgba(16, 24, 40, 0.08);
color: var(--hb-text);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.hb-ppm-card {
max-width: 780px;
margin: 2rem auto 1rem;
background: var(--hb-card);
border-radius: 20px;
box-shadow: var(--hb-shadow);
overflow: hidden;
}
.hb-ppm-header {
padding: 32px 32px 20px;
background: #f7efde;
border-bottom: 1px solid #cb9274;
}
.hb-ppm-eyebrow {
margin: 0 0 8px;
font-size: 13px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--hb-primary);
}
.hb-ppm-title {
margin: 0 0 10px;
font-size: 32px;
line-height: 1.15;
}
.hb-ppm-intro {
margin: 0;
color: var(--hb-muted);
font-size: 16px;
line-height: 1.7;
}
.hb-ppm-form {
padding: 28px 32px 12px;
}
.hb-ppm-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}
.hb-ppm-field-full {
grid-column: 1 / -1;
}
.hb-ppm-label {
display: block;
margin-bottom: 8px;
font-weight: 600;
font-size: 15px;
}
.hb-ppm-field input[type="number"] {
width: 100%;
min-height: 52px;
padding: 0 16px;
border: 1px solid var(--hb-border);
border-radius: 14px;
background: #fff;
font-size: 16px;
color: var(--hb-text);
transition: border-color .2s ease, box-shadow .2s ease;
}
.hb-ppm-field input[type="number"]:focus {
outline: none;
border-color: var(--hb-primary);
box-shadow: 0 0 0 4px rgba(35, 99, 235, 0.14);
}
.hb-ppm-field input.is-invalid {
border-color: var(--hb-danger);
box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.1);
}
.hb-ppm-gender {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.hb-ppm-choice {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-height: 52px;
border: 1px solid var(--hb-border);
border-radius: 14px;
cursor: pointer;
background: #fff;
font-weight: 600;
text-align: center;
overflow: hidden;
}
.hb-ppm-choice input {
position: absolute;
inset: 0;
opacity: 0;
cursor: pointer;
}
.hb-ppm-choice span {
padding: 0 16px;
}
.hb-ppm-choice:has(input:checked) {
border-color: #cb9274;
background: #f7efde;
color: #9f6a4e;
box-shadow: inset 0 0 0 1px #cb9274;
}
.hb-ppm-error {
min-height: 20px;
margin: 6px 0 0;
color: var(--hb-danger);
font-size: 13px;
}
.hb-ppm-actions {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 8px;
}
.hb-ppm-button {
min-height: 50px;
padding: 0 22px;
border: 0;
border-radius: 14px;
background: var(--hb-primary);
color: #fff;
font-size: 15px;
font-weight: 700;
cursor: pointer;
transition: transform .15s ease, background .2s ease, opacity .2s ease;
}
.hb-ppm-button:hover {
background: var(--hb-primary-hover);
}
.hb-ppm-button:active {
transform: translateY(1px);
}
.hb-ppm-button-secondary {
background: #f7efde;
color: var(--hb-text);
}
.hb-ppm-button-secondary:hover {
background: #dbe5f4;
}
.hb-ppm-result {
margin: 8px 32px 32px;
padding: 24px;
border-radius: 18px;
background: #f7efde;
border: 0;
}
.hb-ppm-result-label {
margin: 0 0 8px;
color: var(--hb-muted);
font-size: 14px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.hb-ppm-result-value {
margin: 0 0 10px;
font-size: 34px;
line-height: 1.1;
font-weight: 800;
}
.hb-ppm-result-text {
margin: 0;
color: var(--hb-muted);
font-size: 15px;
line-height: 1.7;
}
@media (max-width: 640px) {
.hb-ppm-header,
.hb-ppm-form {
padding-left: 20px;
padding-right: 20px;
}
.hb-ppm-title {
font-size: 26px;
}
.hb-ppm-grid,
.hb-ppm-gender {
grid-template-columns: 1fr;
}
.hb-ppm-result {
margin: 8px 20px 20px;
padding: 20px;
}
.hb-ppm-result-value {
font-size: 28px;
}
}