/* =====================================================================
   Яма ВВГУ. Токены (AI-RULES §0.3), палитра с референса заказчика
   Шрифты: Playfair Display 400 (заголовки) + Manrope 400 (текст)
   Палитра: Transparent Yellow #F5EFC6 / Sceptre Red #4D0E12 / Cerulean #A5BCD6 /
            Potting Soil #4A2E27 / Java Brown #231815 (AI-RULES §8 «3 цвета» отменено просьбой заказчика)
   Кривая: cubic-bezier(.22, 1, .36, 1)
   Скругления: кнопки 999px / фото и кафе 0 / карточки 16-20px / поля 12px
   Отступы: 4 8 12 16 24 32 48 72 112
   ===================================================================== */
:root {
  --cream: #F5EFC6; --red: #4D0E12; --blue: #A5BCD6; --soil: #4A2E27; --java: #231815;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --bg: var(--cream);
  --surface: #FBF7E2;
  --tone: rgb(74 46 39 / .09);
  --ink: var(--java);
  --ink-2: rgb(35 24 21 / .80);
  --mute: rgb(35 24 21 / .68);
  --line: rgb(35 24 21 / .12);
  --line-2: rgb(35 24 21 / .26);
  --accent: var(--red);
  --on-accent: var(--cream);
  --sel: var(--blue); --on-sel: var(--java);

  --ok: #1E6B3C; --ok-bg: #D9E8CF;
  --warn: #8A4B08; --warn-bg: #F2DDB0;
  --bad: #8E1A1F; --bad-bg: #F1D3CC;
  --info: #2F4F72; --info-bg: #DCE5EE;

  --e: cubic-bezier(.22, 1, .36, 1);
  --side: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --top: 92px;
  --r-card: 20px; --r-item: 14px; --r-field: 12px;
  color-scheme: light;
}

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: clip;
  background: var(--bg); color: var(--ink); font: 400 16px/1.6 "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; hyphens: none; text-wrap: balance; }
p { text-wrap: pretty; }
img { max-width: 100%; }
i.ph, i.ph-fill { line-height: 1; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 12px; }
.vh { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

main { width: 100%; max-width: var(--max); margin: 0 auto; padding: var(--top) var(--side) 120px; flex: 1; }
.h1 { font-size: clamp(2.2rem, 5vw, 4rem); line-height: .95; letter-spacing: -.035em; margin: 8px 0 24px; }
.h1.c { text-align: center; margin-bottom: 10px; }
.h2 { font-size: 22px; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 12px; }
.hint { color: var(--mute); font-size: 14px; margin: 2px 0 16px; max-width: 60ch; }
.hint.c { text-align: center; margin-inline: auto; }
.none { color: var(--mute); font-size: 14px; padding: 10px 2px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--mute); font-size: 15px; margin-bottom: 16px; min-height: 44px;
  transition: color 320ms var(--e), transform 520ms var(--e); }
.back:hover { color: var(--ink); transform: translateX(-4px); }

/* ============ Движение (AI-RULES §7) ============ */
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(14px); } }
@keyframes curtain { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.14); } }
@keyframes vt-out { to { opacity: 0; filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; filter: blur(8px); } }
@keyframes pop { from { transform: translate(-50%, 24px); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
@keyframes grow { from { width: 0; } }
@keyframes barUp { from { transform: scaleY(.1); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(12px) scale(.98); filter: blur(6px); } }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 var(--ok-bg); } 50% { box-shadow: 0 0 0 10px transparent; } }
@media (prefers-reduced-motion: no-preference) {
  #app.anim .rv { animation: rise 900ms var(--e) both; animation-delay: var(--d, calc(var(--i, 0) * 50ms)); }
  /* фирменное взаимодействие страницы: фото раскрывается шторкой */
    #app.anim .hero-bg, #app.anim .cafe-head-bg { animation: settle 2400ms var(--e) both; }
  ::view-transition-old(root) { animation: vt-out 280ms var(--e) both; }
  ::view-transition-new(root) { animation: vt-in 600ms var(--e) both; }
  .st-line i { animation: grow 1200ms var(--e) both; }
  #app.anim .bar i { animation: barUp 900ms var(--e) both; transform-origin: bottom; }
}
.head { view-transition-name: head; }

/* ============ Шапка ============ */
.head { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--side); pointer-events: none; }
.head > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 14px 4px 4px; border-radius: 999px;
  background: rgb(246 245 241 / .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand-word { font-size: 22px; letter-spacing: -.03em; padding-left: 12px; }
.brand-vvsu { display: block; width: 64px; height: auto; opacity: .9; padding-left: 12px; border-left: 1px solid var(--line); transition: opacity 320ms var(--e); }
.brand:hover .brand-vvsu { opacity: 1; }
.nav { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / .82);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.nav a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 15px; color: var(--ink-2);
  transition: background 420ms var(--e), color 320ms var(--e); }
.nav a:hover { background: rgb(23 46 70 / .06); color: var(--ink); }
.nav a.on { background: var(--accent); color: var(--on-accent); }
.nav a i { font-size: 18px; }
@media (max-width: 640px) {
  .brand-vvsu { display: none; } .brand { padding-right: 4px; }
  .nav a { padding: 0 13px; } .nav a:not(.on) span { display: none; }
}

/* ============ Кнопки (AI-RULES §6): сплошная пилюля и прозрачная с контуром ============ */
.btn, .pill-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 52px; padding: 0 8px 0 24px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 16px; white-space: nowrap; transition: color 320ms var(--e), transform 620ms var(--e); }
.btn-fill, .pill-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--e); }
.btn-arrow, .pill-ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 18px;
  background: rgb(23 46 70 / .1); transition: transform 520ms var(--e), background 320ms var(--e); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.ghost .btn-arrow { background: transparent; }
