@font-face{font-family:Onest;src:url(fonts/onest-400.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;src:url(fonts/onest-500.woff2) format("woff2");font-weight:500;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;src:url(fonts/onest-600.woff2) format("woff2");font-weight:600;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;src:url(fonts/onest-lat-400.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20BD,U+2212}
@font-face{font-family:Onest;src:url(fonts/onest-lat-500.woff2) format("woff2");font-weight:500;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20BD,U+2212}
@font-face{font-family:Onest;src:url(fonts/onest-lat-600.woff2) format("woff2");font-weight:600;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20BD,U+2212}

:root{
  --bg:#eef0ec; --card:#ffffff; --ink:#15191d; --ink2:#4b545c; --mute:#8a939b; --line:#e3e6e2; --soft:#f4f5f2;
  --acc:#2f54eb; --acc-d:#2140c4; --acc-soft:#e8edff;
  --green:#12a150; --green-soft:#e3f6eb; --yellow:#d99a00; --yellow-soft:#fdf3d8; --red:#e5484d; --red-soft:#fde8e8;
  --r:20px; --panel:420px;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
:focus:not(:focus-visible){outline:none!important}
:focus-visible{outline:2px solid var(--acc);outline-offset:2px}
html,body{height:100%}
body{font:400 15px/1.5 Onest,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--ink);background:var(--bg);overflow:hidden}
h1,h2{font-weight:600;letter-spacing:-.02em;text-wrap:balance}
p,li{text-wrap:pretty}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit}
svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
[hidden]{display:none!important}

#map{position:fixed;inset:0}

.panel{position:fixed;top:16px;left:16px;bottom:16px;width:var(--panel);background:var(--card);border-radius:var(--r);
  box-shadow:0 12px 40px rgba(20,30,40,.14);display:flex;flex-direction:column;overflow:hidden;z-index:5}
.panel>section{flex:1;overflow-y:auto;padding:4px 28px 24px;overscroll-behavior:contain}
.brand{display:flex;align-items:center;gap:10px;padding:22px 28px 14px}
.logo{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:600;letter-spacing:-.03em;text-decoration:none}
.logo b{font-weight:600;color:var(--acc)}
.logo-pin{width:22px;height:22px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:var(--acc);position:relative}
.logo-pin::after{content:"";position:absolute;inset:7px;border-radius:50%;background:#fff}
.beta{font-size:11px;font-weight:500;color:var(--acc);background:var(--acc-soft);border-radius:99px;padding:2px 8px}

.kicker{font-size:13px;font-weight:500;color:var(--acc);margin-bottom:8px}
h1{font-size:30px;line-height:1.12;max-width:15ch;margin-bottom:12px}
.lead{color:var(--ink2);max-width:34ch;margin-bottom:24px}

.field{margin-bottom:22px}
.label{display:flex;align-items:center;gap:8px;font-weight:500;margin-bottom:10px}
.label .n{width:22px;height:22px;border-radius:50%;background:var(--ink);color:#fff;font-size:12px;display:grid;place-items:center}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chip{padding:8px 12px;border-radius:99px;background:var(--soft);border:1px solid var(--line);font-size:14px;transition:background .15s,border-color .15s,color .15s}
.chip:hover{border-color:#c9cec8}
.chip[aria-checked=true]{background:var(--ink);border-color:var(--ink);color:#fff}

.search{position:relative}
.search input{width:100%;height:48px;border-radius:14px;border:1px solid var(--line);background:var(--soft);padding:0 16px;font:inherit;color:var(--ink)}
.search input:focus{outline:none;border-color:var(--acc);background:#fff;box-shadow:0 0 0 3px var(--acc-soft)}
.suggest{position:absolute;left:0;right:0;top:52px;background:#fff;border:1px solid var(--line);border-radius:14px;list-style:none;
  box-shadow:0 10px 30px rgba(20,30,40,.12);overflow:hidden;z-index:3}
.suggest li{padding:11px 16px;cursor:pointer;font-size:14px}
.suggest li:hover,.suggest li.on{background:var(--soft)}
.suggest li.muted{color:var(--mute);cursor:default}
.hint{font-size:13px;color:var(--mute);margin-top:8px}
.hint.set{color:var(--ink2)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:12px;height:54px;padding:0 8px 0 24px;border-radius:99px;font-weight:500;font-size:16px;transition:background .2s,transform .2s}
.btn-main{width:100%;background:var(--acc);color:#fff}
.btn-main:hover:not(:disabled){background:var(--acc-d)}
.btn-main:active:not(:disabled){transform:scale(.98)}
.btn:disabled{background:#c7cdd6;cursor:not-allowed}
.btn-ic{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.18);display:grid;place-items:center;margin-left:auto;transition:transform .2s}
.btn-ic svg{width:18px;height:18px}
.btn-main:hover:not(:disabled) .btn-ic{transform:translateX(3px)}
.btn.loading{pointer-events:none;background:var(--acc-d)}
.btn.loading .btn-ic svg{animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.err{color:var(--red);font-size:14px;margin-top:12px}

.back{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--ink2);margin:4px 0 14px}
.back svg{width:16px;height:16px}
.back:hover{color:var(--ink)}
.r-where{font-size:14px;color:var(--ink2);margin-bottom:16px}

.score{display:flex;align-items:center;gap:18px;margin-bottom:18px}
.ring{position:relative;width:112px;height:112px;flex:none}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring-bg{stroke:var(--soft);stroke-width:10}
.ring-fg{stroke:var(--c,var(--acc));stroke-width:10;stroke-dasharray:326.7;stroke-dashoffset:326.7;transition:stroke-dashoffset 1s cubic-bezier(.2,.8,.2,1)}
.ring-num{position:absolute;inset:0;display:grid;place-items:center;grid-auto-flow:column;align-content:center;justify-content:center;gap:1px}
.ring-num span{font-size:36px;font-weight:600;letter-spacing:-.03em}
.ring-num small{font-size:16px;font-weight:500;color:var(--ink2);align-self:start;margin-top:8px}
.r-label{font-size:13px;color:var(--mute)}
.r-verdict{font-size:22px;font-weight:600;letter-spacing:-.02em;line-height:1.15;color:var(--c,var(--ink))}
.r-niche{font-size:14px;color:var(--ink2);margin-top:2px}
.green{--c:var(--green);--cs:var(--green-soft)}
.yellow{--c:var(--yellow);--cs:var(--yellow-soft)}
.red{--c:var(--red);--cs:var(--red-soft)}

.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}
.tile{background:var(--soft);border-radius:14px;padding:12px}
.tile b{display:block;font-size:20px;font-weight:600;letter-spacing:-.02em}
.tile span{font-size:12px;color:var(--ink2);line-height:1.3;display:block}

.reasons{list-style:none;counter-reset:r;margin-bottom:18px}
.reasons li{counter-increment:r;display:grid;grid-template-columns:28px 1fr;padding:10px 0;border-top:1px solid var(--line);font-size:14px}
.reasons li::before{content:counter(r,decimal-leading-zero);font-size:12px;color:var(--mute);padding-top:2px}

.nearby{display:flex;gap:12px;align-items:flex-start;background:var(--acc-soft);border-radius:14px;padding:14px;margin-bottom:12px;font-size:14px}
.nearby svg{width:20px;height:20px;flex:none;color:var(--acc)}
.nearby b{color:var(--acc)}

.paid{border:1.5px solid var(--ink);border-radius:18px;padding:18px 18px 16px;margin-bottom:14px}
.paid-k{font-weight:600;font-size:17px}
.paid-price{font-size:28px;font-weight:600;letter-spacing:-.02em;margin:2px 0 10px}
.paid ul{list-style:none;margin-bottom:16px}
.paid li{position:relative;padding:6px 0 6px 18px;font-size:14px;color:var(--ink2)}
.paid li::before{content:"";position:absolute;left:0;top:15px;width:8px;height:1.5px;background:var(--ink)}
.src{font-size:12px;color:var(--mute)}

.foot{display:flex;gap:18px;padding:12px 28px 16px;border-top:1px solid var(--line);font-size:12px}
.foot a{color:var(--mute);text-decoration:none}
.foot a:hover{color:var(--ink)}

.legend{position:fixed;right:16px;bottom:28px;background:#fff;border-radius:99px;padding:8px 16px;display:flex;gap:14px;font-size:12px;color:var(--ink2);box-shadow:0 6px 20px rgba(20,30,40,.12);z-index:4}
.legend span{display:flex;align-items:center;gap:6px}
.d{width:10px;height:10px;border-radius:50%;display:inline-block}
.d-comp{background:var(--red)}
.d-side{background:#f59e0b}
.d-anchor{background:#6b7785;border-radius:2px}

.pin{width:32px;height:42px;cursor:grab;filter:drop-shadow(0 6px 10px rgba(47,84,235,.4))}
.pin svg{display:block}
.maplibregl-popup-content{font:500 13px/1.35 Onest,system-ui,sans-serif;border-radius:10px;padding:8px 12px;color:var(--ink)}
.maplibregl-ctrl-group{border-radius:12px!important;overflow:hidden}

.modal{position:fixed;inset:0;background:rgba(15,20,25,.45);display:grid;place-items:center;z-index:20;padding:16px;animation:fade .2s}
@keyframes fade{from{opacity:0}}
.modal-card{position:relative;background:#fff;border-radius:24px;width:min(440px,100%);padding:32px 28px 24px;max-height:calc(100dvh - 32px);overflow-y:auto}
.modal h2{font-size:24px;line-height:1.15;max-width:17ch;margin-bottom:8px}
.m-sub{color:var(--ink2);font-size:14px;margin-bottom:18px}
.m-close{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;background:var(--soft);display:grid;place-items:center}
.m-close svg{width:18px;height:18px}
.inp{display:block;margin-bottom:12px}
.inp span{display:block;font-size:13px;color:var(--ink2);margin-bottom:6px}
.inp input{width:100%;height:48px;border-radius:14px;border:1px solid var(--line);background:var(--soft);padding:0 16px;font:inherit}
.inp input:focus{outline:none;border-color:var(--acc);background:#fff;box-shadow:0 0 0 3px var(--acc-soft)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--ink2);margin:6px 0 16px}
.consent input{width:18px;height:18px;flex:none;margin-top:1px;accent-color:var(--acc)}
.m-note{font-size:12px;color:var(--mute);margin-top:12px;text-align:center}
#m-done .btn{margin-top:4px}

@media (max-width:760px){
  body{overflow:auto}
  #map{position:fixed;top:0;left:0;right:0;bottom:auto;height:44vh;height:44svh}
  .panel{position:relative;top:auto;left:auto;bottom:auto;width:auto;margin-top:calc(44svh - 20px);border-radius:22px 22px 0 0;min-height:calc(56svh + 20px);box-shadow:0 -8px 30px rgba(20,30,40,.12)}
  .panel>section{overflow:visible;padding:4px 16px 20px}
  .brand{padding:18px 16px 10px}
  .foot{padding:12px 16px 20px}
  h1{font-size:26px}
  .legend{top:12px;bottom:auto;left:12px;right:auto;padding:6px 12px;gap:10px;font-size:11px}
  .legend span:nth-child(2){display:none}
  .maplibregl-ctrl-bottom-right{bottom:22px}
  .modal-card{padding:28px 18px 20px}
}
