/* New-House Estimator v5.9.0 — route chooser + projects-in-budget flow.
   Visual direction: light grey surfaces, white fields, red CTA; no decorative shadows. */

.nh-efp-v590 {
    --nh-v590-red: #d62f38;
    --nh-v590-red-dark: #bd252d;
    --nh-v590-text: #202522;
    --nh-v590-muted: #68716d;
    --nh-v590-border: #dde2e5;
    --nh-v590-border-strong: #cfd6da;
    --nh-v590-grey: #f5f6f7;
    --nh-v590-grey-2: #fafafa;
}

.nh-efp-v590.nh-estimator-fullpage .nh-efp-tool-first {
    background: #fff !important;
}

.nh-efp-v590 .nh-efp-tool-heading__eyebrow,
.nh-efp-v590 .nh-efp-kicker {
    color: #6d7370;
}

.nh-efp-v590 .nh-efp-tool-heading__eyebrow::before,
.nh-efp-v590 .nh-efp-kicker::before {
    background: var(--nh-v590-red) !important;
}

.nh-efp-v590 .nh-efp-calculator-host,
.nh-efp-v590.nh-estimator-fullpage .nh-efp-tool-first .nh-efp-calculator-host--hero {
    overflow: hidden;
    border: 1px solid var(--nh-v590-border) !important;
    border-radius: 18px !important;
    background: var(--nh-v590-grey) !important;
    box-shadow: none !important;
}

.nh-efp-v590 .nh-efp-calculator-host *,
.nh-efp-v590 .nh-rpf * {
    box-shadow: none !important;
}

.nh-efp-v590 .nh-efp-calculator-topbar,
.nh-efp-v590.nh-estimator-fullpage .nh-efp-tool-first .nh-efp-calculator-host--hero .nh-efp-calculator-topbar {
    min-height: 72px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--nh-v590-border) !important;
    background: var(--nh-v590-grey) !important;
}

.nh-efp-v590 .nh-efp-live-dot {
    background: var(--nh-v590-red) !important;
}

.nh-efp-v590 .nh-efp-live-dot::after {
    display: none !important;
}

.nh-efp-v590 .nh-efp-calculator-meta span,
.nh-efp-v590.nh-estimator-fullpage .nh-efp-tool-first .nh-efp-calculator-meta span {
    border: 1px solid #d9dfe2 !important;
    background: #fff !important;
    color: #626a66 !important;
}

/* Main route tree */
.nh-efp-mode-picker {
    padding: 34px 28px 38px;
    background: var(--nh-v590-grey);
}

.nh-efp-mode-picker__head {
    max-width: 820px;
    margin: 0 auto 25px;
    text-align: center;
}

.nh-efp-mode-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border: 1px solid #dfe3e5;
    border-radius: 999px;
    background: #fff;
    color: #737a76;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.nh-efp-mode-picker__head h2 {
    margin: 0 0 10px;
    color: var(--nh-v590-text);
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.nh-efp-mode-picker__head p {
    max-width: 720px;
    margin: 0 auto;
    color: var(--nh-v590-muted);
    font-size: 14px;
    line-height: 1.65;
}

.nh-efp-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 1040px;
    margin: 0 auto;
}