@media (hover: hover) {
  .btn:hover, .pill-btn:hover, a:hover > .pill-btn, .cafe:hover .btn, .hub-card:hover .pill-btn { color: var(--cream); }
  .btn:hover .btn-fill, .pill-btn:hover::before, a:hover > .pill-btn::before, .cafe:hover .btn-fill, .hub-card:hover .pill-btn::before { transform: scaleX(1); }
  .btn:hover .btn-arrow, .pill-btn:hover .pill-ico, a:hover > .pill-btn .pill-ico, .cafe:hover .btn-arrow, .hub-card:hover .pill-ico { transform: translateX(4px); background: rgb(255 255 255 / .16); }
}
.btn:active, .pill-btn:active { transform: scale(.98); }
.pill-btn.sm { min-height: 44px; padding-left: 18px; font-size: 15px; gap: 12px; }
.pill-btn.full { width: 100%; }
.pill-btn:disabled { opacity: .45; cursor: not-allowed; } .pill-btn:disabled::before { display: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: background 420ms var(--e), transform 620ms var(--e); }
.btn-ghost:hover { background: rgb(23 46 70 / .05); } .btn-ghost:active { transform: scale(.98); }
.btn-ghost.sm { min-height: 40px; padding: 0 14px; font-size: 14px; } .btn-ghost.danger { color: var(--bad); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }
.btn-solid { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); transition: background 420ms var(--e), color 320ms var(--e), transform 620ms var(--e); }
.btn-solid:hover { background: var(--ink); color: var(--cream); } .btn-solid:active { transform: scale(.97); }
.btn-solid.sm { font-size: 14px; min-height: 40px; margin-left: auto; }
.btn-solid.danger { background: var(--bad); color: var(--cream); } .btn-solid.danger:hover { background: #8f1e18; }

/* ============ Главная (стиль референса) ============ */
.hero { position: relative; display: grid; place-items: center; min-height: 100svh; margin: calc(-1 * var(--top)) calc(50% - 50vw) 0; overflow: hidden;
  background: var(--java); color: var(--cream); text-align: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  mask-image: linear-gradient(to top, #000 0%, transparent 40%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 40%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 28px; max-width: 980px; padding: var(--top) var(--side) 9svh; }
.hero-word { font-family: var(--serif); font-size: clamp(5.4rem, 25vw, 16rem); line-height: .82; letter-spacing: -.04em; color: var(--cream);
  text-shadow: 0 10px 60px rgb(35 24 21 / .6); }
.hero .lead { color: var(--cream); max-width: 46ch; text-shadow: 0 2px 18px rgb(35 24 21 / .8); }
.hero .cta-row { justify-content: center; }
.hero .reassure { color: rgb(245 239 198 / .85); text-shadow: 0 1px 10px rgb(35 24 21 / .8); }
.lead { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.reassure { font-size: 13px; color: var(--mute); }

.block { margin: 0 calc(50% - 50vw); padding: 112px max(var(--side), calc((100vw - var(--max)) / 2 + var(--side))); scroll-margin-top: 0; }
.block.blue { background: var(--blue); }
.sec-h { font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: .95; letter-spacing: -.03em; text-align: center; }
.sec-sub { text-align: center; color: var(--mute); margin: 16px auto 56px; max-width: 48ch; }

.cafes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.cafe { display: flex; flex-direction: column; background: var(--soil); color: var(--cream); transition: transform 620ms var(--e); }
.cafe[data-tone="mocha"] { background: var(--blue); color: var(--java); margin-top: 72px; }
.cafe-photo { aspect-ratio: 4 / 3; overflow: hidden; background: var(--java); }
.cafe-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 850ms var(--e); }
/* Логотип как наклейка на стыке фото и плашки: крупнее, лёгкий наклон и тень */
.cafe-logo { position: relative; z-index: 1; align-self: flex-start; margin: -48px 0 0 26px; padding: 0; background: none; }
.cafe-logo img { display: block; height: 84px; width: auto; border-radius: 12px; box-shadow: 0 10px 26px rgb(35 24 21 / .3); transform: rotate(-3deg); transition: transform 620ms var(--e), box-shadow 620ms var(--e); }
.cafe[data-tone="mocha"] .cafe-logo img { transform: rotate(-1.5deg); }
@media (hover: hover) { .cafe:hover .cafe-logo img { transform: rotate(0deg) translateY(-4px); box-shadow: 0 16px 34px rgb(35 24 21 / .34); } }
.cafe-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 28px 32px; }
.cafe-n { font-size: 13px; opacity: .7; }
.cafe h3 { font-size: clamp(2.4rem, 4vw, 3.6rem); line-height: .95; letter-spacing: -.03em; }
.cafe-tag { opacity: .85; } .cafe-meta { font-size: 14px; opacity: .72; }
.cafe .btn { align-self: flex-start; margin-top: 16px; }
.cafe .btn.ghost { color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.cafe[data-tone="latte"] .btn-fill { background: var(--red); }
@media (hover: hover) { .cafe:hover { transform: translateY(-6px); } .cafe:hover .cafe-photo img { transform: scale(1.05); } .cafe:hover .btn.ghost { color: var(--cream); } }

.prods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.prod { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prod-pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--tone); display: grid; place-items: center; font-size: 48px; }
.prod-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 800ms var(--e); }
.prod-t { font-family: var(--serif); font-size: 22px; line-height: 1.05; letter-spacing: -.02em; margin-top: 10px; }
.prod-m { color: var(--mute); font-size: 14px; }
.prod-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; }
@media (hover: hover) { .prod:hover .prod-pic img { transform: scale(1.06); } }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.how-item { display: flex; flex-direction: column; gap: 4px; padding-top: 16px; border-top: 1px solid rgb(35 24 21 / .3); color: rgb(35 24 21 / .78); font-size: 15px; }
.how-item b { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; color: var(--java); }
.how-n { font-size: 13px; margin-bottom: 18px; }
.how-week { display: flex; justify-content: center; margin-top: 48px; }
.weekpill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--ink-2); }
.weekpill b { font-weight: 400; color: var(--ink); }
.wdot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; } .wdot.big { width: 28px; height: 28px; flex: none; }

