/* Layout: точная копия кабинета ресторана Oplix — тёмная плавающая навигация слева, белая рабочая панель справа; сверху тонкая полоса демо-подсказок. Одна светлая тема намеренно: так выглядит продукт. */
:root{
  --nav:#1D1C2E; --nav-on:#2E2D45; --nav-t:#C9CBD6; --nav-edge:#6366F1;
  --page:#F6F7F9; --panel:#FFFFFF; --soft:#F9FAFB; --line:#E5E7EB; --line2:#F0F1F3;
  --ink:#111827; --ink2:#1F2937; --muted:#6B7280; --muted2:#9CA3AF;
  --g:#3C9A5C; --g-dark:#3B8A55; --g-deep:#3B6D11; --g-light:#52B788; --g-text:#15803D; --g-price:#1F6B3A; --g-soft:#EAF6EE;
  --red:#DC2626; --red-soft:#FEF2F2; --amber:#A16207; --indigo:#4338CA; --indigo-soft:#EEF2FF;
  --f:"Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme:light;
}
html,body{height:100%; margin:0}
body{background:var(--page); color:var(--ink2); font-family:var(--f); font-size:14px}
*{box-sizing:border-box}
button,input,select{font:inherit; color:inherit}
button{cursor:pointer; border:0; background:none; padding:0}
button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--nav-edge); outline-offset:2px}
svg.i{width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:none}
.num{font-variant-numeric:tabular-nums}

