.widget__header { font-weight: 600; font-size: 20px; color: #2a8cff; margin-bottom: 8px; }

.fp-hdr { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.fp-hdr-title { font-size: 20px; font-weight: 600; color: #2a8cff; min-height: 32px; line-height: 1.2; }
.fp-hdr-actions,
.fp-hdr-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fp-hdr-tools { margin-left: auto; }
.fp-hdr-actions .fp-btn-reset { margin-left: 0; }
.fp-hdr-tools .fp-btn-reset,
.fp-hdr-tools .fp-video-btn { margin-left: 0; }
.fp-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border: 1px solid #d6dce1;
    border-radius: 6px;
    background: #e8ebee;
    color: #445;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    vertical-align: middle;
}
.fp-video-btn:hover { background: #d9dee3; }
.fp-video-ic { margin-right: 2px; }
.fp-version { font-size: 12px; color: #8a98a6; font-weight: 600; white-space: nowrap; }

.fp-btn-copy {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
    padding: 9px 12px;
    border: 0;
    border-radius: 999px;
    background: #4f5b66;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    transition: filter .15s ease;
}
.fp-btn-copy:hover { background: #3f4a54; }
.fp-copy-ic { display: inline-block; }
.fp-copy-wrap { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.fp-logist-foot .fp-copy-wrap { margin-bottom: 0; }
.fp-copy-status { font-size: 12px; white-space: nowrap; }
.fp-copy-status.fp-ok { color: #157a3b; }
.fp-copy-status.fp-err { color: #b33434; }

.fp-modal-inner.fp-video-inner { width: 80vw; max-width: 94vw; height: 80vh; max-height: 94vh; }
.fp-video-wrap { flex: 1 1 auto; min-height: 0; padding: 12px 14px; display: flex; align-items: center; justify-content: center; }
.fp-video { width: 100%; max-height: 100%; display: block; border-radius: 6px; background: #000; }

.fp-modal-inner.fp-price-inner { width: 80vw; max-width: 96vw; height: 80vh; max-height: 94vh; }
.fp-price-view { flex: 1 1 auto; min-height: 0; padding: 10px 14px 14px; }
.fp-price-pdf { width: 100%; height: 100%; border: 1px solid #e2e7ec; border-radius: 4px; background: #fff; }

.fp {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 13px;
    color: #1f2d3d;
}

/* Bootstrap-сетка: компактные отступы между колонками (по умолчанию 24px) */
.fp .row { margin-left: 0; margin-right: 0; }
.fp .row > [class*="col"] { padding-left: 7px; padding-right: 7px; min-width: 250px; }
.fp .row > [class*="col"]:first-child { padding-left: 0; }
.fp .row > [class*="col"]:last-child { padding-right: 0; }
.fp .row > [class*="col"].fp-right:last-child { padding-right: 10px; }

.fp-group {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6b7785;
    margin: 12px 0 6px;
    border-bottom: 1px solid #eef1f4;
    padding-bottom: 3px;
}
.fp-group:first-child { margin-top: 0; }

.fp-field { display: block; margin-bottom: 8px; font-weight: 600; color: #445; }
.fp-field-row { display: flex; gap: 8px; margin-bottom: 8px; }
.fp-field-half { flex: 1 1 0; min-width: 0; margin-bottom: 0; }
.fp-select-add { display: flex; gap: 4px; margin-bottom: 8px; }
.fp-select-add .fp-input { flex: 1 1 0; min-width: 0; }
.fp-btn-sm { padding: 2px 8px; font-size: 14px; font-weight: 700; }
.fp-btn-del { background: #e74c3c; }
.fp-btn-del:hover { background: #c0392b; }
.fp-select-wrap { display: flex; gap: 4px; align-items: stretch; }
.fp-select-wrap .fp-input { flex: 1 1 0; }
.fp-select-cog { border: 1px solid #cbd8cf; background: #f7f9fb; border-radius: 6px; padding: 0 8px; cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.fp-select-cog:hover { background: #e8ebee; }
.fp-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 1000; background: rgba(0,0,0,.3); display: flex; align-items: center; justify-content: center; }
.fp-modal-inner { background: #fff; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.25); width: 340px; max-width: 92vw; max-height: 80vh; display: flex; flex-direction: column; overflow: hidden; }
.fp-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid #e7ebef; }
.fp-modal-close { border: 0; background: #e8ebee; border-radius: 6px; padding: 2px 8px; cursor: pointer; font-size: 14px; }
.fp-modal-close:hover { background: #d9dee3; }
.fp-modal-list { flex: 1 1 auto; overflow-y: auto; padding: 8px 14px; }
.fp-modal-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #f0f2f5; }
.fp-modal-item:last-child { border-bottom: none; }
.fp-modal-item span { font-size: 13px; }
.fp-modal-del { border: 0; background: none; color: #b33434; cursor: pointer; font-size: 16px; padding: 0 4px; line-height: 1; }
.fp-modal-del:hover { color: #8b1a1a; }
.fp-modal-foot { display: flex; gap: 0; padding: 10px 14px; border-top: 1px solid #e7ebef; }
.fp-modal-foot .fp-input { flex: 1 1 0; min-width: 0; border-radius: 6px 0 0 6px; box-sizing: border-box; padding: 2px 8px; margin-top: 0; height: 34px; display: inline-block; }
.fp-modal-foot .fp-btn-sm { flex: 0 0 auto; width: 20%; box-sizing: border-box; border-radius: 0 6px 6px 0; height: 34px; margin-top: 0; padding: 2px 8px; }
.fp-input {
    display: block;
    width: 100%;
    margin-top: 3px;
    padding: 6px 8px;
    border: 1px solid #d6dce1;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fff;
}
.fp-check { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; font-weight: 500; color: #334; cursor: pointer; }
.fp-check input { margin-top: 2px; }
.fp-input:disabled { opacity: .55; cursor: not-allowed; background: #f2f4f6; }
.fp-check input:disabled { opacity: .4; cursor: not-allowed; }
.fp-indent { margin-left: 16px; }

.fp-zone { padding: 8px 8px 0; margin: 0 -8px 4px; border: 1px dashed #dfe4e9; border-radius: 8px; }
.fp-zone-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px; gap: 6px; align-items: end; }
.fp-zone-inputs .fp-field { min-width: 0; margin-bottom: 8px; }
.fp-compact-fields { align-items: end; }
.fp-compact-fields .fp-field { font-size: 11px; }
.fp-zone-proto { display: none; }
.fp-proto-on .fp-zone-proto { display: block; }
.fp-area-field { display: none; }
.fp-own-mesh #fp_mesh_area_field { display: block; }
.fp-own-noise #fp_noise_area_field { display: block; }
.fp-own-keramzit #fp_keramzit_area_field { display: block; }
.fp-zone-title { font-size: 12px; font-weight: 700; color: #6b7785; margin-bottom: 4px; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; justify-content: space-between; }
.fp-zone-title .fp-zone-remove {
    flex: 0 0 20px; width: 20px; height: 20px; line-height: 1; font-size: 15px; font-weight: 700;
    border: 1px solid #e3d3ce; border-radius: 6px; background: #fbf3f1;
    color: #c0392b; text-transform: none; letter-spacing: 0;
    display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
}
.fp-zone-title .fp-zone-remove:hover { background: #f7e5e1; border-color: #e3b8ae; }
.fp-zone-title .fp-zone-remove:active { transform: translateY(1px); }
.fp-thick-row { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.fp-thick-row .fp-thick-input { flex: 0 0 70%; width: 70%; margin-top: 0; }
.fp-zone-add {
    flex: 0 0 34px; width: 34px; height: 34px;
    border: 1px solid #d6dce1; border-radius: 6px; background: #f2f6f2;
    color: #1f7a4d; font-size: 20px; font-weight: 600; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.fp-zone-inputs .fp-zone-add { align-self: end; margin-bottom: 8px; }
.fp-zone-add:hover { background: #e0eadf; border-color: #abc7b3; }
.fp-zone-add:active { transform: translateY(1px); }

.fp-addr-link { margin: -2px 0 8px; font-size: 12px; }
.fp-addr-link a { color: #2a8cff; text-decoration: none; }
.fp-addr-link a:hover { text-decoration: underline; }

.fp-right { background: #f7f9fb; border: 1px solid #e7ebef; border-radius: 8px; padding: 10px; }

.fp-total-label { font-size: 12px; color: #6b7785; font-weight: 600; }
.fp-total { font-size: 22px; font-weight: 800; color: #157a3b; margin: 2px 0 10px; }
.fp-total.fp-ok { color: #157a3b; }

.fp-items { max-height: 360px; overflow-y: auto; }
.fp-item { padding: 5px 0; border-bottom: 1px dashed #e3e8ee; }
.fp-item-row { display: flex; justify-content: space-between; gap: 8px; }
.fp-item-label { font-weight: 600; }
.fp-item-amt { white-space: nowrap; font-weight: 700; }
.fp-item-note { font-size: 11px; color: #8593a0; margin-top: 1px; }
.fp-subtotal { border-top: 2px solid #d6dce1; border-bottom: none; margin-top: 4px; }

.fp-err { color: #b33434; font-weight: 600; }

.fp-btn-reset {
    margin-left: 12px;
    padding: 3px 10px;
    border: 1px solid #d6dce1;
    border-radius: 6px;
    background: #e8ebee;
    color: #445;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    vertical-align: middle;
}
.fp-btn-reset:hover { background: #d9dee3; }
.fp-btn-reset + .fp-btn-reset { margin-left: 6px; }

.fp-load-inner { width: 520px; }
.fp-load-list { flex: 1 1 auto; overflow-y: auto; padding: 10px 14px; }
.fp-load-hint { font-size: 12px; color: #6b7785; margin-bottom: 8px; }
.fp-load-list .fp-input { min-height: 200px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.5; }
.fp-load-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid #e7ebef; }
.fp-load-apply { flex: 0 0 auto; width: auto; padding: 8px 18px; margin-top: 0; border-radius: 6px; }
.fp-load-status { font-size: 12px; color: #6b7785; }
.fp-load-status.fp-ok { color: #157a3b; }
.fp-load-status.fp-err { color: #b33434; }

.fp-btn {
    width: 100%;
    margin-top: 10px;
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: #2a8cff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.fp-btn:hover { background: #1f7af0; }
.fp-btn:disabled,
.fp-btn:disabled:hover { opacity: .45; cursor: not-allowed; background: #2a8cff; }

.fp-btns { display: flex; gap: 8px; margin-top: 10px; }
.fp-btns .fp-btn { flex: 1 1 0; min-width: 0; margin-top: 0; }
.fp-btn-logist { background: #18a36c; }
.fp-btn-logist:hover { background: #14915f; }
.fp-btn-logist.fp-active { background: #157a3b; }
#fp_logist_btn { background: #2a8cff; }
#fp_logist_btn:hover { background: #1f7af0; }
#fp_logist_btn.fp-active { background: #1574de; }
#fp_kp_btn { background: #8e1e2f; }
#fp_kp_btn:hover { background: #7a1928; }
#fp_kp_btn.fp-active { background: #651421; }
.fp-btns-kp { margin-top: 8px; }
#fp_kpclassic_btn { background: #fff; border: 1px solid #8e1e2f; color: #8e1e2f; }
#fp_kpclassic_btn:hover { background: #faf0f2; }
#fp_kpclassic_btn.fp-active { background: #8e1e2f; color: #fff; }
#fp_kp2_btn { background: #fff; border: 1px solid #8e1e2f; color: #8e1e2f; }
#fp_kp2_btn:hover { background: #faf0f2; }
#fp_kp2_btn.fp-active { background: #8e1e2f; color: #fff; }
.fp-btns-kp3 { width: calc(50% - 4px); margin-top: 8px; }
.fp-btns-kp3 .fp-btn { flex: 1 1 auto; }
#fp_kp3_btn { background: #172334; box-shadow: inset 0 -3px 0 #a92e43; }
#fp_kp3_btn:hover { background: #24374e; }
#fp_kp3_btn.fp-active { background: #8e1e2f; box-shadow: inset 0 -3px 0 #651421; }
.fp-kp-versions-trigger {
    display: block;
    margin: 6px auto 0;
    padding: 2px 6px;
    border: 0;
    background: transparent;
    color: #aeb8c3;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
.fp-kp-versions-trigger:hover,
.fp-kp-versions-trigger.fp-active { color: #778493; text-decoration: underline; }
.fp-modal-inner.fp-kp-versions-inner { width: min(380px, 94vw); max-width: 94vw; border: 1px solid #e1e7ed; border-radius: 12px; }
.fp-kp-versions-list { display: grid; gap: 8px; padding: 14px; }
.fp-kp-versions-list .fp-btn { width: 100%; margin: 0; }

.fp-logist {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    width: min(46%, 440px);
    background: #fff;
    border: 1px solid #cbd8cf;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
    padding: 10px;
    flex: none;
    overflow: hidden;
}
.fp-logist.fp-open { display: flex; flex-direction: column; }
.fp-logist-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 13px;
}
.fp-logist-close {
    border: 0;
    background: #e8ebee;
    border-radius: 6px;
    padding: 3px 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: #445;
}
.fp-logist-close:hover { background: #d9dee3; }
.fp-logist-body { flex: 1 1 auto; overflow-y: auto; }
.fp-logist-sub {
    margin: 8px 0 4px;
    font-weight: 700;
    font-size: 12px;
    color: #14915f;
    border-top: 1px solid #eef1f4;
    padding-top: 6px;
}
.fp-logist-sub:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.fp-logist-body pre {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 12.5px;
    line-height: 1.55;
    color: #1f2d3d;
    white-space: pre-line;
}
.fp-save-status { margin-top: 8px; font-size: 12px; white-space: pre-wrap; color: #6b7785; }
.fp-save-status.fp-ok { color: #157a3b; }
.fp-save-status.fp-err { color: #b33434; }
.fp-logist-foot { padding-top: 8px; border-top: 1px solid #eef1f4; }
.fp-btn-crm { background: #1d6ef0; width: 100%; margin-top: 0; }
.fp-btn-crm:hover { background: #185ed1; }
.fp-kp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-logist.fp-kp .fp-logist-foot .fp-btn-crm { width: auto; flex: 1 1 220px; margin-top: 0; }
.fp-btn-pdf {
    flex: 1 1 220px;
    width: auto;
    margin-top: 0;
    border: 0;
    border-radius: 999px;
    background: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    font-weight: 700;
    padding: 10px 16px;
    box-shadow: 0 2px 6px rgba(54, 0, 13, .12);
    transition: filter .15s ease, transform .15s ease;
}
.fp-btn-pdf:hover { background: var(--m3-primary-container); filter: brightness(.95); transform: translateY(-1px); }
.fp-crm-status { margin-top: 8px; font-size: 12px; white-space: pre-wrap; color: #6b7785; }
.fp-crm-status.fp-ok { color: #157a3b; }
.fp-crm-status.fp-err { color: #b33434; }

.fp-disc { display: flex; gap: 8px; margin: 8px 0; }
.fp-disc .fp-field { flex: 1 1 0; min-width: 0; }
.fp-disc .fp-input { max-width: 90px; }

@media (max-width: 991.98px) {
    .fp-logist { width: calc(100% - 8px); }
}

/* ============================================================
   КП: дизайнерская презентация в стиле Material Design 3
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.fp-logist.fp-kp {
    position: fixed;
    z-index: 300;
    top: 12px;
    bottom: 12px;
    right: 12px;
    width: min(80vw - 24px, 1320px);
    max-width: 96vw;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--m3-surface, #FBFDF9);
    box-shadow: 0 8px 18px rgba(31, 38, 34, .12), 0 24px 48px rgba(31, 38, 34, .2);
    font-family: Roboto, system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}
.fp-logist.fp-kp,
.fp-kp { --m3-primary: #8E1E2F; --m3-on-primary: #FFFFFF; --m3-primary-container: #FFD9CE; --m3-on-primary-container: #36000D;
    --m3-secondary: #7A5340; --m3-secondary-container: #FFDBCC; --m3-on-secondary-container: #341207;
    --m3-surface: #FFFCFA; --m3-surface-container-lowest: #FFFFFF; --m3-surface-container-low: #FBF0EE;
    --m3-surface-container: #F4E9E6; --m3-surface-container-high: #EEE4E0; --m3-surface-container-highest: #E8DEDA;
    --m3-on-surface: #211A19; --m3-on-surface-variant: #514544; --m3-outline: #817372; --m3-outline-variant: #D6C2BF;
    --m3-inverse-surface: #36302F; --m3-inverse-on-surface: #F1F5F2; --m3-inverse-primary: #FFB4A3; --m3-error: #BA1A1A;
    --m3-ripple: rgba(142, 30, 47, .08);
    font-size: 14px; color: var(--m3-on-surface); line-height: 1.5;
}
.fp-kp-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.fp-logist.fp-kp .fp-logist-head {
    position: sticky;
    top: 0;
    z-index: 5;
    margin: 0;
    padding: 12px 20px;
    background: var(--m3-surface-container-lowest);
    border-bottom: 1px solid var(--m3-outline-variant);
    font-size: 14px;
    font-weight: 500;
    font-family: Roboto, system-ui, sans-serif;
    color: var(--m3-on-surface);
}
.fp-logist.fp-kp .fp-logist-body { padding: 0; }
.fp-logist.fp-kp .fp-logist-foot {
    position: sticky;
    bottom: 0;
    z-index: 5;
    background: var(--m3-surface-container-lowest);
    padding: 12px 20px;
    border-top: 1px solid var(--m3-outline-variant);
}
.fp .fp-kp .row { margin-left: -12px; margin-right: -12px; }
.fp .fp-kp .row > [class*="col"],
.fp .fp-kp [class*="col"] { min-width: 0; padding-left: 12px; padding-right: 12px; }

/* ---- Верхняя панель ---- */
.fp-kp-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    background: var(--m3-surface-container-lowest);
    border-bottom: 1px solid var(--m3-outline-variant);
}
.fp-kp-logo { display: flex; align-items: center; gap: 14px; min-width: 0; }
.fp-kp-logo-img { height: 48px; width: auto; object-fit: contain; max-width: 210px; }
.fp-kp-brand b { display: block; font-size: 18px; font-weight: 700; letter-spacing: .02em; color: var(--m3-on-surface); white-space: nowrap; }
.fp-kp-brand span {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--m3-on-surface-variant);
    letter-spacing: .08em;
    text-transform: uppercase;
}
.fp-kp-contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    font-weight: 500;
    font-size: 15px;
    border-radius: 999px;
    padding: 8px 18px;
    white-space: nowrap;
}
.fp-kp-contacts span { display: block; margin-top: 4px; font-size: 12px; color: var(--m3-on-surface-variant); text-align: right; }

/* ---- Hero ---- */
.fp-kp-hero {
    position: relative;
    padding: 40px 36px 34px;
    color: #fff;
    background:
        radial-gradient(820px 260px at 88% -10%, rgba(255, 255, 255, .07), transparent 60%),
        linear-gradient(135deg, #4B0E19 0%, #8E1E2F 55%, #A22943 100%);
}
.fp-kp-hero-row { align-items: center; }
.fp-kp-hero-imgc { display: flex; align-items: center; }
.fp-kp-hero-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 22px;
    border: 4px solid rgba(255, 255, 255, .18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.fp-kp-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--m3-on-primary-container);
    background: var(--m3-primary-container);
    border-radius: 999px;
    padding: 6px 14px;
    margin-bottom: 14px;
}
.fp-kp-hero h1 { margin: 0 0 12px; font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.fp-kp-lead { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .9); max-width: 680px; }
.fp-kp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-kp-chips span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #E7F7EF;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 7px 14px;
}
.fp-kp-chips span::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--m3-inverse-primary);
}

/* ---- Факты об объекте ---- */
.fp-kp-facts { padding: 20px 24px; background: var(--m3-surface-container-low); border-bottom: 1px solid var(--m3-outline-variant); }
.fp .fp-kp .fp-kp-facts .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -16px;
    margin-right: -16px;
}
.fp .fp-kp .fp-kp-facts .row > [class*="col"] {
    min-width: 0;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
}
.fp-kp-fact {
    background: var(--m3-surface-container-lowest);
    border: 1px solid var(--m3-outline-variant);
    border-radius: 16px;
    padding: 14px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fp-kp-fact-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--m3-on-surface-variant);
    margin-bottom: 6px;
}
.fp-kp-fact-val { font-size: 16px; font-weight: 600; color: var(--m3-on-surface); }

/* ---- Заголовки секций ---- */
.fp-kp-section { padding: 30px 28px 34px; }
.fp-kp-sec-head { text-align: center; max-width: 640px; margin: 0 auto 26px; }
.fp-kp-sec-head-left { margin-left: 0; text-align: left; }
.fp-kp-sec-head .fp-kp-kicker { margin-bottom: 10px; }
.fp-kp-sec-head h2, .fp-kp-sec-head h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--m3-on-surface); }
.fp-kp-sec-head p { margin: 0; font-size: 14.5px; color: var(--m3-on-surface-variant); line-height: 1.6; }

/* ---- Таблица расчёта ---- */
.fp-kp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--m3-surface-container-lowest);
    border: 1px solid var(--m3-outline-variant);
    border-radius: 16px;
    overflow: hidden;
}
.fp-kp-table th {
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--m3-on-surface-variant);
    background: var(--m3-surface-container-high);
    padding: 12px 16px;
    border-bottom: 1px solid var(--m3-outline-variant);
}
.fp-kp-table td { padding: 12px 16px; border-bottom: 1px solid var(--m3-outline-variant); font-size: 13.5px; color: var(--m3-on-surface); }
.fp-kp-table tbody tr:last-child td { border-bottom: 0; }
.fp-kp-table tbody tr:hover { background: var(--m3-surface-container-low); }
.fp-kp-tr { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-kp-total-row td { background: var(--m3-primary-container); color: var(--m3-on-primary-container); font-weight: 700; }
.fp-kp-total-num { color: var(--m3-on-primary-container) !important; font-size: 19px; font-weight: 700; }

/* ---- Банковские карточки ---- */
.fp-kp-bank { margin-top: 20px; }
.fp-kp-bankcard {
    position: relative;
    background: var(--m3-surface-container-lowest);
    border: 1px solid var(--m3-outline-variant);
    border-radius: 16px;
    padding: 18px 20px 20px;
    height: 100%;
    transition: box-shadow .16s ease, transform .16s ease;
}
.fp-kp-bankcard:hover { box-shadow: 0 8px 20px rgba(31, 38, 34, .12); transform: translateY(-2px); }
.fp-kp-bankcard b { display: block; font-size: 13px; font-weight: 500; color: var(--m3-on-surface-variant); margin-bottom: 8px; line-height: 1.35; }
.fp-kp-bankcard .fp-kp-big { display: block; font-size: 26px; font-weight: 700; color: var(--m3-on-surface); margin-bottom: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-kp-bankcard > span:last-child { font-size: 12.5px; color: var(--m3-on-surface-variant); line-height: 1.45; display: block; }
.fp-kp-bankcard.best {
    background: var(--m3-primary);
    border-color: var(--m3-primary);
}
.fp-kp-bankcard.best b, .fp-kp-bankcard.best > span:last-child { color: rgba(255, 255, 255, .86); }
.fp-kp-bankcard.best .fp-kp-big { color: #fff; }
.fp-kp-best-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--m3-on-primary);
    color: var(--m3-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 4px 12px;
    box-shadow: 0 2px 6px rgba(31, 38, 34, .2);
}

/* ---- Примечания ---- */
.fp-kp-notes {
    margin-top: 30px;
    background: var(--m3-surface-container-high);
    border: 1px solid var(--m3-outline-variant);
    border-radius: 16px;
    padding: 14px 18px;
}
.fp-kp-notes h4 { margin: 0 0 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--m3-on-surface-variant); }
.fp-kp-notes ol { margin: 0; padding-left: 20px; font-size: 12.5px; color: var(--m3-on-surface-variant); line-height: 1.7; }

/* ---- «Почему ГалиЛео» ---- */
.fp-kp-why {
    background:
        radial-gradient(560px 240px at 50% -60px, rgba(157, 242, 204, .35), transparent 70%),
        var(--m3-surface-container-low);
    border-top: 1px solid var(--m3-outline-variant);
    border-bottom: 1px solid var(--m3-outline-variant);
    padding: 34px 28px 40px;
}
.fp-kp-stats { margin-bottom: 24px; }
.fp-kp-stats > [class*="col"] { padding-bottom: 12px; }
.fp-kp-stat {
    background: var(--m3-surface-container-lowest);
    border: 1px solid var(--m3-outline-variant);
    border-radius: 20px;
    padding: 20px 16px 18px;
    text-align: center;
    height: 100%;
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.fp-kp-stat:hover { background: var(--m3-primary-container); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(31, 38, 34, .1); }
.fp-kp-stat-n { font-size: 26px; font-weight: 700; color: var(--m3-primary); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fp-kp-stat-t { margin-top: 4px; font-size: 12.5px; color: var(--m3-on-surface-variant); }
.fp-kp-advcard {
    background: var(--m3-surface-container-lowest);
    border: 1px solid var(--m3-outline-variant);
    border-radius: 16px;
    padding: 20px 16px;
    height: 100%;
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.fp-kp-advgrid > [class*="col"] { padding-bottom: 12px; }
.fp-kp-advcard:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(31, 38, 34, .12); border-color: var(--m3-primary); }
.fp-kp-adv-tile {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: var(--m3-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .16s ease, transform .16s ease;
}
.fp-kp-advcard:hover .fp-kp-adv-tile { background: var(--m3-primary); transform: scale(1.06); }
.fp-kp-adv-icon { width: 36px; height: 36px; object-fit: contain; }
.fp-kp-advcard h4 { margin: 0 0 8px; font-size: 15px; font-weight: 500; color: var(--m3-on-surface); line-height: 1.3; }
.fp-kp-advcard p { margin: 0; font-size: 12.5px; color: var(--m3-on-surface-variant); line-height: 1.55; }

/* ---- «Что входит» / полный цикл ---- */
.fp-kp-info { background: var(--m3-surface-container-low); border-top: 1px solid var(--m3-outline-variant); }
.fp-kp-info-card {
    background: var(--m3-surface-container-lowest);
    border: 1px solid var(--m3-outline-variant);
    border-radius: 16px;
    padding: 18px 20px 20px;
    height: 100%;
    transition: box-shadow .16s ease, transform .16s ease;
}
.fp-kp-info-card:hover { box-shadow: 0 10px 24px rgba(31, 38, 34, .1); transform: translateY(-3px); }
.fp-kp-info-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fp-kp-info-tile {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: var(--m3-primary-container);
    color: var(--m3-on-primary-container);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fp-kp-info-head h4 { margin: 0; font-size: 15px; font-weight: 600; color: var(--m3-on-surface); }
.fp-kp-info-list { margin: 0; padding: 0; list-style: none; }
.fp-kp-info-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--m3-on-surface-variant);
    line-height: 1.5;
}
.fp-kp-info-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--m3-primary);
    font-weight: 700;
    font-size: 14px;
}
.fp-kp-info-txt { margin: 0; font-size: 13px; color: var(--m3-on-surface-variant); line-height: 1.6; }

/* ---- Как мы работаем ---- */
.fp-kp-steps-head { margin: 34px auto 22px; max-width: 640px; text-align: center; }
.fp-kp-steps-head h3 { margin: 0; font-size: 22px; font-weight: 700; color: var(--m3-on-surface); }
.fp-kp-stepcol { position: relative; }
.fp-kp-step-line {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--m3-outline-variant);
    z-index: 0;
}
.fp-kp-step { position: relative; z-index: 1; text-align: center; }
.fp-kp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--m3-primary);
    color: var(--m3-on-primary);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 4px 10px rgba(0, 107, 79, .35);
}
.fp-kp-step-t { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--m3-on-surface); }
.fp-kp-step-d { margin-top: 4px; font-size: 12px; color: var(--m3-on-surface-variant); line-height: 1.5; }

/* ---- Финал ---- */
.fp-kp-end {
    padding: 44px 32px 40px;
    text-align: center;
    color: #fff;
    background:
        radial-gradient(720px 300px at 50% -40px, rgba(255, 255, 255, .08), transparent 60%),
        linear-gradient(135deg, #4B0E19 0%, #8E1E2F 55%, #A22943 100%);
}
.fp-kp-end-brand { font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.fp-kp-end-text { margin: 10px auto 22px; font-size: 15px; color: rgba(255, 255, 255, .9); max-width: 660px; line-height: 1.6; }
.fp-kp-end-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 18px; }
.fp-kp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 13px 26px;
    border-radius: 999px;
    background: #fff;
    color: var(--m3-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.fp-kp-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.fp-kp-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .65); box-shadow: none; }
.fp-kp-btn-outline:hover { background: rgba(255, 255, 255, .1); }
.fp-kp-end-contacts { font-size: 13px; color: #B5DFCE; }

@media (max-width: 1199.98px) {
    .fp-kp-hero h1 { font-size: 26px; }
}
@media (max-width: 991.98px) {
    .fp-logist.fp-kp { top: 0; bottom: 0; right: 0; width: 96vw; max-width: 100vw; border-radius: 0; }
    .fp-kp-hero { padding: 26px 18px 24px; }
    .fp-kp-hero h1 { font-size: 22px; }
    .fp-kp-hero-imgc { margin-top: 18px; }
    .fp-kp-hero-img { height: 210px; }
    .fp-kp-facts, .fp-kp-section, .fp-kp-why { padding-left: 16px; padding-right: 16px; }
    .fp-kp-top { flex-direction: column; align-items: flex-start; }
    .fp-kp-contacts, .fp-kp-contacts span { text-align: left; }
    .fp-kp-step-line { display: none; }
}

/* ---------- КП в модальном окне: документ для юр. лиц ---------- */
.fp-modal-inner.fp-kp-inner {
    --m3-primary-container: #FFD9CE;
    --m3-on-primary-container: #36000D;
    width: min(880px, 96vw);
    max-width: 96vw;
    max-height: 94vh;
    border: 1px solid #e1e7ed;
    border-radius: 14px;
}
.fp-kp-doc-wrap {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px;
    background: #f3f6f9;
}
.fp-kp-doc {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(20, 35, 60, .06);
    padding: 26px 28px;
    font-size: 13px;
    line-height: 1.5;
    color: #1f2d3d;
    position: relative;
}
.fp-kp-doc-sign-margin {
    position: absolute;
    right: 6px;
    bottom: 3px;
    font-size: 11px;
    letter-spacing: .05em;
    color: #d7dfe8;
    white-space: nowrap;
    pointer-events: none;
}
.fp-kp-doc-letter {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 2px solid #18a36c;
}
.fp-kp-doc-logo { flex: 0 0 auto; height: 64px; width: auto; object-fit: contain; }
.fp-kp-doc-org { flex: 1 1 auto; min-width: 0; }
.fp-kp-doc-org b { display: block; font-size: 16px; margin-bottom: 3px; color: #14283b; }
.fp-kp-doc-org span { display: block; font-size: 12px; color: #5b6b7c; word-break: break-word; }
.fp-kp-doc-meta { flex: 0 0 auto; text-align: right; }
.fp-kp-doc-meta span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #7a8794; }
.fp-kp-doc-meta b { display: block; margin-top: 3px; font-size: 14px; color: #14283b; white-space: nowrap; }
.fp-kp-doc-h1 {
    margin: 24px 0 4px;
    font-size: 31px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #14283b;
}
.fp-kp-doc-title {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    color: #6b7785;
}
.fp-kp-doc-parties {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 8px 14px;
    padding: 10px 12px;
    margin-bottom: 14px;
    background: #f6f8fb;
    border: 1px solid #e7edf4;
    border-radius: 8px;
    break-inside: avoid;
}
.fp-kp-doc-party span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7785; }
.fp-kp-doc-party b { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: #14283b; word-break: break-word; }
.fp-kp-doc-lead { margin: 0 0 14px; font-size: 13px; color: #33475b; }
.fp-kp-doc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fp-kp-doc-table th, .fp-kp-doc-table td { border: 1px solid #dfe6ee; padding: 7px 9px; vertical-align: top; }
.fp-kp-doc-table th { background: #eef4fb; font-weight: 600; text-align: left; }
.fp-kp-doc-table tbody tr { break-inside: avoid; }
.fp-kp-doc-num { text-align: right; white-space: nowrap; }
.fp-kp-doc-total, .fp-kp-doc-due {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border-radius: 8px;
    margin-top: 12px;
    font-size: 14px;
}
.fp-kp-doc-total { background: #14283b; color: #fff; }
.fp-kp-doc-due { background: #ecfaf3; border: 1px solid #b9e4d0; color: #0f5c3d; }
.fp-kp-doc-total b, .fp-kp-doc-due b { font-size: 15px; white-space: nowrap; }
.fp-kp-doc-pay-list { display: grid; gap: 6px; margin-top: 12px; }
.fp-kp-doc-pay {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 8px 12px;
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12.5px;
    break-inside: avoid;
}
.fp-kp-doc-pay-on { background: #f2fbf7; border-color: #18a36c; }
.fp-kp-doc-pay-t { font-weight: 600; color: #14283b; }
.fp-kp-doc-pay-s { font-weight: 700; text-align: right; white-space: nowrap; color: #14283b; }
.fp-kp-doc-pay-n { grid-column: 1 / -1; font-size: 12px; color: #6b7785; }
.fp-kp-doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.fp-kp-doc-col h4 { margin: 0 0 6px; font-size: 13px; color: #14283b; }
.fp-kp-doc-col ul { margin: 0; padding-left: 18px; font-size: 12.5px; color: #33475b; }
.fp-kp-doc-col li { margin-bottom: 3px; }
.fp-kp-doc-notes { margin-top: 16px; }
.fp-kp-doc-notes h4 { margin: 0 0 6px; font-size: 13px; color: #14283b; }
.fp-kp-doc-notes ol { margin: 0; padding-left: 18px; font-size: 12px; color: #4a5b6d; }
.fp-kp-doc-notes li { margin-bottom: 4px; }
.fp-kp-doc-sign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px dashed #cfd8e3;
    break-inside: avoid;
}
.fp-kp-doc-sign-col > span:first-child { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #6b7785; }
.fp-kp-doc-sign-col b { display: block; margin-top: 4px; font-size: 13px; color: #14283b; min-height: 18px; word-break: break-word; }
.fp-kp-doc-sign-line { display: block; height: 24px; border-bottom: 1px solid #9aa7b5; }
.fp-kp-doc-sign-cap { display: block; margin-top: 4px; font-size: 11px; color: #7a8794; }
.fp-kp-doc-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid #e7ebef; }
.fp-kp-doc-foot .fp-btn-pdf { flex: 0 0 auto; width: auto; }
.fp-kp-doc-hint { font-size: 12px; color: #6b7785; }
.fp-kp-pdf-status { font-size: 11px; }
.fp-kp-pdf-status.fp-ok { color: #157a3b; }
.fp-kp-pdf-status.fp-err { color: #b33434; }

/* ---------- КП-2: строгий минималистичный вариант с цветным логотипом ---------- */
.fp-modal-inner.fp-kp2-inner {
    --m3-primary-container: #FFD9CE;
    --m3-on-primary-container: #36000D;
    width: min(760px, 96vw);
    max-width: 96vw;
    max-height: 94vh;
    border: 1px solid #e1e7ed;
    border-radius: 12px;
}
.fp-kp2-doc {
    background: #fff;
    padding: 24px 26px;
    font-size: 13px;
    line-height: 1.5;
    color: #22303e;
    position: relative;
}
.fp-kp2-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d7dee7;
    break-inside: avoid;
}
.fp-kp2-logo { flex: 0 0 auto; height: 48px; width: auto; object-fit: contain; }
.fp-kp2-org { flex: 1 1 auto; min-width: 0; }
.fp-kp2-org b { display: block; font-size: 14px; color: #14283b; }
.fp-kp2-org span { display: block; font-size: 11.5px; color: #5b6b7c; word-break: break-word; }
.fp-kp2-meta { flex: 0 0 auto; text-align: right; font-size: 12px; color: #5b6b7c; }
.fp-kp2-meta b { display: block; font-size: 13px; color: #14283b; white-space: nowrap; }
.fp-kp2-meta span { display: block; margin-top: 2px; }
.fp-kp2-kicker {
    margin: 16px 0 4px;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8e1e2f;
    text-align: center;
}
.fp-kp2-title { margin-bottom: 8px; }
.fp-kp2-title h2 { margin: 0 0 16px; font-size: 15px; line-height: 1.3; font-weight: 600; color: #5b6b7c; text-align: center; }
.fp-kp2-title p { margin: 0 0 4px; font-size: 12.5px; color: #5b6b7c; }
.fp-kp2-facts { margin: 0 0 8px; font-size: 12.5px; color: #5b6b7c; }
.fp-kp2-fact { margin: 2px 0; }
.fp-kp2-fact b { color: #34475b; }
.fp-kp2-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fp-kp2-table th, .fp-kp2-table td { border: 1px solid #d9e0e9; padding: 6px 8px; vertical-align: top; }
.fp-kp2-table th { background: #f4f7fb; font-weight: 600; text-align: left; }
.fp-kp2-table tbody tr { break-inside: avoid; }
.fp-kp2-num { text-align: right; white-space: nowrap; }
.fp-kp2-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    margin-top: 10px;
    background: #f4f7fb;
    font-weight: 700;
    font-size: 13px;
    color: #14283b;
    break-inside: avoid;
}
.fp-kp2-pay { margin-top: 8px; font-size: 12px; }
.fp-kp2-pay div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
    color: #4a5b6d;
    break-inside: avoid;
}
.fp-kp2-pay span { min-width: 0; }
.fp-kp2-pay b { color: #14283b; white-space: nowrap; }
.fp-kp2-pay-on { color: #0f5c3d !important; font-weight: 700; }
.fp-kp2-notes { margin-top: 10px; font-size: 11.5px; color: #4a5b6d; }
.fp-kp2-notes > b { display: block; font-size: 12px; color: #34475b; }
.fp-kp2-notes ol { margin: 4px 0 0; padding-left: 16px; }
.fp-kp2-notes li { margin-bottom: 4px; }
.fp-kp2-conditions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.fp-kp2-conditions section { padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fbfcfe; break-inside: avoid; }
.fp-kp2-conditions h4 { margin: 0 0 6px; color: #34475b; font-size: 12px; }
.fp-kp2-conditions ul { margin: 0; padding-left: 16px; color: #4a5b6d; font-size: 11.5px; }
.fp-kp2-conditions li { margin-bottom: 3px; }
.fp-kp2-photo { margin: 14px auto 0; text-align: center; break-inside: avoid; }
.fp-kp2-photo img { display: block; width: min(100%, 640px); max-height: 360px; margin: 0 auto; border-radius: 8px; object-fit: cover; }
.fp-kp2-sign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid #d7dee7;
    font-size: 11.5px;
    color: #5b6b7c;
    break-inside: avoid;
}
.fp-kp2-sign-no-customer { grid-template-columns: repeat(2, 1fr); }
.fp-kp2-sign b { display: block; margin: 2px 0 2px; font-size: 12.5px; color: #14283b; min-height: 16px; word-break: break-word; }
.fp-kp2-manager-phone { display: block; margin: 0 0 8px; font-size: 11px; color: #5b6b7c; }
.fp-kp2-line { display: block; height: 12px; border-top: 1px solid #9aa7b5; }
@media (max-width: 600px) {
    .fp-kp2-doc { padding: 16px 14px; }
    .fp-kp2-head { flex-wrap: wrap; }
    .fp-kp2-meta { text-align: left; }
    .fp-kp2-sign { grid-template-columns: 1fr; }
    .fp-kp2-conditions { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .fp-kp-doc { padding: 16px 14px; }
    .fp-kp-doc-cols, .fp-kp-doc-sign { grid-template-columns: 1fr; }
    .fp-kp-doc-letter { flex-wrap: wrap; }
    .fp-kp-doc-meta { text-align: left; }
    .fp-kp-doc-foot { flex-wrap: wrap; }
}

/* ---------- КП-3: презентация проекта ---------- */
.fp-kp3-modal { padding: 12px; background: rgba(11, 18, 28, .72); }
.fp-modal-inner.fp-kp3-inner {
    --m3-primary-container: #FFD9CE;
    --m3-on-primary-container: #36000D;
    width: min(1120px, 98vw);
    max-width: 98vw;
    height: min(94vh, 1000px);
    max-height: 96vh;
    border: 1px solid #dce2e9;
    border-radius: 16px;
}
.fp-kp3-doc-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px; background: #edf1f5; }
.fp-kp3-doc {
    max-width: 1040px;
    margin: 0 auto;
    background: #fff;
    color: #1c2838;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 8px 32px rgba(16, 29, 46, .12);
    position: relative;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}
.fp-kp3-doc * { box-sizing: border-box; }
.fp-kp3-hero { overflow: hidden; background: #142235; color: #fff; }
.fp-kp3-hero-top { display: flex; align-items: center; gap: 12px; padding: 22px 30px 8px; }
.fp-kp3-logo { flex: 0 0 auto; width: 58px; height: 48px; object-fit: contain; border-radius: 6px; background: #fff; }
.fp-kp3-hero-company { min-width: 0; }
.fp-kp3-hero-company b { display: block; font-size: 16px; line-height: 1.2; letter-spacing: .08em; }
.fp-kp3-hero-company span { display: block; margin-top: 3px; color: #c5cfdb; font-size: 11px; }
.fp-kp3-hero-meta { margin-left: auto; text-align: right; }
.fp-kp3-hero-meta span { display: block; color: #f2b5ba; font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.fp-kp3-hero-meta b { display: block; margin-top: 4px; font-size: 12px; }
.fp-kp3-hero-main { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px; padding: 20px 30px 24px; }
.fp-kp3-hero-copy { padding: 8px 0; }
.fp-kp3-eyebrow, .fp-kp3-section-label { display: block; color: #a72d43; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.fp-kp3-eyebrow { color: #f4a9b2; }
.fp-kp3-hero h1 { margin: 14px 0 12px; color: #fff; font-size: clamp(30px, 4vw, 46px); font-weight: 750; line-height: 1.04; letter-spacing: -.035em; }
.fp-kp3-hero h1 em { color: #ffccd1; font-style: normal; }
.fp-kp3-hero-copy > p { max-width: 470px; margin: 0; color: #d3dce7; font-size: 15px; line-height: 1.6; }
.fp-kp3-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.fp-kp3-hero-tags span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #f8fafc; font-size: 11px; }
.fp-kp3-hero-image { min-width: 0; overflow: hidden; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); }
.fp-kp3-hero-image img { display: block; width: 100%; height: 280px; object-fit: cover; object-position: center 65%; }
.fp-kp3-hero-bottom { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 12px; padding: 13px 30px; border-top: 1px solid rgba(255,255,255,.15); background: #1b2d43; color: #bfcbd8; font-size: 11px; }
.fp-kp3-hero-bottom span { min-width: 0; }
.fp-kp3-hero-bottom b { color: #fff; font-weight: 600; }
.fp-kp3-intro { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: center; padding: 34px 36px; border-bottom: 1px solid #e7ebf0; }
.fp-kp3-intro h2, .fp-kp3-section-heading h2, .fp-kp3-process-heading h2, .fp-kp3-scope h2, .fp-kp3-close h2 { margin: 7px 0 9px; color: #17283c; font-size: 26px; line-height: 1.18; letter-spacing: -.025em; }
.fp-kp3-intro p, .fp-kp3-section-heading p { max-width: 690px; margin: 0; color: #59697a; font-size: 14px; }
.fp-kp3-price-highlight { padding: 17px 18px; border-left: 3px solid #a72d43; background: #f4f6f8; }
.fp-kp3-price-highlight span, .fp-kp3-price-highlight small { display: block; color: #667587; font-size: 11px; }
.fp-kp3-price-highlight b { display: block; margin: 4px 0; color: #17283c; font-size: 25px; line-height: 1.2; }
.fp-kp3-section { padding: 34px 36px; }
.fp-kp3-section-heading { margin-bottom: 18px; }
.fp-kp3-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fp-kp3-benefit { min-height: 170px; padding: 17px 16px; border: 1px solid #e4e9ef; border-radius: 10px; background: #fff; }
.fp-kp3-benefit-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #f9e9eb; color: #98263a; font-size: 11px; font-weight: 800; }
.fp-kp3-benefit h3 { margin: 12px 0 6px; color: #1e3045; font-size: 15px; line-height: 1.3; }
.fp-kp3-benefit p { margin: 0; color: #607083; font-size: 12px; line-height: 1.55; }
.fp-kp3-process { padding: 34px 36px; background: #f5f7f9; }
.fp-kp3-process-heading { margin-bottom: 20px; }
.fp-kp3-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fp-kp3-step { position: relative; min-height: 150px; padding: 17px 16px; border-top: 2px solid #a72d43; background: #fff; }
.fp-kp3-step-num { color: #a72d43; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.fp-kp3-step h3 { margin: 10px 0 6px; color: #1e3045; font-size: 15px; }
.fp-kp3-step p { margin: 0; color: #607083; font-size: 12px; }
.fp-kp3-gallery { padding: 34px 36px; }
.fp-kp3-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.fp-kp3-photo { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #e2e7ed; border-radius: 10px; background: #fff; break-inside: avoid; }
.fp-kp3-photo img { display: block; width: 100%; height: 210px; object-fit: cover; background: #e8edf2; }
.fp-kp3-photo-team img { object-position: center 40%; }
.fp-kp3-photo-process img { object-position: center 48%; }
.fp-kp3-photo figcaption { min-height: 108px; padding: 11px 13px; }
.fp-kp3-photo figcaption b, .fp-kp3-photo figcaption span { display: block; }
.fp-kp3-photo figcaption b { color: #1e3045; font-size: 13px; }
.fp-kp3-photo figcaption span { margin-top: 3px; color: #607083; font-size: 11px; }
.fp-kp3-photo figcaption small { display: block; margin-top: 7px; padding-top: 6px; border-top: 1px solid #edf0f3; color: #0d6b4c; font-size: 10px; line-height: 1.4; }
.fp-kp3-photo figcaption small strong { font-weight: 800; }
.fp-kp3-photo-credit { margin-top: 9px; color: #8491a0; font-size: 10px; text-align: right; }
.fp-kp3-photo-credit a { color: #68788b; }
.fp-kp3-scope { display: grid; grid-template-columns: 1fr .9fr; gap: 28px; padding: 34px 36px; background: #f5f7f9; }
.fp-kp3-scope-copy > p { margin: 0 0 12px; color: #607083; font-size: 13px; }
.fp-kp3-scope h2 { font-size: 24px; }
.fp-kp3-included { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 18px 0 0; padding: 0; list-style: none; }
.fp-kp3-included li { position: relative; padding-left: 22px; color: #34475b; font-size: 12px; }
.fp-kp3-included li::before { position: absolute; left: 0; top: 0; content: "✓"; color: #16835f; font-weight: 800; }
.fp-kp3-recipe { padding: 20px; border-radius: 10px; background: #17283c; color: #fff; }
.fp-kp3-recipe h3 { margin: 7px 0 14px; color: #fff; font-size: 18px; line-height: 1.25; }
.fp-kp3-recipe .fp-kp3-section-label { color: #f0aab3; }
.fp-kp3-ingredient { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.16); }
.fp-kp3-ingredient b { color: #f2a9b2; font-size: 11px; }
.fp-kp3-ingredient span { font-size: 13px; }
.fp-kp3-recipe > p { margin: 12px 0 0; color: #cbd5df; font-size: 11px; }
.fp-kp3-estimate { padding: 34px 36px; }
.fp-kp3-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.fp-kp3-table th, .fp-kp3-table td { padding: 8px 7px; border-bottom: 1px solid #e2e7ed; vertical-align: top; text-align: left; }
.fp-kp3-table th { background: #f4f6f8; color: #44566a; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.fp-kp3-num { text-align: right !important; white-space: nowrap; }
.fp-kp3-table tfoot td { padding-top: 12px; border-bottom: 0; color: #16283b; font-size: 14px; font-weight: 800; }
.fp-kp3-payments { margin-top: 14px; padding: 14px 16px; border: 1px solid #e2e7ed; border-radius: 10px; }
.fp-kp3-payments-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: #26394e; font-size: 12px; }
.fp-kp3-payments-title span { color: #7a8795; font-size: 10px; }
.fp-kp3-pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #edf0f3; color: #556577; font-size: 11px; }
.fp-kp3-pay-row b { white-space: nowrap; color: #26394e; }
.fp-kp3-pay-row.is-selected { color: #0d6b4c; font-weight: 700; }
.fp-kp3-pay-row.is-selected b { color: #0d6b4c; }
.fp-kp3-notes { margin-top: 12px; color: #6d7a88; font-size: 10px; }
.fp-kp3-notes ol { margin: 4px 0 0; padding-left: 18px; }
.fp-kp3-close { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: center; padding: 30px 36px; background: #142235; color: #fff; }
.fp-kp3-close h2 { margin-top: 10px; color: #fff; font-size: 32px; }
.fp-kp3-close-copy .fp-kp3-section-label { color: #f0aab3; }
.fp-kp3-close-copy p { color: #cbd5df; font-size: 13px; }
.fp-kp3-signature { margin-top: 12px; color: #f0aab3; font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-style: italic; letter-spacing: .04em; text-align: right; }
.fp-kp3-close-contact { padding: 16px; border-radius: 10px; background: #fff; color: #34475b; font-size: 11px; }
.fp-kp3-close-contact img { float: right; width: 48px; height: 42px; object-fit: contain; }
.fp-kp3-close-contact b, .fp-kp3-close-contact span, .fp-kp3-close-contact a, .fp-kp3-close-contact small { display: block; }
.fp-kp3-close-contact b { color: #1d2e42; font-size: 14px; }
.fp-kp3-close-contact span { margin-top: 7px; color: #69788a; }
.fp-kp3-close-contact a { margin-top: 8px; color: #8e1e2f; font-size: 15px; font-weight: 700; text-decoration: none; }
.fp-kp3-close-contact small { margin-top: 9px; color: #7d8996; }
.fp-kp3-foot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid #e7ebef; }
.fp-kp3-foot .fp-btn-pdf { flex: 0 0 auto; width: auto; }
.fp-kp3-foot > span { color: #6b7785; font-size: 12px; }
@media (max-width: 800px) {
    .fp-kp3-benefits { grid-template-columns: repeat(2, 1fr); }
    .fp-kp3-steps { grid-template-columns: repeat(2, 1fr); }
    .fp-kp3-scope { grid-template-columns: 1fr; }
    .fp-kp3-hero-main { grid-template-columns: 1fr; }
    .fp-kp3-hero-image img { height: 250px; }
    .fp-kp3-photos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .fp-kp3-modal { padding: 0; }
    .fp-modal-inner.fp-kp3-inner { width: 100%; max-width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
    .fp-kp3-doc-wrap { padding: 0; }
    .fp-kp3-hero-top, .fp-kp3-hero-main, .fp-kp3-hero-bottom,
    .fp-kp3-intro, .fp-kp3-section, .fp-kp3-process, .fp-kp3-gallery,
    .fp-kp3-scope, .fp-kp3-estimate, .fp-kp3-close { padding-left: 18px; padding-right: 18px; }
    .fp-kp3-hero-meta { width: 100%; margin: 8px 0 0; text-align: left; }
    .fp-kp3-hero-bottom { grid-template-columns: 1fr; gap: 5px; }
    .fp-kp3-intro, .fp-kp3-close { grid-template-columns: 1fr; gap: 16px; }
    .fp-kp3-benefits, .fp-kp3-steps, .fp-kp3-photos { grid-template-columns: 1fr; }
    .fp-kp3-benefit, .fp-kp3-step { min-height: 0; }
    .fp-kp3-included { grid-template-columns: 1fr; }
    .fp-kp3-table { font-size: 9px; }
    .fp-kp3-table th, .fp-kp3-table td { padding: 6px 4px; }
    .fp-kp3-photo img { height: 220px; }
    .fp-kp3-foot { flex-wrap: wrap; }
}

/* ---------- Печать / «Скачать PDF» ---------- */
@page { size: A4; margin: 12mm; }
@media print {
    body.fp-print-kp #fp_logist.fp-kp {
        position: static !important;
        top: auto !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
        background: #fff !important;
    }
    body.fp-print-kp #fp_logist.fp-kp .fp-logist-head,
    body.fp-print-kp #fp_logist.fp-kp .fp-logist-foot,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-end-cta,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-best-badge { display: none !important; }
    .fp .fp-kp .fp-kp-facts .row { margin-left: -12px; margin-right: -12px; }
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-facts .row { margin-left: -12px; margin-right: -12px; }
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-facts .row > [class*="col"] { padding-left: 12px; padding-right: 12px; padding-bottom: 12px; }
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-hero { padding: 20px 18px; }
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-hero-img { height: 170px; }
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-hero-imgc { margin-top: 0; }
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-section,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-why,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-end { padding-left: 12px; padding-right: 12px; }
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-advcard,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-info-card,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-stat,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-bankcard,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-fact,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-step,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-stepcol,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-table,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-notes,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-hero-img,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-table tr,
    body.fp-print-kp #fp_logist.fp-kp .fp-kp-adv-tile { break-inside: avoid; page-break-inside: avoid; }

    body.fp-print-kp-doc > * { display: none !important; }
    body.fp-print-kp-doc > #fp_kp_doc {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        background: #fff !important;
    }
    body.fp-print-kp-doc > #fp_kp_doc .fp-kp-doc {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    body.fp-print-kp-doc > #fp_kp_doc .fp-kp-doc-table tr,
    body.fp-print-kp-doc > #fp_kp_doc .fp-kp-doc-parties,
    body.fp-print-kp-doc > #fp_kp_doc .fp-kp-doc-sign,
    body.fp-print-kp-doc > #fp_kp_doc .fp-kp-doc-pay,
    body.fp-print-kp-doc > #fp_kp_doc .fp-kp-doc-cols { break-inside: avoid; page-break-inside: avoid; }

    body.fp-print-kp2-doc > * { display: none !important; }
    body.fp-print-kp2-doc > #fp_kp2_doc {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        background: #fff !important;
    }
    body.fp-print-kp2-doc > #fp_kp2_doc .fp-kp2-doc {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    body.fp-print-kp2-doc > #fp_kp2_doc .fp-kp2-table tr,
    body.fp-print-kp2-doc > #fp_kp2_doc .fp-kp2-sign,
    body.fp-print-kp2-doc > #fp_kp2_doc .fp-kp2-total,
    body.fp-print-kp2-doc > #fp_kp2_doc .fp-kp2-pay div,
    body.fp-print-kp2-doc > #fp_kp2_doc .fp-kp2-head { break-inside: avoid; page-break-inside: avoid; }

    body.fp-print-kp3-doc > * { display: none !important; }
    body.fp-print-kp3-doc > #fp_kp3_doc {
        display: block !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        padding: 0 !important;
        background: #fff !important;
    }
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-doc {
        max-width: none !important;
        margin: 0 !important;
        box-shadow: none !important;
        font-size: 11px !important;
    }
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-hero,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-close,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-recipe,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-pay-row.is-selected {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-hero-top,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-hero-main,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-hero-bottom,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-intro,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-section,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-process,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-gallery,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-scope,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-estimate,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-close { break-inside: avoid; page-break-inside: avoid; }
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-photo,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-benefit,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-step,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-table tr,
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-pay-row { break-inside: avoid; page-break-inside: avoid; }
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-hero-image img { height: 190px !important; }
    body.fp-print-kp3-doc > #fp_kp3_doc .fp-kp3-photo img { height: 145px !important; }
}

/* ---------- Калькулятор средней толщины стяжки с уклоном ---------- */
.fp-cone-modal { z-index: 1200; padding: 14px; box-sizing: border-box; background: rgba(18, 31, 43, .52); }
.fp-modal-inner.fp-cone-inner {
    width: min(1050px, 96vw);
    max-width: 96vw;
    height: min(760px, 94vh);
    max-height: 94vh;
    border: 1px solid #e4eaf0;
    border-radius: 16px;
}
.fp-cone-inner .fp-modal-head { padding: 16px 20px; font-size: 17px; color: #24364a; }
.fp-cone-inner .fp-modal-close { padding: 5px 10px; font-size: 16px; }
.fp-cone-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px 20px 22px; }
.fp-cone-layout { display: grid; grid-template-columns: minmax(265px, .78fr) minmax(0, 1.22fr); gap: 22px; align-items: start; }
.fp-cone-controls { padding: 16px; border: 1px solid #e4eaf0; border-radius: 12px; background: #fbfcfe; }
.fp-cone-controls > .fp-field { margin-bottom: 18px; }
.fp-cone-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 6px; color: #33465a; font-size: 12px; }
.fp-cone-add { flex: 0 0 auto; padding: 5px 8px; border: 1px solid #cfe4d8; border-radius: 6px; background: #eff8f2; color: #18734b; font-size: 11px; font-weight: 700; cursor: pointer; }
.fp-cone-add:hover { background: #e1f2e7; }
.fp-cone-measures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.fp-cone-measure-row { display: flex; align-items: end; min-width: 0; gap: 4px; }
.fp-cone-measure-label { flex: 1 1 auto; min-width: 0; color: #667789; font-size: 11px; font-weight: 600; }
.fp-cone-measure-input { height: 34px; padding: 5px 7px; font-size: 13px; }
.fp-cone-remove { flex: 0 0 28px; height: 34px; border: 1px solid #efd8d4; border-radius: 6px; background: #fff7f5; color: #b33434; font-size: 19px; line-height: 1; cursor: pointer; }
.fp-cone-remove:hover { background: #fbe9e5; }
.fp-cone-hint { margin-top: 14px; color: #798999; font-size: 11px; line-height: 1.45; }
.fp-cone-visual-section { min-width: 0; }
.fp-cone-visual { overflow: hidden; border: 1px solid #e4eaf0; border-radius: 12px; background: linear-gradient(180deg, #f5faff, #fff 78%); }
.fp-cone-svg { display: block; width: 100%; height: auto; min-height: 245px; }
.fp-cone-side { fill: #b8c9d8; stroke: #8199ad; stroke-width: 1.2; }
.fp-cone-facet { stroke: rgba(50, 89, 116, .55); stroke-width: 1.4; }
.fp-cone-facet-0 { fill: rgba(42, 140, 255, .48); }
.fp-cone-facet-1 { fill: rgba(75, 173, 190, .48); }
.fp-cone-point { fill: #f2994a; stroke: #fff; stroke-width: 2.5; }
.fp-cone-center-point { fill: #df4d5d; stroke: #fff; stroke-width: 3; }
.fp-cone-point-label, .fp-cone-center-label { fill: #273b4d; font: 600 12px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.fp-cone-leader { fill: none; stroke: #df4d5d; stroke-width: 1.2; stroke-dasharray: 3 2; }
.fp-cone-svg-caption { fill: #75879a; font: 11px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fp-cone-result { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 90px; margin-top: 12px; padding: 12px; border-radius: 12px; background: #eaf6ef; text-align: center; }
.fp-cone-result-number { color: #157a3b; font-size: 30px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.fp-cone-result-caption { margin-top: 4px; color: #547364; font-size: 12px; }
.fp-cone-summary { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: #657688; font-size: 12px; }
.fp-cone-summary b { color: #24364a; font-size: 14px; }
.fp-cone-formula { margin-top: 8px; color: #8492a0; font-size: 11px; text-align: center; }
.fp-cone-btn { border-color: #cfe4d8; background: #eff8f2; color: #18734b; }
.fp-cone-btn:hover { background: #e1f2e7; }
@media (max-width: 720px) {
    .fp-cone-modal { padding: 6px; }
    .fp-modal-inner.fp-cone-inner { width: 100%; max-width: 100%; height: 96vh; max-height: 96vh; border-radius: 12px; }
    .fp-cone-content { padding: 12px; }
    .fp-cone-layout { grid-template-columns: 1fr; gap: 12px; }
    .fp-cone-controls { padding: 12px; }
    .fp-cone-svg { min-height: 190px; }
}

/* ---------- Выбор прочих материалов и работ ---------- */
.fp-other-modal { z-index: 1200; padding: 12px; box-sizing: border-box; background: rgba(18, 31, 43, .52); }
.fp-modal-inner.fp-other-inner {
    width: min(1180px, 97vw);
    max-width: 97vw;
    height: min(850px, 94vh);
    max-height: 94vh;
    border: 1px solid #e1e7ed;
    border-radius: 14px;
}
.fp-other-inner .fp-modal-head { padding: 14px 18px; font-size: 17px; color: #273b4e; }
.fp-other-inner .fp-modal-close { padding: 5px 10px; font-size: 16px; }
.fp-other-content { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 12px 18px 18px; }
.fp-other-hint { margin: 0 0 12px; color: #728195; font-size: 12px; line-height: 1.45; }
.fp-other-search-label { position: sticky; top: 0; z-index: 3; display: block; margin: 0 0 10px; padding: 7px 0; background: #fff; color: #53677c; font-size: 11px; font-weight: 700; }
.fp-other-search-label .fp-input { height: 36px; margin-top: 4px; font-size: 13px; font-weight: 400; }
.fp-other-search-hidden { display: none !important; }
.fp-other-no-results { padding: 24px 12px; color: #748397; font-size: 13px; text-align: center; }
.fp-other-column-head, .fp-other-row {
    display: grid;
    grid-template-columns: 30px minmax(190px, 1fr) 78px 105px 120px 112px 30px;
    gap: 8px;
    align-items: center;
    min-width: 760px;
}
.fp-other-column-head { position: sticky; top: 0; z-index: 2; padding: 8px 10px; background: #f0f4f7; border-radius: 7px; color: #647589; font-size: 11px; font-weight: 700; }
.fp-other-group { margin-top: 12px; padding: 0 10px 10px; border: 1px solid #e3e9ef; border-radius: 10px; background: #fff; }
.fp-other-group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #edf1f4; }
.fp-other-group-head h3 { margin: 0; color: #344a60; font-size: 14px; }
.fp-other-add { flex: 0 0 auto; padding: 5px 9px; border: 1px solid #ccdfd3; border-radius: 6px; background: #f0f8f3; color: #18734b; font-size: 11px; font-weight: 700; cursor: pointer; }
.fp-other-add:hover { background: #e4f2e8; }
.fp-other-subheading { margin: 9px 0 4px; padding: 5px 8px; border-radius: 5px; background: #f7f9fb; color: #62758a; font-size: 11px; font-weight: 700; }
.fp-other-row { padding: 5px 0; border-bottom: 1px solid #f0f3f6; }
.fp-other-row:last-child { border-bottom: 0; }
.fp-other-select { display: flex; align-items: center; justify-content: center; }
.fp-other-select input { width: 16px; height: 16px; margin: 0; accent-color: #238258; cursor: pointer; }
.fp-other-name-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fp-other-name-cell .fp-input { margin-top: 0; height: 32px; padding: 5px 7px; font-size: 12px; font-weight: 500; }
.fp-other-role-tag { color: #758699; font-size: 10px; }
.fp-other-name-cell .fp-other-role { max-width: 125px; height: 27px; font-size: 11px; }
.fp-other-thickness { display: inline-flex; align-items: center; gap: 6px; color: #63758a; font-size: 10px; }
.fp-other-thickness-input { width: 76px; height: 28px !important; }
.fp-other-formula { color: #536b5f; font-size: 10px; line-height: 1.4; }
.fp-other-unit-label { color: #44576a; font-size: 12px; font-weight: 700; text-align: center; }
.fp-other-quantity[readonly] { background: #f2f6f8; color: #43566a; }
.fp-other-row > .fp-input { width: 100%; min-width: 0; height: 34px; margin: 0; padding: 5px 7px; font-size: 12px; }
.fp-other-sum { color: #263d50; font-size: 12px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fp-other-remove { width: 28px; height: 28px; border: 1px solid #efd8d4; border-radius: 6px; background: #fff7f5; color: #b33434; font-size: 19px; line-height: 1; cursor: pointer; }
.fp-other-remove:hover { background: #fbe9e5; }
.fp-other-footer { display: flex; flex-direction: column; gap: 9px; padding: 10px 18px; border-top: 1px solid #e7ebef; background: #fff; color: #526477; font-size: 12px; }
.fp-other-auto-note { padding: 8px 10px; border-left: 3px solid #e3ae4c; border-radius: 4px; background: #fff8e9; color: #705b35; font-size: 11px; line-height: 1.45; }
.fp-other-mesh-lift-note { padding: 8px 10px; border-left: 3px solid #e3ae4c; border-radius: 4px; background: #fff8e9; color: #705b35; font-size: 11px; line-height: 1.45; }
.fp-other-footer-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.fp-other-footer .fp-other-done { flex: 0 0 auto; width: auto; min-width: 110px; margin: 0; padding: 8px 14px; }
.fp-other-open, .fp-logist-open { width: 100%; margin-top: 0; border: 1px solid #d6dce1; background: #f2f6f2; color: #1f7a4d; box-shadow: none; }
.fp-other-open:hover, .fp-logist-open:hover { border-color: #abc7b3; background: #e0eadf; }
.fp-other-selected-summary { margin-top: 7px; color: #6c7c8e; font-size: 11px; text-align: center; }
@media (max-width: 720px) {
    .fp-other-modal { padding: 5px; }
    .fp-modal-inner.fp-other-inner { width: 100%; max-width: 100%; height: 97vh; max-height: 97vh; border-radius: 11px; }
    .fp-other-content { padding: 10px; }
    .fp-other-inner .fp-modal-head { padding: 12px; font-size: 15px; }
    .fp-other-footer { padding: 9px 12px; }
    .fp-other-group { padding-right: 7px; padding-left: 7px; }
}

/* ---------- Логист: экипаж и автосмеситель ---------- */
.fp-logist-selection-summary { margin: 6px 0 12px; color: #718094; font-size: 11px; line-height: 1.45; }
.fp-logist-select-modal { z-index: 1200; padding: 12px; box-sizing: border-box; background: rgba(18, 31, 43, .52); }
.fp-modal-inner.fp-logist-select-inner { width: min(560px, 94vw); max-width: 94vw; max-height: 90vh; border: 1px solid #e1e7ed; border-radius: 14px; }
.fp-logist-select-inner .fp-modal-head { padding: 14px 18px; font-size: 16px; color: #273b4e; }
.fp-logist-select-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px 18px 8px; }
.fp-logist-select-content > .fp-field { margin-bottom: 14px; }
.fp-logist-select-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid #e7ebef; color: #607286; font-size: 12px; }
.fp-logist-select-foot .fp-logist-select-done { flex: 0 0 auto; width: auto; min-width: 100px; margin: 0; }
.fp-logist-list-modal { z-index: 1350; }
.fp-quiet-row { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(0, 1.2fr); align-items: end; gap: 8px; margin-bottom: 8px; }
.fp-quiet-row .fp-field { min-width: 0; margin-bottom: 0; }
.fp-quiet-hours-fields { display: none; align-items: end; gap: 6px; min-width: 0; }
.fp-quiet-hours-fields.fp-open { display: flex; }
.fp-quiet-hours-fields .fp-field { flex: 1 1 0; font-size: 11px; }
.fp-quiet-hours-fields .fp-input { min-width: 0; padding-right: 3px; padding-left: 3px; }
@media (max-width: 720px) {
    .fp-logist-select-modal { padding: 6px; }
    .fp-modal-inner.fp-logist-select-inner { width: 100%; max-width: 100%; max-height: 94vh; border-radius: 11px; }
    .fp-logist-select-content { padding: 12px; }
    .fp-logist-select-foot { padding: 9px 12px; }
}