/* ============ Каталог ============ */
.cafe-head { position: relative; display: flex; align-items: flex-end; min-height: clamp(380px, 56svh, 600px); margin: calc(-1 * var(--top)) calc(50% - 50vw) 0; overflow: hidden;
  background: var(--soil); color: var(--cream); }
.cafe-head-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cafe-head::after { content: ""; position: absolute; inset: 0; backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  mask-image: linear-gradient(to top, #000 0%, transparent 50%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 50%); }
.cafe-head-in { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: calc(var(--top) + 56px) max(var(--side), calc((100vw - var(--max)) / 2 + var(--side))) 44px; }
.cafe-head .back { position: absolute; top: calc(var(--top) - 8px); left: max(var(--side), calc((100vw - var(--max)) / 2 + var(--side))); color: var(--cream); text-shadow: 0 1px 10px rgb(35 24 21 / .8); }
.cafe-head-logo { height: clamp(72px, 11vw, 104px); width: auto; border-radius: 12px; box-shadow: 0 12px 32px rgb(35 24 21 / .4); transform: rotate(-3deg); }
.cafe-head h1 { font-size: clamp(3.4rem, 10vw, 8.4rem); line-height: .85; letter-spacing: -.04em; text-shadow: 0 6px 40px rgb(35 24 21 / .7); }
.cafe-head p { font-size: 15px; text-shadow: 0 1px 12px rgb(35 24 21 / .9); }
.offer.in-cafe { padding: 80px 0 24px; } .offer.in-cafe .sec-h { text-align: left; margin-bottom: 28px; }

.seg { display: inline-flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; margin-bottom: 24px; border-radius: 999px; background: var(--tone); }
.seg-b { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); white-space: nowrap;
  transition: background 420ms var(--e), color 320ms var(--e); }
.seg-b.on { background: var(--surface); color: var(--ink); }

.menu-dark { margin: 56px calc(50% - 50vw) 0; padding: 104px max(var(--side), calc((100vw - var(--max)) / 2 + var(--side))) 120px; background: var(--java); color: var(--cream); }
.menu-dark .seg { display: flex; width: max-content; margin: 32px auto 56px; background: rgb(245 239 198 / .08); }
.menu-dark .seg-b { color: rgb(245 239 198 / .78); } .menu-dark .seg-b:hover { color: var(--cream); }
.menu-dark .seg-b.on { background: var(--blue); color: var(--java); }
.menu-cols { columns: 2 360px; column-gap: 72px; }
.mgrp { break-inside: avoid; margin-bottom: 56px; }
.mgrp h3 { font-size: 32px; line-height: 1; letter-spacing: -.02em; color: var(--blue); margin-bottom: 14px; }
.mi { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid rgb(245 239 198 / .12); }
.mi-n { font-size: 13px; opacity: .55; }
.mi-t b { font-weight: 400; } .mi-t small { display: block; font-size: 13px; opacity: .62; }
.mi-p { white-space: nowrap; }
.mi.off { opacity: .45; }
.menu-dark .add { background: var(--cream); color: var(--java); } .menu-dark .add:hover { background: var(--red); color: var(--cream); }
.menu-dark .qty { background: rgb(245 239 198 / .12); } .menu-dark .qty button:hover { background: rgb(245 239 198 / .16); }
.menu-dark .tag.off { background: rgb(245 239 198 / .1); color: rgb(245 239 198 / .75); }
main:has(.menu-dark), main:has(.how) { padding-bottom: 0; }

.add { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 20px; flex: none;
  transition: background 420ms var(--e), color 320ms var(--e), transform 620ms var(--e); }
.add:hover { background: var(--java); color: var(--cream); transform: rotate(90deg); } .add:active { transform: scale(.92); }
.qty { display: inline-flex; align-items: center; border-radius: 999px; background: var(--tone); padding: 2px; }
.qty button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 17px; display: grid; place-items: center; transition: background 320ms var(--e); }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 24px; text-align: center; } .qty span.bump { animation: bump 420ms var(--e); }

.cartbar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; width: min(520px, calc(100% - 32px));
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 0 8px 0 22px; border-radius: 999px;
  background: var(--red); color: var(--cream); box-shadow: 0 24px 50px -20px rgb(35 24 21 / .7); transition: transform 620ms var(--e); }
.cartbar.pop { animation: pop 800ms var(--e) both; }
.cartbar .pill-ico { background: var(--blue); color: var(--java); }
.cartbar:hover .pill-ico { transform: translateX(4px); }
.cb-l, .cb-r { display: flex; align-items: center; gap: 10px; } .cb-l i { font-size: 20px; } .cb-r b { font-weight: 400; }

/* ============ Карточки, поля ============ */
.shell { margin-bottom: 16px; }
.core { background: var(--surface); border-radius: var(--r-card); padding: clamp(18px, 2.4vw, 28px); }
details.shell { background: var(--surface); border-radius: var(--r-card); }
details.shell > .core { padding-top: 0; }
details.shell > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 0 clamp(18px, 2.4vw, 28px); font-size: 17px; }
details.shell > summary::-webkit-details-marker { display: none; }
details.shell > summary::after { content: "+"; font-size: 24px; font-weight: 300; transition: transform 520ms var(--e); }
details.shell[open] > summary::after { transform: rotate(45deg); }

.field { display: block; margin-top: 16px; } .field > span { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .filters select, .filters input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-field);
  background: var(--bg); transition: border-color 320ms var(--e), box-shadow 320ms var(--e); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--mute); }
