/* Фирменный стиль — токены из JS_site/app/globals.css (брендбук Janym Soul). */
:root {
  --brand-teal: #12BFB2;
  --brand-teal-ink: #0B7E76;
  --brand-teal-deep: #0E8F86;
  --brand-magenta: #E42454;
  --brand-magenta-ink: #C81E49;
  --brand-yellow: #F0E400;
  --ink: #111111;
  --ink-soft: #51606A;
  --bg: #FFFFFF;
  --surface: #F1FAF9;
  --surface-2: #E6F5F3;
  --line: #D9E8E6;
  --on-color: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(15, 78, 74, .10);

  /* Montserrat и Onest — запасные для казахских букв (ә ғ қ ң ұ ө ү һ), которых нет в Unbounded и Manrope. */
  --font-display: 'Unbounded', 'Montserrat', system-ui, sans-serif;
  --font-sans: 'Manrope', 'Onest', system-ui, sans-serif;
}
/* Казахский интерфейс целиком набираем шрифтами с полным набором глифов, как на сайте. */
html[lang='kk'] {
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-sans: 'Onest', system-ui, sans-serif;
}

/* Китайский: латиницу оставляем фирменными шрифтами, иероглифы берёт системный шрифт (PingFang / Noto). */
html[lang='zh-CN'] {
  --font-display: 'Unbounded', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-sans: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}
html[lang='zh-CN'] .display { letter-spacing: 0; }

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--ink); }
body { min-height: 100vh; font-family: var(--font-sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; }
::selection { background: var(--brand-magenta); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-teal-ink); outline-offset: 2px; }
::-webkit-scrollbar { display: none; }
.hidden { display: none !important; }

#app { max-width: 600px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; }

/* ---------- общие элементы ---------- */
.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.08; }
.eyebrow { display: inline-block; background: var(--brand-teal); color: var(--ink); border-radius: 100px; padding: 6px 14px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.accent { color: var(--brand-magenta); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--brand-teal-ink); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.price s { color: var(--ink-soft); font-weight: 500; margin-left: 6px; }
.price.sale { color: var(--brand-magenta); }
.tag { display: inline-block; background: var(--brand-yellow); color: var(--ink); border-radius: 6px; font-size: 12px; font-weight: 800;
  padding: 3px 8px; line-height: 1.3; text-transform: uppercase; letter-spacing: .04em; }
.btn { flex: 1; min-height: 56px; border-radius: var(--radius); background: var(--brand-magenta); color: var(--on-color);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .08em;
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; transition: background .2s; }
.btn:hover { background: var(--brand-magenta-ink); }
.btn:disabled { background: var(--line); color: var(--ink-soft); cursor: default; }
.round { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-magenta); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 22px; line-height: 1; font-weight: 500; }
.round.soft { background: var(--surface-2); color: var(--ink); }
.stepper { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; }
.stepper b { min-width: 16px; text-align: center; font-weight: 800; }
.empty { padding: 40px 20px; color: var(--ink-soft); text-align: center; }

/* ---------- шапка (как на janymsoul.kz) ---------- */
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__logo img { width: 44px; height: 44px; }
.venue-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 0; border: 1px solid var(--line); border-radius: 100px;
  padding: 7px 12px; font-size: 14px; font-weight: 700; background: #fff; }
.venue-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.venue-pill svg { width: 12px; height: 12px; flex: none; }
.langs { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 800; }
.langs button { padding: 6px 7px; color: var(--ink-soft); border-bottom: 2px solid transparent; }
.langs button.on { color: var(--brand-magenta); border-bottom-color: var(--brand-magenta); }
.langs i { width: 1px; height: 12px; background: var(--line); }

/* ---------- выбор заведения ---------- */
.venues { padding: 28px 16px 24px; }
.venues__hero { text-align: center; margin-bottom: 24px; }
.venues__hero .eyebrow { margin-bottom: 16px; }
.venues__hero h1 { font-size: 34px; margin-bottom: 12px; }
.venues__hero p { color: var(--ink-soft); }
.venues__art { width: 100%; max-width: 360px; margin: 0 auto 28px; border-radius: 24px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.venue-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px 10px 10px; margin-bottom: 12px; transition: transform .2s, box-shadow .2s; }
.venue-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.venue-card img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.venue-card div { flex: 1; min-width: 0; }
.venue-card b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; text-transform: uppercase; }
.venue-card span { font-size: 14px; color: var(--ink-soft); }
.venue-card svg { width: 18px; height: 18px; color: var(--brand-teal-ink); flex: none; }

