@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("/static/fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600 700; font-style: normal; font-display: swap; src: url("/static/fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url("/static/fonts/InterDisplay-ExtraBold.woff") format("woff"); }

/* Палитра из логотипа: коричневый #43372f, оранжевый #fe6028, кремовый #f7ede3 */
:root {
  --nori: #43372f; --nori-2: #5a4a40; --salmon: #fe6028; --salmon-soft: #fff0e6; --salmon-ink: #b83a0a; --on-salmon: #2b221d;
  --wasabi-soft: #eaf4d6; --wasabi-ink: #3f6212; --err: #cc2f2c; --err-ink: #a42220;
  --paper: #ffffff; --mist: #f6f0e8; --mist-2: #ece3d9; --line: #eae1d7; --ink: #2b221d; --muted: #7a6d64;
  --logo: #43372f; --on-nori: #ffffff; --ft-bg: #3a2f28; --field-line: #dacfc3; --sel-bg: #faf6f1; --ring: rgba(67, 55, 47, .16);
  --salmon-hover: #ec5518; --add-hover: #ffe3d2; --btn-off: #e6ddd3; --btn-off-ink: #9a8d83; --step-off: #d9cdc0;
  --pic-0: #fdebdd; --pic-1: #f7efdc; --pic-2: #e8efe0; --pic-3: #f6e6e1; --scrim: rgba(43, 34, 29, .55);
  color-scheme: light dark;
  --hd: 64px; --cats: 56px; --r: 22px;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Тёмная тема включается сама, когда в системе или телефоне выбрана тёмная */
@media (prefers-color-scheme: dark) {
  :root {
    --nori: #f3ebe3; --nori-2: #ffffff; --on-nori: #231b16; --ft-bg: #1f1814; --logo: #f3ebe3; --on-salmon: #2b221d;
    --salmon-soft: #3a2218; --salmon-ink: #ff9a6c; --wasabi-soft: #1d2d14; --wasabi-ink: #b9e27f; --err: #f0605c; --err-ink: #ff9a95;
    --paper: #171210; --mist: #221a16; --mist-2: #2d241f; --line: #30271f; --ink: #f3ebe3; --muted: #a89a8f;
    --field-line: #463a31; --sel-bg: #231c18; --ring: rgba(243, 235, 227, .24);
    --salmon-hover: #ff7440; --add-hover: #4a2a1d; --btn-off: #2d241f; --btn-off-ink: #7d7066; --step-off: #3d3229;
    --pic-0: #33201a; --pic-1: #302b1d; --pic-2: #232b20; --pic-3: #302220; --scrim: rgba(0, 0, 0, .66);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.45 var(--text); color: var(--ink); background: var(--paper); }
body.lock { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .grow { flex: 1; }
:focus-visible { outline: 3px solid rgba(254, 96, 40, .6); outline-offset: 2px; }
[hidden] { display: none !important; }

.logo { display: block; flex: none; color: var(--logo); }

/* шапка */
.hd { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.hd-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: var(--hd); display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.city { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; padding: 8px 14px; border-radius: 99px; background: var(--mist); font-weight: 600; font-size: 15px; }
.hd-phone { text-decoration: none; font-weight: 600; white-space: nowrap; }
.cart-btn { border: 0; background: var(--nori); color: var(--on-nori); height: 44px; padding: 0 20px; border-radius: 99px; font-weight: 600; display: inline-flex; align-items: center; gap: 12px; }
.cart-btn .cart-sum { opacity: .85; padding-left: 12px; border-left: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.cart-btn:hover { background: var(--nori-2); }

/* блок о доставке */
.info { padding: 28px 0 8px; }
.info-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; gap: 20px 40px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.lead { color: var(--muted); font-size: 18px; margin: 8px 0 0; max-width: 46ch; }
.site-note { margin: 12px 0 0; padding: 10px 14px; background: var(--salmon-soft); color: var(--salmon-ink); border-radius: 14px; font-size: 15px; max-width: 60ch; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.facts li { background: var(--mist); border-radius: 99px; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
.facts li.st { background: none; padding: 0; }
@media (max-width: 560px) { .info { padding-top: 18px; } .lead { font-size: 16px; margin-top: 6px; } .info-in { gap: 14px; } .facts { gap: 8px; } .facts li { padding: 7px 12px; } }
.pill { display: inline-block; padding: 3px 12px; border-radius: 99px; background: var(--mist-2); font-size: 14px; font-weight: 600; }
.pill.ok { background: var(--wasabi-soft); color: var(--wasabi-ink); }

/* категории */
.cats { position: sticky; top: var(--hd); z-index: 20; background: var(--paper); margin-top: 12px; }
.cats-in { max-width: 1200px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; height: var(--cats); align-items: center; }
.cats-in::-webkit-scrollbar { display: none; }
.chip { flex: none; text-decoration: none; padding: 9px 18px; border-radius: 99px; font-weight: 600; font-size: 15px; background: var(--mist); }
@media (hover: hover) { .chip:hover { background: var(--mist-2); } }
.chip.on { background: var(--nori); color: var(--on-nori); }

/* меню */
.menu { padding-bottom: 72px; }
.cat { padding-top: 28px; scroll-margin-top: calc(var(--hd) + var(--cats) - 8px); }
.cat h2 { margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } }
@media (min-width: 1020px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; min-width: 0; }
.tile-open { all: unset; box-sizing: border-box; display: block; cursor: pointer; border-radius: var(--r); }
.tile-open:focus-visible { outline: 3px solid rgba(254, 96, 40, .6); outline-offset: 3px; }
.pic { position: relative; aspect-ratio: 1; border-radius: var(--r); background: var(--pic-0); display: grid; place-items: center; overflow: hidden; }
.pic-1 { background: var(--pic-1); } .pic-2 { background: var(--pic-2); } .pic-3 { background: var(--pic-3); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.art { width: 82%; height: 82%; transition: transform .25s ease; }
@media (hover: hover) { .tile-open:hover .art, .tile-open:hover img { transform: scale(1.05); } .pic img { transition: transform .25s ease; } }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--nori); color: var(--on-nori); font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 99px; }
.tile h3 { font: 700 17px/1.25 var(--text); letter-spacing: -.01em; margin: 12px 0 4px; }
.desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 56px; }
.price { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.weight { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.add-slot { margin-left: auto; }
.add { border: 0; background: var(--salmon-soft); color: var(--salmon-ink); font-weight: 600; font-size: 15px; padding: 10px 18px; border-radius: 99px; transition: background .15s; }
.add:hover { background: var(--add-hover); } .add:active { transform: scale(.97); }
.step { display: inline-flex; align-items: center; background: var(--nori); color: var(--on-nori); border-radius: 99px; height: 42px; }
.step button { border: 0; background: none; color: var(--on-nori); width: 38px; height: 42px; font-size: 20px; line-height: 1; }
.step button:disabled { opacity: .35; cursor: default; }
.step b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.stop-note { margin-left: auto; color: var(--muted); font-size: 14px; }
.is-stop .pic { filter: grayscale(.9); opacity: .55; } .is-stop h3 { color: var(--muted); }

/* нижняя панель корзины на телефоне */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 25; border: 0; background: var(--nori); color: var(--on-nori); height: 56px; border-radius: 99px; font-weight: 600; font-size: 17px; display: none; align-items: center; justify-content: space-between; padding: 0 24px; box-shadow: 0 10px 30px rgba(43, 34, 29, .35); }
@media (max-width: 719px) { .cart-bar:not([hidden]) { display: flex; } .cart-btn { display: none; } .hd-phone { display: none; } }

/* окна */
.ov { position: fixed; inset: 0; z-index: 50; background: var(--scrim); display: flex; justify-content: flex-end; align-items: flex-end; animation: fade .2s ease; }
.ov.center { justify-content: center; align-items: center; padding: 20px; }
.panel { background: var(--paper); width: 100%; max-height: 94vh; max-height: 94dvh; overflow: auto; border-radius: 26px 26px 0 0; animation: rise .26s cubic-bezier(.2, .8, .2, 1); position: relative; overscroll-behavior: contain; }
.close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 1px 6px rgba(0,0,0,.2); font-size: 22px; line-height: 1; }
@keyframes fade { from { opacity: 0; } } @keyframes rise { from { transform: translateY(40px); opacity: .4; } }
@media (min-width: 720px) {
  .ov { align-items: stretch; }
  .panel.cart { width: 460px; max-height: none; border-radius: 0; animation-name: slide; }
  .ov.center { align-items: center; }
  .panel.prod { width: min(860px, 100%); border-radius: 28px; display: grid; grid-template-columns: 1fr 1fr; animation-name: fade; }
}
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.prod-pic { aspect-ratio: 1; background: var(--pic-0); display: grid; place-items: center; }
.prod-pic .art { width: 78%; height: 78%; } .prod-pic img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.prod-body h2 { font-size: 28px; padding-right: 30px; }
.prod-body .desc { -webkit-line-clamp: unset; font-size: 16px; }
.prod-body .comp { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.prod-body .comp b { color: var(--ink, inherit); font-weight: 600; }
.nutri { display: grid; gap: 6px; margin-top: 4px; }
.nutri-row { display: grid; grid-template-columns: 1fr repeat(4, auto); gap: 6px 14px; align-items: end; font-size: 13px; }
.nutri-t { color: var(--muted); align-self: center; }
.nutri-c { display: grid; text-align: center; min-width: 52px; }
.nutri-c b { font-size: 16px; font-variant-numeric: tabular-nums; }
.nutri-c small { color: var(--muted); font-size: 11px; }
@media (max-width: 480px) { .nutri-row { grid-template-columns: repeat(4, 1fr); } .nutri-t { grid-column: 1 / -1; } }
.prod-actions { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 12px; }
.btn { border: 0; background: var(--salmon); color: var(--on-salmon); font-weight: 700; font-size: 17px; padding: 15px 24px; border-radius: 99px; flex: 1; transition: background .15s; }
.btn:hover { background: var(--salmon-hover); } .btn:disabled { background: var(--btn-off); color: var(--btn-off-ink); cursor: not-allowed; }
.btn.ghost { background: var(--mist); color: var(--ink); } .btn.ghost:hover { background: var(--mist-2); }

/* корзина */
.cart-pad { padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.cart-pad h2 { padding-right: 44px; }
.lines { display: flex; flex-direction: column; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .mini { width: 56px; height: 56px; border-radius: 14px; background: var(--pic-0); display: grid; place-items: center; overflow: hidden; } .line .mini .art { width: 90%; height: 90%; } .line .mini img { width: 100%; height: 100%; object-fit: cover; }
.line .nm { font-weight: 600; line-height: 1.25; } .line .sub { color: var(--muted); font-size: 14px; }
.line .mini { grid-row: 1 / span 2; }
.line .step { height: 36px; grid-column: 2; grid-row: 2; justify-self: start; margin-top: 4px; } .line .step button { height: 36px; width: 32px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--mist); border-radius: 99px; padding: 4px; }
.seg button { border: 0; background: none; padding: 11px; border-radius: 99px; font-weight: 600; }
.seg button.on { background: var(--paper); box-shadow: 0 1px 4px rgba(0,0,0,.14); }
.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label, .group-title { font-size: 14px; font-weight: 600; color: var(--muted); }
.fld input, .fld select, .fld textarea { font: inherit; width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid var(--field-line); border-radius: 16px; background: var(--paper); color: var(--ink); }
.fld textarea { height: 76px; padding: 12px 16px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--nori); box-shadow: 0 0 0 3px var(--ring); }
.fld.bad input, .fld.bad select, .fld.bad textarea { border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); }
.fld .err { color: var(--err-ink); font-size: 13px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }
.opts { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--field-line); border-radius: 16px; cursor: pointer; }
.opt input { width: 18px; height: 18px; accent-color: var(--salmon); margin: 0; }
.opt.on { border-color: var(--nori); background: var(--sel-bg); }
.sums { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.sums div { display: flex; justify-content: space-between; } .sums .tot { font: 800 22px/1.2 var(--display); padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.note { padding: 10px 14px; border-radius: 14px; font-size: 14px; background: var(--mist); }
.note.warn { background: var(--salmon-soft); color: var(--salmon-ink); } .note.good { background: var(--wasabi-soft); color: var(--wasabi-ink); }
.legal { font-size: 13px; color: var(--muted); margin: 0; }
.empty-cart { text-align: center; padding: 40px 10px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.empty-cart p { margin: 0; color: var(--muted); }

/* баннер активного заказа */
.track-banner { background: var(--wasabi-soft); color: var(--wasabi-ink); }
.track-banner a { display: block; max-width: 1200px; margin: 0 auto; padding: 12px 16px; font-weight: 600; text-decoration: none; }

/* город */
.city-pick { padding: 44px 0 64px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 28px; }
.city-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 26px; border-radius: 28px; background: var(--mist); text-decoration: none; transition: background .15s, transform .15s; min-height: 170px; }
.city-card:hover { background: var(--mist-2); transform: translateY(-2px); }
.city-name { font: 800 30px/1.1 var(--display); letter-spacing: -.02em; } .city-addr { color: var(--muted); flex: 1; }

/* отслеживание заказа */
.track { padding: 28px 16px 64px; max-width: 760px; }
.track-card { background: var(--mist); border-radius: 28px; padding: 28px 22px; display: flex; flex-direction: column; gap: 22px; }
.track-card h1 { font-size: clamp(26px, 5vw, 38px); }
.eta-big { font: 800 22px/1.2 var(--display); }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; counter-reset: s; }
.steps li { position: relative; text-align: center; font-size: 13px; line-height: 1.25; color: var(--muted); padding: 34px 2px 0; }
.steps li::before { content: ""; position: absolute; top: 8px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--step-off); z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 3px; background: var(--step-off); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); } .steps li.done::before, .steps li.done::after { background: var(--nori); }
.steps li.now { color: var(--ink); font-weight: 700; } .steps li.now::before { background: var(--salmon); box-shadow: 0 0 0 0 rgba(254, 96, 40, .55); animation: pulse 1.8s infinite; }
.steps li.now::after { background: var(--nori); }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(254, 96, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(254, 96, 40, 0); } }
.sheet { background: var(--paper); border-radius: 20px; padding: 6px 18px; }
.sheet .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sheet .row:last-child { border: 0; } .sheet .row.tot { font-weight: 800; font-size: 18px; }
.track-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.track-actions a { text-decoration: none; text-align: center; }
.track-card .btn.ghost { background: var(--paper); } .track-card .btn.ghost:hover { background: var(--sel-bg); }
.cancelled h1 { color: var(--salmon-ink); }

/* подвал и текст */
.ft { background: var(--ft-bg); color: #cfd8d2; margin-top: 24px; padding: 36px 0 calc(36px + 70px); }
.ft-in { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; gap: 22px 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .ft-in { grid-template-columns: auto 1fr 1fr; } .ft { padding-bottom: 36px; } }
.ft-brand { display: flex; align-items: center; }
.ft .logo { color: #f7ede3; }
.ft p { margin: 0 0 6px; } .ft a { color: #fff; }
.prose { padding: 40px 16px 24px; max-width: 760px; } .prose h1 { margin-bottom: 18px; } .prose p { margin: 0 0 14px; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

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