:root {
  --yellow: #FEDC00;
  --yellow-soft: #FFF3A6;
  --ink: #17140F;
  --paper: #FFFDF3;
  --card: #FFFFFF;
  --muted: #6F6A5C;
  --line: rgba(23, 20, 15, .12);
  --coral: #FF6B4A;
  --ok: #1F8A4C;
  --radius: 22px;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --body: 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Top bar ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(clamp(16px, 4vw, 48px), env(safe-area-inset-right)) 10px max(clamp(16px, 4vw, 48px), env(safe-area-inset-left));
  background: var(--yellow);
}
.brand {
  display: inline-block; padding: 8px 0;
  font: 800 22px/1 var(--display); letter-spacing: -.02em; text-decoration: none; color: var(--ink);
}
.brand-o { display: inline-block; transition: transform .6s var(--ease); }
.brand:hover .brand-o { transform: rotate(360deg); }
.topnav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); font-weight: 600; font-size: 15px; }
.topnav > a { text-decoration: none; padding: 10px 2px; }
.topnav > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.lang button { border: 0; background: none; min-width: 44px; min-height: 36px; padding: 0 10px; font-size: 13px; font-weight: 700; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 24px;
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 48px) clamp(48px, 8vw, 104px);
  background: var(--yellow);
  border-radius: 0 0 48px 48px;
}
.eyebrow { margin: 0 0 8px; font-weight: 600; letter-spacing: .02em; }
.wordmark {
  margin: 0; font: 800 clamp(64px, 13vw, 176px)/.9 var(--display); letter-spacing: -.05em;
  color: #fff; text-shadow: 0 2px 0 rgba(23, 20, 15, .06);
  animation: rise .9s var(--ease) both;
}
.lead { max-width: 30ch; font-size: clamp(17px, 1.6vw, 20px); margin: 22px 0 28px; animation: rise .9s .12s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: rise .9s .22s var(--ease) both; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 14px; font-weight: 600; }
.status-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 138, 76, .18); }
.status-pill.closed::before { background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 74, .2); }

