/* =====================================================================
   Палитра (правило 60/30/10):
   60% — белый и светло-серый фон, 30% — глубокий синий (бренд, навигация),
   10% — оранжевый (кнопки действия: «В корзину», «Оформить»).
   Жёлтый, зелёный и фиолетовый — смысловые акценты: группы меню,
   бейджи «Хит» / «Без мяса», статусы заказа. Все пары текст/фон ≥ 4.5:1.
   ===================================================================== */
:root {
  --blue: #1D3F8C;
  --blue-dark: #142D66;
  --blue-soft: #EAF0FB;
  --orange: #C84B0C;
  --orange-dark: #A33C07;
  --orange-bright: #F58220;   /* только декор, не для текста */
  --orange-soft: #FFF0E5;
  --yellow: #F6C343;
  --yellow-soft: #FFF6DA;
  --yellow-ink: #6B4E00;
  --green: #1E7A4A;
  --green-soft: #E5F4EB;
  --purple: #6741A8;
  --purple-soft: #F0EAFA;
  --gray-900: #1F2937;
  --gray-600: #5B6472;
  --gray-300: #D5DAE1;
  --gray-200: #E6E9EE;
  --gray-100: #F4F6F9;
  --white: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 45, 102, .06), 0 4px 16px rgba(20, 45, 102, .07);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Comfortaa", "Nunito", system-ui, sans-serif;
  --tabbar-h: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 190px; }
