:root{--sea:#e4eeea;--ink:#12263a;--teal:#1b7f79;--red:#e4572e;--sand:#f5ecd9;--mut:#5b6b78}
*{box-sizing:border-box}body{margin:0;background:var(--sea);color:var(--ink);font:16px/1.55 'Instrument Sans',system-ui,sans-serif;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom)}
h1,h2,b{font-family:'Bricolage Grotesque',system-ui,sans-serif}
header{max-width:820px;margin:0 auto;padding:28px 20px 8px}h1{font-size:clamp(30px,7vw,54px);line-height:1.05;margin:8px 0 12px;font-weight:800}header p{color:var(--mut);max-width:48ch;margin:0}
.route{width:100%;height:auto}.route path{fill:none;stroke:var(--red);stroke-width:4;stroke-linecap:round;stroke-dasharray:1100;stroke-dashoffset:1100;animation:dr 2.6s .2s ease forwards}.dots circle{fill:var(--ink);opacity:0;animation:pop .4s forwards}.dots circle:nth-child(1){animation-delay:.2s}.dots circle:nth-child(2){animation-delay:1.4s}.dots circle:nth-child(3){animation-delay:2.7s;fill:var(--red)}
@keyframes dr{to{stroke-dashoffset:0}}@keyframes pop{from{transform:scale(0)}to{opacity:1}}
main{max-width:820px;margin:0 auto;padding:12px 20px 40px;display:grid;gap:16px}#res{display:grid;gap:16px}
.box{background:#fff;border-radius:14px;padding:20px;box-shadow:0 1px 0 #c9d7d1}h2{margin:0 0 12px;font-size:22px}
#pic{border:2px dashed var(--teal);border-radius:12px;min-height:150px;display:grid;place-content:center;text-align:center;padding:16px;background:var(--sand) center/cover;cursor:pointer;position:relative;overflow:hidden}#pic b{font-size:20px}#pic small{color:var(--mut)}
#pic.has b,#pic.has small{background:#fffd;padding:4px 10px;border-radius:8px}#pic.scan::after{content:"";position:absolute;left:0;right:0;height:4px;background:var(--red);box-shadow:0 0 18px var(--red);animation:sc 1.2s ease-in-out infinite alternate}@keyframes sc{from{top:0}to{top:calc(100% - 4px)}}
form{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}input[type=text],#q{flex:1 1 220px;padding:13px;border:1.5px solid #b8c7c0;border-radius:10px;font:inherit}
button{background:var(--ink);color:#fff;border:0;border-radius:10px;padding:13px 20px;font:600 16px inherit;cursor:pointer;transition:transform .15s}button:active{transform:scale(.96)}
:focus-visible{outline:3px solid var(--red);outline-offset:2px}
#steps{list-style:none;padding:0;margin:16px 0 0;display:grid;gap:6px}#steps li{color:#9aa8b0;padding-left:26px;position:relative}#steps li::before{content:"";position:absolute;left:4px;top:7px;width:12px;height:12px;border-radius:50%;border:2px solid currentColor}
#steps li.on{color:var(--ink);font-weight:600}#steps li.on::before{border-color:var(--red);border-top-color:transparent;animation:sp .7s linear infinite}#steps li.ok{color:var(--teal)}#steps li.ok::before{background:var(--teal);border-color:var(--teal)}@keyframes sp{to{transform:rotate(360deg)}}
#err{color:#a1230a;font-weight:600;margin:14px 0 0}
.prod{display:flex;gap:18px;align-items:center;animation:up .6s both}.prod img{width:110px;height:110px;object-fit:contain;border-radius:10px;background:var(--sand)}.prod h2{font-size:28px;margin:0}.prod p{margin:2px 0;color:var(--mut)}
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}.facts div{background:var(--sand);border-radius:12px;padding:14px;animation:up .6s both;animation-delay:calc(var(--i)*120ms)}.facts b{display:block;color:var(--teal);margin-bottom:4px}
@keyframes up{from{opacity:0;transform:translateY(14px)}}
#map{height:420px;border-radius:10px;z-index:0}.note{color:var(--mut);font-size:14px;margin:10px 0 0}
.flow{stroke-dasharray:2 9;animation:fl 1s linear infinite}@keyframes fl{to{stroke-dashoffset:-22}}
.pin i{display:grid;place-content:center;width:34px;height:34px;border-radius:50%;background:var(--c);font-style:normal;font-size:17px;border:3px solid #fff;box-shadow:0 2px 8px #0005;animation:pop2 .45s cubic-bezier(.2,1.6,.4,1)}@keyframes pop2{from{transform:scale(0)}}.truck{font-size:22px}
.tl{list-style:none;margin:0;padding:0 0 0 22px;border-left:3px solid var(--red)}.tl li{margin:0 0 16px;position:relative}.tl li::before{content:"";position:absolute;left:-30px;top:6px;width:13px;height:13px;border-radius:50%;background:var(--c);border:3px solid #fff}.tl small{color:var(--mut);display:block}
footer{text-align:center;color:var(--mut);font-size:14px;padding:0 20px 30px}footer a{color:var(--teal)}dialog{border:0;border-radius:14px;max-width:520px;padding:22px}dialog::backdrop{background:#12263a99}
@media(prefers-reduced-motion:reduce){*,::after{animation-duration:.01ms!important;animation-iteration-count:1!important}}
@media(max-width:520px){.prod{flex-direction:column;text-align:center}#map{height:340px}}
