@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --paper: #f8f6ee;
  --surface: #fffdf7;
  --ink: #182f27;
  --muted: #50665a;
  --sea: #235a46;
  --sea-dark: #173e30;
  --sea-light: #e6eddf;
  --line: #dedfd2;
  --sand: #ece5cf;
  --serif: 'Cormorant Garamond', 'Songti SC', 'Noto Serif CJK SC', Georgia, serif;
  --sans: Inter, 'Microsoft YaHei', 'PingFang SC', sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101d18;
  --surface: #182820;
  --ink: #f5eedc;
  --muted: #bccbbf;
  --sea: #367b61;
  --sea-dark: #b7d7c4;
  --sea-light: #263b30;
  --line: #425548;
  --sand: #33463c;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #477d81; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1220px, calc(100% - 80px)); margin: 0 auto; }
.loading { font: 600 64px var(--serif); color: var(--sea); display: grid; min-height: 75vh; place-items: center; }
.topbar { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 35px/.8 var(--serif); letter-spacing: -.04em; white-space: nowrap; }
.wordmark small { font: 500 17px var(--sans); letter-spacing: .04em; }
.brand-image { width: 43px; height: 43px; object-fit: cover; object-position: center 45%; border-radius: 50%; }
.theme { min-width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.mark { width: 30px; height: 30px; flex: none; color: var(--sea); }
.top-actions, .languages { display: flex; align-items: center; gap: 9px; }
.languages { border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.languages button { border: 0; background: transparent; color: var(--ink); }
.languages button { display: grid; place-items: center; border-radius: 999px; min-width: 38px; min-height: 38px; padding: 0 7px; }
.languages button[aria-pressed="true"] { background: var(--sea); color: white; }
.flag { position: relative; display: block; width: 22px; height: 15px; overflow: hidden; border-radius: 2px; box-shadow: 0 0 0 1px #1113; }
.flag-ru { background: linear-gradient(#fff 33.33%, #16489e 33.33% 66.66%, #d52630 66.66%); }
.flag-zh { background: #de2910; color: #ffde00; }
.flag-zh::before { content: '★'; position: absolute; top: 1px; left: 2px; font: 8px/1 sans-serif; }
.flag-zh::after { content: '★'; position: absolute; top: 1px; left: 9px; font: 3px/1 sans-serif; text-shadow: 2px 2px, 2px 5px, 0 7px; }
.flag-en {
  background:
    linear-gradient(90deg, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(transparent 39%, #c8102e 39% 61%, transparent 61%),
    linear-gradient(90deg, transparent 35%, #fff 35% 65%, transparent 65%),
    linear-gradient(transparent 31%, #fff 31% 69%, transparent 69%),
    linear-gradient(34deg, transparent 42%, #fff 42% 46%, #c8102e 46% 52%, #fff 52% 58%, transparent 58%),
    linear-gradient(-34deg, transparent 42%, #fff 42% 48%, #c8102e 48% 54%, #fff 54% 58%, transparent 58%),
    #012169;
}
.table-badge { font-weight: 600; font-size: 13px; color: var(--sea-dark); padding: 8px 13px; border-radius: 999px; background: var(--sea-light); white-space: nowrap; }
.button { display: inline-flex; gap: 9px; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; font-weight: 600; text-decoration: none; }
.button:hover:not(:disabled) { border-color: var(--sea); }
.button.primary { background: var(--sea); border-color: var(--sea); color: white; }
.button.primary:hover:not(:disabled) { background: var(--sea-dark); }
.icon { width: 19px; height: 19px; flex: none; }
.hero { margin: 22px 0; display: grid; grid-template-columns: .94fr 1.06fr; background: var(--sea-light); border-radius: 17px; overflow: hidden; }
.hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(25px, 5vw, 68px); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .17em; color: var(--sea); text-transform: uppercase; }
.hero h1 { max-width: 560px; font: 600 clamp(55px, 7vw, 105px)/.84 var(--serif); letter-spacing: -.06em; margin: 18px 0; }
.hero-art { width: 100%; height: 0; min-height: 100%; object-fit: cover; object-position: center 63%; }
.hero-login h1 { font-size: clamp(46px, 6vw, 67px); margin-bottom: 9px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.spotlights { margin: 18px 0 13px; }
.spotlight-banners { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.spotlight-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 7px;
  min-width: 0;
  min-height: clamp(88px, 11vw, 138px);
  padding: clamp(12px, 2vw, 22px);
  border: 1px solid transparent;
  border-radius: 16px;
  color: #fffcf3;
  text-align: left;
  font: 700 clamp(20px, 3.15vw, 37px)/1.05 var(--serif);
  overflow-wrap: anywhere;
}
.spotlight-banner .icon { position: absolute; inset: 12px 12px auto auto; transition: transform .15s ease; }
.spotlight-banner[aria-expanded="true"] .icon { transform: rotate(180deg); }
.spotlight-picks {
  background: linear-gradient(0deg, #102c22ed, #132f2455 67%, transparent),
    #18382d url('media/amphi-banner.webp') center 59% / cover;
}
.spotlight-offers {
  background: radial-gradient(ellipse at 96% 5%, #e1b88e66, transparent 66%), linear-gradient(125deg, #733e2b, #a9613f);
}
.spotlight-cover { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spotlight-offers:has(.spotlight-cover)::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#102c22ed,#132f2455 67%,transparent); }
.spotlight-panel { margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.spotlight-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.spotlight-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); text-align: left; }
.spotlight-item small { display: block; margin-top: 3px; color: var(--muted); }
.spotlight-photo { width: 52px; height: 46px; object-fit: cover; border-radius: 6px; }
.single-promotion h3 { margin-bottom: 6px; }
.single-promotion p { color: var(--muted); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.promotion-arrows { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 6px; }
.promotion-arrows .button { width: 42px; min-height: 38px; padding: 0; }
.promotion-list { display: grid; grid-auto-flow: column; grid-auto-columns: min(83%, max(440px, 57%)); align-items: start; gap: 10px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.promotion-card { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.promotion-card { scroll-snap-align: start; }
.promotion-card summary { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 12px; min-height: clamp(94px,12vw,138px); padding: 14px; cursor: pointer; list-style: none; isolation: isolate; color: #fff; background: #18382d; font: 700 clamp(21px,3vw,32px)/1.05 var(--serif); }
.promotion-card summary::-webkit-details-marker { display: none; }
.promotion-card summary:focus-visible { outline-offset: -3px; }
.promotion-card summary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#102c22eb,transparent 85%); }
.promotion-card picture { display: contents; }
.promotion-card .promotion-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.promotion-card[open] .icon { transform: rotate(180deg); }
.promotion-card p { padding: 16px; color: var(--ink); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-promotion-row { display: flex; gap: 9px; align-items: center; min-width: 0; }
.promotion-preview { width: 100%; max-height: 240px; object-fit: contain; border-radius: 9px; }
.menu-layout { display: flex; width: fit-content; margin: 0 0 10px auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 2px; }
.menu-layout button { display: flex; align-items: center; gap: 5px; min-height: 36px; padding: 5px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); font: 600 13px var(--sans); }
.menu-layout button[aria-pressed="true"] { background: var(--sea); color: #fff; }
.menu-layout .icon { width: 16px; height: 16px; }
.guest-menu { --rail-top: max(8px, env(safe-area-inset-top)); --horizontal-rail-height: 58px; display: grid; grid-template-columns: clamp(90px,23%,205px) minmax(0,1fr); align-items: start; gap: clamp(9px,2vw,24px); }
.guest-menu[data-layout="horizontal"] { grid-template-columns: minmax(0,1fr); }
.guest-menu.no-categories { grid-template-columns: minmax(0,1fr); }
.no-categories .category-rail { display: none; }
.category-rail {
  position: sticky;
  top: var(--rail-top);
  max-height: calc(100dvh - var(--rail-top) - 80px - env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  border-radius: 10px;
  background: var(--sea-light);
}
.category-rail button { width: 100%; min-height: 44px; padding: 9px 9px 9px 8px; border: 0; border-inline-start: 3px solid transparent; background: none; color: var(--muted); text-align: left; overflow-wrap: anywhere; font-size: clamp(12px,1.6vw,15px); line-height: 1.25; }
.category-rail button:hover { background: var(--surface); }
.category-rail button:focus-visible { outline-offset: -3px; }
.category-rail button[aria-current="true"] { border-inline-start-color: var(--sea); background: var(--surface); color: var(--ink); font-weight: 700; }
.guest-menu .menu-group { scroll-margin-top: var(--rail-top); }
[data-layout="horizontal"] .category-rail { display: flex; align-items: center; gap: 5px; z-index: 4; height: var(--horizontal-rail-height); max-height: none; padding: 3px 6px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; }
[data-layout="horizontal"].no-categories .category-rail { display: none; }
[data-layout="horizontal"] .category-rail button { flex: none; width: auto; min-height: 42px; padding: 7px 12px; border: 0; border-radius: 7px; white-space: nowrap; }
[data-layout="horizontal"] .category-rail button[aria-current="true"] { background: var(--sea); color: #fff; }
[data-layout="horizontal"] .menu-group { scroll-margin-top: calc(var(--rail-top) + var(--horizontal-rail-height) + 8px); }
.menu-group:last-child:not(:only-child) { min-height: calc(100dvh - 132px); }
body:has(.guest-catalogue) { background: linear-gradient(180deg, var(--sea-light), var(--paper) 510px); }
.login-form { display: grid; gap: 10px; width: min(100%, 345px); margin-top: 26px; }
.login-form label, .admin-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 7px; }
textarea { resize: vertical; min-height: 80px; }
.notice { color: var(--muted); font-size: 14px; line-height: 1.55; }
.error { color: #9a351e; font-size: 14px; }
.filters { display: grid; grid-template-columns: minmax(180px,1fr) minmax(155px,240px); gap: 10px; margin: 10px 0; }
.filters.admin-filters { grid-template-columns: 1.4fr 1fr 1fr; }
.filter-search { position: relative; }
.filter-search .icon { position: absolute; left: 12px; top: 13px; color: var(--muted); pointer-events: none; }
.filter-search input { padding-left: 39px; }
.card-variant { font-size: 13px; }
.list { min-width: 0; padding-bottom: 120px; overflow-anchor: none; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 18px; }
.section-heading h2, .panel h1, .basket h2 { font: 700 clamp(35px, 5vw, 58px)/.95 var(--serif); letter-spacing: -.045em; }
.section-heading p { color: var(--muted); font-size: 13px; text-align: right; }
.menu-group + .menu-group { margin-top: clamp(30px, 5vw, 52px); }
.menu-group-title {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-inline-start: 3px solid var(--sea);
  border-radius: 8px;
  background: var(--sea-light);
  font-size: clamp(17px, 2.6vw, 23px);
  line-height: 1.3;
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.card-photo { width: 100%; aspect-ratio: 1.72; object-fit: cover; }
.card-photo.placeholder { display: grid; place-items: center; color: var(--sea); background: var(--sea-light); }
.card-photo.placeholder .icon { width: 46px; height: 46px; }
.card-body { padding: 17px; flex: 1; display: flex; justify-content: space-between; flex-direction: column; gap: 17px; }
.card-title { margin: 0; font-size: 18px; line-height: 1.2; font-weight: 700; }
.photo-button, .item-title { border: 0; padding: 0; background: none; color: inherit; text-align: left; }
.photo-button { display: block; width: 100%; }
.item-title { font-weight: inherit; min-height: 28px; }
.item-title:hover { text-decoration: underline; text-underline-offset: .18em; }
.photo-button:focus-visible { outline-offset: -4px; }
.card p { margin-top: 7px; color: var(--muted); line-height: 1.45; font-size: 13px; }
.card-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { color: var(--sea-dark); font-size: 18px; font-weight: 700; white-space: nowrap; }
.counter { display: flex; align-items: center; gap: 7px; }
.counter button, .close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--sea-dark); border-radius: 50%; background: var(--sea-light); font-size: 23px; line-height: 1; }
.counter button:hover, .close:hover { border-color: var(--sea); }
.counter output { min-width: 16px; text-align: center; font-weight: 700; }
.dock { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 8px; display: flex; gap: 8px; z-index: 3; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 8px 36px #16313733; }
.dock .button { min-width: 0; white-space: nowrap; }
.dock .button span { overflow: hidden; text-overflow: ellipsis; }
.toast { position: fixed; z-index: 6; bottom: 88px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); padding: 13px 18px; text-align: center; color: white; background: var(--ink); border-radius: 8px; font-size: 14px; }
.basket { position: fixed; inset: 0; width: min(540px, calc(100% - 24px)); height: fit-content; max-height: min(85dvh, 770px); margin: auto; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); }
.basket[open] { display: flex; flex-direction: column; }
.basket.has-lines { height: min(72dvh, 620px); }
.basket::backdrop { background: #16313777; }
.basket-head { display: flex; flex-shrink: 0; justify-content: space-between; gap: 12px; align-items: center; }
.basket h2 { font-size: 42px; }
.basket-content { min-height: 0; flex: 1 1 auto; overflow: auto; overscroll-behavior: contain; margin-top: 12px; }
.basket-list { margin: 0; padding: 0; list-style: none; }
.basket-list li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 12px; overflow-wrap: anywhere; }
.basket-list small { display: block; margin-top: 5px; color: var(--muted); }
.basket-description { grid-column: 1 / -1; color: var(--muted); line-height: 1.45; font-size: 13px; white-space: pre-line; }
.basket-footer { flex-shrink: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.basket-total { display: flex; justify-content: space-between; padding: 12px 0; line-height: 1.35; }
.basket-footer .button { width: 100%; line-height: 1.2; }
.basket .notice { margin-top: 12px; }
html { scrollbar-gutter: stable; }
html:has(.basket[open]) { overflow: hidden; }
body:has(.basket[open]) { overflow: clip; }
.item-details .basket-head { align-items: flex-start; }
.item-details .eyebrow { margin-bottom: 5px; }
.item-details h2 { font-size: clamp(24px, 6vw, 36px); overflow-wrap: anywhere; }
.item-details .close { flex: none; }
.detail-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-top: 12px; }
.detail-photo { display: block; width: 100%; height: min(36dvh, 280px); margin-top: 14px; border-radius: 9px; object-fit: contain; background: var(--sea-light); }
.detail-description { line-height: 1.55; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.item-details .card-variant { margin-top: 14px; flex-shrink: 0; }
.detail-controls { margin-top: 16px; flex-shrink: 0; }
.panel { margin: 35px auto 48px; }
.panel h1 { margin-bottom: 17px; }
.panel h2 { font-size: 21px; }
.panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.panel-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 15px; align-items: start; }
.box { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.admin-rows, .admin-form, .call-grid { display: grid; gap: 13px; }
.admin-rows { margin-top: 15px; }
.admin-row button { flex: none; font-size: 13px; }
.admin-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
#editor h2 { scroll-margin-top: 16px; }
.variant-row { display: grid; grid-template-columns: 1fr 1fr 1fr 85px auto; gap: 6px; align-items: end; }
.check-label { display: flex !important; align-items: center; gap: 8px !important; }
.check-label input { min-height: auto; width: auto; }
.admin-row, .call-card { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.admin-row + .admin-row { border-top: 1px solid var(--line); padding-top: 11px; }
.admin-row h3 { font-size: 15px; }
.admin-row small { color: var(--muted); }
.lang-fields { margin: 0; border: 1px solid var(--line); padding: 10px; border-radius: 8px; display: grid; gap: 7px; }
.lang-fields legend { color: var(--sea); font-weight: 700; font-size: 13px; }
.admin-form .check-option { display: flex; align-items: center; gap: 8px; min-height: 38px; }
.check-option input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--sea); }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 12px; margin-top: 15px; }
.qr-grid img { width: 100%; }
.admin-menu-qr { margin-bottom: 16px; }
.admin-menu-qr summary { cursor: pointer; font-weight: 700; }
.admin-menu-qr-content { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 12px; }
.admin-menu-qr-content p { margin-bottom: 9px; overflow-wrap: anywhere; }
.admin-menu-qr-content img { border: 1px solid var(--line); border-radius: 8px; }
@media (max-width: 800px) {
  .shell { width: calc(100% - 32px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero { margin-top: 16px; }
  .hero h1 { font-size: clamp(48px, 9vw, 76px); }
}
@media (max-width: 560px) {
  .admin-row:has([data-action="toggle-spotlight"]) { flex-wrap: wrap; }
  .admin-row:has([data-action="toggle-spotlight"]) .admin-row-actions { width: 100%; justify-content: flex-start; }
  .top-inner { min-height: 62px; }
  .wordmark { font-size: 33px; gap: 6px; }
  .wordmark small { font-size: 13px; }
  .brand-image { width: 31px; height: 31px; }
  .mark { width: 25px; height: 25px; }
  .top-actions { gap: 5px; }
  .table-badge { font-size: 11px; padding: 7px 9px; }
  .languages button { min-width: 32px; min-height: 34px; padding: 0 4px; }
  .hero { grid-template-columns: 1fr; height: auto; margin-bottom: 13px; }
  .hero-copy { padding: 24px; }
  .hero h1 { font-size: 61px; margin: 13px 0 11px; }
  .hero-login .hero-art { min-height: 0; height: 93px; }
  .spotlights { margin-top: 12px; }
  .spotlight-banners { gap: 8px; }
  .spotlight-banner { border-radius: 12px; }
  .spotlight-banner .icon { width: 16px; height: 16px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading h2 { font-size: 38px; }
  .section-heading p { font-size: 11px; }
  [data-layout="vertical"] .cards { grid-template-columns: minmax(0,1fr); gap: 8px; }
  [data-layout="vertical"] .card:has(.photo-button) { flex-direction: row; }
  [data-layout="vertical"] .photo-button { width: clamp(45px,15vw,68px); flex: none; align-self: flex-start; margin: 8px 0 0 8px; border-radius: 7px; overflow: hidden; }
  [data-layout="vertical"] .card-photo { aspect-ratio: 1; }
  [data-layout="vertical"] .card-body { min-width: 0; padding: 8px; gap: 8px; overflow-wrap: anywhere; }
  [data-layout="vertical"] .card-controls { gap: 3px; flex-wrap: wrap; }
  [data-layout="vertical"] .counter button { width: 31px; height: 31px; }
  .card-body { padding: 11px; gap: 13px; }
  .card-title { font-size: 15px; }
  .card p { font-size: 12px; }
  .price { font-size: 15px; }
  .counter { gap: 2px; }
  .counter button { width: 36px; height: 36px; }
  .dock { width: calc(100% - 24px); }
  .dock .button { flex: 1; font-size: 12px; padding: 0 8px; gap: 5px; }
  .panel-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: minmax(0,1fr) minmax(0,.75fr); gap: 7px; }
  .filters input, .filters select { font-size: 13px; }
  .filters.admin-filters { grid-template-columns: 1fr 1fr; }
  .filters.admin-filters > :first-child { grid-column: 1 / -1; }
  .variant-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .basket { inset: auto 0 0; margin: 0 auto; width: 100%; max-width: none; border-radius: 18px 18px 0 0; padding: 20px 16px max(22px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 22px); }
  .top-inner { gap: 6px; }
  .wordmark { font-size: 25px; }
  .brand-image { width: 27px; height: 27px; }
  .theme { min-width: 36px; min-height: 36px; }
  .hero h1 { font-size: 51px; }
  .cards { grid-template-columns: 1fr; }
  .table-badge { padding-inline: 6px; }
  .top-actions .table-badge { display: none; }
}
@media print {
  .topbar, .panel-actions, .call-grid, .toast { display: none !important; }
  .qr-grid { grid-template-columns: repeat(3, 1fr); }
  .qr-grid .box { break-inside: avoid; }
}
