:root {
    --accent: #b69254;
    --accent-dark: #8f6f3d;
    --ink: #2c2825;
    --muted: #75695c;
    --line: #e6e1d8;
    --bg: #f7f5f1;
    --card: #ffffff;
    --ok: #3f6b4a;
    --warn: #9a6a2f;
    --err: #a33b30;
    --radius: 2px;
    --shadow: 0 1px 2px rgba(44, 40, 37, .04), 0 18px 40px -28px rgba(44, 40, 37, .25);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.w-body {
    margin: 0;
    font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.w-shell { max-width: 880px; margin: 0 auto; padding: 0 16px; }

.w-header { background: #fff; border-bottom: 1px solid var(--line); }
.w-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 62px; gap: 12px; }
.w-logo { font-weight: 700; font-size: 18px; color: var(--accent-dark); }
.w-header-phone { text-decoration: none; color: var(--accent-dark); font-weight: 600; white-space: nowrap; }

.w-main { padding: 22px 0 40px; }

.w-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 16px;
}

.w-intro h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.02em; }
.w-sub { margin: 0; color: var(--muted); }

.w-progress { margin-bottom: 18px; }
.w-progress-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.w-progress-bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .25s ease; }
.w-progress-label { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

.w-step-title { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
.w-step-hint { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

.w-nav { display: flex; gap: 10px; margin-top: 18px; }

.w-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .05s ease;
    font-family: inherit;
}
.w-btn:active { transform: translateY(1px); }
.w-btn-primary { background: var(--accent); color: #fff; }
.w-btn-primary:hover { background: var(--accent-dark); }
.w-btn-primary:disabled { opacity: .55; cursor: default; }
.w-btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.w-btn-ghost:hover { border-color: var(--muted); }
.w-btn-link { background: none; border: none; color: var(--accent-dark); text-decoration: underline; cursor: pointer; font-size: 14px; padding: 4px 0; }
.w-nav .w-btn-primary { margin-left: auto; }

.w-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.w-choice {
    text-align: left;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.w-choice:hover { border-color: var(--accent); box-shadow: 0 4px 14px -8px var(--accent); }
.w-choice.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.w-choice strong { display: block; font-size: 16px; margin-bottom: 3px; }
.w-choice span { color: var(--muted); font-size: 13.5px; }

.w-field { margin-bottom: 14px; position: relative; }
.w-field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.w-input, .w-select {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--ink);
}
.w-input:focus, .w-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.w-input.suffix { padding-right: 46px; }
.w-suffix { position: absolute; right: 12px; bottom: 12px; color: var(--muted); font-size: 14px; }
.w-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .w-grid2 { grid-template-columns: 1fr; } }

.w-suggest {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 40;
    max-height: 260px;
    overflow: auto;
}
.w-suggest button {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    background: none;
    border: none;
    padding: 10px 12px;
    font-size: 14.5px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: var(--ink);
}
.w-suggest button:hover { background: color-mix(in srgb, var(--accent) 7%, #fff); }
.w-suggest small { color: var(--muted); }

.w-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.w-pill {
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 9px 16px;
    cursor: pointer;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--ink);
}
.w-pill.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent-dark); font-weight: 600; }

.w-error { color: var(--err); font-size: 13.5px; margin: 8px 0 0; }
.w-info { color: var(--warn); font-size: 13.5px; margin: 8px 0 0; }
.w-feedback { margin-top: 12px; padding: 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; font-size: 14px; }
.w-feedback .w-pills { margin-top: 8px; }

.w-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3.5px solid var(--line); border-top-color: var(--accent); margin: 26px auto; animation: w-spin .8s linear infinite; }
@keyframes w-spin { to { transform: rotate(360deg); } }

