/* Публично QR меню по одобрената дъска QrMenuEL (вариант Е, светла тема).
   Само var(--...) от tokens.css (правило 17); тъмната тема идва от същите токени. Mobile-first. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--color-bg);color:var(--color-text);font-family:var(--font-sans);font-size:16px;line-height:1.5;position:relative;min-height:100vh}
a{color:inherit}
.mono{font-family:var(--font-mono)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.noscroll{scrollbar-width:none}.noscroll::-webkit-scrollbar{display:none}
a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(--color-accent-2);outline-offset:2px}

.glow{position:absolute;top:-120px;left:0;right:0;height:380px;pointer-events:none;overflow:hidden;
  background:radial-gradient(420px 260px at 20% 45%,var(--glow-accent),transparent 70%),radial-gradient(360px 240px at 85% 35%,var(--glow-violet),transparent 70%)}

.qm-head,.qm-cats,.qm-list,.qm-foot{position:relative;max-width:640px;margin:0 auto}
.qm-head{padding:20px 18px 12px;display:flex;flex-direction:column;gap:14px}
.qm-head__row{display:flex;justify-content:space-between;align-items:center;gap:10px}
.qm-head__title{min-width:0}
.qm-status{margin:0;font-size:12px;font-weight:500;color:var(--color-text-muted)}
.qm-name{margin:4px 0 0;font-size:25px;font-weight:700;letter-spacing:-.04em;line-height:1.15;color:var(--color-text-strong)}
.cur{display:inline-block;width:.07em;height:.78em;background:var(--color-accent);border-radius:3px;margin:0 .06em 0 .08em;vertical-align:baseline;animation:blink 1.1s steps(1) infinite}
@keyframes blink{50%{opacity:0}}
@media (prefers-reduced-motion:reduce){.cur{animation:none}}

.qm-tools{display:flex;gap:8px;flex:none}
.qm-btn{display:inline-flex;align-items:center;justify-content:center;min-width:48px;height:44px;padding:0 12px;border-radius:12px;
  border:1px solid var(--color-border);background:var(--color-surface-strong);color:var(--color-text-strong);font:inherit;font-weight:600;font-size:14px;text-decoration:none;cursor:pointer}
.qm-btn:hover{border-color:var(--color-border-strong)}
.qm-btn .i-moon{display:none}
[data-theme="dark"] .qm-btn .i-sun{display:none}
[data-theme="dark"] .qm-btn .i-moon{display:block}

.qm-search{display:flex;align-items:center;gap:10px;height:48px;padding:0 14px;border-radius:14px;
  background:var(--color-surface-strong);border:1px solid var(--color-border);color:var(--color-text-muted)}
.qm-search input{flex:1;width:100%;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:var(--color-text-strong)}
.qm-search input::placeholder{color:var(--color-text-muted)}

.qm-cats{position:sticky;top:0;z-index:5;display:flex;gap:8px;overflow-x:auto;padding:6px 18px 8px}
.qm-cats.is-stuck{background:color-mix(in srgb,var(--color-bg) 88%,transparent);backdrop-filter:blur(12px);box-shadow:0 1px 0 var(--color-border)}
.qm-chip{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:12px;font-weight:600;font-size:14px;text-decoration:none;
  background:var(--color-surface-strong);color:var(--color-text);border:1px solid var(--color-border);white-space:nowrap}
.qm-chip.is-on{background:var(--gradient-button);color:#fff;border-color:transparent}

.qm-list{padding:0 18px 24px;display:flex;flex-direction:column;gap:10px}
.qm-intro{margin:6px 0 0;font-size:14px;color:var(--color-text-muted)}
.qm-cat{display:flex;flex-direction:column;gap:10px;scroll-margin-top:64px}
.qm-cat[hidden]{display:none}
.qm-cat__title{margin:12px 0 2px;font-size:12px;font-weight:500;letter-spacing:.04em;color:var(--color-accent-text)}
.qm-dish{position:relative;display:flex;gap:12px;padding:12px 14px;border-radius:18px;
  background:var(--color-surface-strong);border:1px solid var(--color-border);box-shadow:var(--shadow-card)}
.qm-dish__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.qm-dish__head{display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.qm-dish__name{margin:0;font-size:16px;font-weight:600;letter-spacing:-.015em;color:var(--color-text-strong)}
.qm-dish__price{font-size:15px;font-weight:600;color:var(--color-text-strong);white-space:nowrap}
.qm-dish__text{margin:0;font-size:13px;line-height:1.4;color:var(--color-text-muted)}
.qm-dish__tags{display:flex;flex-wrap:wrap;gap:6px;margin:2px 0 0}
.qm-tag{font-size:11px;font-weight:600;padding:3px 8px;border-radius:8px;white-space:nowrap;color:var(--color-text-soft);background:var(--color-bg);border:1px solid var(--color-border)}
.qm-empty{padding:40px 0;text-align:center;color:var(--color-text-muted)}

.qm-foot{padding:16px 18px 40px;display:flex;flex-direction:column;align-items:center;gap:18px}
.qm-call{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:12px;font-weight:600;text-decoration:none;
  color:var(--color-accent-text);border:1px solid var(--color-border);background:var(--color-surface-strong)}

/* Лого: един компонент, вариант според темата (D8). */
.brand-logo{display:inline-flex;align-items:center;line-height:0}
.brand-logo img{height:auto;max-height:100%}
.brand-logo__dark{display:none}
[data-theme="dark"] .brand-logo__light{display:none}
[data-theme="dark"] .brand-logo__dark{display:inline}