.field input:focus, .field textarea:focus, .filters select:focus, .filters input:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(165 188 214 / .7); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.note { border-radius: 14px; padding: 12px 14px; font-size: 14px; margin-top: 14px; }
.note.info { background: var(--info-bg); color: var(--info); } .note.warn { background: var(--warn-bg); color: var(--warn); }
.err { display: flex; align-items: center; gap: 8px; color: var(--bad); font-size: 14px; margin: 12px 0 0; animation: shake 420ms; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; } .form-grid .field:first-child { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ============ Корзина, оплата ============ */
.two { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; } .stack { min-width: 0; }
.sum { position: sticky; top: calc(var(--top) + 8px); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 15px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 20px; }
.sum-total b { font-weight: 300; font-size: 34px; letter-spacing: -.03em; }
.line { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); } .line:last-child { border-bottom: 0; }
.line.off { opacity: .55; }
.line-ico { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--tone); display: grid; place-items: center; font-size: 26px; flex: none; }
.line-ico img, .mrow-ico img, .oi img { width: 100%; height: 100%; object-fit: cover; display: block; }
.line-n { flex: 1; min-width: 0; } .line-n small { display: block; color: var(--mute); }
.line-t { min-width: 80px; text-align: right; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 60px; justify-content: center; border: 0; border-radius: 14px; background: var(--bg);
  transition: background 420ms var(--e), color 320ms var(--e), transform 620ms var(--e); }
.slot b { font-weight: 400; font-size: 18px; } .slot small { color: var(--ok); font-size: 12px; }
.slot:hover:not(:disabled) { transform: translateY(-2px); background: var(--tone); }
.slot:disabled { opacity: .45; cursor: not-allowed; } .slot:disabled small { color: var(--bad); }
.slot.on { background: var(--accent); color: var(--on-accent); } .slot.on small { color: var(--on-accent); }
.pay-wrap { max-width: 460px; margin: 0 auto; } .pay-wrap > .pill-btn { margin-top: 4px; }
.pay { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pay-sum { display: flex; flex-direction: column; margin-bottom: 18px; }
.pay-sum b { font-weight: 300; font-size: 56px; letter-spacing: -.045em; line-height: 1; } .pay-sum span { color: var(--mute); font-size: 14px; margin-top: 8px; }
.qr-frame { padding: 14px; background: #fff; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 14px; } #qr { display: block; max-width: 100%; }
.pay .btn-ghost { margin-bottom: 4px; }

/* ============ Заказ ============ */
.ordercard { max-width: 580px; margin-inline: auto; } .ordercard .core { text-align: center; }
.ord-top { display: flex; flex-direction: column; align-items: center; color: var(--mute); }
.ord-top p { font-size: 14px; } .ord-top p b { font-weight: 400; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.num { display: inline-block; background: var(--c); color: var(--nk); padding: 3px 12px; border-radius: 10px; letter-spacing: .02em; }
.num.big { font-size: clamp(52px, 13vw, 76px); font-weight: 300; letter-spacing: -.02em; padding: 4px 32px; border-radius: 22px; margin: 14px 0 12px; line-height: 1.1; }
.ord-status { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 20px; margin: 20px 0 8px; padding: 14px; border-radius: 16px; background: var(--warn-bg); color: var(--warn); }
.ord-status.cooking { background: var(--tone); color: var(--ink); } .ord-status.ready { background: var(--ok-bg); color: var(--ok); } .ord-status.ready i { animation: ring 2s ease-in-out infinite; border-radius: 50%; }
.ord-status.done { background: var(--tone); color: var(--mute); } .ord-status.cancelled { background: var(--bad-bg); color: var(--bad); }
.stepper { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 0 24px; }
.st-line { position: absolute; top: 21px; left: 16.66%; right: 16.66%; height: 2px; background: var(--line); } .st-line i { display: block; height: 100%; width: var(--p); background: var(--ink); }
.st { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--mute); }
.st-dot { width: 44px; height: 44px; border-radius: 50%; background: var(--tone); display: grid; place-items: center; font-size: 20px; box-shadow: 0 0 0 5px var(--surface); transition: background 620ms var(--e), color 320ms var(--e); }
.st.past .st-dot, .st.now .st-dot { background: var(--accent); color: var(--on-accent); } .st.now { color: var(--ink); }
.ord-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.ord-meta div { background: var(--bg); border-radius: 14px; padding: 12px 8px; } .ord-meta small { display: block; color: var(--mute); font-size: 12px; } .ord-meta b { font-weight: 400; font-size: 15px; }
.ord-items { list-style: none; padding: 0; margin: 0; text-align: left; }
.ord-items li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.ord-items li span { display: flex; align-items: center; gap: 12px; } .ord-items b { font-weight: 400; } .ord-items em { font-style: normal; color: var(--mute); }
.oi { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; overflow: hidden; background: var(--tone); font-size: 20px; flex: none; }
.staff .oi-n { flex: 1; } .staff .sum-total { padding: 16px 0 12px; } .staff .sum-total b { font-size: 30px; }
.staff .review.inline { text-align: left; align-items: center; background: var(--bg); border-radius: 14px; padding: 12px 14px; margin: 10px 0 4px; border: 0; }
.staff-actions { display: flex; gap: 10px; margin-top: 18px; justify-content: flex-end; align-items: center; }
.repeat { margin-top: 18px; }
.rate { max-width: 580px; margin: 16px auto 0; } .rate .core { text-align: center; } .rate .field { text-align: left; } .rate .pill-btn { margin-top: 16px; }
.stars { display: inline-flex; gap: 2px; color: #C98A1B; font-size: 18px; } .stars.big { font-size: 34px; gap: 6px; margin: 4px 0 10px; }
.stars.pick { display: flex; justify-content: center; gap: 4px; }
.stars.pick button { border: 0; background: transparent; color: #C98A1B; font-size: 40px; padding: 2px; border-radius: 12px; transition: transform 520ms var(--e); }
.stars.pick button:hover { transform: scale(1.12); }
.rate-text { color: var(--ink-2); margin-top: 4px; }

.list { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 14px; min-height: 64px; background: var(--surface); border-radius: 16px; padding: 10px 16px; transition: transform 620ms var(--e); }
a.row:hover, a.row-link:hover { transform: translateX(4px); }
.row > div { flex: 1; min-width: 0; } .row b { font-weight: 400; } .row small { display: block; color: var(--mute); }
.row .go { color: var(--mute); }
.row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; } .row-main > div { flex: 1; min-width: 0; }
.tag { font-size: 12px; padding: 5px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
.tag.cooking { background: var(--tone); color: var(--ink); } .tag.ready { background: var(--ok-bg); color: var(--ok); } .tag.done { background: var(--tone); color: var(--mute); }
.tag.cancelled { background: var(--bad-bg); color: var(--bad); } .tag.off { background: var(--tone); color: var(--mute); padding: 8px 14px; }
.empty { text-align: center; padding: 72px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: -.03em; } .empty p { color: var(--mute); margin-bottom: 12px; }
.empty-ico { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 36px; margin-bottom: 8px; }
.find-row input { font-size: 20px; letter-spacing: .04em; text-transform: uppercase; max-width: 260px; }
#findform .pill-btn { margin-top: 18px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; } .swatches label { position: relative; cursor: pointer; } .swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: transparent; font-size: 20px; transition: transform 520ms var(--e), box-shadow 320ms var(--e); }
.swatches label:hover i { transform: translateY(-2px); }
.swatches input:checked + i { color: var(--cream); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatches input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ============ Вход ============ */
.login-wrap { max-width: 440px; margin: 6vh auto 0; }
.login { display: flex; flex-direction: column; } .login form { margin-top: 6px; } .login .pill-btn { margin-top: 22px; }
.lock { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 28px; margin: 0 auto 18px; }

/* ============ Админка ============ */
.admin-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 12px; }
.admin-bar .h1 { margin-bottom: 8px; }
.admin-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.hub-card { display: block; border-radius: var(--r-card); background: var(--surface); transition: transform 620ms var(--e); }
.hub-card.wide { grid-column: 1 / -1; }
.hub-core { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 230px; padding: 28px; }
.hub-card.wide .hub-core { min-height: 0; flex-direction: row; align-items: center; }
.hub-card[data-tone="mocha"] { background: var(--ink); color: var(--cream); }
.hub-card[data-tone="mocha"] small, .hub-card[data-tone="mocha"] p { color: rgb(255 255 255 / .72); }
.hub-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--tone); display: grid; place-items: center; font-size: 26px; flex: none; }
.hub-card[data-tone="mocha"] .hub-ico { background: rgb(255 255 255 / .12); }
.hub-core small { font-size: 13px; color: var(--mute); } .hub-core h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: .95; letter-spacing: -.035em; margin: 4px 0 6px; }
.hub-core p { color: var(--ink-2); font-size: 15px; } .hub-core b { font-weight: 400; }
.hub-card.wide .hub-core > div { flex: 1; }
.hub-card .pill-btn { align-self: flex-start; } .hub-card.wide .pill-btn { align-self: center; }
@media (hover: hover) { .hub-card:hover { transform: translateY(-4px); } }
.weeknote { display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.lowstock { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; } .lowstock i { font-size: 20px; }
.lowstock a { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; }

.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: start; margin: 8px 0 20px; }
.col { background: var(--tone); border-radius: var(--r-card); padding: 8px; min-height: 160px; }
.col h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 400; padding: 10px 10px 14px; }
.col h3 i { font-size: 19px; } .col h3 span { margin-left: auto; background: var(--surface); border-radius: 999px; padding: 0 11px; font-size: 13px; }
.ocard { background: var(--surface); border-radius: 14px; padding: 14px; margin-bottom: 8px; }
.ocard-h { display: flex; justify-content: space-between; align-items: center; font-size: 18px; border-radius: 10px; }
.ocard-h b { font-weight: 400; } a.ocard-h:hover { opacity: .8; }
.ocard-name { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: 14px; margin-top: 6px; }
.ocard ul { list-style: none; padding: 0; margin: 10px 0 12px; } .ocard li { padding: 3px 0; } .ocard li b { font-weight: 400; color: var(--mute); }
.ocard-f { display: flex; align-items: center; gap: 8px; }
.x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bad-bg); color: var(--bad); display: grid; place-items: center; margin-left: auto; transition: transform 620ms var(--e); }
.x:hover { transform: rotate(90deg); } .x + .btn-solid { margin-left: 0; }
.x.wide { width: auto; height: 44px; padding: 0 18px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; margin: 0; } .x.wide:hover { transform: none; }
.review { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); } .review:last-child { border-bottom: 0; }
.review > div { flex: 1; min-width: 0; } .review b { font-weight: 400; } .review p { color: var(--ink-2); font-size: 14px; } .review small { color: var(--mute); white-space: nowrap; }