/* ---------- главная заведения ---------- */
.hero { position: relative; text-align: center; padding: 28px 16px 8px; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 0%, var(--surface-2), #fff 70%); }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: 32px; margin-bottom: 18px; overflow-wrap: break-word; }
.hero__chips { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; }
.chip-info { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 14px; font-size: 15px; box-shadow: 0 2px 8px rgba(15, 78, 74, .06); max-width: 100%; text-align: left; }
.chip-info svg { width: 18px; height: 18px; color: var(--brand-teal-ink); flex: none; }
.hero__art { position: relative; width: min(100%, 340px); margin: 0 auto 8px; }
.hero__art img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.sticker { position: absolute; top: -10px; left: -6px; transform: rotate(-7deg); background: #fff; border: 2px solid var(--ink); border-radius: 12px;
  padding: 6px 12px; font-family: var(--font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); }
.block { padding: 32px 16px 0; }
.block__head { text-align: center; margin-bottom: 20px; }
.block__head .eyebrow { margin-bottom: 12px; }
.block__head h2 { font-size: 24px; }
.promo { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 12px; }
.slides { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.slides > * { flex: none; width: 100%; scroll-snap-align: center; }
.desc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; white-space: pre-line;
  font-size: 15px; color: var(--ink-soft); margin-top: 4px; }
.section-card { position: relative; display: flex; align-items: flex-end; height: 112px; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 12px; background: var(--ink); transition: transform .2s, box-shadow .2s; }
.section-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.section-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.section-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17, 17, 17, .78), rgba(17, 17, 17, .15)); }
.section-card span { position: relative; z-index: 1; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px;
  text-transform: uppercase; padding: 16px 18px; line-height: 1.1; }
.section-card i { position: absolute; z-index: 1; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-magenta);
  color: #fff; display: flex; align-items: center; justify-content: center; }
.section-card i svg { width: 15px; height: 15px; }
.link-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 10px; font-size: 16px; font-weight: 600; }
.link-row svg.lead { width: 20px; height: 20px; flex: none; color: var(--brand-teal-ink); }
.link-row span { flex: 1; }
.link-row .go { width: 18px; height: 18px; color: var(--brand-magenta); flex: none; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px; }
.info-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row:last-of-type { border-bottom: 0; }
.info-row .circle { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--brand-teal-ink);
  display: flex; align-items: center; justify-content: center; flex: none; }
