/*
  «Манна» · демо-сайт, версия 2 (концепт «Сторис»).
  Сайт как продолжение их Instagram-сторис: крупный кадр, рукописные подписи со стрелками,
  цена-наклейка, разделы как «актуальное». Из концепта «Приложение»: живой статус по часам,
  переключатель «Самовывоз / Доставка» и нижняя панель: она единственная навигация сайта.
*/

/* ================= ШРИФТЫ ================= */

@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('../fonts/oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  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: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/caveat-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('../fonts/caveat-latin.woff2') format('woff2');
  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;
}

/* Знак ₽ дорисован под Oswald: в их файлах шрифта его нет */
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 200 349; font-display: swap;
  src: url('../fonts/oswald-ruble-300.woff') format('woff');
  unicode-range: U+20BD;
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 350 700; font-display: swap;
  src: url('../fonts/oswald-ruble-400.woff') format('woff');
  unicode-range: U+20BD;
}


/* ================= ТОКЕНЫ ================= */

:root {
  /* Цвета бренда: из аватара, постера и их меню */
  --blue: #0195F5;        /* акцент: главная кнопка, «+», кольца «актуального» */
  --blue-ink: #0077D1;    /* тот же синий темнее: под мелким белым текстом (4.6:1) */
  --sky: #ACCCE5;         /* голубой с постера: наклейка, подложки иконок, блок «О нас» */
  --sky-soft: #E4EEF7;    /* тот же голубой, разбавленный: плашки, переключатель */
  --ink: #0D2B52;         /* тёмно-синий текст, нижняя панель, подвал */
  --muted: #4A6283;       /* второстепенный текст, 6.2:1 на белом */
  --line: #7A94AF;        /* рамки полей, 3:1 на белом */
  --error: #B3261E;       /* ошибки формы */
  --paper: #FFFFFF;

  /* Отступы */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px;
  --m-x: 16px;

  /* Скругления: два */
  --r-card: 22px;
  --r-pill: 999px;

  /* Тени: три */
  --sh-1: 0 2px 10px rgba(13, 43, 82, .12);
  --sh-2: 0 10px 22px rgba(13, 43, 82, .20);
  --sh-3: 0 18px 44px rgba(13, 43, 82, .38);

  /* Нижняя панель: высота и сколько места оставить под ней */
  --dock-h: 68px;
  --dock-space: calc(var(--dock-h) + var(--s3) * 2 + env(safe-area-inset-bottom));

  --f-main: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --f-hand: 'Caveat', 'Segoe Print', cursive;

  --e: cubic-bezier(.22, .61, .36, 1);
  --e-pop: cubic-bezier(.34, 1.56, .64, 1);
  --d-fast: 150ms; --d-base: 250ms; --d-slow: 500ms;
}