/* меню, стоп-лист, склад */
.menu-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.menu-head .hint { margin: 0; flex: 1; min-width: 240px; }
.mgroup { margin-bottom: 24px; }
.mgroup h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 400; color: var(--mute); text-transform: uppercase; letter-spacing: .16em; margin: 0 0 10px 4px; }
.mgroup .cnt { background: var(--tone); color: var(--ink-2); border-radius: 999px; padding: 0 9px; font-size: 12px; letter-spacing: 0; }
.mrow { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; padding: 8px 12px 8px 8px; margin-bottom: 6px; }
.mrow.off .mrow-ico, .mrow.off .mrow-n { opacity: .5; }
.mrow-ico { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; background: var(--tone); display: grid; place-items: center; font-size: 24px; flex: none; }
.mrow-n { flex: 1; min-width: 0; } .mrow-n b { display: block; font-weight: 400; } .mrow-n small { color: var(--mute); font-size: 13px; }
.mrow-st { width: 30px; font-size: 13px; color: var(--mute); }
.mrow.emptycat { justify-content: space-between; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); } .emptycat p { color: var(--mute); font-size: 14px; }
.switch { position: relative; width: 52px; height: 32px; border: 0; border-radius: 999px; background: var(--line-2); flex: none; transition: background 420ms var(--e); }
.switch i { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform 520ms var(--e); }
.switch.on { background: var(--ok); } .switch.on i { transform: translateX(20px); }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 18px; flex: none; transition: background 320ms var(--e), transform 620ms var(--e); }
.icon-btn:hover { background: var(--tone); } .icon-btn:active { transform: scale(.92); } .icon-btn.danger { color: var(--bad); }
.icon-btn.sm { width: 32px; height: 32px; font-size: 15px; margin-left: 2px; }
@media (max-width: 560px) { .mrow { flex-wrap: wrap; } .mrow-n { flex-basis: calc(100% - 70px); } .mrow-st { display: none; } .form-grid { grid-template-columns: 1fr; } }
.addcat { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; width: 100%; margin: 4px 0 24px; padding: 16px 18px; border: 0; border-radius: var(--r-card);
  background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; transition: background 420ms var(--e); }