.nh-efp-mode-card {
    position: relative;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 28px;
    gap: 16px;
    align-items: center;
    min-height: 128px;
    margin: 0;
    padding: 20px 20px;
    border: 1px solid var(--nh-v590-border-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--nh-v590-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

.nh-efp-mode-card:hover,
.nh-efp-mode-card:focus-visible {
    border-color: #e27b80;
    background: #fffdfd;
}

.nh-efp-mode-card:focus-visible {
    outline: 3px solid rgba(214, 47, 56, .15);
    outline-offset: 2px;
}

.nh-efp-mode-icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e4e6;
    border-radius: 10px;
    background: var(--nh-v590-grey);
    color: #505753;
    font-size: 16px;
    font-weight: 600;
}

.nh-efp-mode-card--budget .nh-efp-mode-icon {
    border-color: #f0c8ca;
    background: #fff5f5;
    color: var(--nh-v590-red);
}

.nh-efp-mode-copy {
    min-width: 0;
}

.nh-efp-mode-copy strong {
    display: block;
    margin-bottom: 5px;
    color: #262c28;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
}

.nh-efp-mode-copy small {
    display: block;
    color: #747b77;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.55;
}

.nh-efp-mode-arrow {
    color: var(--nh-v590-red);
    font-size: 21px;
    line-height: 1;
    text-align: right;
}

.nh-efp-mode-workspace {
    background: #fff;
}

.nh-efp-mode-toolbar {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 20px;
    border-bottom: 1px solid #e5e8ea;
    background: #fafafa;
}

.nh-efp-mode-toolbar button {
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #626a66;
    font: 600 12px/1.2 inherit;
    cursor: pointer;
}

.nh-efp-mode-toolbar button:hover {
    color: var(--nh-v590-red);
}

.nh-efp-mode-toolbar > span {
    color: #747b77;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
}

.nh-efp-mode-panel[hidden],
.nh-efp-mode-picker[hidden],
.nh-efp-mode-workspace[hidden] {
    display: none !important;
}

/* Existing estimator: same grey/white/red visual language as /kosztorysy. */
.nh-efp-v590 .nh-efp-mode-panel[data-nh-mode-panel="estimate"] .nh-estimator--inline,
.nh-efp-v590 .nh-efp-mode-panel[data-nh-mode-panel="estimate"] .nh-estimator__panel {
    background: var(--nh-v590-grey) !important;
}

.nh-efp-v590 .nh-efp-mode-panel[data-nh-mode-panel="estimate"] .nh-estimator__content,
.nh-efp-v590.nh-estimator-fullpage .nh-efp-tool-first .nh-efp-mode-panel[data-nh-mode-panel="estimate"] .nh-estimator__content {
    background: var(--nh-v590-grey) !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__progress {
    background: #e6e9eb !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__progress span {
    background: var(--nh-v590-red) !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile,
.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile--path {
    border-color: #d7dde0 !important;
    border-radius: 12px !important;
    background: #fff !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile:hover,
.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile--path:hover {
    border-color: #e1888d !important;
    background: #fffdfd !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile.is-selected,
.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile--path.is-selected,
.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile.is-selected:not(.nh-estimator__tile--path) {
    border-color: var(--nh-v590-red) !important;
    background: #fff5f5 !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile-icon {
    border-color: #e1e5e7 !important;
    background: var(--nh-v590-grey) !important;
    color: #666d69 !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__tile-arrow {
    color: var(--nh-v590-red) !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__input {
    border-color: #cfd6da !important;
    border-radius: 9px !important;
    background: #fff !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__input:focus {
    border-color: #df777d !important;
    outline: 3px solid rgba(214, 47, 56, .1) !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__primary,
.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__form > .nh-estimator__primary,
.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__lead-form > .nh-estimator__primary {
    border-radius: 8px !important;
    border-color: var(--nh-v590-red) !important;
    background: var(--nh-v590-red) !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__primary:hover,
.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__form > .nh-estimator__primary:hover,
.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__lead-form > .nh-estimator__primary:hover {
    border-color: var(--nh-v590-red-dark) !important;
    background: var(--nh-v590-red-dark) !important;
}

.nh-efp-v590 .nh-efp-calculator-host .nh-estimator__footer {
    border-top-color: #e1e5e7 !important;
    background: #f9fafa !important;
}

/* Reverse project finder */
.nh-rpf {
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--nh-v590-text);
    font: 400 16px/1.55 inherit;
}

.nh-rpf * {
    box-sizing: border-box;
}

.nh-rpf__app {
    overflow: hidden;
    background: var(--nh-v590-grey);
}

.nh-rpf__progress {
    padding: 20px 28px 0;
    background: var(--nh-v590-grey);
}

.nh-rpf__progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: #747b77;
    font-size: 11px;
}

.nh-rpf__progress-meta strong {
    color: #555c58;
    font-weight: 600;
}

.nh-rpf__progress-track {
    height: 4px;
    margin-top: 9px;
    border-radius: 999px;
    background: #e1e5e7;
    overflow: hidden;
}

.nh-rpf__progress-track span {
    display: block;
    width: 25%;
    height: 100%;
    border-radius: inherit;
    background: var(--nh-v590-red);
    transition: width .22s ease;
}

.nh-rpf__notice {
    margin: 18px 28px 0;
    padding: 11px 13px;
    border: 1px solid #efc8ca;
    border-radius: 8px;
    background: #fff7f7;
    color: #872b30;
    font-size: 13px;
}

.nh-rpf__step {
    padding: 30px 28px 24px;
}

.nh-rpf__step-head {
    max-width: 860px;
    margin-bottom: 24px;
}

.nh-rpf__step-head > span,
.nh-rpf__results-head > div > span {
    display: inline-block;
    margin-bottom: 8px;
    color: #7b817e;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.nh-rpf__step-head h2,
.nh-rpf__results-head h2 {
    margin: 0 0 8px;
    color: #252b27;
    font-size: clamp(27px, 3vw, 36px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.nh-rpf__step-head p,
.nh-rpf__results-head p {
    margin: 0;
    color: #707874;
    font-size: 14px;
    line-height: 1.62;
}

.nh-rpf__field,
.nh-rpf__select {
    display: block;
    min-width: 0;
}

.nh-rpf__field > span,
.nh-rpf__select > span,
.nh-rpf fieldset legend {
    display: block;
    margin-bottom: 8px;
    color: #454c48;
    font-size: 12px;
    font-weight: 600;
}

.nh-rpf__field > span small {
    color: #7f8682;
    font-weight: 400;
}

.nh-rpf__field > span em,
.nh-rpf__required,
.nh-rpf__required-note > span {
    color: var(--nh-v590-red);
    font-style: normal;
    font-weight: 700;
}

.nh-rpf__field > div {
    display: flex;
    align-items: center;
    min-height: 54px;
    border: 1px solid var(--nh-v590-border-strong);
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
}

.nh-rpf__field:focus-within > div {
    border-color: #df777d;
    outline: 3px solid rgba(214, 47, 56, .08);
}

.nh-rpf__field input {
    width: 100%;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 13px 15px !important;
    color: #242a26 !important;
    font: inherit !important;
    font-size: 16px !important;
}

.nh-rpf__field b {
    padding: 0 15px 0 8px;
    color: #767e79;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.nh-rpf__field > small {
    display: block;
    margin-top: 6px;
    color: #858b88;
    font-size: 11px;
}

.nh-rpf__field--money {
    max-width: 520px;
    margin-bottom: 24px;
}

.nh-rpf__field--money input {
    font-size: 22px !important;
    font-weight: 500 !important;
}

.nh-rpf fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.nh-rpf__choice-grid {
    display: grid;
    gap: 10px;
}

.nh-rpf__choice-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nh-rpf__choice-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nh-rpf__choice-grid label {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.nh-rpf__choice-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nh-rpf__choice-grid label > span {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    padding: 14px 15px;
    border: 1px solid #d5dbde;
    border-radius: 10px;
    background: #fff;
    transition: border-color .14s ease, background .14s ease;
}

.nh-rpf__choice-grid label > span strong {
    color: #333936;
    font-size: 14px;
    font-weight: 600;
}

.nh-rpf__choice-grid label > span small {
    margin-top: 3px;
    color: #7c837f;
    font-size: 11px;
}

.nh-rpf__choice-grid input:checked + span {
    border-color: var(--nh-v590-red);
    background: #fff5f5;
}

.nh-rpf__choice-grid input:focus-visible + span {
    outline: 3px solid rgba(214, 47, 56, .12);
    outline-offset: 2px;
}

.nh-rpf__fields-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 760px;
    margin-bottom: 24px;
}

.nh-rpf__select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.nh-rpf__select select {
    width: 100%;
    min-height: 54px;
    padding: 0 40px 0 14px;
    border: 1px solid var(--nh-v590-border-strong);
    border-radius: 9px;
    background: #fff;
    color: #252b27;
    font: inherit;
    font-size: 14px;
}

.nh-rpf__select select:focus {
    border-color: #df777d;
    outline: 3px solid rgba(214, 47, 56, .08);
}

.nh-rpf__contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nh-rpf__privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 920px;
    margin-top: 21px;
    color: #676f6b;
    font-size: 12px;
    line-height: 1.55;
    cursor: pointer;
}

.nh-rpf__privacy input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: var(--nh-v590-red);
}

.nh-rpf__privacy a {
    color: #3e4541 !important;
    font-weight: 600;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.nh-rpf__required-note {
    margin: 7px 0 0 28px;
    color: #8a908d;
    font-size: 10px;
}

.nh-rpf__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.nh-rpf__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 28px 26px;
    border-top: 1px solid #dfe3e5;
    background: #f9fafa;
}

.nh-rpf__actions button,
.nh-rpf__results-head button {
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #d1d7da;
    border-radius: 8px;
    font: 600 13px/1 inherit;
    cursor: pointer;
}

.nh-rpf__back,
.nh-rpf__results-head button {
    background: #fff;
    color: #454c48;
}

.nh-rpf__next,
.nh-rpf__submit {
    margin-left: auto !important;
    border-color: var(--nh-v590-red) !important;
    background: var(--nh-v590-red) !important;
    color: #fff !important;
}

.nh-rpf__next:hover,
.nh-rpf__submit:hover {
    border-color: var(--nh-v590-red-dark) !important;
    background: var(--nh-v590-red-dark) !important;
}

.nh-rpf__submit[disabled] {
    opacity: .62;
    cursor: wait;
}

.nh-rpf__results {
    padding: 30px 28px 34px;
    background: var(--nh-v590-grey);
}

.nh-rpf__results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 22px;
    margin-bottom: 22px;
}

.nh-rpf__results-head > div {
    max-width: 800px;
}

.nh-rpf__result-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nh-rpf__card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d8dde0;
    border-radius: 12px;
    background: #fff;
}

.nh-rpf__card-media {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #eceff0;
}

.nh-rpf__card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nh-rpf__card-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: #848b87;
    font-size: 12px;
}

.nh-rpf__card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.nh-rpf__card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.nh-rpf__card h3 {
    margin: 0;
    color: #2c322f;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.nh-rpf__area {
    white-space: nowrap;
    color: #777e7a;
    font-size: 12px;
}

.nh-rpf__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 11px 0;
}

.nh-rpf__tags span {
    padding: 4px 7px;
    border: 1px solid #e1e4e6;
    border-radius: 999px;
    background: #f7f8f8;
    color: #666d69;
    font-size: 10px;
}

.nh-rpf__price {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #e7e9ea;
}

.nh-rpf__price small {
    display: block;
    color: #858b88;
    font-size: 10px;
}

.nh-rpf__price strong {
    display: block;
    margin-top: 2px;
    color: #2a302d;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.nh-rpf__budget-left {
    margin-top: 3px;
    color: #6c736f;
    font-size: 11px;
}

.nh-rpf__card-link {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-top: 13px;
    border-radius: 8px;
    background: var(--nh-v590-red);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

.nh-rpf__card-link:hover {
    background: var(--nh-v590-red-dark);
}

.nh-rpf__empty {
    grid-column: 1 / -1;
    padding: 28px;
    border: 1px dashed #cfd5d8;
    border-radius: 10px;
    background: #fff;
    color: #707874;
    text-align: center;
}

@media (max-width: 900px) {
    .nh-efp-mode-grid,
    .nh-rpf__contact-grid,
    .nh-rpf__result-grid {
        grid-template-columns: 1fr;
    }

    .nh-rpf__choice-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .nh-efp-v590 .nh-efp-calculator-host,
    .nh-efp-v590.nh-estimator-fullpage .nh-efp-tool-first .nh-efp-calculator-host--hero {
        border-radius: 12px !important;
    }

    .nh-efp-v590 .nh-efp-calculator-topbar,
    .nh-efp-v590.nh-estimator-fullpage .nh-efp-tool-first .nh-efp-calculator-host--hero .nh-efp-calculator-topbar {
        padding: 14px;
    }

    .nh-efp-mode-picker {
        padding: 26px 14px 28px;
    }

    .nh-efp-mode-picker__head {
        text-align: left;
    }

    .nh-efp-mode-picker__head p {
        margin: 0;
    }

    .nh-efp-mode-card {
        grid-template-columns: 44px minmax(0, 1fr) 20px;
        gap: 12px;
        min-height: 116px;
        padding: 16px 14px;
        border-radius: 10px;
    }

    .nh-efp-mode-icon {
        width: 44px;
        height: 44px;
        border-radius: 8px;
    }

    .nh-efp-mode-copy strong {
        font-size: 15px;
    }

    .nh-efp-mode-copy small {
        font-size: 11.5px;
    }

    .nh-efp-mode-toolbar {
        padding: 8px 14px;
    }

    .nh-rpf__progress {
        padding: 17px 14px 0;
    }

    .nh-rpf__notice {
        margin: 15px 14px 0;
    }

    .nh-rpf__step {
        padding: 25px 14px 18px;
    }

    .nh-rpf__choice-grid--2,
    .nh-rpf__choice-grid--4,
    .nh-rpf__fields-2,
    .nh-rpf__select-grid,
    .nh-rpf__contact-grid,
    .nh-rpf__result-grid {
        grid-template-columns: 1fr;
    }

    .nh-rpf__actions {
        padding: 16px 14px 18px;
    }

    .nh-rpf__actions button {
        min-height: 46px;
        padding: 0 15px;
    }

    .nh-rpf__results {
        padding: 25px 14px 28px;
    }

    .nh-rpf__results-head {
        flex-direction: column;
    }

    .nh-rpf__results-head button {
        width: 100%;
    }
}

/* v5.9.1 — tool-first UI: the form is visible immediately, routes work like tabs. */
.nh-efp-v590 .nh-efp-mode-picker--tabs {
    display: grid;
    grid-template-columns: minmax(190px, .42fr) minmax(0, 1.58fr);
    gap: 22px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--nh-v590-border);
    background: #fff;
}

.nh-efp-v590 .nh-efp-mode-picker__intro {
    min-width: 0;
}

.nh-efp-v590 .nh-efp-mode-picker__intro strong,
.nh-efp-v590 .nh-efp-mode-picker__intro span {
    display: block;
}

.nh-efp-v590 .nh-efp-mode-picker__intro strong {
    margin-bottom: 3px;
    color: #272d29;
    font-size: 13px;
    font-weight: 700;
}

.nh-efp-v590 .nh-efp-mode-picker__intro span {
    color: #737b77;
    font-size: 11.5px;
    line-height: 1.45;
}

.nh-efp-v590 .nh-efp-mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    border: 1px solid #dce1e4;
    border-radius: 12px;
    background: #f5f6f7;
}

.nh-efp-v590 .nh-efp-mode-tab {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #3e4541;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.nh-efp-v590 .nh-efp-mode-tab:hover {
    background: #fff;
}

.nh-efp-v590 .nh-efp-mode-tab.is-active {
    border-color: #e8c4c7;
    background: #fff;
}

.nh-efp-v590 .nh-efp-mode-tab:focus-visible {
    outline: 3px solid rgba(214, 47, 56, .14);
    outline-offset: 2px;
}

.nh-efp-v590 .nh-efp-mode-tab__icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #dde2e5;
    border-radius: 8px;
    background: #fff;
    color: #5f6763;
    font-size: 13px;
    font-weight: 700;
}

.nh-efp-v590 .nh-efp-mode-tab.is-active .nh-efp-mode-tab__icon {
    border-color: #efc3c6;
    background: #fff4f4;
    color: var(--nh-v590-red);
}

.nh-efp-v590 .nh-efp-mode-tab strong,
.nh-efp-v590 .nh-efp-mode-tab small {
    display: block;
}

.nh-efp-v590 .nh-efp-mode-tab strong {
    color: #303632;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.nh-efp-v590 .nh-efp-mode-tab small {
    margin-top: 3px;
    color: #7b827e;
    font-size: 10.5px;
    line-height: 1.35;
}

.nh-efp-v590 .nh-efp-mode-workspace {
    background: var(--nh-v590-grey);
}

.nh-efp-v590 .nh-rpf__progress {
    padding-top: 17px;
}

.nh-efp-v590 .nh-rpf__step[data-nh-step="1"] {
    padding-top: 24px;
}

.nh-efp-v590 .nh-rpf__step[data-nh-step="1"] .nh-rpf__step-head {
    max-width: 980px;
    margin-bottom: 20px;
}

.nh-efp-v590 .nh-rpf__step[data-nh-step="1"] .nh-rpf__step-head h2 {
    font-size: clamp(25px, 2.5vw, 33px);
    font-weight: 600;
}

.nh-efp-v590 .nh-rpf__start-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    gap: 12px;
    max-width: 900px;
}