/* ================= БАЗА ================= */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--s4); }
body {
  margin: 0;
  background: var(--sky-soft);
  color: var(--ink);
  font: 400 16px/1.45 var(--f-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { text-wrap: balance; }

.ic {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Сайт собран под телефон; на компьютере это аккуратная колонка по центру */
.page {
  max-width: 440px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  overflow: clip;
  box-shadow: 0 0 60px rgba(13, 43, 82, .08);
}


/* ================= ДЕМО-СТРОКА ================= */

.demo {
  background: var(--sky);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.25;
  letter-spacing: .02em;
  text-align: center;
  padding: 8px var(--m-x);
}


/* ================= ПЕРВЫЙ ЭКРАН ================= */

.hero { container-type: inline-size; background: var(--paper); }

.stage {
  /* 1 единица = 1px макета шириной 390: подписи масштабируются вместе с фото */
  --u: calc(100cqw / 390);
  position: relative;
  width: 100%;
  /* Пропорция кадра 390×720, но первый экран целиком помещается над нижней панелью */
  height: min(calc(100cqw * 720 / 390), calc(100svh - 32px - var(--dock-space)));
  min-height: 520px;
  border-radius: 0 0 var(--r-card) var(--r-card);
  overflow: hidden;
  background: #E9E4DF;
  isolation: isolate;
}
.stage__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Логотип текстом: разреженный Oswald, линия с точкой, подпись */
.stage__logo {
  position: absolute; top: var(--s4); left: 0; right: 0;
  display: flex; justify-content: center;
}
.logo {
  display: inline-flex; flex-direction: column; align-items: center;
  color: var(--ink);
}
.logo__word {
  font-size: 25px; line-height: 1; font-weight: 400;
  letter-spacing: .34em; margin-right: -.34em;
}
.logo__rule {
  position: relative;
  width: 100%; height: 1px; margin: 6px 0 5px;
  background: currentColor;
}
.logo__rule::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor; transform: translate(-50%, -50%);
}
.logo__tag { font-size: 10.5px; line-height: 1; letter-spacing: .07em; white-space: nowrap; }

/* Стрелки, нарисованные от руки. Фото и стрелки обрезаются одинаково от центра */
.doodles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.doodles path {
  fill: none; stroke: var(--ink); stroke-width: 2.3;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Подписи привязаны к центру кадра, поэтому не уезжают с ролла на любом экране */
.note {
  position: absolute;
  font: 600 calc(var(--u) * 31)/.92 var(--f-hand);
  color: var(--ink);
  letter-spacing: .005em;
}
.note--crust { right: calc(var(--u) * 20); top: calc(50% - var(--u) * 264); text-align: right; transform: rotate(-4deg); }
.note--juicy { left: calc(var(--u) * 20); top: calc(50% - var(--u) * 58); transform: rotate(-5deg); }

/* Оффер: название и цена-наклейка */
.offer {
  position: absolute;
  left: calc(var(--u) * 18); right: calc(var(--u) * 14);
  bottom: calc(60px + var(--s3) + var(--s5));
  display: flex; align-items: flex-end; justify-content: space-between;
}
.offer__title {
  font-weight: 300;
  font-size: calc(var(--u) * 44);
  line-height: .98;
  letter-spacing: -.005em;
  color: var(--ink);
}
.sticker {
  position: relative;
  width: calc(var(--u) * 142);
  height: calc(var(--u) * 100);
  margin-bottom: calc(var(--u) * -6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ink);
  transform: rotate(-7deg);
  filter: drop-shadow(0 8px 14px rgba(13, 43, 82, .22));
}
.sticker__paper { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sticker__paper path { fill: var(--sky); }
.sticker__burst {
  position: absolute; width: calc(var(--u) * 34); height: calc(var(--u) * 34);
  right: calc(var(--u) * -20); top: calc(var(--u) * -24);
}
.sticker__burst path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.sticker__pre { font: 600 calc(var(--u) * 25)/1 var(--f-hand); margin-bottom: calc(var(--u) * 2); }
.sticker__price { font-size: calc(var(--u) * 50); line-height: .9; font-weight: 400; letter-spacing: -.01em; white-space: nowrap; }

/* Одна главная кнопка: белый текст 24px на синем бренда (крупный текст, 3.2:1) */
.cta {
  position: absolute;
  left: var(--s3); right: var(--s3); bottom: var(--s3);
  height: 60px;
  border-radius: var(--r-pill);
  background: var(--blue);
  color: #fff;
  font-size: 24px; letter-spacing: .01em; font-weight: 400;
  box-shadow: 0 12px 26px rgba(1, 110, 190, .38);
  transition: transform var(--d-fast) var(--e);
}
.cta:active { transform: scale(.98); }

/* Мягкая светлая подложка под названием: на экранах, где кадр обрезается сильнее,
   название ложится на ролл и без неё терялось бы */
.stage::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(62% 20% at 20% 83%, rgba(241, 238, 234, .9), rgba(241, 238, 234, 0));
  pointer-events: none;
}
/* На совсем низких экранах подписи со стрелками налезали бы на логотип и название: убираем их */
@media (max-height: 700px) {
  .note, .doodles { display: none; }
}

/* Одна сцена появления: стрелки рисуются, наклейка прилипает */
@media (prefers-reduced-motion: no-preference) {
  .stage__photo { animation: settle 900ms var(--e) both; }
  .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 520ms var(--e) forwards; }
  .d1  { animation-delay: 380ms; }
  .d1h { animation-delay: 860ms; animation-duration: 180ms; }
  .d2  { animation-delay: 620ms; }
  .d2h { animation-delay: 1100ms; animation-duration: 180ms; }
  .note { animation: fade 420ms var(--e) both; }
  .note--crust { animation-delay: 200ms; }
  .note--juicy { animation-delay: 440ms; }
  .sticker { animation: stick 520ms var(--e-pop) 700ms both; }
}
@keyframes settle { from { transform: scale(1.045); } to { transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stick {
  from { opacity: 0; transform: rotate(-16deg) scale(.7); }
  to   { opacity: 1; transform: rotate(-7deg) scale(1); }
}
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }


/* ================= СТАТУС И СПОСОБ ПОЛУЧЕНИЯ ================= */

.pre { padding: var(--s5) var(--m-x) 0; }
.pre__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }

/* Живой статус по часам Махачкалы */
.status {
  display: inline-flex; align-items: center; gap: var(--s2);
  min-height: 36px;
  padding: 0 14px 0 12px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px; line-height: 1.2;
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--sky-soft);
  white-space: nowrap;
}
.status__dot {
  position: relative;
  width: 8px; height: 8px; flex: none;
  border-radius: 50%;
  background: var(--blue);
}
.status__dot::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  opacity: 0;
  animation: pulse 2.4s var(--e) infinite;
}
.status[data-state="break"] .status__dot { background: transparent; box-shadow: inset 0 0 0 2px var(--muted); }
.status[data-state="closed"] .status__dot { background: var(--muted); }
.status[data-state="break"] .status__dot::after,
.status[data-state="closed"] .status__dot::after { display: none; }
@keyframes pulse {
  0%   { transform: scale(.5); opacity: .7; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

/* «халяль» в рукописном овале */
.pre__halal {
  font: 600 23px/1 var(--f-hand);
  color: var(--ink);
  padding: 4px 14px 6px;
  border: 1.6px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-4deg);
}

/* Переключатель «Самовывоз / Доставка» */
.mode {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: var(--s4);
  padding: var(--s1);
  border-radius: var(--r-pill);
  background: var(--sky-soft);
}
.mode__thumb {
  position: absolute;
  top: var(--s1); bottom: var(--s1); left: var(--s1);
  width: calc(50% - var(--s1));
  border-radius: var(--r-pill);
  background: var(--paper);
  box-shadow: var(--sh-1);
  transition: transform var(--d-base) var(--e);
}
.mode[data-mode="delivery"] .mode__thumb { transform: translateX(100%); }
.mode__opt {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 54px;
  padding: 0 var(--s2);
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: color var(--d-base) var(--e);
}
.mode__opt[aria-checked="true"] { color: var(--ink); }
.mode__title { font-size: 17px; line-height: 20px; }
.mode__sub { font-size: 12.5px; line-height: 16px; white-space: nowrap; }


/* ================= «АКТУАЛЬНОЕ» ================= */

.hl {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s2);
  padding: var(--s6) var(--m-x) var(--s2);
}
.hl__item {
  display: flex; flex-direction: column; align-items: center; gap: var(--s2);
  font-size: 13.5px; line-height: 1.1; letter-spacing: .01em;
  color: var(--ink);
  text-align: center;
}
.hl__ring {
  width: 100%; max-width: 66px; aspect-ratio: 1;
  border-radius: 50%;
  padding: 3px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    linear-gradient(var(--sky), var(--sky)) border-box;
}
.hl__item.is-active .hl__ring {
  background:
    linear-gradient(var(--paper), var(--paper)) padding-box,
    conic-gradient(from 200deg, var(--blue), var(--sky), var(--blue)) border-box;
}
.hl__in {
  width: 100%; height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--sky);
  color: var(--ink);
}
.hl__in img { width: 100%; height: 100%; object-fit: cover; }
.hl__in .ic { width: 80%; height: 80%; stroke-width: 2.3; }
.hl__item--info .hl__in { background: var(--blue); color: #fff; }


/* ================= РАЗДЕЛЫ МЕНЮ ================= */

.sec { padding-top: var(--s7); }
.sec:first-child { padding-top: var(--s6); }
.sec__head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 var(--m-x) var(--s4);
}
.sec__title { font-size: 34px; line-height: 1; font-weight: 300; letter-spacing: -.005em; }
.sec__hint {
  display: inline-flex; align-items: center; gap: var(--s1);
  font: 600 23px/1 var(--f-hand);
  color: var(--muted);
}
.sec__hint svg { width: 34px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Лента «сторис» с фото */
.reel {
  display: flex; gap: var(--s3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 var(--m-x) var(--s2);
  scroll-padding-inline: var(--m-x);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reel::-webkit-scrollbar { display: none; }
.reel:focus-visible { outline-offset: -3px; }

.story {
  position: relative;
  flex: 0 0 72%;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-card);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--ink);
  isolation: isolate;
}
.story__open { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.story::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(13, 43, 82, .95) 0%, rgba(13, 43, 82, .82) 30%, rgba(13, 43, 82, .35) 50%, rgba(13, 43, 82, 0) 64%);
  pointer-events: none;
}
.story__body {
  position: absolute; left: var(--s4); right: var(--s3); bottom: var(--s3);
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: var(--s2) var(--s3);
  color: #fff;
  pointer-events: none;
}
.story__body .add { pointer-events: auto; }
.story__note {
  grid-column: 1 / -1;
  font: 500 23px/1 var(--f-hand);
  color: #fff;
  max-width: 92%;
}
.story__name { font-size: 22px; line-height: 1.1; font-weight: 400; }
.story__price { font-size: 19px; line-height: 1.3; color: var(--sky); }