.info-row .circle svg { width: 20px; height: 20px; }
.info-row h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-teal-ink); margin-bottom: 4px; }
.info-row p { font-size: 16px; }
.info-row .phone { margin-bottom: 6px; }
.info-row .phone a { font-weight: 700; }
.info-row .phone small { display: block; font-size: 12px; color: var(--ink-soft); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 16px; border-top: 1px solid var(--line); }
.social { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 5px 14px 5px 5px; font-size: 14px; font-weight: 700; }
.social i { width: 28px; height: 28px; border-radius: 50%; background: var(--brand-teal); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.social i svg { width: 16px; height: 16px; }
.footer { text-align: center; padding: 40px 16px 120px; color: var(--ink-soft); font-size: 14px; }
.footer b { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.footer a { color: var(--brand-teal-ink); font-weight: 700; }

/* ---------- список блюд ---------- */
.list-top { padding: 18px 16px 0; }
.list-top .row2 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.list-top .row2 h1 { font-size: 22px; flex: 1; min-width: 0; overflow-wrap: break-word; }
.search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 14px; height: 48px; }
.search:focus-within { border-color: var(--brand-teal-ink); }
.search svg { width: 18px; height: 18px; color: var(--brand-teal-ink); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); min-width: 0; }
.search input::placeholder { color: var(--ink-soft); }
.sec-strip { display: flex; gap: 10px; overflow-x: auto; padding: 16px 16px 4px; }
.sec-tile { flex: none; width: 112px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 6px 10px; }
.sec-tile img, .sec-tile .ph { width: 100%; height: 70px; border-radius: 11px; object-fit: cover; background: var(--surface-2); }
.sec-tile span { display: block; font-size: 13px; font-weight: 700; line-height: 1.2; padding: 8px 4px 0; min-height: 40px; }
.sec-tile.active { background: var(--brand-magenta); border-color: var(--brand-magenta); color: #fff; }
.chips { position: sticky; top: 65px; z-index: 5; background: rgba(255, 255, 255, .96); display: flex; gap: 8px; overflow-x: auto;
  padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chip { flex: none; background: var(--surface); border: 1px solid var(--line); color: var(--brand-teal-ink); border-radius: 100px;
  padding: 8px 14px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.chip.active { background: var(--brand-magenta); border-color: var(--brand-magenta); color: #fff; }
.cat { padding: 0 16px; scroll-margin-top: 130px; }
.cat h2 { font-size: 20px; padding: 28px 0 8px; }
.cat h2 span { background: linear-gradient(transparent 62%, var(--brand-yellow) 62%); }
.cat-desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; white-space: pre-line; }
.item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item__img { flex: none; width: 40%; max-width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); align-self: flex-start;
  background: var(--surface); }
.item__img.ph { background: var(--surface) url('brand/logo.png') no-repeat center / 40%; opacity: .5; }
.item__body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.item__name { font-size: 17px; font-weight: 800; line-height: 1.25; }
.item__body .tag { align-self: flex-start; }
.item__desc { font-size: 14px; color: var(--ink-soft); line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.item__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.item__foot .price { font-size: 17px; }
.item.off { cursor: default; }
.item.off .item__img, .item.off .item__name, .item.off .price { opacity: .45; }
.off-label { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.list-bottom { height: 110px; }

.cart-fab { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(calc(100% - 32px), 568px); justify-content: space-between; white-space: nowrap; box-shadow: 0 8px 24px rgba(228, 36, 84, .35); }
.cart-fab .btn-ico { display: inline-flex; align-items: center; gap: 10px; }
.cart-fab svg { width: 22px; height: 22px; }

/* ---------- карточка блюда, корзина ---------- */
.layer { position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: var(--surface); }
.layer .page { max-width: 600px; margin: 0 auto; }
.page { min-height: 100vh; background: var(--bg); padding-bottom: 120px; }
.product__media { background: var(--surface); }
.product__media img { width: 100%; max-height: 440px; object-fit: contain; }
.product__media .ph { height: 120px; }
.close { position: fixed; top: 14px; z-index: 30; right: max(14px, calc(50vw - 300px + 14px)); width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.close svg { width: 18px; height: 18px; }
.product__body { padding: 20px 16px 0; }
.product__body .tag { margin-bottom: 12px; }
.product__body h1 { font-size: 24px; margin-bottom: 12px; overflow-wrap: break-word; }
.product__desc { font-size: 16px; color: var(--ink-soft); line-height: 1.5; white-space: pre-line; margin-bottom: 16px; overflow-wrap: anywhere; }
.product__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; margin-bottom: 20px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product__meta span:first-child { color: var(--ink-soft); }
.product__meta .price { font-size: 22px; }
.opt-group { margin-bottom: 24px; }
.opt-group h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-teal-ink); margin-bottom: 6px; }
.opt-group h3 small { font-weight: 600; color: var(--ink-soft); margin-left: 6px; text-transform: none; letter-spacing: 0; font-size: 12px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 16px; }
.opt input { accent-color: var(--brand-magenta); width: 20px; height: 20px; }
.opt span:not(.price) { flex: 1; }
.upsell h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 16px; margin: 8px 0 12px; }
.upsell__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.up { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.up img, .up .ph { width: 100%; aspect-ratio: 1; object-fit: contain; }
.up span { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.up .price { background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 7px 4px; text-align: center; font-size: 13px; }
.up .price.in { background: var(--brand-magenta); border-color: var(--brand-magenta); color: #fff; }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 30%); max-width: 600px; margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.bottom-bar .btn { font-size: 13px; letter-spacing: .04em; white-space: nowrap; padding: 0 14px; }
.bottom-bar .stepper { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); height: 56px; padding: 0 12px; }

.page-head { display: flex; align-items: center; gap: 12px; padding: 20px 16px 8px; }
.page-head h1 { font-size: 24px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-line .ph { width: 80px; height: 80px; object-fit: cover; flex: none; border-radius: 12px; background: var(--surface); }
.cart-line__body { flex: 1; min-width: 0; }
.cart-line__name { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.cart-line__opts { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.cart-line__foot { display: flex; justify-content: space-between; align-items: center; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0 8px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 18px; }
.note { font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-teal-ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); outline: none; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand-teal-ink); }

/* модальное окно и нижний лист */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(17, 17, 17, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: #fff; border-radius: 24px; padding: 28px 20px 20px; width: 100%; max-width: 380px; text-align: center; box-shadow: var(--shadow); }
.modal .circle { width: 64px; height: 64px; border-radius: 50%; background: var(--brand-teal); color: var(--ink); display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 20px; }
.modal .circle svg { width: 30px; height: 30px; }
.modal p { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 18px; margin-bottom: 24px; line-height: 1.2; }
.modal .btn { width: 100%; }
.overlay.sheet { align-items: flex-end; padding: 0; }
.sheet__box { background: #fff; width: 100%; max-width: 600px; border-radius: 24px 24px 0 0; padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; }
.sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 16px; }
.sheet__title { font-size: 22px; margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
