.lpk-calculator {
    --lpk-border: #e2e5e9;
    --lpk-muted: #667085;
    --lpk-text: #1d2939;
    --lpk-soft: #f7f8fa;
    --lpk-primary: #1f6feb;
    --lpk-primary-hover: #1859bd;
    --lpk-success: #147a43;
    --lpk-error: #b42318;
    color: var(--lpk-text);
    font-family: inherit;
    max-width: 1080px;
    margin: 0 auto;
}

.lpk-calculator *,
.lpk-calculator *::before,
.lpk-calculator *::after { box-sizing: border-box; }

.lpk-calculator__header { margin-bottom: 26px; }
.lpk-calculator__header h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }
.lpk-calculator__header p { margin: 0; color: var(--lpk-muted); max-width: 780px; }

.lpk-section {
    border: 1px solid var(--lpk-border);
    border-radius: 14px;
    padding: clamp(18px, 3vw, 30px);
    margin-bottom: 20px;
    background: #fff;
}

.lpk-section__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}


.lpk-section__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.lpk-section__actions .lpk-button { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.lpk-field input::placeholder { color: #8a919d; opacity: 1; }

.lpk-section h3 { margin: 0 0 4px; font-size: 21px; }
.lpk-section__heading p { margin: 0; color: var(--lpk-muted); font-size: 14px; }

.lpk-items { display: grid; gap: 14px; }
.lpk-item { border: 1px solid var(--lpk-border); border-radius: 12px; padding: 18px; background: var(--lpk-soft); }
.lpk-item.has-error { border-color: #f0a09a; }
.lpk-item__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.lpk-item__top strong { font-size: 16px; }
.lpk-remove { border: 0; background: transparent; color: var(--lpk-error); cursor: pointer; padding: 4px; font: inherit; font-size: 13px; }

.lpk-item__grid,
.lpk-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.lpk-item__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lpk-field { display: grid; gap: 6px; min-width: 0; }
.lpk-field > span { font-size: 13px; font-weight: 600; }
.lpk-field input,
.lpk-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfd4dc;
    border-radius: 8px;
    background: #fff;
    color: var(--lpk-text);
    padding: 9px 11px;
    font: inherit;
    font-size: 15px;
    box-shadow: none;
}
.lpk-field input:focus,
.lpk-field select:focus { outline: 2px solid rgba(31,111,235,.18); border-color: var(--lpk-primary); }
.lpk-field--wide { grid-column: 1 / -1; }

.lpk-item__hint { min-height: 20px; margin-top: 10px; color: var(--lpk-muted); font-size: 13px; }
.lpk-item__result { display: flex; gap: 18px 28px; flex-wrap: wrap; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--lpk-border); font-size: 14px; }

.lpk-button {
    appearance: none;
    border-radius: 8px;
    border: 1px solid transparent;
    min-height: 42px;
    padding: 9px 16px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.lpk-button:disabled { opacity: .6; cursor: wait; }
.lpk-button--primary { background: var(--lpk-primary); color: #fff; }
.lpk-button--primary:hover { background: var(--lpk-primary-hover); }
.lpk-button--secondary { border-color: var(--lpk-border); background: #fff; color: var(--lpk-text); white-space: nowrap; }
.lpk-button--secondary:hover { border-color: #b8bec8; }

.lpk-summary { background: #fbfcfe; }
.lpk-summary > h3 { margin-bottom: 18px; }
.lpk-summary__rows { display: grid; gap: 0; }
.lpk-summary__row { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--lpk-border); }
.lpk-free { color: var(--lpk-success); }
.lpk-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 18px 0 8px; font-size: 19px; }
.lpk-summary__total strong { font-size: clamp(24px, 3vw, 32px); }
.lpk-summary__meta { display: flex; gap: 12px 24px; flex-wrap: wrap; color: var(--lpk-muted); font-size: 13px; }
.lpk-notice { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; background: #fff7ed; color: #8a4517; font-size: 13px; line-height: 1.5; }

.lpk-notes-heading { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--lpk-border); display: grid; gap: 3px; }
.lpk-notes-heading strong { font-size: 15px; }
.lpk-notes-heading span { color: var(--lpk-muted); font-size: 13px; }

.lpk-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; font-size: 13px; line-height: 1.5; }
.lpk-consent input { margin-top: 3px; }
.lpk-consent a { color: inherit; text-decoration: underline; }
.lpk-submit-row { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.lpk-form-message { font-size: 14px; }
.lpk-form-message.is-success { color: var(--lpk-success); }
.lpk-form-message.is-error { color: var(--lpk-error); }
.lpk-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 820px) {
    .lpk-item__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .lpk-section__heading { display: grid; }
    .lpk-section__actions { display: grid; width: 100%; justify-content: stretch; }
    .lpk-section__actions .lpk-button { width: 100%; }
    .lpk-item__grid,
    .lpk-contact-grid { grid-template-columns: 1fr; }
    .lpk-field--wide { grid-column: auto; }
    .lpk-summary__row,
    .lpk-summary__total { align-items: flex-start; }
    .lpk-summary__row span,
    .lpk-summary__total span { padding-right: 10px; }
    .lpk-submit-row .lpk-button { width: 100%; }
}