body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--gray-900);
  background: var(--gray-100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.main { flex: 1; }
.section { padding-top: 24px; padding-bottom: 24px; }
.mt { margin-top: 32px; margin-bottom: 16px; }
.muted { color: var(--gray-600); }
.nowrap { white-space: nowrap; }
.small { font-size: 14px; }
.stack { display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.icon { width: 24px; height: 24px; flex: none; }
.link { color: var(--blue); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--blue); color: var(--white);
  padding-top: env(safe-area-inset-top);
}
.topbar__inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.brand__logo { border-radius: 10px; }
.brand__name { font: 700 18px var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: none; gap: 4px; }
.topnav a { color: var(--white); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.topnav a:hover { background: rgba(255, 255, 255, .12); }
.cart-btn { position: relative; color: var(--white); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.cart-btn:hover { background: rgba(255, 255, 255, .12); }
.install-btn { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 14px; font: 700 14px var(--font); cursor: pointer; }
.count-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--orange-bright); color: var(--gray-900);
  font: 800 12px/20px var(--font); text-align: center; border-radius: 999px;
  border: 2px solid var(--blue);
}

/* ---------- Нижняя навигация (мобильная) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white); border-top: 1px solid var(--gray-200);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--gray-600); text-decoration: none; font-size: 12px; font-weight: 700;
}
.tabbar a.is-active { color: var(--blue); }
.tabbar a.is-active .icon { stroke-width: 2.5; }
.tabbar__icon { position: relative; display: grid; }
.tabbar .count-badge { top: -6px; right: -12px; border-color: var(--white); }

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .topnav { display: flex; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font: 800 15px/1.2 var(--font); text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--accent { background: var(--orange); color: var(--white); }
.btn--accent:hover { background: var(--orange-dark); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--ghost { background: var(--white); color: var(--blue); border-color: var(--gray-300); }
.btn--ghost:hover { border-color: var(--blue); }
.btn--lg { min-height: 52px; font-size: 17px; padding: 12px 28px; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn.is-disabled { background: var(--gray-300); color: var(--gray-600); pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: var(--gray-600);
  font-size: 22px; text-decoration: none; cursor: pointer;
}
.icon-btn:hover { background: var(--gray-100); color: var(--orange); }

/* ---------- Бейджи ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.badge--blue { background: var(--blue-soft); color: var(--blue); }
.badge--orange { background: var(--orange-soft); color: var(--orange-dark); }
.badge--yellow { background: var(--yellow); color: var(--gray-900); }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--purple { background: var(--purple-soft); color: var(--purple); }
.badge--gray { background: var(--gray-200); color: var(--gray-600); }

/* ---------- Карточки ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.card--pad { padding: 20px; }
.card__title { font: 700 18px var(--font-display); color: var(--gray-900); text-decoration: none; }
.page-title { font: 700 26px var(--font-display); margin-bottom: 16px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head .page-title { margin-bottom: 0; }
.crumbs { font-size: 14px; margin-bottom: 12px; color: var(--gray-600); }
.crumbs a { color: var(--gray-600); }

/* ---------- Главная ---------- */
.hero { background: var(--blue); color: var(--white); overflow: hidden; }
.hero__inner { position: relative; display: flex; align-items: center; padding-top: 32px; padding-bottom: 40px; min-height: 260px; }
.hero__text { position: relative; z-index: 1; max-width: 560px; }
.eyebrow { color: var(--yellow); font-weight: 800; font-size: 14px; letter-spacing: .02em; margin-bottom: 8px; }
.hero__title { font: 700 clamp(30px, 6vw, 48px)/1.15 var(--font-display); margin-bottom: 12px; }
.hero__lead { font-size: 18px; opacity: .92; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Логотип на тарелке и «канапэ» из любимых цветов вокруг */
.hero__art { position: absolute; right: -70px; top: 46%; width: 250px; height: 250px; transform: translateY(-50%); opacity: .25; }
.hero__plate {
  position: absolute; inset: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); box-shadow: 0 0 0 10px rgba(255, 255, 255, .15), 0 18px 40px rgba(0, 0, 0, .25);
}
.hero__plate img { width: 78%; height: auto; }
.dot { position: absolute; border-radius: 50%; }
.dot--yellow { width: 64px; height: 64px; background: var(--yellow); top: -6px; left: 6px; }
.dot--green { width: 46px; height: 46px; background: #3FB57A; bottom: 4px; left: 0; }
.dot--purple { width: 56px; height: 56px; background: #9B7BD6; bottom: 10px; right: -4px; }
@media (min-width: 640px) { .hero__art { right: -20px; opacity: .5; } }
@media (min-width: 900px) { .hero__art { right: 40px; opacity: 1; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: -20px; position: relative; }
.fact { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; border-top: 4px solid; display: grid; gap: 2px; }
.fact strong { font-size: 16px; }
.fact span { font-size: 13px; color: var(--gray-600); line-height: 1.3; }
.fact--blue { border-color: var(--blue); }
.fact--orange { border-color: var(--orange-bright); }
.fact--green { border-color: var(--green); }
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact { grid-template-columns: auto 1fr; align-items: baseline; gap: 8px; border-top: 0; border-left: 4px solid; }
}

.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section__title { font: 700 22px var(--font-display); margin-bottom: 16px; }
.section__title--orange { color: var(--orange); }
.section__title--green { color: var(--green); }
.section__title--purple { color: var(--purple); }
.section__title--yellow { color: var(--yellow-ink); }
.section__title--blue { color: var(--blue); }
.menu-section .muted { margin: -10px 0 16px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-tile {
  display: grid; gap: 4px; padding: 16px; border-radius: var(--radius);
  text-decoration: none; color: var(--gray-900); background: var(--white); box-shadow: var(--shadow);
  border-bottom: 5px solid; transition: transform .15s;
}
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile__emoji { font-size: 34px; line-height: 1; margin-bottom: 4px; }
.cat-tile__name { font: 700 16px var(--font-display); }
.cat-tile__desc { font-size: 13px; color: var(--gray-600); line-height: 1.35; }
.cat-tile--orange { border-color: var(--orange-bright); }
.cat-tile--green { border-color: var(--green); }
.cat-tile--purple { border-color: var(--purple); }
.cat-tile--yellow { border-color: var(--yellow); }
.cat-tile--blue { border-color: var(--blue); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { display: flex; gap: 12px; background: var(--white); padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps p { color: var(--gray-600); font-size: 14px; }
.steps__n { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--white); }
.steps__n--blue { background: var(--blue); }
.steps__n--purple { background: var(--purple); }
.steps__n--orange { background: var(--orange); }
.steps__n--green { background: var(--green); }

.install-card__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section.install-card .install-card__inner { padding: 20px; border-left: 5px solid var(--purple); }

/* ---------- Каталог ---------- */
.catbar { position: sticky; top: calc(60px + env(safe-area-inset-top)); z-index: 20; background: var(--gray-100); padding: 12px 0 4px; border-bottom: 1px solid var(--gray-200); }
.search { display: flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--gray-200); border-radius: 999px; padding: 0 6px 0 14px; }
.search:focus-within { border-color: var(--blue); }
.search__icon { color: var(--gray-600); width: 20px; height: 20px; }
.search input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--font); padding: 10px 0; outline: none; }
.toggle { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap; cursor: pointer; }
.toggle input { accent-color: var(--green); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; padding: 7px 14px; border-radius: 999px; font: 700 14px var(--font);
  background: var(--white); color: var(--gray-900); text-decoration: none; border: 2px solid var(--gray-200); cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip--active { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip--orange { border-color: #F9C49A; }
.chip--green { border-color: #A9D9BE; }
.chip--purple { border-color: #CDBDEB; }
.chip--yellow { border-color: #F6DC8E; }
.chip--blue { border-color: #B5C6EA; }
.filter-note { margin-top: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

.product { display: flex; flex-direction: column; overflow: hidden; }
.product__link { color: inherit; text-decoration: none; flex: 1; }
.product__body { padding: 12px 14px 4px; }
.product__name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.product__comp { font-size: 13px; color: var(--gray-600); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__foot { padding: 8px 14px 14px; display: grid; gap: 10px; }
@media (max-width: 520px) {
  .product__body { padding: 10px 10px 2px; }
  .product__name { font-size: 14px; }
  .product__comp { font-size: 12px; }
  .product__foot { padding: 6px 10px 10px; }
  .product .btn { font-size: 13px; padding: 8px 10px; }
  .product .price__unit { display: block; }
}

.price { font-size: 18px; font-weight: 800; }
.price--lg { font-size: 26px; margin: 4px 0 16px; }
.price__unit { font-size: 13px; font-weight: 600; color: var(--gray-600); }

.thumb { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__emoji { font-size: 56px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.thumb--lg { border-radius: var(--radius); }
.thumb--lg .thumb__emoji { font-size: 120px; }
.thumb__badges { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.thumb--orange { background: radial-gradient(circle at 30% 20%, #FFE3CC, var(--orange-soft)); }
.thumb--green { background: radial-gradient(circle at 30% 20%, #CDEBD9, var(--green-soft)); }
.thumb--purple { background: radial-gradient(circle at 30% 20%, #E0D3F5, var(--purple-soft)); }
.thumb--yellow { background: radial-gradient(circle at 30% 20%, #FFE9A8, var(--yellow-soft)); }
.thumb--blue { background: radial-gradient(circle at 30% 20%, #D4E0F7, var(--blue-soft)); }

/* Счётчик количества */
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 4px; background: var(--orange-soft); border-radius: 999px; padding: 3px; }
.stepper__btn {
  flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: var(--white); color: var(--orange); font: 800 22px/1 var(--font); cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.stepper__btn:hover { background: var(--orange); color: var(--white); }
.stepper__field { display: flex; align-items: baseline; justify-content: center; gap: 3px; min-width: 0; }
.stepper__input {
  width: 3.2ch; min-width: 0; border: 0; background: transparent; text-align: right;
  font: 800 17px var(--font); color: var(--gray-900); -moz-appearance: textfield; appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__unit { font-size: 13px; color: var(--gray-600); font-weight: 700; }
.buy.is-busy { opacity: .6; pointer-events: none; }

/* Карточка товара */
.detail { display: grid; gap: 16px; }
@media (min-width: 800px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.detail__title { font: 700 26px var(--font-display); }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0 0 16px; }
.specs dt { color: var(--gray-600); font-size: 14px; }
.specs dd { margin: 0; }
.prose { margin-bottom: 16px; color: var(--gray-600); }

/* ---------- Корзина ---------- */
.cart-list { list-style: none; margin: 0 0 16px; padding: 0; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px; align-items: start; }
.cart-line + .cart-line { border-top: 1px solid var(--gray-200); }
.cart-line .thumb { border-radius: 12px; aspect-ratio: 1; }
.cart-line .thumb__emoji { font-size: 32px; }
.cart-line .thumb__badges { display: none; }
.cart-line__main { display: grid; gap: 6px; min-width: 0; }
.cart-line__main .stepper { max-width: 180px; }
.cart-line__name { font-weight: 800; color: var(--gray-900); text-decoration: none; }
.cart-line__side { display: grid; justify-items: end; gap: 4px; white-space: nowrap; }

.summary { display: grid; gap: 12px; }
.summary__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 8px; }
.summary__total { font-size: 24px; }
.mini-list { list-style: none; margin: 8px 0 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--gray-200); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { color: var(--gray-900); font-weight: 700; text-decoration: none; }
details summary { cursor: pointer; font-weight: 700; color: var(--blue); }

/* ---------- Формы ---------- */
fieldset { border: 0; margin: 0; min-width: 0; }
fieldset.card--pad { padding: 20px; }
legend { float: left; width: 100%; font: 700 18px var(--font-display); margin-bottom: 12px; padding: 0; }
legend + * { clear: left; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.req { color: var(--orange); }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%; font: 16px var(--font); color: var(--gray-900);
  padding: 11px 14px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.field__help { color: var(--gray-600); font-size: 13px; }
.field__help ul { margin: 4px 0 0; padding-left: 18px; }
.field__err { color: var(--orange-dark); font-weight: 700; font-size: 13px; }
.field--error input, .field--error textarea { border-color: var(--orange); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--gray-100); padding: 4px; border-radius: 999px; margin-bottom: 14px; }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; }
.segmented__opt span { display: block; text-align: center; padding: 9px; border-radius: 999px; font-weight: 800; color: var(--gray-600); cursor: pointer; }
.segmented__opt input:checked + span { background: var(--blue); color: var(--white); }
.segmented__opt input:focus-visible + span { outline: 3px solid var(--yellow); }

.notice { display: block; padding: 12px 16px; border-radius: var(--radius-sm); border-left: 4px solid; text-decoration: none; color: var(--gray-900); margin-bottom: 12px; }
.notice--yellow { background: var(--yellow-soft); border-color: var(--yellow); }
.notice--orange { background: var(--orange-soft); border-color: var(--orange); }
.notice--blue { background: var(--blue-soft); border-color: var(--blue); }

.auth { display: grid; place-items: center; }
.auth__card { width: 100%; max-width: 440px; }
.auth__card > .muted { margin: -8px 0 16px; }
.auth__links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.auth__card > .auth__note { margin: 16px 0 0; }
.test-code {
  display: grid; justify-items: center; gap: 4px; margin-bottom: 16px; padding: 14px;
  background: var(--yellow-soft); border: 2px dashed var(--yellow); border-radius: var(--radius-sm);
}
.test-code__label { font-size: 13px; font-weight: 700; color: var(--yellow-ink); }
.test-code__value { font: 800 32px/1.1 var(--font); letter-spacing: .35em; padding-left: .35em; color: var(--gray-900); }
.field input.code-input { font-size: 28px; font-weight: 800; letter-spacing: .5em; text-align: center; padding-left: calc(14px + .5em); }
.link-btn { background: none; border: 0; padding: 4px 0; font: 700 14px var(--font); color: var(--blue); cursor: pointer; }
.link-btn:disabled { color: var(--gray-600); cursor: default; }
.readonly { padding: 11px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Кабинет и заказы ---------- */
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.profile-head .page-title { margin-bottom: 0; }
.avatar { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: var(--white); font: 700 26px var(--font-display); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 2px; padding: 16px; border-radius: var(--radius); color: var(--white); text-decoration: none; }
.tile span { font-size: 13px; opacity: .9; }
.tile--blue { background: var(--blue); }
.tile--purple { background: var(--purple); }
.tile--orange { background: var(--orange); }
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.order-row:hover { box-shadow: 0 0 0 2px var(--blue-soft), var(--shadow); }
.order-row__side { display: grid; justify-items: end; gap: 6px; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.progress { list-style: none; display: flex; padding: 0; margin: 8px 0 20px; counter-reset: step; }
.progress__step { flex: 1; min-width: 0; padding-inline: 2px; overflow-wrap: anywhere; line-height: 1.2; text-align: center; font-size: 11px; font-weight: 700; color: var(--gray-600); position: relative; padding-top: 30px; }
.progress__step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--gray-300); color: var(--white); line-height: 24px; font-size: 12px; z-index: 1;
}
.progress__step::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--gray-300); }
.progress__step:first-child::after { display: none; }
.progress__step:has(~ .is-current)::before, .progress__step.is-current::before { background: var(--green); }
.progress__step:has(~ .is-current)::after, .progress__step.is-current::after { background: var(--green); }
.progress__step.is-current { color: var(--green); }

/* ---------- Баллы при оформлении ---------- */
.points-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--yellow-soft); border: 2px solid var(--yellow); cursor: pointer; }
.points-toggle input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.points-toggle .muted { display: block; }

/* ---------- Бонусная карта в кабинете ---------- */
.loyalty { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .loyalty { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.loyalty__card .card__title { display: block; margin-bottom: 12px; }
.loyalty__hint { text-align: center; margin-top: 10px; }
.loyalty__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.loyalty__label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-600); }
.loyalty__value { font-size: 26px; }
.loyalty__subtitle { font: 700 16px var(--font-display); margin-top: 16px; }
.loyalty__date { display: block; }
.points-plus { color: var(--green); }
.points-minus { color: var(--orange-dark); }

/* ---------- Кухня ---------- */
.daybar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.daybar input { font: 16px var(--font); padding: 8px 12px; border: 2px solid var(--gray-300); border-radius: var(--radius-sm); }
.daybar__label { font: 700 18px var(--font-display); margin-left: 8px; }
.kitchen { display: grid; gap: 16px; align-items: start; }
@media (min-width: 900px) { .kitchen { grid-template-columns: 340px 1fr; } .kitchen > .card { position: sticky; top: 76px; } }
.status-form { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.status-form .chip { font-size: 13px; padding: 5px 12px; }

/* ---------- Пустые состояния, тосты, подвал ---------- */
.empty { text-align: center; padding: 48px 16px; display: grid; justify-items: center; gap: 12px; }
.empty__emoji { font-size: 56px; }
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); z-index: 50; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast { background: var(--gray-900); color: var(--white); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; animation: toast-in .25s ease-out; border-left: 5px solid var(--blue); }
.toast--success { border-left-color: #3FB57A; }
.toast--warning, .toast--error { border-left-color: var(--orange-bright); }
.toast--info { border-left-color: var(--yellow); }
.toast.is-hiding { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.footer { padding: 24px 0; color: var(--gray-600); font-size: 14px; border-top: 1px solid var(--gray-200); margin-top: 24px; }
.footer p + p { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
