* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --acc: #f5a623; --acc-d: #d98f0e; --ink: #22303f; --mut: #64748b; --bg: #f7f8fa; --card: #fff; --line: #e5e9ef; }
body { font: 16px/1.55 -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.topbar { background: #182230; color: #fff; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.topbar .brand b { letter-spacing: .5px; }
.topbar .phone { color: var(--acc); text-decoration: none; font-weight: 700; }

.hero { text-align: center; padding: 34px 0 20px; }
.hero h1 { font-size: clamp(24px, 4vw, 34px); margin-bottom: 8px; }
.hero p { color: var(--mut); max-width: 560px; margin: 0 auto; }

.progress { display: flex; justify-content: center; gap: 8px; margin: 18px 0; }
.pstep { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 20px; background: #edf0f4; color: var(--mut); font-size: 14px; }
.pstep span { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 50%; background: #cdd5df; color: #fff; font-size: 12px; font-weight: 700; }
.pstep.active { background: #fdf1d8; color: var(--ink); }
.pstep.active span { background: var(--acc); }
.pstep.done span { background: #4caf7d; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-bottom: 26px; box-shadow: 0 2px 10px rgba(20,30,45,.04); }
.card h2 { font-size: 20px; margin-bottom: 14px; }
.hidden { display: none !important; }

.addr-row { display: flex; gap: 8px; margin-bottom: 12px; }
.addr-row input { flex: 1; }
input, .btn { font: inherit; border-radius: 9px; border: 1px solid var(--line); padding: 11px 14px; }
input:focus { outline: 2px solid var(--acc); border-color: var(--acc); }
.btn { background: #fff; cursor: pointer; white-space: nowrap; font-weight: 600; color: var(--ink); }
.btn:hover { border-color: var(--acc); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: #182230; }
.btn.primary:hover { background: var(--acc-d); }
.btn.big { padding: 13px 26px; font-size: 17px; }

#map { height: 380px; border-radius: 10px; border: 1px solid var(--line); }
.map-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.area-badge { margin-left: auto; background: #fdf1d8; border-radius: 9px; padding: 9px 14px; font-size: 15px; }
.tip { color: var(--mut); font-size: 14px; margin-top: 10px; }
.auto-detect { margin-top: 10px; background: #eef7f0; border: 1px solid #bde5cd; border-radius: 9px; padding: 9px 14px; font-size: 14px; }
#roofList { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
#roofList .rooftag { display: inline-flex; align-items: center; gap: 7px; background: #f2f5f8; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; font-size: 13px; }
#roofList .rooftag button { border: none; background: none; cursor: pointer; color: #c2410c; font-size: 15px; padding: 0 2px; }
.fallback { margin-top: 8px; font-size: 14px; color: var(--mut); }
.fallback summary { cursor: pointer; }
.fallback label { display: block; margin-top: 8px; }
.fallback input { width: 130px; margin-left: 6px; }

.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 640px) { .qgrid { grid-template-columns: 1fr; } #map { height: 300px; } }
.q label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.choice { display: flex; flex-wrap: wrap; gap: 7px; }
.choice button { font: inherit; font-size: 14px; padding: 9px 13px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.choice button.on { border-color: var(--acc); background: #fdf1d8; font-weight: 700; }
.q input { width: 100%; }

.nav-row { display: flex; justify-content: space-between; margin-top: 22px; }

/* step 3 */
.banner { display: flex; gap: 13px; background: #fff7e6; border: 2px solid var(--acc); border-radius: 12px; padding: 15px 17px; margin-bottom: 20px; font-size: 15px; }
.banner-icon { font-size: 26px; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.res { background: #f7f9fb; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.res label { display: block; font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .4px; }
.res output { font-size: 19px; font-weight: 800; }

.price-box { text-align: center; background: linear-gradient(180deg, #fdf6e6, #fdf1d8); border: 1px solid #f0d9a5; border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.price-label { font-size: 14px; color: #7a5c14; text-transform: uppercase; letter-spacing: .5px; }
.price-range { font-size: clamp(28px, 5vw, 40px); font-weight: 900; margin: 4px 0; }
.price-note { font-size: 13px; color: #7a5c14; }
.star { color: #c2410c; font-weight: 800; }

.components { margin-bottom: 20px; font-size: 15px; }
.components summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.components ul { margin: 10px 0 6px 22px; }
.components li { margin-bottom: 4px; }

.lead-card { background: #182230; color: #fff; border-radius: 14px; padding: 24px; }
.lead-card h3 { margin-bottom: 6px; }
.lead-card p { color: #b8c4d4; font-size: 15px; margin-bottom: 14px; }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
@media (max-width: 640px) { .lead-grid { grid-template-columns: 1fr; } }
.lead-card input { background: #223042; border-color: #34455c; color: #fff; }
.lead-card input::placeholder { color: #7c8ba0; }
.tiny { font-size: 12px; color: #7c8ba0; margin-top: 10px; }
.disclaimer-foot { color: var(--mut); margin-top: 18px; }

.lead-ok { text-align: center; background: #ecfbf2; border: 1px solid #bde5cd; border-radius: 14px; padding: 30px; }
.ok-icon { font-size: 40px; }

.foot { text-align: center; color: var(--mut); font-size: 13px; padding: 20px 16px 34px; }
.foot a { color: var(--mut); }
.pro-link { opacity: .6; }