.w-result-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.w-amount { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0; }
.w-amount-per-m2 { color: var(--muted); font-size: 15px; }
.w-badge { display: inline-block; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.w-badge.high { background: #dcfce7; color: #166534; }
.w-badge.mid { background: #fef9c3; color: #854d0e; }
.w-badge.low { background: #fee2e2; color: #991b1b; }

.w-range { margin: 18px 0 6px; }
.w-range-track { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #fecaca, #fef3c7, #bbf7d0); }
.w-range-mid { position: absolute; top: -4px; width: 3px; height: 18px; background: var(--ink); border-radius: 2px; transform: translateX(-50%); }
.w-range-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 6px; }
.w-range-labels b { color: var(--ink); }

.w-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.w-chip { background: #f1f5f9; border-radius: 8px; padding: 7px 12px; font-size: 13px; color: #334155; }
.w-chip b { color: var(--ink); }

.w-notes { margin: 14px 0 0; padding: 0 0 0 18px; color: #475569; font-size: 13.5px; }
.w-notes li { margin-bottom: 4px; }

.w-table-wrap { overflow: auto; max-height: 320px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; }
.w-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.w-table th, .w-table td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.w-table th { position: sticky; top: 0; background: #f8fafc; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.w-table tr:last-child td { border-bottom: none; }

#w-map { height: 340px; border-radius: 12px; margin-top: 12px; border: 1px solid var(--line); z-index: 1; }

.w-cta { margin-top: 18px; padding: 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff); }
.w-cta h3 { margin: 0 0 6px; font-size: 17px; }
.w-cta p { margin: 0 0 12px; color: #334155; font-size: 14px; }
.w-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.w-cta-actions a.w-btn { text-decoration: none; display: inline-block; }

.w-lead-form { margin-top: 14px; display: grid; gap: 10px; }
.w-lead-form .w-grid2 { gap: 10px; }
.w-consent { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.w-consent input { margin-top: 3px; }

.w-disclaimer { font-size: 12.5px; color: var(--muted); margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }

.w-footer { border-top: 1px solid var(--line); background: #fff; padding: 18px 0; color: var(--muted); font-size: 12.5px; }
.w-attribution { margin: 0 0 6px; }

.layout-minimal .w-header { display: none; }
.layout-minimal .w-main { padding-top: 12px; }
.layout-minimal .w-intro { display: none; }
.layout-minimal .w-shell { padding: 0 10px; }
.layout-minimal .w-footer { display: none; }

@media (max-width: 560px) {
    .w-amount { font-size: 32px; }
    .w-card { padding: 16px; }
    .w-intro h1 { font-size: 22px; }
}

.wycena-page { font-family: "DM Sans", system-ui, sans-serif; color: var(--ink); }
.wycena-page .w-card { border-radius: 0; padding: 26px; box-shadow: 0 18px 44px -34px rgba(44, 40, 37, .35); }
.wycena-page .w-step-title,
.wycena-page .w-intro h1,
.wycena-page .w-amount,
.wycena-page .w-cta h3 { font-family: "Outfit", system-ui, sans-serif; }
.wycena-page .w-step-title { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.wycena-page .w-step-hint { font-size: 14.5px; color: var(--muted); }
.wycena-page .w-btn { border-radius: 0; padding: 13px 22px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.wycena-page .w-btn-link { border-radius: 0; padding: 4px 0; font-size: 13.5px; text-transform: none; letter-spacing: 0; }
.wycena-page .w-choice { border-radius: 0; padding: 18px; }
.wycena-page .w-choice strong { font-size: 15.5px; }
.wycena-page .w-input,
.wycena-page .w-select { border-radius: 0; padding: 12px 13px; font-size: 14.5px; background: #fbfaf7; }
.wycena-page .w-suggest { border-radius: 0; }
.wycena-page .w-pill { border-radius: 0; padding: 8px 14px; font-size: 13.5px; }
.wycena-page .w-progress-bar { height: 4px; border-radius: 0; }
.wycena-page .w-progress-bar span { border-radius: 0; }
.wycena-page .w-badge { border-radius: 0; letter-spacing: .08em; }
.wycena-page .w-table-wrap { border-radius: 0; }
.wycena-page .w-cta { border-radius: 0; background: #faf7f1; border: 1px solid var(--line); }
.wycena-page .w-feedback { border-radius: 0; }
.wycena-page #w-map { border-radius: 0; }
.wycena-page .w-legal { margin: 18px 0 6px; padding: 18px 20px; background: #faf7f1; border-left: 3px solid var(--accent); }
.wycena-page .w-legal h3 { margin: 0 0 8px; font-family: "Outfit", system-ui, sans-serif; font-size: 16px; font-weight: 600; }
.wycena-page .w-legal p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.55; color: #6b5f52; }
.wycena-page .w-legal a { color: var(--accent-dark); font-weight: 600; }
.wycena-page .w-terms-box { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.wycena-page .w-phone-box { margin-top: 20px; padding: 18px 20px; background: #fbfaf7; border: 1px solid var(--line); }
.wycena-page .w-phone-box h3 { margin: 0 0 4px; font-family: "Outfit", system-ui, sans-serif; font-size: 17px; font-weight: 600; }
.wycena-page .w-phone-box > p { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.wycena-page .w-phone-box .w-field { margin-bottom: 10px; }
.wycena-page .w-thanks { margin: 12px 0 0; font-size: 13px; color: var(--ok); font-weight: 600; }
.wycena-page .w-warn { margin: 12px 0 0; font-size: 13px; color: var(--warn); font-weight: 600; }
.wycena-page .w-terms-lead { margin: 0 0 6px; font-size: 14px; }
.wycena-page .w-terms-note { margin: 0 0 10px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.wycena-page .w-terms a,
.wycena-page .w-consent a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }
.wycena-page .w-email-box { margin-top: 18px; padding: 20px; background: #fbfaf7; border: 1px solid var(--line); }
.wycena-page .w-email-box h3 { margin: 0 0 4px; font-family: "Outfit", system-ui, sans-serif; font-size: 17px; font-weight: 600; }
.wycena-page .w-email-box > p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.wycena-page .w-email-box .w-btn { margin-top: 4px; }
.wycena-page .w-success { color: var(--ok); font-size: 13.5px; margin: 8px 0 0; font-weight: 600; }
.wycena-page .w-amount { font-size: 46px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.wycena-page .w-amount-per-m2 { color: var(--muted); }
.wycena-page .w-chip { background: #faf7f1; border: 1px solid var(--line); border-radius: 0; color: #5f5549; }

@media (max-width: 560px) {
    .wycena-page .w-card { padding: 18px; }
    .wycena-page .w-step-title { font-size: 21px; }
    .wycena-page .w-amount { font-size: 34px; }
    .wycena-page .w-legal { padding: 14px 16px; }
    .wycena-page .w-email-box { padding: 16px; }
}