.nh-efp-v590 .nh-rpf__start-grid .nh-rpf__field--money {
    max-width: none;
    margin: 0;
}

.nh-efp-v590 .nh-rpf__select--scope > small {
    display: block;
    margin-top: 6px;
    color: #858b88;
    font-size: 11px;
}

.nh-efp-v590 .nh-rpf__step[data-nh-step="1"] + .nh-rpf__actions,
.nh-efp-v590 .nh-rpf__actions {
    background: #fff;
}

.nh-efp-v590 .nh-rpf__next,
.nh-efp-v590 .nh-rpf__submit {
    min-width: 150px;
}

@media (max-width: 900px) {
    .nh-efp-v590 .nh-efp-mode-picker--tabs {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nh-efp-v590 .nh-rpf__start-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .nh-efp-v590 .nh-efp-mode-picker--tabs {
        padding: 14px;
    }

    .nh-efp-v590 .nh-efp-mode-picker__intro {
        display: none;
    }

    .nh-efp-v590 .nh-efp-mode-tabs {
        grid-template-columns: 1fr;
    }

    .nh-efp-v590 .nh-efp-mode-tab {
        min-height: 58px;
    }

    .nh-efp-v590 .nh-rpf__step[data-nh-step="1"] .nh-rpf__step-head h2 {
        font-size: 25px;
    }
}

/* v5.9.2 — estimate-first tabs and stronger calculator affordance. */
.nh-efp-v590 .nh-efp-mode-picker__intro strong {
    font-size: 15px;
    line-height: 1.25;
}

.nh-efp-v590 .nh-efp-mode-picker__intro span {
    margin-top: 5px;
    font-size: 13px;
    line-height: 1.5;
}

.nh-efp-v590 .nh-efp-mode-tabs {
    gap: 10px;
    padding: 5px;
}

.nh-efp-v590 .nh-efp-mode-tab {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    min-height: 74px;
    padding: 12px 14px;
}

.nh-efp-v590 .nh-efp-mode-tab__icon {
    width: 44px;
    height: 44px;
    font-size: 14px;
}

.nh-efp-v590 .nh-efp-mode-tab__icon--calculator svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nh-efp-v590 .nh-efp-mode-tab__icon--calculator svg path:first-of-type {
    fill: rgba(214, 47, 56, .05);
}

.nh-efp-v590 .nh-efp-mode-tab strong {
    font-size: 15.5px;
    line-height: 1.25;
}

.nh-efp-v590 .nh-efp-mode-tab small {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.4;
}

@media (max-width: 650px) {
    .nh-efp-v590 .nh-efp-mode-tab {
        min-height: 68px;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 11px 12px;
    }

    .nh-efp-v590 .nh-efp-mode-tab__icon {
        width: 42px;
        height: 42px;
    }

    .nh-efp-v590 .nh-efp-mode-tab strong {
        font-size: 15px;
    }

    .nh-efp-v590 .nh-efp-mode-tab small {
        font-size: 12px;
    }
}

/* v5.9.4 — lokalna paginacja wyników Reverse Project Finder. */
.nh-rpf__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.nh-rpf__pagination[hidden] {
    display: none !important;
}

.nh-rpf__page-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid rgba(25, 35, 45, .16);
    border-radius: 10px;
    background: #fff;
    color: inherit;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.nh-rpf__page-btn:hover:not(:disabled),
.nh-rpf__page-btn:focus-visible {
    border-color: currentColor;
}

.nh-rpf__page-btn.is-current {
    background: #1f2933;
    border-color: #1f2933;
    color: #fff;
}

.nh-rpf__page-btn:disabled {
    opacity: .45;
    cursor: default;
}

@media (max-width: 650px) {
    .nh-rpf__pagination {
        justify-content: flex-start;
    }

    .nh-rpf__page-btn {
        min-width: 40px;
        padding-inline: 11px;
    }
}