button.addcat:hover { background: var(--surface); }
.addcat-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 24px; flex: none; transition: transform 620ms var(--e); }
button.addcat:hover .addcat-ico { transform: rotate(90deg); }
.addcat-t { display: flex; flex-direction: column; } .addcat-t small { color: var(--mute); font-size: 14px; }
.addcat.open { background: var(--surface); box-shadow: none; }
.addcat-f { flex: 1; min-width: 200px; } .addcat-f input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r-field); background: var(--bg); }
.addcat-f input:focus { outline: 0; border-color: var(--ink); } .addcat .err { width: 100%; margin: 0; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.cat-chips label { position: relative; cursor: pointer; } .cat-chips input { position: absolute; opacity: 0; pointer-events: none; }
.cat-chips span { display: inline-flex; align-items: center; min-height: 40px; margin: 0; padding: 0 18px; border-radius: 999px; background: var(--tone); color: var(--ink-2); transition: background 420ms var(--e), color 320ms var(--e); }
.cat-chips input:checked + span { background: var(--accent); color: var(--on-accent); }
.cat-chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.cat-new { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: var(--r-field); background: var(--bg); }
.cat-new:focus { outline: 0; border-style: solid; border-color: var(--ink); }
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; } .icon-pick label { cursor: pointer; } .icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0; border-radius: 12px; background: var(--tone); font-size: 22px; transition: background 320ms var(--e), color 320ms var(--e); }
.icon-pick input:checked + span { background: var(--accent); color: var(--on-accent); } .icon-pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.photo-up { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.photo-prev { width: 200px; aspect-ratio: 4 / 3; border-radius: 14px; background: var(--tone); display: grid; place-items: center; align-content: center; gap: 4px; color: var(--mute); overflow: hidden; font-size: 30px; }
.photo-prev small { font-size: 13px; } .photo-prev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-side { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; min-width: 200px; } .photo-side .hint { margin: 4px 0 0; }
.btn-ghost.file { cursor: pointer; } .btn-ghost.file:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }
.srows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.srow { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 16px; background: var(--bg); cursor: text; }
.srow:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.srow-n { flex: 1; min-width: 0; overflow-wrap: anywhere; } .srow-n b { display: block; font-weight: 400; } .srow-n small { color: var(--mute); font-size: 13px; }
.srow-in { width: 92px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r-field); background: var(--surface); text-align: right; }
.srow-in:focus { outline: 0; border-color: var(--ink); }
.sbadge { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.sbadge.low { background: var(--warn-bg); color: var(--warn); } .sbadge.out { background: var(--bad-bg); color: var(--bad); } .sbadge.none { background: var(--tone); color: var(--mute); }
.lrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .lrow:last-child { border-bottom: 0; }
.lrow-d { width: 92px; color: var(--mute); font-size: 13px; flex: none; }
.lrow-n { flex: 1; min-width: 0; } .lrow-n b { display: block; font-weight: 400; } .lrow-n small { color: var(--mute); font-size: 13px; }
.delta { min-width: 44px; text-align: right; font-weight: 400; } .delta.plus { color: var(--ok); } .delta.minus { color: var(--bad); }
.lrow-b { width: 64px; text-align: right; color: var(--mute); font-size: 13px; }
@media (max-width: 720px) { .srows { grid-template-columns: 1fr; } }

/* статистика */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; align-items: flex-end; }
.filters label { display: flex; flex-direction: column; font-size: 13px; color: var(--mute); gap: 6px; }
.filters select, .filters input { min-width: 160px; background: var(--surface); }
.filters .export { align-self: flex-end; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpis.small { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 4px; }
.kpi { background: var(--surface); border-radius: var(--r-card); padding: 20px 22px; }
.kpi small { display: block; font-size: 13px; color: var(--mute); }
.kpi b { display: block; font-weight: 300; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.035em; line-height: 1.05; margin: 8px 0 4px; }
.kpi em { font-style: normal; font-size: 12px; color: var(--mute); }
.kpis.small .kpi { background: var(--bg); padding: 12px 14px; border-radius: 14px; } .kpis.small .kpi b { font-size: 22px; margin: 4px 0 0; }
.kpi.good b { color: var(--ok); }
.cafe-stats { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; align-items: start; } .cafe-stats:has(> :only-child) { grid-template-columns: 1fr; }
.stat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; } .stat-head .h2 { margin: 0; }
.stat-actions { display: flex; gap: 8px; flex-wrap: wrap; } .stat-actions .btn-solid { margin: 0; }
.with-ico { display: flex; align-items: center; gap: 12px; } .mini-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--tone); display: grid; place-items: center; font-size: 20px; }
.cafe-stat h3 { font-size: 15px; font-weight: 400; margin: 24px 0 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.best { background: var(--ok-bg); color: var(--ok); padding: 3px 11px; border-radius: 999px; font-size: 12px; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 160px; padding-top: 8px; }
.bar { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; border-radius: 8px; }
.bar i { display: block; width: 100%; max-width: 34px; background: var(--accent); border-radius: 6px 6px 2px 2px; transition: background 320ms var(--e); }
.bar.top i, .bar:hover i, .bar:focus-visible i { background: var(--ink); }
.bar span { font-size: 11px; color: var(--mute); margin-top: 6px; }
.bar::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translate(-50%, 4px); background: var(--ink); color: var(--cream); font-size: 12px; padding: 6px 10px;
  border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 320ms var(--e), transform 520ms var(--e); z-index: 5; }