/* демо-полоса */
.hdr{position:sticky; top:env(safe-area-inset-top,0px); z-index:30; box-shadow:0 2px 8px rgba(15,18,34,.06)}
.demo{background:#F59E0B; color:#1A1A2E; display:flex; gap:12px; align-items:center; padding:10px max(20px, env(safe-area-inset-right,0px)) 10px max(20px, env(safe-area-inset-left,0px))}
.demo .st{flex:none; background:#1A1A2E; color:#FBBF24; font-weight:800; font-size:11.5px; border-radius:6px; padding:4px 8px; white-space:nowrap}
.demo p{margin:0; font-size:13.5px; line-height:1.4; font-weight:600}
.demo p b{color:#1A1A2E; font-weight:800; text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:3px}
.demo.shake{animation:shake .45s}
@keyframes shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
/* шапка */
.top{background:#fff; border-bottom:1px solid var(--line); height:56px}
.top-in{max-width:1290px; margin:0 auto; height:100%; display:flex; align-items:center; justify-content:space-between; padding-left:max(20px, env(safe-area-inset-left,0px)); padding-right:max(20px, env(safe-area-inset-right,0px))}
.top-r{display:flex; align-items:center; gap:10px}
.logo{font-weight:800; font-size:20px; color:#1A1A2E; letter-spacing:-.01em}
.cartbtn{display:flex; align-items:center; gap:8px; background:#1A1A2E; color:#fff; border-radius:8px; padding:8px 12px; font-size:13px; font-weight:600}
.cartbtn .c{background:var(--red); border-radius:10px; min-width:20px; height:20px; display:grid; place-items:center; font-size:11px; font-weight:700; padding:0 6px}
.ico{display:grid; place-items:center; width:36px; height:36px; border-radius:8px; color:var(--ink)}
.ico svg{width:22px; height:22px}
.ico:hover{background:var(--soft)}
.i.big{width:22px; height:22px}

.app{max-width:1290px; margin:0 auto; display:grid; grid-template-columns:210px minmax(0,1fr); gap:24px; align-items:start; padding-block:24px 40px; padding-left:max(20px, env(safe-area-inset-left,0px)); padding-right:max(20px, env(safe-area-inset-right,0px))}
/* навигация */
.side{background:var(--nav); border-radius:10px; padding:12px 8px; position:sticky; top:124px; z-index:5}
.nv{display:flex; align-items:center; gap:10px; width:100%; padding:10px 12px; border-radius:8px; color:var(--nav-t); font-size:13px; text-align:left}
.nv:hover{background:rgba(255,255,255,.05)}
.nv.on{background:var(--g); color:#fff; font-weight:600}
.nv.on:hover{background:var(--g)}
.side hr{border:0; border-top:1px solid rgba(255,255,255,.12); margin:10px 6px}
.panel{background:var(--panel); border-radius:12px; padding:28px 24px; min-width:0; min-height:480px}

/* «вы здесь» = зелёная заливка; «нажмите дальше» = жёлтая плашка */
.target{position:relative; overflow:visible}
.target::after{content:"Нажмите"; position:absolute; top:-13px; right:-6px; background:#F59E0B; color:#1A1A2E; font-size:11px; font-weight:800; line-height:1; padding:5px 8px; border-radius:99px; box-shadow:0 2px 6px rgba(0,0,0,.2); animation:tap 1.1s ease-in-out infinite; z-index:3; white-space:nowrap; pointer-events:none}
/* пункт меню: плашка снаружи слева, стрелка указывает на пункт */
.side .nv.target::after{content:"Нажмите →"; top:50%; right:calc(100% + 14px); margin-top:-12px; font-size:12.5px; padding:6px 11px; animation:tapx 1.1s ease-in-out infinite}
@keyframes tapx{50%{transform:translateX(5px)}}
/* если слева от меню нет места — плашка справа, стрелка влево */
@media (max-width:1490px){ .side .nv.target::after{content:"← Нажмите"; right:auto; left:calc(100% + 14px); animation:tapl 1.1s ease-in-out infinite} }
@keyframes tapl{50%{transform:translateX(-5px)}}
@keyframes tap{50%{transform:translateY(-4px)}}
.ring{animation:ring 1.4s infinite}
@keyframes ring{0%{box-shadow:0 0 0 0 rgba(245,158,11,.8)}70%,100%{box-shadow:0 0 0 10px rgba(245,158,11,0)}}
.why{display:flex; gap:14px; background:#FFF4DE; border:1.5px solid #F59E0B; border-radius:10px; padding:16px 18px}
.why .ic{flex:none; width:36px; height:36px; border-radius:9px; background:#F59E0B; color:#1A1A2E; display:grid; place-items:center}
.why b{display:block; font-size:15.5px; font-weight:700; color:var(--ink); margin-bottom:6px}
.why p{margin:0; font-size:13.5px; line-height:1.55; color:var(--ink2); max-width:80ch}
.callout{display:flex; justify-content:flex-end; margin-top:-4px}
.callout button{display:flex; gap:8px; align-items:center; background:#F59E0B; border:0; color:#1A1A2E; font-size:12.5px; font-weight:800; border-radius:14px; padding:8px 12px; text-align:left; line-height:1.35; max-width:300px; box-shadow:0 2px 6px rgba(0,0,0,.2)}
.callout .ar{font-size:16px; line-height:1; animation:tap 1.1s ease-in-out infinite}
.cnt.btn{cursor:pointer}

h1{margin:0; font-size:26px; font-weight:600; letter-spacing:-.02em; color:var(--ink)}
h1.big{font-size:30px; font-weight:800}
.sub{font-size:13px; color:#4B5563; margin-top:6px}
.row{display:flex; gap:12px; align-items:center}
.btn-o{display:inline-flex; align-items:center; gap:8px; border:1px solid var(--line); background:#fff; border-radius:8px; padding:9px 14px; font-size:13px; font-weight:500; color:var(--ink2); white-space:nowrap; text-decoration:none}
.btn-gray{display:inline-flex; align-items:center; border:1px solid var(--line); background:#F3F4F6; border-radius:8px; padding:9px 14px; font-size:13px; font-weight:500}
.btn-g{display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--g); color:#fff; border-radius:6px; font-size:13px; font-weight:500; min-height:36px; padding:0 14px; white-space:nowrap; text-decoration:none}
.btn-g:hover{filter:brightness(.95)}
.addrbar{display:flex; align-items:center; gap:10px; border:1px solid var(--line); border-radius:10px; padding:14px 16px; font-size:13.5px; color:var(--ink)}
.addrbar .i{color:var(--g); width:16px; height:16px}
.addrbar a{margin-left:auto; color:var(--g); font-weight:600; font-size:13px; text-decoration:none}
.spec{display:inline-block; background:var(--g); color:#fff; font-size:10.5px; font-weight:600; border-radius:4px; padding:2px 6px; line-height:1.4}

/* каталог */
.cat-head{display:flex; justify-content:space-between; gap:20px; align-items:flex-start; flex-wrap:wrap}
.btn-new{display:inline-flex; align-items:center; gap:8px; background:var(--g-deep); color:#fff; border-radius:6px; padding:8px 12px; font-size:12.5px; font-weight:500; margin-top:14px}
.btn-new .i{width:16px; height:16px}
.dl{border:1px solid var(--line); border-radius:10px; padding:12px 14px; font-size:12.5px; display:grid; gap:5px; color:var(--ink)}
.dl .g{color:var(--g-text)} .dl .a{color:var(--amber)} .dl small{font-size:11.5px; color:var(--muted)}
.dl .i{width:13px; height:13px; vertical-align:-2px}
.srch{display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:10px}
.inp{display:flex; align-items:center; gap:10px; border:1px solid #D1D5DB; border-radius:8px; height:42px; padding:0 12px; background:#fff}
.inp input{border:0; outline:0; flex:1; min-width:0; font-size:14px; background:transparent}
.inp input::placeholder{color:var(--muted2)}
.sel{display:flex; align-items:center; justify-content:space-between; border:1px solid var(--line); border-radius:8px; height:42px; padding:0 12px 0 16px; font-size:15px; color:var(--ink)}
.cgrid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px}
.cam-btn{display:none}
.dl-mob{display:none}
.pc{border:1px solid var(--line); border-radius:10px; padding:12px; display:flex; flex-direction:column; gap:10px; min-width:0}
.pc-top{display:flex; gap:8px; align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:10px; min-height:52px}
.pc-n{flex:1; font-size:13.5px; font-weight:500; color:var(--ink); line-height:1.4; min-width:0; overflow-wrap:anywhere}
.heart{flex:none; width:30px; height:30px; border-radius:7px; display:grid; place-items:center; border:1px solid var(--line); background:#fff; color:var(--ink2)}
.heart.on{background:#FDECEC; border-color:#F5C9C9; color:#E04848}
.heart.on svg{fill:#E04848; stroke:#E04848}
.heart svg{width:15px; height:15px}
.pc-p{display:flex; justify-content:space-between; align-items:flex-end; gap:6px; min-height:58px}
.pc-p .v{font-size:21px; font-weight:600; letter-spacing:.02em; color:var(--ink)}
.pc-p .v.sp{color:var(--g-price)}
.pc-p .u{font-size:11.5px; color:#4B5563; text-align:right; line-height:1.5}
.pc-p .u small{display:block; font-size:10.5px; color:var(--muted)}
.pc-q{display:flex; align-items:center; gap:10px; font-size:11.5px; color:#4B5563; margin-top:auto}
.pc-q input{width:64px; height:36px; border:1px solid #D1D5DB; border-radius:6px; padding:0 8px; font-size:14px}
.pc .btn-g{width:100%; height:38px}
.more{text-align:center; color:var(--muted); font-size:13px; padding:6px}

/* избранное */
.fav-head{display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap}
.fgrid{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px}
.fc{border:1px solid var(--line); border-radius:12px; padding:14px; background:linear-gradient(180deg,#fff 55%,#F2F9F4); display:flex; flex-direction:column; gap:9px; min-width:0}
.fc.in{border-color:#9FD5B0}
.fc-h{display:flex; align-items:center; gap:10px}
.tg{flex:none; width:32px; height:18px; border-radius:9px; background:var(--g); position:relative}
.tg::after{content:""; position:absolute; left:3px; top:3px; width:12px; height:12px; border-radius:50%; background:#fff}
.fc-t{flex:1; font-size:13px; font-weight:700; color:var(--ink); min-width:0}
.fc-ic{display:flex; align-items:center; gap:8px; color:#B0B5BD}
.fc-ic .i{width:14px; height:14px}
.cnt{width:22px; height:22px; border-radius:50%; background:var(--indigo-soft); color:#4F46E5; font-size:11px; font-weight:700; display:grid; place-items:center}
.chev{width:22px; height:22px; display:grid; place-items:center; color:#9CA3AF; border-radius:6px}
.chev.op svg{transform:rotate(180deg)}
.fc-find{background:#F5F5F4; border:1px solid #E7E5E4; border-radius:6px; height:30px; padding:0 8px; font-size:12px; color:var(--muted2); display:flex; align-items:center}
.fc-done{background:var(--g-light); color:#fff; border-radius:5px; height:26px; display:grid; place-items:center; font-size:12.5px; font-weight:500}
.fc-item{font-size:11.5px; color:#374151; padding-top:4px; border-bottom:1px solid var(--line); padding-bottom:9px}
.fc-pr{display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px}
.fc-pr .v{font-size:21px; font-weight:700; color:var(--ink); text-align:center}
.fc-pr .u{text-align:right; font-size:12px; color:#4B5563}
.alts{border:1px solid var(--line); border-radius:8px; background:#fff; font-size:12px; overflow:hidden}
.alt{display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 10px; padding:7px 10px; border-top:1px solid var(--line2)}
.alt:first-child{border-top:0}
.alt .n{color:var(--ink); min-width:0}
.alt .s{grid-column:1; color:var(--muted); font-size:11px}
.alt .p{grid-row:1/3; grid-column:2; align-self:center; font-weight:700; text-align:right; white-space:nowrap}
.fc-gap{height:34px}
.fc-q{display:flex; align-items:center; gap:6px; font-size:12px; color:#4B5563}
.sq{width:30px; height:30px; border:1px solid #D9DCE1; border-radius:6px; background:var(--soft); display:grid; place-items:center; font-size:16px; color:var(--ink2); flex:none}
.fc-q input{flex:1; min-width:0; height:34px; border:1px solid #D1D5DB; border-radius:6px; padding:0 10px; font-size:14px; background:#fff}
.fc .btn-g{background:var(--g-dark); height:38px; font-size:13.5px}
.fc .btn-g.added{background:var(--g-soft); color:var(--g-text); border:1px solid #BFE3CB}

/* корзина */
.cart-head{display:flex; justify-content:space-between; gap:12px; align-items:flex-start; flex-wrap:wrap}
.find{background:#1C1B2E; border-radius:10px; padding:18px 22px; display:flex; align-items:center; gap:16px; justify-content:space-between; flex-wrap:wrap}
.find b{color:#fff; font-size:15px; font-weight:700}
.find small{display:block; color:#5D6180; font-size:12px; margin-top:6px}
.find .btn-g{font-size:14px; font-weight:600; min-height:42px; border-radius:8px; padding:0 18px}
.cl{display:grid; grid-template-columns:minmax(0,1fr) auto 90px 28px; gap:14px; align-items:center; padding:14px 16px; border-bottom:1px solid var(--line2)}
.cl .n{font-size:13.5px; color:var(--ink)}
.cl .p{font-size:12px; color:#4B5563; margin-top:4px; display:flex; gap:6px; align-items:center}
.stp{display:flex; align-items:center; gap:6px}
.stp .sq{background:#fff; border-color:var(--line); color:#4B5563}
.stp input{width:46px; height:30px; border:1px solid var(--line); border-radius:6px; text-align:center; font-size:13px}
.cl .s{text-align:right; font-size:13.5px; font-weight:500; color:var(--ink)}
.trash{color:var(--ink2); display:grid; place-items:center; width:28px; height:28px}
.trash .i{width:16px; height:16px}
.tot{background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:18px 22px; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap}
.tot b{font-size:15px; font-weight:500; color:var(--ink)}
.tot small{display:block; font-size:12px; color:#374151; margin-top:6px}
.tot .v{font-size:22px; font-weight:700; color:var(--ink)}
.empty{padding:40px 10px; text-align:center; color:var(--muted)}

/* варианты */
.narrow{max-width:770px; margin:0 auto; display:grid; gap:16px}
.back{display:inline-flex; gap:8px; align-items:center; font-size:13px; color:var(--ink); justify-self:start}
.back .i{width:16px; height:16px}
.acard{border:1px solid var(--line2); border-radius:10px; padding:16px 18px; display:flex; gap:14px; align-items:flex-start; box-shadow:0 1px 3px rgba(0,0,0,.05)}
.acard .i{color:var(--nav-edge); margin-top:2px}
.acard b{display:block; font-size:14px; font-weight:600; color:var(--ink)}
.acard small{font-size:12px; color:var(--muted)}
.nsel{display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:14px; color:var(--muted)}
.nsel button{min-width:40px; height:32px; border:1px solid var(--line); border-radius:6px; background:#fff; font-size:13px; color:var(--ink); padding:0 10px}
.nsel button.on{background:#111; border-color:#111; color:#fff}
.warn{display:flex; gap:12px; background:var(--red-soft); border:1px solid #F87171; border-radius:8px; padding:12px 16px; color:var(--red); font-size:13px; line-height:1.5}
.warn .i{margin-top:2px}
.vcard{border:1px solid var(--line); border-radius:12px; padding:20px 24px; display:grid; gap:14px; box-shadow:0 1px 4px rgba(0,0,0,.04)}
.vh{display:flex; justify-content:space-between; align-items:flex-start; gap:12px}
.vh b{font-size:17px; font-weight:700; color:var(--ink)}
.vh .t{text-align:right}
.vh .t div{font-size:24px; font-weight:700; color:var(--ink); letter-spacing:-.01em}
.vh .t small{font-size:13px; color:var(--muted)}
.sb{border-radius:8px; border:1px solid; border-left-width:3px; padding:12px 16px 14px; display:grid; gap:8px}
.sb-h{display:flex; gap:10px; align-items:center}
.av{width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:11px; font-weight:600; flex:none}
.sb-h b{font-size:13.5px; font-weight:600; color:var(--ink)}
.sb-m{font-size:12px; color:var(--g-text); margin-top:-4px; padding-left:32px}
.sb-m.no{color:var(--amber)}
.pbar{height:4px; border-radius:2px; background:#E5E7EB; overflow:hidden}
.pbar i{display:block; height:100%; background:var(--g)}
.vl{display:grid; grid-template-columns:minmax(0,1fr) auto 64px; gap:12px; align-items:center}
.vl .n{font-size:12.5px; color:var(--ink)}
.vl .n small{display:block; font-size:10.5px; color:var(--muted2); margin-top:2px}
.vl .stp .sq{width:26px; height:24px; font-size:13px; border-radius:5px}
.vl .q{width:52px; text-align:center; font-size:12.5px; color:var(--ink)}
.vl .s{text-align:right; font-size:12px; color:var(--ink)}
.sb-f{display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:4px; flex-wrap:wrap}
.excl{background:var(--indigo-soft); border:1px solid #C7D2FE; color:var(--indigo); font-size:12px; font-weight:500; border-radius:5px; padding:5px 10px}
.sb-f small{font-size:12px; color:var(--muted)}
.info{display:flex; gap:12px; background:#FFF8EB; border:1px solid #F3C677; border-radius:8px; padding:12px 16px; color:#7A4A00; font-size:13px; line-height:1.5}
.info .i{margin-top:2px}
.nope{border:1px solid #FCA5A5; background:var(--red-soft); border-radius:8px; padding:12px 16px; display:grid; gap:10px}
.nope-h{display:flex; gap:10px; align-items:center; color:var(--red)}
.nope-h b{font-size:13.5px}
.nope-l{border-top:1px solid #FBD5D5; padding-top:8px}
.nope-l .n{font-size:13px; color:var(--ink); font-weight:600}
.nope-l small{display:block; font-size:12px; color:#7F1D1D; margin-top:3px; line-height:1.45}
.nope-f{font-size:12px; color:var(--muted)}
.cta{width:100%; min-height:46px; font-size:14.5px; font-weight:600; border-radius:8px}
.cta[disabled]{background:#D1D5DB; cursor:default}

/* оформлено */
.done{max-width:740px; margin:0 auto; border:1px solid var(--line2); border-radius:12px; padding:28px; display:grid; gap:12px; box-shadow:0 1px 4px rgba(0,0,0,.04)}
.done h2{margin:0 0 6px; display:flex; gap:12px; align-items:center; font-size:19px; font-weight:700; color:var(--ink)}
.done h2 .i{width:28px; height:28px; color:var(--g)}
.dr{display:flex; justify-content:space-between; align-items:center; gap:10px; background:var(--soft); border:1px solid var(--line); border-radius:8px; padding:12px 16px}
.dr b{font-size:13.5px; color:var(--ink)}
.dr small{display:block; font-size:12px; color:var(--muted); margin-top:3px}
.dbadge{background:var(--g); color:#fff; font-size:12px; font-weight:600; border-radius:6px; padding:5px 10px; white-space:nowrap}
.dark{background:#0F1222; color:#fff; border-radius:8px; min-height:44px; font-weight:600; font-size:14px; margin-top:6px}

/* история */
.tw{border:1px solid var(--line); border-radius:10px; overflow-x:auto}
table{width:100%; border-collapse:collapse; font-size:13px}
th{background:var(--soft); text-align:left; font-size:12px; font-weight:600; color:#374151; letter-spacing:.04em; text-transform:uppercase; padding:14px 12px; border-bottom:1px solid var(--line); white-space:nowrap}
td{padding:16px 12px; border-bottom:1px solid var(--line2); vertical-align:middle}
tr:last-child td{border-bottom:0}
.chk{width:16px; height:16px; border:1.5px solid #6B7280; border-radius:3px; display:inline-block}
.oid{font-size:12px; letter-spacing:.04em; color:var(--ink); display:flex; gap:8px; align-items:center}
.od{width:7px; height:7px; border-radius:50%; flex:none}
.oid .i{width:13px; height:13px; color:var(--muted); display:block; margin:6px 0 0 15px}
.dt{font-size:12.5px; color:var(--ink)}
.dt small{display:block; color:var(--g-text); font-size:11.5px; margin-top:4px; line-height:1.4}
.pill{display:inline-block; font-size:11.5px; font-weight:500; border-radius:99px; padding:3px 9px; white-space:nowrap; border:1px solid transparent}
.pill.sent{background:var(--indigo-soft); border-color:#6366F1; color:#3730A3}
.pill.ok{background:var(--g); color:#fff}
.pill.part{background:#C97A1E; color:#fff}
.pill.rej{background:var(--red-soft); color:var(--red)}
.pill.wait{background:#FFF8EB; border-color:#E0A23B; color:#8A5A00}
.open{display:inline-flex; gap:6px; align-items:center; background:var(--g); color:#fff; border-radius:6px; padding:7px 11px; font-size:12.5px; font-weight:600}
.open .i{width:14px; height:14px}
/* заказ */
.od-top{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.btn-red{display:inline-flex; gap:8px; align-items:center; border:1px solid #FCA5A5; color:var(--red); border-radius:8px; padding:9px 14px; font-size:13px}
.oinfo{background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:16px 20px; display:grid; grid-template-columns:160px minmax(0,1fr); gap:10px; font-size:13px; color:var(--ink)}
.oinfo .g{color:var(--g-text)}
.proc{display:flex; gap:16px; align-items:center; background:#FFF8EB; border:1px solid #F3C677; border-radius:10px; padding:14px 18px}
.proc b{display:block; font-size:15px; font-weight:700; color:var(--ink)}
.proc small{display:block; font-size:12.5px; color:#5B4A2A; margin-top:4px; line-height:1.45}
.proc .pbar{margin-top:10px; max-width:360px; background:#F5E3BF}
.proc .pbar i{background:#D9822B; transition:width .6s}
.proc.ok{background:var(--g-soft); border-color:#BFE3CB}
.proc.ok small{color:var(--g-text)}
.clk{flex:none; width:46px; height:46px; display:grid; place-items:center}
.clk svg{width:46px; height:46px}
.clk .face{fill:#fff; stroke:#D9822B; stroke-width:2.2}
.clk .tick{stroke:#C9A36A; stroke-width:1.4; stroke-linecap:round}
.clk .hh,.clk .mh{stroke:#1D1C2E; stroke-width:2.4; stroke-linecap:round; transform-origin:20px 20px}
.clk .mh{stroke-width:1.8; animation:tick 12s steps(60) infinite}
.clk .hh{animation:tick 144s linear infinite}
.clk .pin{fill:#D9822B}
.clk.done .i{width:40px; height:40px; color:var(--g)}
@keyframes tick{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion: reduce){ .clk .hh,.clk .mh{animation:none} }
.ob{border:1px solid var(--line); border-left-width:3px; border-radius:10px; overflow:hidden}
.ob-h{display:flex; justify-content:space-between; gap:14px; padding:16px 20px; align-items:center; flex-wrap:wrap}
.ob-h .l{display:flex; gap:14px}
.ob-h .av{width:32px; height:32px; font-size:13px}
.ob-h b{font-size:15px; color:var(--ink)}
.ob-h .c{font-size:12.5px; color:#374151; line-height:1.6}
.ob-h .c .g{color:var(--g-text)}
.ob-h .r{display:flex; gap:10px; align-items:center; font-weight:700; font-size:14px; color:var(--ink)}
.ob table th{background:var(--soft); text-transform:uppercase}
.ob td{font-size:13px}

/* окна */
.ov{position:fixed; inset:0; z-index:50; background:rgba(15,18,34,.55); display:grid; place-items:center; padding:20px}
.md{background:#fff; border-radius:14px; width:100%; max-width:520px; padding:28px; display:grid; gap:14px; max-height:calc(100% - 20px); overflow-y:auto}
.md h2{margin:0; font-size:23px; font-weight:800; color:var(--ink); letter-spacing:-.02em; line-height:1.25; text-wrap:balance}
.md p{margin:0; font-size:14.5px; line-height:1.55}
.flow{display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:12.5px; font-weight:600}
.flow span{background:var(--soft); border:1px solid var(--line); border-radius:6px; padding:4px 8px}
.flow em{font-style:normal; color:var(--muted2)}
.md ul{margin:0; padding:0; list-style:none; display:grid; gap:8px}
.md li{display:flex; gap:10px; font-size:14px; line-height:1.4}
.md li::before{content:"✓"; flex:none; width:20px; height:20px; border-radius:50%; background:var(--g-soft); color:var(--g-text); font-size:11px; font-weight:800; display:grid; place-items:center}
.md .btn-g{min-height:46px; font-size:15px; font-weight:600; border-radius:8px}
.md .btn-o{justify-content:center; min-height:46px; font-size:14px}
.md .two{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.small{font-size:11.5px; color:var(--muted); text-align:center}
.contact{display:flex; justify-content:space-between; align-items:center; gap:10px; background:var(--soft); border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:14px}
.contact > span{flex:1 1 auto; min-width:0}
.contact .btn-o{min-height:36px; padding:6px 12px; flex:0 0 auto}
@media (max-width:600px){
  .contact{flex-direction:column; align-items:stretch}
  .contact .btn-o{width:100%; justify-content:center}
}
.calc{display:grid; gap:12px}
.calc div{display:flex; gap:10px; align-items:center; opacity:.35; transition:opacity .3s; font-size:14px}
.calc div.on{opacity:1}
.calc i{width:20px; height:20px; border-radius:50%; border:2px solid var(--line); flex:none; display:grid; place-items:center; font-style:normal; font-size:11px; color:#fff; font-weight:800}
.calc div.dn i{background:var(--g); border-color:var(--g)}
.calc div.on:not(.dn) i{border-color:var(--g); border-top-color:transparent; animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.toast{position:fixed; left:50%; bottom:calc(24px + env(safe-area-inset-bottom,0px)); transform:translateX(-50%); background:#1D1C2E; color:#fff; padding:10px 16px; border-radius:8px; font-size:13px; z-index:60}

.bnav{display:none}
.top-dark{display:none}
/* Базовые правила для нового HTML заказа (нужны и на десктопе). */
.ord-ttl{margin:0; font-size:26px; font-weight:700; letter-spacing:-.02em; color:var(--ink); display:flex; align-items:center; gap:10px}
.ord-ttl .num{letter-spacing:.03em}
.order-page{display:grid; gap:18px; max-width:900px}
.ob-main{flex:1 1 auto; min-width:0; display:flex; flex-direction:column; gap:4px}
.ob-del{font-size:13px; color:var(--g-text)}
.ob-sum{display:flex; align-items:center; gap:10px; font-size:16px; font-weight:700}
.ob-list{display:block; padding:0 16px 16px}
.ob-item{padding:12px 0; border-top:1px solid var(--line2)}
.ob-item:first-child{border-top:0}
.ob-item .n{font-size:14px; font-weight:500}
.ob-item .qp{margin-top:3px; font-size:12.5px; color:var(--muted)}
.ob-item .st{margin-top:8px; display:flex; align-items:center; justify-content:space-between; gap:10px}
.ob-item .st .sum{font-weight:700}
@media (max-width:1100px){ .cgrid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:900px){
  /* ВСЕ input/select ≥ 16px — иначе iOS Safari автозумит страницу при фокусе
     (владелец, iPhone 13, Safari, 30.10.2026: тап по полю qty в каталоге/
     избранном увеличивал страницу и уводил логотип за край экрана). */
  input,select,textarea{font-size:16px}
  /* overflow-x:hidden на html/body меняет scrollingElement с html на body и
     ломает window.scrollTo. На 360/390/430 ничего не вылезает — поэтому
     страховка не нужна. Если понадобится — переопределять точечно. */
  /* Поля страницы — ровно как в CustomerLayout: outer=0, панель=12px → итого 12px. */
  /* padding-bottom достаточно большое, чтобы при скролле «В корзину»
     выходила выше fixed bnav (иначе iPhone Safari прячет её под навом). */
  .app{grid-template-columns:1fr; padding:8px 0 110px; gap:0}
  .side{display:none}

  /* === ШАПКА (моб) === */
  .top{height:56px}
  .top-in{padding-left:16px; padding-right:16px}
  .logo{font-size:22px; font-weight:800; letter-spacing:-.01em}
  .top-r{gap:14px; align-items:center}
  .ico{width:30px; height:30px; border-radius:8px; color:var(--ink); background:none}
  .ico:hover{background:#F3F4F6}
  .ico svg{width:24px; height:24px; stroke-width:1.6}
  /* «🛒 (N)» pill — цифра в скобках ВНУТРИ pill (как в эталоне). */
  .cartbtn{display:flex; align-items:center; gap:6px; padding:7px 14px 7px 11px; height:38px; background:#1A1A2E; color:#fff; border-radius:10px; font-size:14px; font-weight:600}
  .cartbtn .cartbtn-l{display:none}
  .cartbtn .cartbtn-n{font-weight:600}
  .cartbtn svg{width:18px; height:18px; stroke:#fff; stroke-width:1.8}
  /* Тёмная шапка для экрана «Заказ» — заменяет светлую. */
  .top-dark{display:block; background:#1D1C2E; height:56px; border-bottom:0}
  .top-dark .top-in{height:100%; display:flex; align-items:center; gap:8px; justify-content:flex-start}
  .top-dark .ico-d{width:36px; height:36px; display:grid; place-items:center; color:#fff; background:none; border-radius:8px}
  .top-dark .ico-d svg{width:24px; height:24px; stroke:#fff; stroke-width:1.8}
  .top-dark .top-ttl{flex:1 1 auto; text-align:center; color:#fff; font-size:17px; font-weight:600}
  .top-dark .top-ttl .num{letter-spacing:.03em}

  /* === НИЖНЯЯ НАВИГАЦИЯ (5 ВКЛАДОК) === */
  .bnav{display:grid; grid-template-columns:repeat(5,1fr); position:fixed; left:0; right:0; bottom:0; z-index:25; background:#fff; border-top:1px solid var(--line); padding:6px max(0px, env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(0px, env(safe-area-inset-left,0px))}
  .bnav .nv{position:relative; flex-direction:column; align-items:center; gap:3px; width:auto; padding:4px 2px; font-size:11px; font-weight:500; color:#9CA3AF; border-radius:0; background:none; box-shadow:none}
  .bnav .nv svg{width:24px; height:24px; stroke-width:1.7; stroke:#9CA3AF; fill:none}
  .bnav .nv.on{background:none; color:var(--g); font-weight:600}
  .bnav .nv.on svg{stroke:var(--g); fill:none}
  .bnav .nv .bb{position:absolute; top:0px; left:50%; margin-left:3px; min-width:18px; height:18px; padding:0 5px; background:var(--red); color:#fff; border-radius:10px; font-size:10.5px; font-weight:700; display:grid; place-items:center; line-height:1}

  .panel{padding:12px; border-radius:0; min-height:0; background:transparent}
  h1{font-size:22px; font-weight:700; letter-spacing:-.01em; line-height:1.2}
  h1.big{font-size:24px}
  .sub{font-size:13px; color:#4B5563; margin-top:4px}

  /* === КАТАЛОГ === */
  .cat-head{gap:10px}
  .cat-head > div{flex:1 1 100%}
  .cat-head .dl{display:none}
  .btn-new{display:inline-flex; align-items:center; gap:8px; padding:12px 16px; font-size:14px; font-weight:500; border-radius:10px; background:var(--g); color:#fff; margin-top:12px}
  .btn-new .i{width:18px; height:18px}
  .dl-mob{display:flex; gap:12px; align-items:center; background:#EAF6EE; border:1px solid #BFE3CB; border-radius:12px; padding:12px 14px; font-size:13.5px; color:#15381F}
  .dl-mob .i{color:var(--g); width:18px; height:18px; flex:none}
  .dl-mob b{color:var(--ink); font-weight:700}
  .addrbar{padding:14px 14px; border-radius:12px; font-size:13.5px}
  .addrbar a{font-size:13.5px}
  .srch{grid-template-columns:1fr 54px; grid-template-rows:auto auto; gap:10px}
  .srch label.inp{grid-column:1; grid-row:1; height:46px; border-radius:10px; padding-left:14px}
  .srch label.inp input{font-size:16px}
  .srch .cam-btn{grid-column:2; grid-row:1; display:grid; place-items:center; width:54px; height:46px; border:1px solid #E5E7EB; border-radius:10px; background:#fff; color:var(--ink2)}
  .srch .cam-btn svg{width:22px; height:22px}
  .srch .sel{grid-column:1/-1; grid-row:2; height:46px; border-radius:10px; font-size:14.5px; color:var(--ink)}
  .cgrid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
  /* Карточка — размеры из CustomerCatalog.css @media(≤768px). */
  .pc{border:1px solid var(--line); border-radius:12px; padding:10px; gap:6px}
  .pc.sel{border-color:#6366F1}
  .pc-top{align-items:flex-start; border-bottom:1px solid var(--line); padding-bottom:8px; min-height:0; gap:6px}
  .pc-n{font-size:14px; font-weight:500; line-height:1.3; min-width:0}
  .heart{flex:none; width:26px; height:26px; border-radius:7px; background:#FDECEC; border-color:#FDECEC; color:#E04848}
  .heart svg{fill:#E04848; stroke:#E04848; width:13px; height:13px}
  /* Цена сразу под линией — никакого min-height-пустоты. */
  .pc-p{align-items:flex-end; gap:4px; margin-top:0; min-height:0; padding-top:6px}
  .pc-p .v{font-size:20px; font-weight:500; letter-spacing:0; line-height:1}
  .pc-p .u{font-size:11px; color:#4B5563; text-align:right; white-space:nowrap; line-height:1.4}
  .pc-p .u small{display:block; font-size:10px; color:var(--muted2); margin-top:1px}
  .pc .spec{display:inline-block; font-size:10px; padding:2px 6px; border-radius:4px; margin-bottom:3px; font-weight:500}
  /* −/qty/+ — ровно как в CustomerCatalog.css @ ≤768px:
     кнопка 40×40 (border 1.5px, font 22px), input flex:1 h=40px font=18px.
     Прецедент 30.10.2026: .pc-q{color:transparent} ранее был для скрытия
     лейбла единицы — но наследуется в input, цифра становилась невидимой
     на iPhone. Единицу скрываем через .pc-q > span{display:none}. */
  .pc-q{display:flex; gap:6px; align-items:center}
  .pc-sq{flex:0 0 40px; width:40px; height:40px; border:1.5px solid #E5E7EB; border-radius:8px; background:#F9FAFB; font-size:22px; font-weight:400; color:var(--ink2); display:grid; place-items:center}
  .pc-q input{flex:1 1 auto; min-width:40px; height:40px; border:1px solid #D1D5DB; border-radius:8px; background:#fff; color:var(--ink); text-align:center; font-size:18px; font-weight:500; padding:0 4px}
  .pc-q > span{display:none}
  .pc .btn-g{width:100%; height:44px; border-radius:10px; font-size:14px; font-weight:500; background:var(--g); gap:6px}
  .pc .btn-g svg{width:16px; height:16px}

  /* === ИЗБРАННОЕ — эталоны ~/oplix-demo-refs/fav_ref_{1,2}.jpg === */
  /* Верх страницы (fav_ref_2): «Избранное», под ним «N групп», справа
     кнопка «Удалить». Загрузить-из-Excel и why-плашка — скрыты. */
  .fav-head{align-items:flex-start; gap:10px}
  .fav-head > div{flex:1 1 auto; min-width:0}
  .fav-head .row{flex:0 0 auto; margin-top:4px}
  .fav-head .row .btn-o{display:none}
  .fav-head .row .btn-gray{display:inline-flex; padding:10px 20px; font-size:14px; font-weight:500; background:#fff; border:1px solid var(--line); border-radius:8px; color:var(--ink); height:42px; align-items:center}
  .why{display:none}
  /* callout «N поставщика с этим товаром — нажмите…» — часть сценария
     шага 2, остаётся в первой карточке, но компактно: внутри карточки
     под строкой с кружком, без выталкивания −/+/«В корзину» за viewport. */
  .fc .callout{margin:0; justify-content:stretch; display:block}
  .fc .callout button{display:flex; width:100%; gap:4px; align-items:center; padding:6px 8px; border-radius:8px; background:#F59E0B; color:#1A1A2E; font-size:10.5px; font-weight:700; line-height:1.25; text-align:left; box-shadow:0 1px 3px rgba(0,0,0,.15); max-width:none}
  .fc .callout button span:first-child{flex:1 1 auto; min-width:0}
  .fc .callout .ar{flex:0 0 auto; font-size:12px}
  /* Поиск + кнопка-камера как в эталоне. */
  .fav-srch{display:grid; grid-template-columns:1fr 54px; gap:10px}
  .fav-srch .inp{height:46px; border-radius:10px; padding-left:16px}
  .fav-srch .cam-btn{display:grid; place-items:center; width:54px; height:46px; border:1px solid #E5E7EB; border-radius:10px; background:#fff; color:var(--ink2)}
  .fav-srch .cam-btn svg{width:22px; height:22px}
  .fgrid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:stretch}
  /* === Карточка === */
  /* Высота карточки на мобильном Safari (innerHeight ≈ 664 при bnav 84px) —
     карточка + «В корзину» должны поместиться ВЫШЕ bnav. Сжимаем gap/padding
     максимально близко к CustomerFavorites.css. */
  .fc{display:flex; flex-direction:column; border:1px solid var(--line); border-radius:12px; padding:10px 10px 10px; gap:6px; background:linear-gradient(180deg,#fff 55%,#F2F9F4); overflow:hidden; min-height:0}
  .fgrid{align-items:stretch}
  .fgrid .fc{height:100%}
  .fc.in{border-color:#9FD5B0}
  /* 1) Шапка: tg · имя (до 2 строк, обрезка «…») · карандаш · корзина · кружок. */
  .fc-h{display:flex; align-items:flex-start; gap:6px}
  .fc-h .tg{flex:none; width:30px; height:17px; margin-top:1px}
  .fc-h .tg::after{width:11px; height:11px; left:3px; top:3px}
  .fc-h .fc-t{flex:1 1 auto; font-size:13.5px; line-height:1.2; font-weight:400; color:var(--ink); min-width:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; text-overflow:ellipsis; word-break:normal; overflow-wrap:break-word}
  .fc-h .fc-ic{flex:0 0 auto; display:flex; align-items:center; gap:5px; color:#B0B5BD; margin-top:1px}
  .fc-h .fc-ic .i{width:13px; height:13px}
  .fc-h .fc-ic .cnt{width:20px; height:20px; border-radius:50%; background:var(--indigo-soft); color:#4F46E5; font-size:10.5px; font-weight:700; display:grid; place-items:center}
  /* 2) Серое поле «Найти в каталоге...». */
  .fc .fc-find{display:flex; align-items:center; padding:0 10px; height:28px; border:1px solid #E7E5E4; background:#F5F5F4; border-radius:6px; font-size:12px; color:var(--muted2)}
  /* 3) Зелёная кнопка «Готово» на всю ширину. */
  .fc .fc-done{display:grid; place-items:center; height:28px; background:var(--g-light); color:#fff; border-radius:6px; font-size:12.5px; font-weight:500}
  /* 4) Полное название товара + разделитель. */
  .fc .fc-item{display:block; font-size:12.5px; color:#374151; font-weight:400; line-height:1.3; padding:0 0 6px; border-bottom:1px solid var(--line)}
  /* 5) Цена: бейдж + крупное число + «за кг» справа. */
  .fc-pr{display:flex; align-items:center; gap:8px; min-height:28px; padding:0}
  .fc-pr > div:first-child{flex:none; display:flex; align-items:center}
  .fc-pr .spec{display:inline-block; font-size:10.5px; padding:2px 7px; border-radius:4px; font-weight:500}
  .fc-pr .v{flex:1 1 auto; font-size:22px; font-weight:700; letter-spacing:0; color:var(--ink); text-align:left; line-height:1}
  .fc-pr .u{flex:0 0 auto; font-size:12px; color:var(--muted); white-space:nowrap; text-align:right}
  /* 6) alts (раскрытие по синему кружку) — компактный список. */
  .fc .alts{font-size:11.5px}
  .fc .alt{padding:5px 8px; gap:2px 6px}
  .fc .alt .n{font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
  .fc .alt .s{font-size:10.5px}
  .fc .alt .p{font-size:11px}
  /* 7) Spacer невидимый — просто margin-top:auto на .fc-q прижмёт низ. */
  .fc-gap{display:none}
  /* 8) −/qty/+ — как в CustomerFavorites.css ≤768px, прижаты к низу. */
  .fc-q{display:flex; gap:6px; align-items:center; height:40px; margin-top:auto}
  .fc-q .sq{flex:0 0 40px; width:40px; height:40px; border:1px solid #D1D5DB; border-radius:8px; background:#F9FAFB; font-size:20px; font-weight:300; color:var(--ink); display:grid; place-items:center}
  .fc-q input{flex:1 1 auto; min-width:0; width:auto; height:40px; border:1px solid #D1D5DB; border-radius:8px; background:#fff; color:var(--ink); text-align:center; font-size:18px; font-weight:500; padding:0 4px}
  .fc-q > span{display:none}
  /* 9) «В корзину» на всю ширину (fcard-add-btn height:44 font:14). */
  .fc .btn-g{width:100%; height:40px; font-size:14px; font-weight:500; border-radius:8px; background:var(--g)}
  .fc .btn-g.added{background:var(--g-soft); color:var(--g-text); border:1px solid #BFE3CB}

  /* === КОРЗИНА === */
  .cart-head > div{flex:1 1 100%}
  .cart-head .btn-o{display:none}
  .find{display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; padding:14px 14px; background:#1C1B2E; border-radius:12px; gap:10px}
  .find > div{flex:1 1 0; min-width:0; display:flex; flex-direction:column; gap:0}
  .find b{display:block; font-size:14px; line-height:1.25; font-weight:700; color:#fff}
  .find .find-sub{display:none}
  .find .find-tot{display:block; font-size:12px; color:#8E92A8; margin-top:4px}
  .find .find-tot .num{color:#C7CAD6; font-weight:600}
  .find .btn-g{min-height:44px; padding:0 14px; font-size:13.5px; font-weight:600; border-radius:10px; flex:0 0 auto; white-space:nowrap}
  /* Строки корзины: слева в 2 строки (имя + «спеццена цена/ед»), справа −/qty/+/🗑 */
  .cl{display:grid; grid-template-columns:minmax(0,1fr) auto auto; row-gap:0; padding:14px 0; border-bottom:1px solid var(--line2); align-items:center; gap:10px}
  .cl > div:first-child{grid-column:1; grid-row:1; min-width:0}
  .cl .n{font-size:14px; font-weight:500; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
  .cl .p{margin-top:4px; font-size:12.5px; color:#4B5563; display:flex; gap:6px; align-items:center}
  .cl .p .num{color:#4B5563}
  .cl .stp{grid-column:2; grid-row:1; align-self:center; gap:4px}
  .cl .s{display:none}
  .cl .trash{grid-column:3; grid-row:1; width:40px; height:40px; display:grid; place-items:center; color:var(--ink2)}
  .cl .trash svg{width:18px; height:18px}
  .stp .sq{width:40px; height:40px; border-radius:10px; border:1px solid #E5E7EB; background:#fff; font-size:19px}
  .stp input{width:48px; height:40px; border-radius:10px; font-size:17px; font-weight:600; text-align:center; padding:0 4px; border:1px solid #D1D5DB; background:#fff}
  .tot{display:none}

  /* === ВАРИАНТЫ === */
  .narrow{gap:14px}
  .back{font-size:14px; font-weight:400; color:var(--muted)}
  /* Карточка адреса. */
  .acard{padding:14px 16px; border-radius:12px; gap:14px; align-items:flex-start; box-shadow:0 1px 3px rgba(0,0,0,.04)}
  .acard .i{color:var(--nav-edge); width:22px; height:22px; margin-top:0; flex:none}
  .acard .acard-r{display:flex; flex-direction:column; gap:4px; min-width:0}
  .acard b{display:block; font-size:14px; font-weight:500; color:var(--ink); line-height:1.4}
  .acard small{display:block; font-size:13px; color:var(--muted); line-height:1.4}
  /* «Поставщиков в заказе:» + 1 2 3 4 в одной строке → 5 6 7 8 переносятся вниз.
     Grid: 1 колонка-лейбл + 4 колонки по 42px. Кнопки идут в row:1 cols 2..5,
     следующие автоматически пойдут в row:2. */
  /* Row 1 = «Поставщиков в заказе:» (слева, 1fr) + 1 2 3 4 (справа, auto).
     Row 2 = 5 6 7 8 (слева от края контейнера, под началом надписи). */
  .nsel{display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; font-size:13.5px; color:var(--ink2)}
  .nsel .nsel-l{grid-column:1; grid-row:1; align-self:center; color:var(--ink2); font-size:14px}
  .nsel .nsel-g1{grid-column:2; grid-row:1; display:flex; gap:8px}
  .nsel .nsel-g2{grid-column:1 / -1; grid-row:2; display:flex; gap:8px}
  .nsel button{width:42px; height:42px; border-radius:10px; border:1px solid #E5E7EB; font-size:15px; font-weight:500; background:#fff; padding:0; color:var(--ink); flex:0 0 42px}
  .nsel button.on{background:#111; border-color:#111; color:#fff}
  /* Красный warning. */
  .warn{border-radius:14px; padding:16px 16px; font-size:14px; line-height:1.5; align-items:flex-start}
  .warn .i{width:20px; height:20px; margin-top:2px}
  /* Белая карточка «итогов варианта». */
  .vcard{padding:18px 14px; border-radius:14px; gap:12px}
  .vh{align-items:flex-start}
  .vh b{font-size:17px; font-weight:600}
  .vh .t{text-align:right}
  .vh .t div{font-size:26px; font-weight:700; letter-spacing:-.01em}
  .vh .t small{font-size:13px; color:var(--muted)}
  /* Блок поставщика: светлый фон, цветная полоса слева. */
  .sb{border-radius:12px; padding:14px 14px 14px; gap:12px; border-left-width:3px}
  .sb-h{gap:10px; align-items:flex-start}
  .av{width:28px; height:28px; font-size:12px; border-radius:50%}
  .sb-h b{font-size:14px; font-weight:600; color:var(--ink); flex:1; min-width:0}
  /* Жёлтая pill «Перейти в каталог →». */
  .sb-cat{margin-left:0; font-size:13px; font-weight:500; padding:7px 14px; border-radius:10px; border:1px solid #D97706; background:#FEF3C7; color:#92400E; flex-shrink:0}
  .sb-m{font-size:13px; padding-left:38px; margin-top:0}
  .sb .pbar{height:3px; border-radius:2px; background:#D1F0DB; margin-top:2px}
  .sb .pbar i{background:var(--g)}
  /* Строка товара: имя+цена слева в 2 строки, [−][qty][+] центр, сумма+× справа. */
  .vl{grid-template-columns:minmax(0,1fr) auto auto auto; align-items:center; gap:8px; padding:4px 0}
  .vl .n{font-size:14px; font-weight:500; min-width:0; overflow:hidden; display:flex; flex-direction:column; gap:2px}
  .vl .n .nm{display:block; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; max-width:100%}
  .vl .n small{display:block; font-size:12px; color:var(--muted); margin-top:0}
  .vl .stp{grid-column:2; grid-row:1; gap:0}
  .vl .stp .sq{width:34px; height:38px; border-radius:9px; background:#F5F5F4; border-color:#E7E5E4; font-size:17px}
  .vl .stp .q{display:inline-grid; place-items:center; width:48px; height:38px; border:1px solid #E5E7EB; border-radius:9px; margin:0 2px; font-size:15px; font-weight:500; background:#fff}
  .vl .s{grid-column:3; grid-row:1; min-width:58px; text-align:right; font-size:14px; font-weight:600; color:var(--ink)}
  .vl .vx{grid-column:4; grid-row:1; width:28px; height:28px; border:1px solid #E5E7EB; border-radius:7px; background:#fff; color:#9CA3AF; font-size:14px; display:grid; place-items:center}
  /* Низ блока: голубая «Исключить» слева, «Доставка …» справа. */
  .sb-f{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:2px; flex-wrap:nowrap}
  .excl{background:#EEF2FF; border:0; color:#4338CA; font-size:14px; font-weight:500; padding:12px 16px; border-radius:10px; line-height:1.2; max-width:60%; white-space:normal; text-align:center}
  .sb-f small{font-size:13px; color:var(--muted); flex-shrink:0}
  /* CTA «Выбрать этот вариант». */
  .cta{min-height:52px; border-radius:14px; background:#111; color:#fff; font-size:15px; font-weight:500; gap:10px}
  .cta:hover{background:#111}
  .cta svg{stroke:#fff; width:20px; height:20px}

  /* === ЗАКАЗ === */
  .order-page{display:grid; gap:16px}
  .od-top{display:none}
  .ord-ttl{display:flex; margin:0; font-size:28px; font-weight:800; letter-spacing:-.01em; color:var(--ink); align-items:center; gap:10px}
  .ord-ttl .num{letter-spacing:.03em; font-weight:800}
  .ord-ttl svg{color:var(--muted2); stroke:var(--muted2); width:22px; height:22px}
  /* Серая карточка с полями «ключ / значение» на отдельных строках. */
  .oinfo{display:flex; flex-direction:column; background:var(--soft); border:0; border-radius:14px; padding:18px 20px; gap:0}
  .oinfo .k{font-size:14px; color:var(--muted); margin-top:14px}
  .oinfo .k:first-child{margin-top:0}
  .oinfo .v{font-size:15px; color:var(--ink); font-weight:400; margin-top:4px; line-height:1.4}
  .oinfo .v.g{color:var(--g-text)}
  .oinfo .v .pill{display:inline-block}
  /* Блок поставщика в заказе: цветная полоса, кружок, имя, доставка, сумма+бейдж. */
  .ob{display:block; border:1px solid var(--line); border-left-width:4px; border-radius:12px; overflow:hidden}
  .ob-h{display:grid; grid-template-columns:36px minmax(0,1fr); gap:12px; padding:14px 16px; align-items:start}
  .ob-h .av{width:36px; height:36px; font-size:14px; border-radius:50%}
  .ob-main{display:block}
  .ob-h b{display:block; font-size:16px; font-weight:700; color:var(--ink); margin-bottom:4px}
  .ob-del{font-size:13px; color:var(--g-text); margin-bottom:10px}
  .ob-sum{display:flex; align-items:center; gap:12px}
  .ob-sum .num{font-size:20px; font-weight:700; color:var(--ink)}
  /* Позиции заказа — карточки в 3 строки. */
  .ob-list{display:block; padding:0 16px 16px}
  .ob-item{padding:14px 0; border-top:1px solid var(--line2)}
  .ob-item:first-child{border-top:0}
  .ob-item .n{font-size:15px; font-weight:500; color:var(--ink); line-height:1.3}
  .ob-item .qp{margin-top:4px; font-size:13.5px; color:var(--muted); font-weight:400}
  .ob-item .st{margin-top:10px; display:flex; align-items:center; justify-content:space-between; gap:10px}
  .ob-item .st .pill{font-size:12.5px; padding:5px 12px; border-radius:14px}
  .ob-item .st .sum{font-size:17px; font-weight:700; color:var(--ink)}
  /* Старые ob-table-правила — скрываем (теперь .ob-item). */
  .ob table,.ob > div[style*="overflow-x"]{display:none}

  /* === ИСТОРИЯ === */
  .tw{border:0; overflow:visible; background:none}
  .tw table{border:0; width:100%}
  .tw thead{display:none}
  .tw tbody{display:grid; gap:12px}
  .tw tr{display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto auto auto; gap:4px 12px; padding:14px 16px; background:#fff; border:1px solid var(--line); border-radius:14px; align-items:center}
  .tw td{display:block; border:0; padding:0}
  .tw td:nth-child(1){display:none}
  .tw td:nth-child(2){grid-column:1; grid-row:1}
  .tw td:nth-child(2) + .i,.tw td:nth-child(2) .i{display:none}
  .tw td:nth-child(2) .oid{font-size:14px; font-weight:700; letter-spacing:.03em}
  .tw td:nth-child(3){grid-column:1/-1; grid-row:2}
  .tw td:nth-child(3) .dt{font-size:12.5px; color:var(--muted)}
  .tw td:nth-child(3) .dt small{display:block; color:var(--g-text); margin-top:2px}
  .tw td:nth-child(4){grid-column:2; grid-row:1; justify-self:end}
  .tw td:nth-child(5){grid-column:1; grid-row:3; font-size:18px; font-weight:700}
  .tw td:nth-child(6){display:none}
  .tw td:nth-child(7){grid-column:2; grid-row:3; justify-self:end; font-size:12.5px; color:var(--muted)}
  .tw td:nth-child(7)::after{content:" поз."}
  .tw td:nth-child(8){grid-column:1/-1; grid-row:4; margin-top:8px}
  .tw td:nth-child(8) .row{gap:0}
  .tw td:nth-child(8) .row > span{display:none}
  .tw td:nth-child(8) .open{display:flex; justify-content:center; width:100%; height:44px; border-radius:10px; font-size:14px; font-weight:600}

  .md .two{grid-template-columns:minmax(0,1fr)}
  .md .two .btn-g{white-space:normal; line-height:1.3; min-width:0; text-align:center; justify-content:center}
  .md .two .btn-o{min-width:0; text-align:center; justify-content:center}
  .demo p{font-size:12.5px}
}
@media (max-width:420px){
  /* Защита от переполнения при ширине 360–430: карточки в каталоге/избранном
     всегда 2 колонки, элементы — ужаты. */
  .panel{padding:14px 12px 20px}
  .cgrid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
  .fgrid{grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
  .pc{padding:12px 10px; gap:8px}
  .pc-n{font-size:12.5px}
  .pc-p .v{font-size:22px}
  /* −/+/qty на 360: кнопки чуть уже, но iOS-требование font ≥16px соблюдено. */
  .pc-q{gap:4px}
  .pc-sq{flex:0 0 36px; width:36px; height:40px; font-size:20px}
  .pc-q input{flex:1 1 auto; min-width:40px; width:auto; height:40px; font-size:16px; font-weight:500}
  .pc .btn-g{font-size:13px; height:42px}
  .fc{padding:10px; gap:6px}
  .fc-t{font-size:12px}
  .fc-pr .v{font-size:20px}
  .cl{gap:6px}
  .stp .sq{width:36px; height:36px; font-size:17px}
  .stp input{width:40px; height:36px; font-size:16px}
  .cl .trash{width:34px; height:34px}
  .nsel{gap:8px}
  .nsel button{height:44px; font-size:14px}
  .acard b{font-size:13px}
  .find{padding:14px 12px}
  .find b{font-size:14px}
  .find .btn-g{min-height:44px; padding:0 12px; font-size:13px}
  .excl{font-size:13px; padding:10px 10px}
  .sb-f small{font-size:12px}
  /* Варианты — ужать строку товара, чтобы 360 влезло. */
  .vl{gap:4px}
  .vl .stp .sq{width:28px; height:34px; font-size:16px}
  .vl .stp .q{width:34px; height:34px; font-size:14px; margin:0 1px}
  .vl .s{min-width:42px; font-size:13px}
  .vl .vx{width:22px; height:22px; font-size:12px}
  .sb{padding:12px 10px}
  .sb{padding:12px 12px 12px}
  .sb-cat{font-size:12px; padding:6px 10px}
  .ob-h b{font-size:15px}
  .ob-sum .num{font-size:18px}
  .ob-item .n{font-size:14px}
  .ob-item .st .sum{font-size:16px}
}
@media (prefers-reduced-motion: reduce){ .target,.demo.shake,.calc div.on:not(.dn) i{animation:none} }

/* loader и аварийный блок */
.demo-loader{max-width:420px;margin:120px auto;padding:28px;text-align:center;color:#374151;font-size:15px}
.demo-error{max-width:460px;margin:120px auto;padding:28px;text-align:center;color:#374151;font-size:15px}
.demo-error button{margin-top:16px;background:#3C9A5C;color:#fff;border:0;border-radius:8px;padding:10px 22px;font-size:14px;font-weight:600;cursor:pointer}

/* Кнопка «Перейти в каталог» в блоке поставщика на экране вариантов
   (как на настоящем экране OrderVariants.js:1439-1451 — жёлтая с рамкой) */
.sb-cat{margin-left:auto;font-size:12px;font-weight:600;padding:5px 12px;border-radius:7px;border:1px solid #D97706;background:#FEF3C7;color:#92400E;white-space:nowrap;flex-shrink:0;cursor:pointer}
.sb-h{display:flex;align-items:center;gap:10px}
.sb-h b{flex:1;min-width:0}
/* Полоса-фильтр над каталогом при переходе из блока поставщика */
.cat-filter{display:flex;gap:12px;align-items:center;background:#FFFBEB;border:1px solid #F3C677;border-radius:10px;padding:10px 14px;font-size:13.5px;color:#1F2937;flex-wrap:wrap}
.cat-filter .back{color:#92400E;font-weight:600}
.cat-filter span{flex:1;min-width:0}