.hero-art { position: relative; justify-self: center; width: min(420px, 100%); aspect-ratio: 1; }
.hero-art::before { content: ''; position: absolute; inset: 14% 10% 2%; border-radius: 50%; background: radial-gradient(closest-side, rgba(120, 80, 0, .28), transparent); transform: translateY(8%); }
.donut { position: relative; width: 100%; height: 100%; animation: spin 40s linear infinite, pop 1s var(--ease) both; will-change: rotate; }
.sticker {
  position: absolute; padding: 8px 14px; border-radius: 99px;
  background: var(--ink); color: var(--yellow); font: 700 13px/1 var(--display); white-space: nowrap;
}
.sticker-1 { top: 10%; left: -2%; transform: rotate(-8deg); animation: rise .8s .4s var(--ease) both; }
.sticker-2 { bottom: 12%; right: 0; background: #fff; color: var(--ink); transform: rotate(6deg); animation: rise .8s .55s var(--ease) both; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop { from { opacity: 0; scale: .8; } }
@keyframes spin { to { rotate: 360deg; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 99px; border: 1.5px solid var(--ink);
  font-weight: 700; text-decoration: none; transition: transform .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(23, 20, 15, .06); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { flex: none; border: 0; background: rgba(23, 20, 15, .06); width: 38px; height: 38px; border-radius: 50%; font-size: 15px; }

/* ── Categories ── */
.cats {
  position: sticky; top: 64px; z-index: 15;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 16px clamp(16px, 4vw, 48px);
  background: var(--paper); box-shadow: 0 1px 0 var(--line);
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: none; padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 14px; transition: .2s;
}
.cats a:hover { border-color: var(--ink); }
.cats a.active { background: var(--ink); border-color: var(--ink); color: var(--yellow); }

/* ── Menu ── */
.menu { padding: 8px clamp(16px, 4vw, 48px) 40px; }
.menu-section { padding-top: 28px; }
.menu-section h2 {
  display: flex; align-items: baseline; gap: 12px;
  margin: 0 0 18px; font: 700 clamp(24px, 3.2vw, 36px)/1.1 var(--display); letter-spacing: -.02em;
}
.menu-section h2 small { font: 600 14px var(--body); color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }

.dish {
  display: flex; flex-direction: column; background: var(--card);
  border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  animation: rise .6s var(--ease) both;
}
.dish:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(23, 20, 15, .3); }
.dish-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--yellow-soft);
  display: grid; place-items: center; color: var(--ink);
}
.dish-media img { width: 100%; height: 100%; object-fit: cover; }
.dish-media svg { width: 34%; opacity: .85; transition: transform .5s var(--ease); }
.dish:hover .dish-media svg { transform: rotate(-8deg) scale(1.06); }
.dish:nth-child(3n+2) .dish-media { background: #FFE9A8; }
.dish:nth-child(3n) .dish-media { background: #FFF7CF; }
.badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 99px;
  background: var(--ink); color: var(--yellow); font: 700 11px/1 var(--display); letter-spacing: .03em; text-transform: uppercase;
}
.badge.new { background: #fff; color: var(--ink); }
.badge.spicy { background: var(--coral); color: #fff; }
.badge.veg { background: var(--ok); color: #fff; }
.dish-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.dish h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.25; font-weight: 700; }
.dish p { margin: 0 0 16px; color: var(--muted); font-size: 14px; flex: 1; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font: 700 18px/1 var(--display); letter-spacing: -.02em; }

.add {
  height: 42px; min-width: 42px; padding: 0 16px; border-radius: 99px; border: 0;
  background: var(--yellow); font-weight: 700; font-size: 15px; white-space: nowrap; transition: transform .15s;
}
.add:hover { background: #FFD000; }
.add:active { transform: scale(.94); }
.stepper { display: inline-flex; align-items: center; background: var(--ink); color: #fff; border-radius: 99px; height: 42px; }
.stepper button { border: 0; background: none; color: inherit; width: 40px; height: 100%; font-size: 18px; font-weight: 700; }
.stepper span { min-width: 18px; text-align: center; font-weight: 700; }

/* ── Info ── */
.info {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin: 24px clamp(16px, 4vw, 48px) 32px; padding: clamp(24px, 4vw, 44px);
  background: var(--ink); color: #fff; border-radius: 32px;
}
.info h2 { margin: 0 0 12px; font: 700 clamp(26px, 3.4vw, 40px)/1.1 var(--display); color: var(--yellow); }
.info p { margin: 4px 0; color: rgba(255, 255, 255, .8); }
.info a#infoPhone { display: inline-block; padding: 8px 0; }
.info-links { display: flex; gap: 10px; flex-wrap: wrap; }
.info .btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.info .btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 0 clamp(16px, 4vw, 48px) 110px; color: var(--muted); font-size: 13px;
  max-width: 1400px; margin: 0 auto;
}

/* ── Юридический подвал ── */
.footer { flex-direction: column; gap: 14px; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.footer a { color: var(--ink); }
.legal-links, .legal-gov { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.legal-links a, .legal-gov a { display: inline-block; padding: 10px 0; }
.legal-facts p a { display: inline-block; padding: 8px 0; }
.btn-arrep {
  padding: 9px 14px !important; border: 1.5px solid var(--ink); border-radius: 10px;
  font: 700 12px/1 var(--display); letter-spacing: .03em; text-decoration: none;
}
.btn-arrep:hover { background: var(--ink); color: var(--yellow) !important; }
.legal-gov a { color: var(--muted) !important; font-size: 12.5px; }
.legal-facts { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.legal-facts p { margin: 2px 0; }
.data-fiscal img { display: block; }
.hero-legal { margin: 14px 0 0; font-size: 13px; animation: rise .9s .3s var(--ease) both; }
.hero-legal a { display: inline-block; padding: 6px 0; }
.tacc { display: inline-block; margin-left: 8px; padding: 2px 7px; border-radius: 99px; background: #E3F1E8; color: var(--ok); font-size: 11px; font-weight: 700; vertical-align: 2px; white-space: nowrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.consent a { font-weight: 600; }
.data-note, .price-note { margin: -4px 0 0; color: var(--muted); font-size: 12.5px; }

/* ── Юридические страницы ── */
.topbar-back { font-weight: 600; text-decoration: none; padding: 10px 0; }
.legal { max-width: 760px; margin: 0 auto; padding: 28px 16px 40px; }
.legal h1 { font: 800 clamp(28px, 6vw, 44px)/1.05 var(--display); letter-spacing: -.02em; margin: 6px 0 18px; }
.legal h2 { font: 700 19px/1.25 var(--display); margin: 30px 0 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal ul, .legal ol { padding-left: 22px; }
.legal-meta { color: var(--muted); font-size: 13px; }
.link-print { border: 0; background: none; padding: 6px 0; color: var(--ink); text-decoration: underline; font-size: 13px; }
.legal-data { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.legal-data div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.legal-data div:first-child { border-top: 0; }
.legal-data dt { color: var(--muted); font-size: 14px; }
.legal-data dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.legal .note { padding: 12px 14px; border-radius: 14px; background: var(--yellow-soft); font-size: 14.5px; }
.legal .aaip { padding: 14px; border: 1.5px solid var(--ink); border-radius: 14px; font-size: 14px; }
.req-form { margin-top: 18px; }
.req-done { margin-top: 18px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; }
.req-done .order-num { font-size: clamp(26px, 8vw, 40px); overflow-wrap: anywhere; }
.req-copy { margin: 8px 0 16px; padding: 12px 14px; border-left: 3px solid var(--yellow); background: var(--paper); white-space: pre-wrap; overflow-wrap: anywhere; }

@media print {
  .topbar, .footer, .cart-fab, .link-print, [data-print], .btn { display: none !important; }
  body { background: #fff; }
  .legal { padding: 0; max-width: none; }
}

/* ── Cart FAB ── */
.cart-fab {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 30;
  translate: -50% 0; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 10px 10px; border: 0; border-radius: 99px;
  background: var(--ink); color: #fff; font-weight: 700;
  box-shadow: 0 16px 40px -10px rgba(23, 20, 15, .5);
  animation: rise .4s var(--ease) both;
}
.cart-fab-count {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--yellow); color: var(--ink); font-family: var(--display);
}
.cart-fab-total { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.cart-fab.bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.06); } }

/* ── Drawer ── */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(23, 20, 15, .4); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(460px, 100%); display: flex; flex-direction: column;
  background: var(--paper); transform: translateX(100%); visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s .35s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.drawer-body { overscroll-behavior: contain; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font: 700 22px var(--display); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px calc(28px + env(safe-area-inset-bottom)); }

.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-list .ci-name { flex: 1; font-weight: 600; font-size: 15px; }
.cart-list .ci-name small { display: block; color: var(--muted); font-weight: 500; }
.cart-list .stepper { height: 34px; }
.cart-list .stepper button { width: 32px; font-size: 16px; }
.cart-empty { padding: 40px 0; text-align: center; color: var(--muted); }

.checkout { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; padding: 4px; border: 0; border-radius: 99px; background: rgba(23, 20, 15, .07); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 10px; border-radius: 99px; text-align: center; font-weight: 600; font-size: 14px; cursor: pointer; transition: .2s; }
.seg input:checked + span { background: var(--card); box-shadow: 0 2px 8px rgba(23, 20, 15, .1); }
.seg input:focus-visible + span { outline: 2px solid var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-width: 0;
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card);
  font: 500 16px var(--body); color: var(--ink); outline: none; transition: border-color .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input.invalid { border-color: var(--coral); }
.label { margin: 6px 0 -4px; font-size: 13px; font-weight: 600; color: var(--muted); }

.pay-options { display: flex; flex-direction: column; gap: 8px; }
.pay-opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: .2s;
}
.pay-opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pay-opt input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.pay-opt b { display: block; font-size: 15px; }
.pay-opt small { color: var(--muted); font-size: 12.5px; }

.totals { margin: 8px 0 0; }
.totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; color: var(--ink); }
.totals .grand { padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line); color: var(--ink); font: 700 20px var(--display); }
.form-error { min-height: 1em; margin: 0; color: #C2410C; font-size: 14px; font-weight: 600; }

/* ── Modal & toast ── */
.modal { width: min(520px, calc(100% - 24px)); padding: 0; border: 0; border-radius: 24px; background: var(--paper); }
.modal::backdrop { background: rgba(23, 20, 15, .5); }
.modal #cardBrick { padding: 12px 16px 20px; min-height: 200px; }
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 60; translate: -50% 20px; opacity: 0; max-width: calc(100% - 32px); text-align: center;
  padding: 12px 18px; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px;
  pointer-events: none; transition: .3s var(--ease);
}
.toast.show { translate: -50% 0; opacity: 1; }

/* ── Order page ── */
.order-page { max-width: 560px; margin: 0 auto; padding: 32px 16px 60px; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px; }
.order-num { font: 800 clamp(40px, 10vw, 64px)/1 var(--display); letter-spacing: -.04em; margin: 4px 0 8px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0; }
.steps div { height: 6px; border-radius: 99px; background: var(--line); }
.steps div.on { background: var(--ink); }
.order-state { font: 700 20px var(--display); margin: 0; }
.order-sub { color: var(--muted); margin: 6px 0 0; }
.order-items { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.order-items li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; border-radius: 0 0 32px 32px; }
  .hero-art { width: 62%; order: -1; margin-bottom: -8px; }
  .topnav > a { display: none; }
  .cats { top: 64px; }
}
/* Телефон: список «фото слева — текст справа», как в приложениях доставки */
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; gap: 10px; }
  .dish { flex-direction: row; border-radius: 18px; }
  .dish:hover { transform: none; box-shadow: none; }
  .dish-media { flex: none; width: 118px; aspect-ratio: auto; min-height: 118px; }
  .dish-media svg { width: 48%; }
  .badge { top: 8px; left: 8px; padding: 4px 7px; font-size: 9.5px; }
  .dish-body { padding: 12px 12px 12px 14px; min-width: 0; }
  .dish h3 { font-size: 15px; margin-bottom: 4px; }
  .dish p { margin-bottom: 10px; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .price { font-size: 15px; }
  .add { padding: 0; width: 38px; height: 38px; font-size: 20px; }
  .add-label { display: none; }
  .stepper { height: 38px; } .stepper button { width: 32px; }
  .menu-section { padding-top: 20px; }
  .info { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