.brand-mark{margin:0;font-size:12px;color:var(--color-text-muted)}
.brand-mark a{display:inline-flex;align-items:center;gap:8px;text-decoration:none;opacity:.75}
.brand-mark a:hover{opacity:1}

/* Начална страница (временно, докато се пренесе одобрената дъска „Вариант Е светла · Начална страница“) */
.home-top{position:relative;max-width:1180px;margin:0 auto;padding:18px 28px;display:flex;align-items:center}
.home-hero{position:relative;max-width:1180px;margin:0 auto;padding:72px 28px}
.home-hero h1{margin:0 0 14px;font-size:clamp(32px,6vw,56px);line-height:1.08;letter-spacing:-.04em;color:var(--color-text-strong);max-width:16ch}
.home-hero p{margin:0;max-width:56ch;font-size:18px;color:var(--color-text-muted)}

@media (min-width:640px){.qm-head{padding-top:32px}.qm-name{font-size:32px}}
.qm-dish[hidden]{display:none}

/* Ястие в QR менюто: снимка, грамаж и отличия (дъска QrMenuEL) */
.qm-dish__img{flex:none;width:92px;height:92px;border-radius:12px;object-fit:cover;background:linear-gradient(135deg,var(--placeholder-from),var(--placeholder-to))}
.qm-dish__name a{color:inherit;text-decoration:none}
.qm-dish__name a::after{content:"";position:absolute;inset:0;border-radius:18px}
.qm-dish__name a:focus-visible::after{outline:2px solid var(--color-accent-2);outline-offset:2px}
.qm-dish__tags{align-items:center}
.qm-dish__portion{font-size:12px;color:var(--color-text-muted)}
.qm-diet{font-size:11px;font-weight:600;padding:3px 8px;border-radius:8px;white-space:nowrap;color:var(--color-success);background:var(--color-bg);border:1px solid var(--color-border)}

/* Рамка на QR код */
.qr-frame{position:relative;display:inline-flex;align-items:center;justify-content:center;width:var(--qr);height:var(--qr);padding:8px;flex:none}
.qr-frame>span{position:absolute;width:14px;height:14px;border-color:var(--color-accent);border-style:solid;border-width:0}
.qr-frame>span:nth-child(1){top:0;left:0;border-top-width:2px;border-left-width:2px;border-top-left-radius:4px}
.qr-frame>span:nth-child(2){top:0;right:0;border-top-width:2px;border-right-width:2px;border-top-right-radius:4px}
.qr-frame>span:nth-child(3){bottom:0;left:0;border-bottom-width:2px;border-left-width:2px;border-bottom-left-radius:4px}
.qr-frame>span:nth-child(4){bottom:0;right:0;border-bottom-width:2px;border-right-width:2px;border-bottom-right-radius:4px}
.qr-frame img{width:100%;height:100%;display:block;background:#fff;border-radius:4px}

/* Бутони */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:14px;font:inherit;font-weight:600;font-size:15px;text-decoration:none;cursor:pointer;white-space:nowrap}
.btn--primary{background:var(--gradient-button);color:#fff;border:0;box-shadow:0 12px 30px -12px var(--color-accent)}
.btn--ghost{background:var(--color-surface-strong);color:var(--color-text-strong);border:1px solid var(--color-border-strong)}
.pulse{animation:pulse 2s ease-in-out infinite}
@keyframes pulse{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.pulse{animation:none}}