/* Кнопка «+»: после добавления показывает количество */
.add {
  position: relative;
  width: 48px; height: 48px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: #fff;
  transition: transform var(--d-fast) var(--e), background-color var(--d-base) var(--e);
}
.add .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.add__n { display: none; font-size: 19px; line-height: 1; }
.add.is-in { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--blue); }
.add.is-in .ic { display: none; }
.add.is-in .add__n { display: block; }
.add:active { transform: scale(.92); }

/* Позиции без фото: иконка «от руки» в голубом кружке, как в «актуальном» */
.list { padding: var(--s3) 0 0; }
.item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--m-x);
}
.item__ic {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky); color: var(--ink);
}
.item__ic .ic { width: 48px; height: 48px; stroke-width: 2.2; }
.item__name { font-size: 19px; line-height: 1.2; font-weight: 400; }
.item__qty { font-size: 15px; color: var(--muted); margin-left: 2px; white-space: nowrap; }
.item__desc { font: 500 20px/1.05 var(--f-hand); color: var(--muted); margin-top: 2px; }
.item__price { font-size: 19px; white-space: nowrap; }
.item .add { width: 44px; height: 44px; }

/* Соусы: кнопки-плашки */
.chips {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2);
  padding: var(--s2) var(--m-x) 0;
}
.chips__title {
  grid-column: 1 / -1;
  display: flex; align-items: baseline; gap: var(--s3);
  padding: var(--s3) 0 var(--s1);
  font-size: 19px;
}
.chips__title span { font: 500 20px/1 var(--f-hand); color: var(--muted); }
.chip {
  position: relative;
  min-height: 48px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 var(--s3) 0 var(--s4);
  border-radius: var(--r-pill);
  background: var(--sky-soft);
  color: var(--ink);
  font-size: 16px;
  text-align: left;
}
.chip b { font-weight: 400; color: var(--muted); margin-left: auto; white-space: nowrap; }
.chip .ic { width: 18px; height: 18px; color: var(--blue-ink); stroke-width: 2.4; }
.chip .add__n { display: none; min-width: 18px; font-size: 15px; color: var(--blue-ink); text-align: center; }
.chip.is-in { box-shadow: inset 0 0 0 2px var(--blue); }
.chip.is-in .ic { display: none; }
.chip.is-in .add__n { display: block; }


