@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  --bg: #101015;
  --surface: #18181f;
  --surface-strong: #21212a;
  --border: #30303b;
  --ink: #f5f4ef;
  --muted: #aaa9b4;
  --accent: #e6fc76;
  --accent-ink: #191d0a;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }

.shell { width: min(1160px, calc(100% - 72px)); margin-inline: auto; }
.symbols { width: 0; height: 0; position: absolute; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; padding: 12px; background: var(--accent); color: var(--accent-ink); z-index: 3; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.topbar-inner, .footer-inner { display: flex; min-height: 77px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 860; letter-spacing: -.045em; white-space: nowrap; }
.brand > span:not(.brand-icon) { color: var(--accent); margin-inline: -3px; }
.brand-icon { color: var(--accent); display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #e6fc7666; border-radius: 50%; margin-right: 2px; }
.brand-icon .icon { width: 16px; height: 16px; }
.topbar-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 650; }
.topbar-link:hover { color: var(--accent); }
.topbar-link .icon { width: 15px; height: 15px; }

.hero-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 425px;
  overflow: hidden;
  border: 1px solid #34353f;
  border-radius: 25px;
  background: #171721;
}
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 auto; width: 72%; height: 100%; object-fit: cover; object-position: 50% 49%; mask-image: linear-gradient(90deg, transparent, #000 25%); }
.hero-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #16161f 6%, #16161ff5 21%, #16161fd9 32%, #16161f33 63%, transparent 83%),
    linear-gradient(0deg, #100d18aa, transparent 61%);
}
.hero-copy { padding: 46px clamp(32px, 5vw, 66px) 51px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 22px; }
.hero .eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px #e6fc7688; }
h1 { font-weight: 880; font-size: clamp(57px, 7.8vw, 112px); letter-spacing: -.07em; line-height: .90; }
h1 em { font-style: normal; color: var(--accent); white-space: nowrap; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 44px; padding: 0 15px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 720; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.hero-game { background: #18181fe8; }
.primary:hover { background: #f3ffa4; }
.primary .icon, .secondary .icon { width: 17px; height: 17px; }
.secondary { background: var(--surface-strong); color: var(--ink); }
.secondary:hover:not(:disabled) { border-color: var(--accent); }

.menu { margin-top: 43px; scroll-margin-top: 20px; }
.menu-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 17px; margin-bottom: 20px; }
.menu-heading h2, .nutrition h2 { font-size: clamp(28px, 4vw, 45px); font-weight: 820; letter-spacing: -.06em; line-height: 1.06; }
.filters { display: flex; align-items: stretch; padding: 4px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.filters button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; color: var(--muted); font-weight: 700; white-space: nowrap; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
.search { display: flex; gap: 14px; align-items: center; border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding-inline: 17px 10px; }
.search:focus-within { border-color: var(--accent); }
.search > .icon { color: var(--accent); }
.search input { border: 0; outline: 0; padding: 15px 0; width: 100%; min-width: 0; min-height: 57px; background: transparent; font-size: 16px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input::-webkit-search-cancel-button { appearance: none; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-strong); }
.icon-button:hover { color: var(--accent); }

.shortcuts { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px 4px 9px; margin: 12px -4px 0; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.chip { background: transparent; color: var(--muted); font-weight: 640; font-size: 13px; white-space: nowrap; min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 7px; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.chip[aria-pressed="true"] { background: #e6fc7616; }
.results-head { display: flex; align-items: center; justify-content: space-between; min-height: 41px; gap: 14px; margin-bottom: 3px; color: var(--muted); font-size: 13px; }
.text-button { padding: 0; background: none; border: 0; color: var(--accent); font-size: 13px; font-weight: 700; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }

.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.category-card { padding: 0; display: flex; align-items: flex-end; position: relative; isolation: isolate; min-height: 220px; overflow: hidden; text-align: left; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); }
.category-card:hover { border-color: var(--accent); }
.category-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.category-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #100d15 0%, #100d15de 18%, #100d1520 68%); }
.category-body { display: grid; gap: 6px; padding: 18px 60px 17px 17px; }
.category-meta { color: #e1dfec; font-size: 12px; font-weight: 630; }
.category-title { font-size: clamp(19px, 2vw, 26px); font-weight: 790; letter-spacing: -.04em; line-height: 1.06; }
.category-arrow { position: absolute; right: 14px; bottom: 15px; color: var(--accent); display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #e6fc7677; border-radius: 9px; background: #191821bb; }
.category-arrow .icon { width: 17px; height: 17px; }
.category-card:hover .category-arrow { background: var(--accent); color: var(--accent-ink); }

.item-list { display: grid; gap: 8px; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; text-align: left; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.item-row:hover { border-color: var(--accent); }
.item-info, .item-values { display: grid; gap: 5px; }
.item-name { font-size: 16px; font-weight: 700; }
.item-category { font-size: 12px; font-weight: 650; color: var(--accent); }
.item-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.45; }
.item-values { text-align: right; white-space: nowrap; }
.item-price { font-weight: 800; }
.item-portion { font-size: 12px; color: var(--muted); }
.item-arrow { display: flex; color: var(--accent); }
.empty { padding: 35px 18px; text-align: center; border: 1px dashed var(--border); border-radius: 14px; }
.empty p { color: var(--muted); margin: 8px 0 16px; }

.nutrition { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-block: 52px; padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); scroll-margin-top: 20px; }
.nutrition h2 { font-size: 25px; }
.nutrition p { color: var(--muted); margin-top: 9px; font-size: 14px; line-height: 1.45; }
.nutrition .secondary { flex: 0 0 auto; }
.footer { border-top: 1px solid var(--border); }
.footer-inner { min-height: 72px; flex-wrap: wrap; padding-block: 15px; }
.footer-menus { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }

.dialog { width: min(680px, calc(100% - 28px)); max-height: min(85dvh, 900px); padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--bg); color: var(--ink); overflow: hidden; }
.dialog[open] { display: flex; flex-direction: column; }
.dialog::backdrop { background: #060609cf; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { font-size: clamp(23px, 4vw, 35px); font-weight: 820; letter-spacing: -.04em; line-height: 1.05; overflow-wrap: anywhere; margin-top: 7px; }
.dialog-body { overflow-y: auto; overscroll-behavior: contain; padding: 20px; }
.back { display: block; margin-bottom: 15px; min-height: 28px; }
.source-button { margin-bottom: 14px; }
.detail-price { color: var(--accent); font-size: 20px; font-weight: 760; margin-bottom: 12px; }
.detail-description { margin-bottom: 18px; color: var(--muted); line-height: 1.6; }
.page-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.full-page { display: block; text-align: center; margin-bottom: 12px; }
.menu-page { width: 100%; max-width: 530px; height: auto; margin: auto; border-radius: 8px; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 42px); }
  .hero-panel { min-height: 385px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .shell { width: calc(100% - 28px); }
  .topbar-inner { min-height: 61px; }
  .hero-panel { min-height: 335px; border-radius: 16px; }
  .hero-art { width: 100%; object-position: 50% 28%; mask-image: none; }
  .hero-panel::after { background: linear-gradient(0deg, #15151ef5 3%, #15151ebf 28%, #15151e1a 84%); }
  .hero-copy { padding: 30px 17px 23px; }
  .hero .eyebrow { margin-bottom: 12px; }
  h1 { font-size: clamp(43px, 11.8vw, 62px); letter-spacing: -.077em; }
  .hero-actions { margin-top: 19px; }
  .footer-menus { order: 1; width: 100%; }
  .menu { margin-top: 29px; }
  .menu-heading { gap: 13px; margin-bottom: 12px; }
  .filters { width: 100%; }
  .filters button { flex: 1 1 auto; padding-inline: 6px; }
  .search { gap: 8px; padding-inline: 11px 6px; }
  .search input { min-height: 51px; }
  .search .icon { width: 18px; height: 18px; }
  .shortcuts { margin-top: 8px; }
  .category-grid { gap: 8px; }
  .category-card { min-height: 145px; border-radius: 10px; }
  .category-body { padding: 9px 33px 10px 9px; }
  .category-meta { font-size: 10px; }
  .category-title { font-size: clamp(14px, 3.8vw, 18px); }
  .category-arrow { width: 23px; height: 23px; right: 6px; bottom: 8px; border-radius: 5px; }
  .category-arrow .icon { width: 13px; height: 13px; }
  .nutrition { flex-direction: column; align-items: flex-start; margin-block: 32px; }
  .dialog-header, .dialog-body { padding: 14px; }
  .item-row { gap: 8px; padding: 12px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