.bar:hover::after, .bar:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.hbar { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; } .hbar > span { display: flex; align-items: center; gap: 8px; }
.hb-track { height: 6px; background: var(--tone); border-radius: 6px; overflow: hidden; } .hb-track i { display: block; height: 100%; background: var(--ink); border-radius: 6px; }
.hbar b { font-weight: 400; font-size: 12px; color: var(--mute); }
.tscroll { overflow-x: auto; }
.stbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.stbl th, .stbl td { padding: 10px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stbl thead th { color: var(--mute); font-weight: 400; font-size: 12px; } .stbl th:first-child { text-align: left; } .stbl tbody th { font-weight: 400; }
.stbl td.z { color: var(--mute); } .stbl td.now.low { color: var(--warn); } .stbl td.now.out { color: var(--bad); }
.tools-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }

/* ============ Окно подтверждения, уведомления, подвал ============ */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; background: rgb(23 46 70 / .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn 420ms var(--e); }
.modal.out { opacity: 0; transition: opacity 300ms var(--e); }
.modal-card { width: min(440px, 100%); margin: 0; animation: cardIn 620ms var(--e); }
.modal-t { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; margin-bottom: 22px; text-wrap: balance; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; }
.toast { position: fixed; top: 84px; left: 50%; z-index: 60; transform: translate(-50%, -12px); opacity: 0; max-width: calc(100% - 32px);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 14px; transition: opacity 500ms var(--e), transform 620ms var(--e); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.foot { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 28px var(--side); color: var(--mute); font-size: 13px; }
.foot-logo { display: inline-flex; padding: 4px 2px; border-radius: 8px; opacity: .9; } .foot-logo img { display: block; width: 66px; height: auto; }

/* ============ Адаптив ============ */
@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; } .sum { position: static; }
  .board, .cafe-stats { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .hub { grid-template-columns: 1fr; }
  .hub-card.wide .hub-core { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
}

/* ============ Тема заказчика: выделение голубым, тёмные поверхности ============ */
.nav a.on, .slot.on, .cat-chips input:checked + span, .icon-pick input:checked + span, .st.past .st-dot, .st.now .st-dot { background: var(--sel); color: var(--on-sel); }
.slot.on small { color: var(--on-sel); }
.brand { background: rgb(245 239 198 / .86); }
.brand-word { font-family: var(--serif); font-size: 24px; }
.nav { background: rgb(251 247 226 / .86); }
.kpi b, .sum-total b, .pay-sum b, .num.big, .empty h2 { font-family: var(--serif); font-weight: 400; }
.num.big { font-family: inherit; }
.hub-card[data-tone="mocha"] { background: var(--soil); }
.hub-card[data-tone="latte"] { background: var(--blue); }
.hub-card[data-tone="latte"] small, .hub-card[data-tone="latte"] p { color: rgb(35 24 21 / .75); }
.col { background: var(--tone); }
.foot { background: var(--java); color: rgb(245 239 198 / .72); }
.foot-logo img { filter: brightness(0) invert(94%) sepia(12%) saturate(500%) hue-rotate(5deg); }
.bar i { background: var(--blue); } .bar.top i, .bar:hover i, .bar:focus-visible i { background: var(--red); }
.hb-track i, .st-line i { background: var(--red); }
.best { background: var(--blue); color: var(--java); }
.stars, .stars.pick button { color: var(--red); }
@media (max-width: 900px) {
  .cafes { grid-template-columns: 1fr; } .cafe[data-tone="mocha"] { margin-top: 0; }
  .how-grid { grid-template-columns: 1fr 1fr; }
  .block { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 560px) { .how-grid { grid-template-columns: 1fr; } .mi:not(.mi-multi) { grid-template-columns: 28px minmax(0, 1fr) auto; } .mi:not(.mi-multi) .mi-p { grid-column: 2; grid-row: 2; } }

@media (max-width: 720px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } .prod-t { font-size: 19px; } }

/* ============ Напиток с выбором размера ============ */
.mi-pick { background: none; border: 0; padding: 0; text-align: left; color: inherit; cursor: pointer; min-height: 44px; }
.mi-multi { grid-template-columns: 36px minmax(0, 1fr) auto; }
.mi-ctl { position: relative; }
.mi-chev { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(245 239 198 / .12); color: var(--cream); display: grid; place-items: center; font-size: 18px; transition: background 420ms var(--e); }
.mi-chev i { transition: transform 520ms var(--e); } .mi-chev:hover { background: rgb(245 239 198 / .22); }
.mi.open .mi-chev i { transform: rotate(180deg); } .mi.open .mi-chev { background: var(--blue); color: var(--java); }
.mi-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--blue); color: var(--java); font-size: 12px; display: grid; place-items: center; pointer-events: none; }
.mi-sizes { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 2px 0 14px 48px; animation: fadeIn 420ms var(--e); }
.sz { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; min-height: 52px; padding: 4px 4px 4px 18px; border-radius: 14px; background: rgb(245 239 198 / .07); }
.sz b { font-weight: 400; } .sz.off { opacity: .45; }
@media (max-width: 560px) {
  .mi-multi { grid-template-columns: 28px minmax(0, 1fr) auto; } .mi-sizes { padding-left: 0; }
  .mi:not(.mi-multi) > :last-child { grid-column: 3; grid-row: 1 / span 2; }
}

/* ============ Полоса прокрутки в цветах сайта ============ */
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--soil); border-radius: 999px; border: 4px solid var(--cream); background-clip: padding-box; min-height: 48px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: var(--java); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: var(--cream); }
@supports (-moz-appearance: none) { html, * { scrollbar-width: thin; scrollbar-color: var(--soil) var(--cream); } }