/* ================= О НАС ================= */

.about {
  margin: var(--s8) var(--m-x) 0;
  padding: var(--s6) var(--s5);
  border-radius: var(--r-card);
  background: var(--sky);
  color: var(--ink);
}
.about__hand { font: 600 26px/1 var(--f-hand); transform: rotate(-3deg); transform-origin: left; }
.about__title { font-size: 30px; line-height: 1.05; font-weight: 300; margin-top: var(--s2); }
.about__quote { font: 500 22px/1.15 var(--f-hand); margin-top: var(--s4); }
.about__text { font-size: 16px; line-height: 1.55; margin-top: var(--s3); }


/* ================= ПОДВАЛ: КАК ПОЛУЧИТЬ ЗАКАЗ ================= */

.info {
  margin-top: var(--s8);
  padding: var(--s7) var(--m-x) calc(var(--s6) + var(--dock-space));
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.info__hand { font: 600 26px/1 var(--f-hand); color: var(--sky); transform: rotate(-3deg); transform-origin: left; }
.info__title { font-size: 36px; line-height: 1.02; font-weight: 300; margin-top: var(--s2); }

.facts { margin-top: var(--s5); display: grid; gap: var(--s4); }
.fact { display: grid; grid-template-columns: 32px 1fr; gap: var(--s3); align-items: start; }
.fact .ic { width: 32px; height: 32px; color: var(--sky); stroke-width: 2.6; }
.fact__main { font-size: 19px; line-height: 1.3; }
.fact__sub { font: 500 20px/1.1 var(--f-hand); color: var(--sky); }
.fact__link {
  display: inline-flex; align-items: center;
  min-height: 44px; margin-top: -6px;
  font: 500 21px/1 var(--f-hand); color: var(--sky);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}

.info__actions { display: grid; gap: var(--s3); margin-top: var(--s6); }
.info__end {
  margin-top: var(--s7); padding-top: var(--s6);
  border-top: 1px solid rgba(172, 204, 229, .22);
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
}
.logo--light { color: #fff; }
.info__insta { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; color: var(--sky); }
.info__demo { font-size: 13px; color: var(--sky); text-align: center; }


/* ================= КНОПКИ ================= */

.btn {
  min-height: 56px; padding: 0 var(--s5);
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center; gap: var(--s3);
  font-size: 19px; letter-spacing: .01em;
  text-align: center;
  transition: transform var(--d-fast) var(--e), opacity var(--d-base) var(--e);
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 22px; height: 22px; }
.btn--main { width: 100%; background: var(--blue-ink); color: #fff; }
.btn--soft { background: var(--sky-soft); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light .ic { color: var(--blue-ink); stroke-width: 2.2; }
.btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(172, 204, 229, .6); color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }


/* ================= НИЖНЯЯ ПАНЕЛЬ ================= */

.dock {
  position: fixed; z-index: 40;
  left: 50%;
  bottom: calc(var(--s3) + env(safe-area-inset-bottom));
  width: calc(100% - var(--s3) * 2);
  max-width: 416px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: var(--s1);
  height: var(--dock-h);
  padding: 0 var(--s2);
  border-radius: var(--r-card);
  background: rgba(13, 43, 82, .97);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--sh-3);
}
.dock__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  height: 56px;
  border-radius: 16px;
  color: var(--sky);
  font-size: 12.5px; line-height: 1; letter-spacing: .02em;
}
.dock__btn .ic { width: 24px; height: 24px; stroke-width: 1.8; }
.dock__btn:active { color: #fff; }

.dock__cart {
  display: flex; align-items: center; gap: var(--s3);
  height: 54px;
  padding: 0 var(--s4) 0 var(--s3);
  border-radius: 18px;
  background: var(--blue-ink);
  color: #fff;
  text-align: left;
  transition: background-color var(--d-fast) var(--e), transform var(--d-fast) var(--e);
}
.dock__cart:active { transform: scale(.98); }
.dock__cart.is-bump { animation: bump var(--d-slow) var(--e-pop); }
.dock__cart[data-empty] { background: rgba(172, 204, 229, .16); }
.dock__cart[data-empty] .dock__go { display: none; }

.dock__bag { position: relative; flex: none; display: grid; }
.dock__bag .ic { width: 26px; height: 26px; stroke-width: 1.8; }
.dock__badge {
  position: absolute; top: -6px; right: -8px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill);
  background: #fff; color: var(--blue-ink);
  font-size: 12px; line-height: 18px; text-align: center;
}
.dock__sum { display: grid; gap: 3px; flex: 1; min-width: 0; }
.dock__total { font-size: 19px; line-height: 1; white-space: nowrap; }
.dock__items { font-size: 12.5px; line-height: 1; white-space: nowrap; opacity: .92; }
.dock__go { font-size: 17px; line-height: 1; letter-spacing: .02em; }


/* ================= НИЖНИЕ ОКНА: БЛЮДО И КОРЗИНА ================= */

.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__shade { position: absolute; inset: 0; background: rgba(6, 24, 52, .5); animation: fade var(--d-base) var(--e); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-width: 440px; margin-inline: auto;
  max-height: 92svh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: var(--s2) var(--m-x) calc(var(--s5) + env(safe-area-inset-bottom));
  border-radius: var(--r-card) var(--r-card) 0 0;
  background: var(--paper);
  animation: rise var(--d-base) var(--e);
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet__grip { display: block; width: 44px; height: 5px; margin: 0 auto var(--s2); border-radius: var(--r-pill); background: var(--sky); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: var(--s1) 0 var(--s3); }
.sheet__title { font-size: 30px; line-height: 1.1; font-weight: 300; }
.sheet__close {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky-soft); color: var(--ink);
}
.sheet__close--float { position: absolute; top: var(--s3); right: var(--s3); z-index: 2; background: rgba(255, 255, 255, .9); box-shadow: var(--sh-1); }

/* Окно блюда */
.sheet__panel--dish { padding: 0 0 calc(var(--s5) + env(safe-area-inset-bottom)); }
.dish__photo { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--sky-soft); }
.dish__photo img { width: 100%; height: 100%; object-fit: cover; }
.dish__body { padding: var(--s5) var(--m-x) 0; display: grid; gap: var(--s2); }
.dish__note { font: 500 23px/1.05 var(--f-hand); color: var(--muted); }
.dish__title { font-size: 30px; line-height: 1.1; font-weight: 300; }
.dish__desc { font-size: 16px; line-height: 1.5; }
.dish__comp { font-size: 15px; line-height: 1.5; color: var(--muted); }
.dish__body .btn { margin-top: var(--s4); }
.dish__note:empty, .dish__desc:empty, .dish__comp:empty { display: none; }

