:root{font-family:system-ui,sans-serif;color:#18302c;background:#f3f6f4;--green:#064e3b;--line:#d8e4df}
*{box-sizing:border-box}body{margin:0}button,select,input{font:inherit}button,a,select{touch-action:manipulation}
button{cursor:pointer}button:disabled{opacity:.55;cursor:default}a{color:inherit}
.mast{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem max(5vw,1rem);background:#fff;border-bottom:1px solid var(--line);font-weight:750}
.mast div{display:flex;align-items:center;gap:.8rem}.mast img{width:42px;height:42px;object-fit:contain}.mast a{white-space:nowrap}
main{max-width:1250px;margin:auto;padding:clamp(1rem,5vw,4rem)}.intro{background:var(--green);color:white;padding:clamp(1.4rem,5vw,3rem);border-radius:22px;margin-bottom:2rem}
h1{margin:0;font-size:clamp(2.2rem,6vw,4.25rem);letter-spacing:-.05em;line-height:1.05}h2{margin:0 0 1rem}.intro p{margin-bottom:0}
.layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,360px);gap:1.5rem;align-items:start}.basket,article{background:#fff;border:1px solid var(--line);border-radius:16px;padding:1rem}.basket{position:sticky;top:1rem;scroll-margin-top:1rem}
nav{display:flex;gap:.45rem;flex-wrap:wrap;margin-bottom:1rem}.products{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,175px),1fr));gap:.75rem}
article{display:grid;gap:.65rem;align-content:start}article strong{font-size:1.1rem}
button,.primary,select,input{border:1px solid var(--line);border-radius:10px;padding:.65rem .8rem;background:white;color:inherit;min-height:44px}
button[aria-pressed=true],.primary{background:var(--green);color:white;border-color:var(--green);font-weight:700}.primary{display:block;width:100%;text-align:center;text-decoration:none}
label{display:grid;gap:.35rem;font-weight:650;margin-bottom:.85rem}label small{font-weight:400}select,input{width:100%;min-width:0}[hidden]{display:none!important}
.total,.line{display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.65rem 0;border-bottom:1px solid var(--line)}
.total{margin-bottom:1rem;font-size:1.15rem}.qty{display:flex;align-items:center;gap:.35rem}.qty button{min-width:44px}.barcode{width:100%;height:80px;background:white}.code{text-align:center;font-weight:750;letter-spacing:.15em}.result-buttons{display:grid;gap:.5rem}
#status{color:#8b2f20}#status:empty{display:none}
@media(max-width:760px){.layout{grid-template-columns:1fr}.basket{position:static}}

.guide{background:white;border:1px solid var(--line);border-radius:16px;padding:1rem 1.25rem;margin-bottom:1.5rem}
.guide summary{font-weight:750;cursor:pointer}.guide li{margin:.5rem 0}.guide ol{padding-left:1.4rem}
.guide a{color:var(--green);font-weight:700}.intro>strong{display:block;margin-bottom:.55rem}