/* ============ Стаканчики с доски и добавки в корзине ============ */
img.cut { object-fit: contain !important; mix-blend-mode: multiply; background: transparent; }
.prod-pic img.cut { padding: 0; }
.line-ico img.cut, .mrow-ico img.cut, .oi img.cut { padding: 2px; }
.addons .hint { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips.all { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--tone); color: var(--ink);
  transition: background 420ms var(--e), color 320ms var(--e), transform 620ms var(--e); }
.chip small { color: var(--mute); font-size: 12px; } .chip:hover { background: rgb(74 46 39 / .16); } .chip:active { transform: scale(.97); }
.chip.on { background: var(--blue); color: var(--java); } .chip.on small { color: var(--java); }
.chip:disabled { opacity: .45; cursor: not-allowed; }
/* сплошной фон под вырезанные стаканчики: смешивание multiply работает только по непрозрачной подложке */
.prod-pic, .line-ico, .mrow-ico, .oi { background-color: #E6DEB8; }
.menu-dark .mrow-ico { background-color: #E6DEB8; }

/* ============ Компактная доска заказов: заказ в две строки ============ */
.board { gap: 10px; }
.col { min-height: 0; padding: 6px; }
.col h3 { padding: 8px 10px 10px; font-size: 15px; }
.col .none { padding: 2px 10px 10px; }
.tk { background: var(--surface); border-radius: 12px; padding: 8px 8px 9px 10px; margin-bottom: 6px; }
.tk-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tk-id { display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; transition: opacity 320ms var(--e); } .tk-id:hover { opacity: .75; }
.tk-id .num { font-size: 15px; padding: 2px 9px; border-radius: 8px; }
.tk-time { font-weight: 400; font-size: 15px; } .tk-time.late { color: var(--bad); }
.tk-name { flex: 1; min-width: 0; font-size: 13px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-act { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex: none; }
.tk-act .x { margin: 0; }
.tk-act .btn-solid.sm { margin: 0; min-height: 44px; padding: 0 16px; }
.tk-bot { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.tk-items { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-sum { font-size: 13px; color: var(--mute); white-space: nowrap; }
/* колонки не вылезают за экран: на узких окнах «Готовы» переносится вниз */
.board { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.col, .tk, .tk-top { min-width: 0; }

/* Имя клиента: по нему и по номеру отдают заказ (как в кофейнях) */
.ord-name { display: block; font-family: var(--serif); font-weight: 400; color: var(--ink); font-size: clamp(40px, 11vw, 64px); line-height: 1; letter-spacing: -.02em; margin: 10px 0 2px; text-align: center; max-width: 100%; overflow-wrap: anywhere; text-wrap: balance; hyphens: none; }
.ord-top > span:first-child { font-size: 13px; }
.tk-who { margin: 7px 0 3px; padding: 5px 10px; border-radius: 10px; background: var(--ink); color: var(--cream, #F5EFC6); font-family: var(--serif); font-size: 21px; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.staff-actions { flex-wrap: wrap; gap: 8px; }

/* Поле пароля с кнопкой «Показать» */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 96px; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--soil); font: inherit; font-size: 13px; cursor: pointer; transition: background .32s cubic-bezier(.22,1,.36,1); }
.pw-show:hover { background: rgba(77, 14, 18, .08); }
.pw-show:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Страница 404 «Закончилась» */
.nf { max-width: 640px; margin: 0 auto; padding-top: 18px; }
.nf-h { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 7.4vw, 58px); line-height: .95; letter-spacing: -.03em; text-wrap: balance; hyphens: none; margin-bottom: 24px; }
.nf-card { background: var(--java); color: var(--cream); border-radius: 22px; padding: 4px 22px; }
.nf-card .mi:last-child { border-bottom: 0; }
.nf-card .mi.off .mi-t b, .nf-card .mi.off .mi-p { text-decoration: line-through; }
.nf-card a.mi { color: inherit; text-decoration: none; }
.nf-card a.mi .ph { opacity: .6; transition: transform .52s cubic-bezier(.22,1,.36,1), opacity .32s; }
.nf-card a.mi:hover .ph { transform: translateX(4px); opacity: 1; }
.nf-card a.mi .mi-t b { transition: transform .62s cubic-bezier(.22,1,.36,1); display: inline-block; }
.nf-card a.mi:hover .mi-t b { transform: translateX(4px); }
.nf-sub { color: var(--mute); font-size: 13px; margin: 26px 0 10px; }
.chip { text-decoration: none; }
.nf-back { display: inline-block; margin-top: 18px; text-decoration: none; }
.nf-card .tag.off { background: rgb(245 239 198 / .16); color: var(--cream); }
.nf-card .mi.off { opacity: 1; }
.nf-card .mi.off .mi-n, .nf-card .mi.off .mi-t, .nf-card .mi.off .mi-p { opacity: .5; }

/* Горизонтальные фото (пиццы): плитка шире, соотношение 3:2, плотная упаковка сетки */
.prods { grid-auto-flow: dense; }
.prod.land { grid-column: span 2; }
.prod.land .prod-pic { aspect-ratio: 3 / 2; }
@media (max-width: 720px) { .prod.land { grid-column: span 2; } }

/* крупный режим очереди для планшета у кассы */
.q-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 8px 0 20px; }
.q-bar h1 { flex: 1; font-size: clamp(22px, 3vw, 34px); font-weight: 400; line-height: 1; }
.q-snd { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.q-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.q-card { background: var(--surface); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.q-card.new { background: var(--warn-bg); }
.q-card.ready { opacity: .75; }
.q-top { display: flex; align-items: center; gap: 12px; }
.q-top .tag { margin-left: auto; }
.q-time { font-size: 30px; font-weight: 400; } .q-time.late { color: var(--bad); }
.q-who { font-size: 20px; }
.q-items { list-style: none; margin: 0; padding: 0; font-size: 22px; line-height: 1.3; flex: 1; }
.q-items b { font-weight: 500; }
.q-btn { width: 100%; min-height: 64px; font-size: 22px; justify-content: center; }
.q-none { font-size: 24px; padding: 40px 0; }