/* Пустая корзина */
.empty { display: grid; gap: var(--s3); padding: var(--s3) 0 var(--s4); }
.empty__hand { font: 600 28px/1 var(--f-hand); color: var(--muted); text-align: center; padding: var(--s4) 0; }

/* Пометка для владельцев */
.owner-note {
  padding: var(--s3) var(--s4);
  border-radius: var(--r-card);
  background: var(--sky-soft);
  font-size: 14px; line-height: 1.45;
}

/* Строки корзины */
.lines { margin-top: var(--s3); }
.line {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center; gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--sky-soft);
}
.line__pic {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--sky); color: var(--ink);
}
.line__pic img { width: 100%; height: 100%; object-fit: cover; }
.line__pic .ic { width: 38px; height: 38px; stroke-width: 2.4; }
.line__name { font-size: 17px; line-height: 1.2; }
.line__price { font-size: 15px; color: var(--muted); margin-top: 2px; }

.qty { display: flex; align-items: center; gap: 2px; }
.qty button {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky-soft); color: var(--ink);
}
.qty .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.qty span { min-width: 24px; text-align: center; font-size: 18px; }

/* Допродажа: соусы и напиток */
.upsell { margin-top: var(--s5); }
.upsell__title { font: 600 23px/1 var(--f-hand); color: var(--muted); margin-bottom: var(--s2); }
.upsell__row {
  display: flex; gap: var(--s2);
  overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--m-x) * -1); padding: 0 var(--m-x) var(--s1);
}
.upsell__row::-webkit-scrollbar { display: none; }
.upsell__row .chip { flex: none; gap: var(--s3); }

/* Форма */
.form { margin-top: var(--s5); display: grid; gap: var(--s4); }
.form .mode { margin-top: 0; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 15px; color: var(--muted); }
.field__opt { font: 500 18px/1 var(--f-hand); margin-left: var(--s1); }
.field__input {
  width: 100%; height: 54px;
  padding: 0 var(--s5);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1 var(--f-main);
  letter-spacing: .01em;
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: #8094AC; }
.field__input:focus { outline: none; border-color: var(--blue-ink); box-shadow: 0 0 0 3px rgba(1, 149, 245, .2); }
.field.is-error .field__input { border-color: var(--error); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.field__error { font-size: 15px; line-height: 1.35; color: var(--error); }
.field__error:empty { display: none; }

.total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: var(--s2);
  border-top: 1px solid var(--sky-soft);
}
.total__label { font-size: 17px; color: var(--muted); }
.total__sum { font-size: 30px; line-height: 1; }
.closed-note {
  padding: var(--s3) var(--s4);
  border-radius: var(--r-card);
  background: #FFF4E0;
  color: #6B4300;
  font-size: 15px; line-height: 1.4;
}
.btn--send { height: 60px; font-size: 20px; }
.form__hint { font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; margin-top: calc(var(--s2) * -1); }

/* После отправки */
.sent {
  padding: var(--s4);
  border-radius: var(--r-card);
  background: var(--sky-soft);
  text-align: center;
}
.sent__title { font-size: 22px; line-height: 1.2; }
.sent__text { font-size: 15px; color: var(--muted); margin-top: var(--s1); }
.sent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); margin-top: var(--s3); }
.sent__actions .btn { min-height: 48px; padding: 0 var(--s3); font-size: 16px; background: var(--paper); }


/* ================= УЗКИЕ ЭКРАНЫ ================= */

@media (max-width: 370px) {
  .demo { font-size: 12px; padding-inline: var(--s3); }
  .hl { gap: var(--s1); padding-inline: var(--s3); }
  .hl__item { font-size: 12.5px; }
  .item { gap: 10px; }
  .item__name, .item__price { font-size: 18px; }
  .mode__sub { font-size: 11.5px; }
  .status { font-size: 14px; }
  .dock { grid-template-columns: 56px 1fr 56px; }
  .dock__cart { gap: var(--s2); padding: 0 var(--s3) 0 var(--s2); }
}

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