/* ПловРФ — тёмная сцена, графит и оранжевый. Витрина сайта. */
:root {
  --primary: #ff4a1f;
  --primary-hover: #db401b;
  --on-primary: #15100e;
  --primary-soft: #38201c;
  --primary-rgb: 255, 74, 31;
  --media-bg: #2b2c2f;
  --input-bg: #1d1e20;
  --footer-bg: #101113;
  --hdr-bg: rgba(24, 25, 27, .92);
  --hdr-bg-solid: rgba(24, 25, 27, .97);
  --primary-ink: #ff8a63;
  --primary-ink-soft: #ffc4b0;
  --secondary: #eff0f1;
  --on-secondary: #18191b;
  --secondary-soft: #222427;
  --secondary-text: #eff0f1;
  --bg: #18191b;
  --surface: #222427;
  --border: #3a3b3e;
  --ink: #eff0f1;
  --muted: #9c9ea3;
  --link: #ff7a4a;
  --inverse-bg: #eff0f1;
  --inverse-ink: #18191b;
  --danger: #ff6b5a;
  --ok: #6ed39a;
  --font-display: 'Oswald', system-ui, sans-serif;
  --font-text: 'Inter', system-ui, sans-serif;
  --w-display: 500;
  --w-text: 400;
  --t-h1: clamp(38px, 5vw, 68px);
  --t-h2: clamp(28px, 3vw, 44px);
  --t-h3: clamp(19px, 1.6vw, 23px);
  --t-lead: clamp(17px, 1.4vw, 21px);
  --t-body: 16px;
  --t-small: 14px;
  --lh-tight: 1.06;
  --lh-body: 1.55;
  --track-display: -0.01em;
  --radius: 8px;
  --radius-lg: 18px;
  --measure: 62ch;
  --line: calc(var(--t-body) * var(--lh-body));
  --s-1: calc(var(--line) * .25);
  --s-2: calc(var(--line) * .5);
  --s-3: calc(var(--line) * .75);
  --s-4: var(--line);
  --s-5: calc(var(--line) * 1.5);
  --s-6: calc(var(--line) * 2);
  --s-7: calc(var(--line) * 3);
  --s-8: clamp(calc(var(--line) * 3), 7vw, calc(var(--line) * 5));
  --space-section: var(--s-8);
  --pad-box: var(--s-4);
  --gutter: clamp(var(--s-3), 4vw, var(--s-6));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.site { padding-bottom: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-weight: var(--w-text); font-size: var(--t-body);
  line-height: var(--lh-body); overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: var(--w-display); line-height: var(--lh-tight); letter-spacing: var(--track-display); margin: 0; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 var(--s-3); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--link); text-underline-offset: .18em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
img, svg, video, canvas, iframe { display: block; max-width: 100%; height: auto; }
:where(figure, picture, img, video, canvas, iframe, svg, table, pre) { min-width: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* админка и вход остаются в светлой бумажной гамме */
body.admin, body.auth {
  --primary: #062b8a;
  --primary-hover: #29499a;
  --on-primary: #e9dfcd;
  --primary-soft: #c7c2be;
  --secondary: #062b8a;
  --on-secondary: #e6dbc7;
  --secondary-soft: #ddd0b9;
  --secondary-text: #062b8a;
  --bg: #e6dbc7;
  --surface: #ddd0b9;
  --border: #c2bfbd;
  --ink: #062b8a;
  --muted: #3555a5;
  --link: #062b8a;
  --danger: #8a1d06;
  --ok: #1f6b3a;
  --font-display: 'Alegreya', Georgia, serif;
  --font-text: 'Alegreya Sans', system-ui, sans-serif;
  --w-display: 700;
  --t-h1: clamp(38px, 5.00vw, 72px);
  --t-h2: clamp(27px, 2.50vw, 36px);
  --t-h3: clamp(20px, 1.6vw, 24px);
  --t-lead: clamp(18px, 1.5vw, 22px);
  --t-body: 17px;
  --t-small: 14px;
  --lh-tight: 1.08;
  --track-display: -0.01em;
  --radius-lg: 4px;
}


/* ---------- кабинет и вход: светлые поля поверх тёмных стилей витрины ---------- */
body.admin input[type="text"], body.admin input[type="tel"], body.admin input[type="number"],
body.admin input[type="date"], body.admin input[type="time"], body.admin input[type="password"],
body.admin input[type="search"], body.admin select, body.admin textarea,
body.auth input[type="text"], body.auth input[type="tel"], body.auth input[type="password"] {
  background: #f7efe0;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
body.admin input::placeholder, body.auth input::placeholder { color: #7e8aa8; }
body.admin select, body.auth select {
  appearance: auto;
  -webkit-appearance: auto;
  background-image: none;
  background-color: #f7efe0;
  padding-right: 10px;
}
body.admin input:focus, body.admin select:focus, body.admin textarea:focus,
body.auth input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6, 43, 138, .16); }
body.admin .status-pill.st-new { color: #a83d10; }
body.admin .status-pill.st-accepted, body.admin .status-pill.st-cooking { color: #8a5a06; }
body.admin .status-pill.st-ready, body.admin .status-pill.st-done { color: #1f6b3a; }
body.admin .status-pill.st-shipping { color: #6b2a8a; }
body.admin .status-pill.st-canceled { color: #8a1d06; }
body.admin dialog .card, body.admin dialog input, body.admin dialog textarea { background: #f7efe0; color: var(--ink); }

/* ---------- каркас ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 62ch; }
/* единый ритм между блоками: одинаковый отступ сверху у каждой секции, без двойных зазоров */
section { padding-block: 0; }
section:not(.hero) { margin-top: var(--space-section); }
.hero { margin-top: 0; }
.menu-scope { margin-top: var(--space-section); }
footer { margin-top: var(--space-section); }
#install { padding-bottom: 0; }
.eyebrow { font-family: var(--font-text); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 0 0 var(--s-2); }
.lead { font-size: var(--t-lead); line-height: 1.5; max-width: var(--measure); color: var(--ink); }
.muted { color: var(--muted); }
.center { text-align: center; }
.hide { display: none !important; }
.nowrap { white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: 0;
  background: var(--primary); color: var(--on-primary); border: 1.5px solid var(--primary);
  cursor: pointer; text-decoration: none; transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.btn-wide { width: 100%; }
.btn-icon { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; font-size: 20px; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 60; padding-top: var(--app-top, 0px); transition: transform .22s ease; background: var(--hdr-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in { display: flex; align-items: center; gap: var(--s-3); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.brand-logo img { width: 38px; height: 38px; object-fit: contain; display: block; }
.brand b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1; letter-spacing: .01em; }
.brand span { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.live { display: none; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.live b { color: var(--ink); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(110, 211, 154, .15); }
.hdr-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-phone { display: none; font-weight: 600; color: var(--ink); text-decoration: none; font-size: 15px; }
.hdr .btn { min-height: 40px; padding: 6px 16px; font-size: 14px; }
.hdr-cart b { font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .live { display: flex; } .hdr-phone { display: inline; } }

/* ---------- первый экран ---------- */
.hero { padding-block: var(--s-4) 0; }
.hero-top { display: grid; gap: var(--s-3); }
@media (min-width: 1000px) { .hero-top { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: stretch; } }
.hero-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); min-height: 380px; display: flex; align-items: flex-end; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 15, 16, .15) 0%, rgba(15, 15, 16, .55) 55%, rgba(15, 15, 16, .92) 100%); }
.hero-body { position: relative; z-index: 1; padding: var(--s-5) var(--s-4) var(--s-4); width: 100%; color: #fff; }
.hero-body h1 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: var(--s-2); max-width: 18ch; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.hero-body p { color: rgba(255, 255, 255, .88); max-width: 44ch; font-size: 15px; }
.hero-buy { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); flex-wrap: wrap; }
.hero-buy b { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: #fff; }
.hero-buy b small { font-family: var(--font-text); font-size: 13px; color: rgba(255, 255, 255, .72); font-weight: 400; }
.badge { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(var(--primary-rgb), .16); color: var(--primary-ink); border: 1px solid rgba(var(--primary-rgb), .35); margin-bottom: var(--s-3); }
.hero-side { display: grid; gap: var(--s-3); grid-template-rows: 1fr auto; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-2); }
.info-card h3 { font-size: 20px; }
.info-card p { color: var(--muted); font-size: 14px; }
.info-stats { display: flex; gap: var(--s-4); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--border); flex-wrap: wrap; }
.info-stats div b { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 500; line-height: 1; }
.info-stats div span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.info-card .more { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); font-size: 14px; }
.info-card .more b { font-family: var(--font-display); font-size: 22px; color: var(--primary); font-weight: 500; }

/* ---------- панель меню ---------- */
.menu-scope { position: relative; }
/* липкая только внутри блока меню: над «Отзывы» и ниже уже не висит */
.menu-bar { position: static; z-index: 45; background: var(--hdr-bg-solid); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding-block: var(--s-2); }
.menu-bar + .wrap { padding-top: var(--s-3); }
.menu-bar-in { display: grid; gap: var(--s-2); }
.menu-row { display: flex; gap: var(--s-2); align-items: center; }
.menu-row .seg { flex: 1 1 auto; max-width: 460px; }
.menu-row .seg button { flex: 1 1 0; }
.seg { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13.5px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.chips button span { color: var(--muted); font-size: 12px; }
.chips button[aria-pressed="true"] { border-color: var(--primary); color: var(--primary-ink); background: var(--primary-soft); }
.chips button[aria-pressed="true"] span { color: var(--primary-ink); }


/* ---------- мобильная шапка с полосой меню ---------- */
.burger { display: grid; gap: 4px; align-content: center; justify-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: transparent; cursor: pointer; flex: 0 0 auto; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
@media (min-width: 900px) { .burger { display: none; } }
.desk-only { display: none; }
@media (min-width: 900px) { .desk-only { display: inline-flex; } }
.cart-icon { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.cart-icon svg { width: 21px; height: 21px; }
.cart-badge { position: absolute; top: -6px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
@media (min-width: 900px) { .cart-icon { display: none; } }

.topnav { border-top: 1px solid var(--border); }
.topnav-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.topnav-in::-webkit-scrollbar { display: none; }
.topnav a, .topnav button { position: relative; flex: 0 0 auto; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 11px 12px 13px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.topnav a:hover, .topnav button:hover { color: var(--ink); }
.topnav a.active, .topnav button.active { color: var(--ink); }
/* активный раздел — отдельная полоска, не сливается с рамкой шапки */
.topnav a.active::after, .topnav button.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--primary);
}

.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer-back { position: absolute; inset: 0; background: rgba(8, 8, 9, .6); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(320px, 86vw); background: var(--bg); border-right: 1px solid var(--border); padding: var(--s-4); display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-3); }
.drawer-head b { font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.drawer-panel a { color: var(--ink); text-decoration: none; padding: 12px 8px; border-radius: 10px; font-weight: 500; }
.drawer-panel a:hover { background: var(--surface); }
.drawer-panel hr { border: 0; border-top: 1px solid var(--border); margin: var(--s-2) 0; width: 100%; }

.promos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: var(--s-3) 0 4px; scrollbar-width: none; }
.promos::-webkit-scrollbar { display: none; }
.promo { flex: 0 0 142px; scroll-snap-align: start; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); padding: 0; cursor: pointer; text-align: left; color: var(--ink); text-decoration: none; }
.promo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.promo span { display: block; padding: 9px 11px 11px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.promo:hover { border-color: var(--primary); }
@media (min-width: 900px) {
  .promos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s-3); }
  .promo { flex: none; }
}

/* ---------- карточки блюд ---------- */
.cat-block { margin-top: var(--s-6); }
.cat-block > h2 { font-size: var(--t-h2); margin-bottom: var(--s-3); }
.cat-count { color: var(--muted); font-family: var(--font-text); font-size: 14px; font-weight: 500; margin-left: 8px; }
.grid-dishes { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .grid-dishes { gap: var(--s-3); grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-dishes { grid-template-columns: repeat(3, 1fr); } }

.card-dish { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .18s, transform .18s; }
.card-dish:hover { border-color: #55565a; }
.dish-media { position: relative; background: var(--media-bg); }
.dish-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.dish-tag { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(15, 15, 16, .72); color: #e7e7e9; border: 1px solid rgba(255, 255, 255, .12); }
.dish-tag.hot { background: rgba(var(--primary-rgb), .9); color: var(--on-primary); border-color: transparent; }
.dish-tag + .dish-tag { left: auto; right: 10px; }
.dish-info { display: flex; flex-direction: column; gap: 6px; padding: var(--s-3); flex: 1; }
.dish-info h3 { font-size: 18px; line-height: 1.25; }
.dish-info p { font-size: 13.5px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-buy { display: flex; align-items: end; justify-content: space-between; gap: var(--s-2); margin-top: auto; padding-top: var(--s-2); }
.price b { font-family: var(--font-display); font-size: 24px; font-weight: 500; color: var(--primary); line-height: 1; }
.price span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.qty-box { display: inline-flex; align-items: center; border: 1px solid var(--primary); border-radius: 999px; overflow: hidden; background: transparent; }
.qty-box button { width: 36px; height: 38px; border: 0; background: transparent; color: var(--primary); font-size: 18px; cursor: pointer; }
.qty-box button:hover { background: rgba(var(--primary-rgb), .12); }
.qty-box span { min-width: 26px; text-align: center; font-weight: 600; font-size: 15px; }

/* ---------- секции ---------- */
.split { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); } }
.split img { border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps { display: grid; gap: var(--s-3); counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; gap: var(--s-4); } }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s-2); align-items: start; padding: var(--s-3); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-size: 26px; line-height: 1; color: var(--primary); }
.steps strong { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.steps span { font-size: 13.5px; color: var(--muted); }

.reviews { display: grid; gap: var(--s-3); }
@media (min-width: 800px) { .reviews { grid-template-columns: 1fr 1.2fr; gap: var(--s-5); align-items: start; } }
.review-links { display: grid; gap: var(--s-2); }
.review-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--s-4); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; font-weight: 500; }
.review-links a:hover { border-color: var(--primary); }
.rating { display: flex; align-items: baseline; gap: 10px; }
.rating b { font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1; }
.rating span { color: var(--muted); font-size: 14px; }

/* ---------- отслеживание ---------- */
.track-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s-4); }
.track-form { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
@media (min-width: 640px) { .track-form { grid-template-columns: 1fr 1fr auto; align-items: end; } .track-form .field { margin-bottom: 0; } }

/* ---------- поля ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-3); }
.field > label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field .req { color: var(--primary); }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"],
input[type="password"], input[type="datetime-local"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: var(--input-bg);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 14px; min-height: 46px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.err { color: var(--danger); font-size: 13px; min-height: 1.2em; }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 var(--s-3); }
@media (min-width: 560px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); margin-bottom: var(--s-3); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); flex: 0 0 auto; }

/* ---------- корзина ---------- */
.cartbar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 140%); z-index: 70; width: calc(100% - 24px); max-width: 560px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.cartbar.on { transform: translate(-50%, 0); }
.cart-pill { display: flex; align-items: center; gap: var(--s-2); background: var(--primary); color: var(--on-primary); border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }
.cart-pill .count { min-width: 26px; height: 26px; border-radius: 50%; background: rgba(21, 16, 14, .22); color: var(--on-primary); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.cart-pill .label { font-weight: 600; font-size: 15px; }
.cart-pill .sum { font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }
.cart-pill .go { background: var(--inverse-bg); color: var(--inverse-ink); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; transition: transform .18s ease, filter .18s ease; }
.cart-pill .go:hover { filter: brightness(.88); transform: translateY(-1px); }

.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.on { display: block; }
.modal-back { position: absolute; inset: 0; background: rgba(8, 8, 9, .72); backdrop-filter: blur(3px); }
.modal-card { position: relative; margin: 0 auto; max-width: 940px; background: var(--bg); max-height: 100dvh; overflow-y: auto; padding: var(--s-4); border: 1px solid var(--border); }
@media (min-width: 720px) { .modal-card { margin-top: 3vh; max-height: 94dvh; border-radius: var(--radius-lg); padding: var(--s-5); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.modal-close { border: 1px solid var(--border); background: transparent; border-radius: 50%; width: 42px; height: 42px; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.modal-close:hover { border-color: var(--primary); color: var(--primary); }
.checkout-grid { display: grid; gap: var(--s-4); }
@media (min-width: 780px) { .checkout-grid { grid-template-columns: 1.1fr .9fr; gap: var(--s-5); } }
.summary { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: var(--pad-box); align-self: start; position: sticky; top: 0; }
.summary-line { display: flex; justify-content: space-between; gap: var(--s-2); font-size: 14px; padding-block: 4px; color: var(--muted); }
.summary-line span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; gap: var(--s-2); border-top: 1px solid var(--border); margin-top: var(--s-2); padding-top: var(--s-2); font-size: 17px; font-weight: 600; }
.summary-total span:last-child { color: var(--primary); font-family: var(--font-display); font-size: 24px; font-weight: 500; }
.cart-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-2); align-items: center; padding-block: 10px; border-bottom: 1px solid var(--border); }
.cart-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--media-bg); }
.cart-text { min-width: 0; }
.cart-text strong { font-size: 14.5px; font-weight: 600; display: block; }
.cart-text small { color: var(--muted); font-size: 12.5px; }
.cart-empty { color: var(--muted); font-size: 14px; }

/* ---------- успех ---------- */
.success { text-align: center; padding: var(--s-5) var(--s-2); }
.success .tick { width: 64px; height: 64px; margin: 0 auto var(--s-3); border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 30px; }
.success .num { font-family: var(--font-display); font-size: clamp(44px, 8vw, 68px); line-height: 1; margin-block: var(--s-2); color: var(--primary); }
.success .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: center; margin-top: var(--s-4); }

/* ---------- приложение ---------- */
.install-grid { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 760px) { .install-grid { grid-template-columns: 1fr 1fr; } }
.install-grid h3 { margin-bottom: var(--s-2); }

/* ---------- статусы и таймлайн ---------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; }
.st-new { color: var(--primary-ink); }
.st-accepted, .st-cooking { color: #ffc46b; }
.st-ready, .st-done { color: var(--ok); }
.st-shipping { color: #b79cff; }
.st-canceled { color: var(--danger); }
.timeline { display: grid; gap: 0; margin-top: var(--s-4); }
.tl-step { display: grid; grid-template-columns: 34px 1fr; gap: var(--s-3); position: relative; padding-bottom: var(--s-4); }
.tl-step:not(:last-child)::before { content: ""; position: absolute; left: 16px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.tl-step.done:not(:last-child)::before { background: var(--primary); }
.tl-dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; background: var(--surface); font-size: 14px; color: var(--muted); }
.tl-step.done .tl-dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tl-step.current .tl-dot { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .2); }
.tl-step strong { font-size: 16px; font-weight: 600; display: block; }
.tl-step span { font-size: 13px; color: var(--muted); }

/* ---------- подвал ---------- */
.footer { background: var(--footer-bg); border-top: 1px solid var(--border); padding-block: var(--s-6) var(--s-5); margin-top: var(--s-6); }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer h3 { font-family: var(--font-text); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-2); }
.footer p, .footer li { font-size: 14px; color: var(--muted); }
.footer li + li { margin-top: 6px; }
.footer a { color: var(--ink); }
.footer .fine { font-size: 11.5px; color: var(--muted); opacity: .9; margin-top: var(--s-4); line-height: 1.6; }

/* ---------- прочее ---------- */
.toast { position: fixed; z-index: 200; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--inverse-bg); color: var(--inverse-ink); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* компактные карточки на телефоне */
@media (max-width: 600px) {
  .dish-info { padding: 10px; gap: 4px; }
  .dish-info h3 { font-size: 14.5px; }
  .dish-info p { display: none; }
  .price b { font-size: 19px; }
  .price span { font-size: 11px; }
  .dish-buy { gap: 6px; }
  .dish-buy .btn { min-height: 34px; padding: 4px 10px; font-size: 12.5px; }
  .qty-box button { width: 30px; height: 34px; }
  .qty-box span { min-width: 20px; font-size: 13px; }
  .dish-tag { font-size: 10.5px; padding: 3px 8px; }
  .hero-card { min-height: 300px; }
  .hero-body { padding: var(--s-4) var(--s-3) var(--s-3); }
  .hero-body h1 { font-size: 26px; }
  .badge { font-size: 11px; padding: 4px 10px; white-space: normal; }
  .hero-body p { font-size: 13.5px; }
  .hero-buy b { font-size: 24px; }
  .cat-block > h2 { font-size: 22px; }
}

/* плашка «доступно обновление приложения» */
.update-bar { position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 150; width: calc(100% - 24px); max-width: 560px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--primary); border-radius: 14px; padding: 10px 12px; box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.update-bar .txt { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.update-bar .txt b { display: block; font-size: 14px; margin-bottom: 2px; }
.update-bar .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.update-bar .x { border: 0; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }

section[id], .track-box { scroll-margin-top: 118px; }
#menu { scroll-margin-top: var(--hdr-h, 118px); }
.cat-block { scroll-margin-top: 250px; }
@media (max-width: 900px) { .cat-block { scroll-margin-top: 310px; } }

/* офлайн-предупреждение */
.offline-note { margin-top: var(--s-3); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.4;
  background: rgba(var(--primary-rgb), .12); border: 1px solid rgba(var(--primary-rgb), .45); color: var(--primary-ink-soft); }
.offline-note b { color: var(--primary-ink); }


/* сжатая полоса меню при прокрутке: бургер + категории, как в мобильных приложениях */
.menu-burger { display: none; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); border-color: var(--primary); flex: 0 0 auto; }
.menu-burger span { background: var(--on-primary); width: 16px; }
.menu-bar.is-compact { position: fixed; left: 0; right: 0; top: var(--app-top, 0px); z-index: 58; padding-block: 7px; padding-top: calc(7px + env(safe-area-inset-top, 0px)); border-top: 0; }
.menu-bar.is-compact .menu-burger { display: grid; align-items: center; justify-items: center; }
.menu-bar.is-compact .menu-bar-in { display: flex; align-items: center; gap: 10px; }
.menu-bar:not(.is-compact) .menu-burger { display: none; }
.menu-bar.is-compact .menu-row { display: none; }
.menu-bar.is-compact .chips { display: flex; flex: 1; padding-bottom: 0; }

/* иконка личного кабинета в шапке */
.user-icon { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.user-icon svg { width: 21px; height: 21px; }
.user-icon:hover { border-color: var(--primary); color: var(--primary); }
.user-dot { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.linkish { border: 0; background: transparent; color: var(--link); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; }
#g-orders .g-order { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); }
#g-orders .g-order small { color: var(--muted); display: block; font-size: 12px; }
#g-orders .g-order b { font-weight: 600; }


/* панель «Меню» по бургеру */
.drawer { position: fixed; inset: 0; z-index: 120; }
.drawer-back { position: absolute; inset: 0; background: rgba(8, 8, 9, .62); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(340px, 88vw); background: var(--bg);
  border-right: 1px solid var(--border); padding: 18px 18px 24px; display: flex; flex-direction: column; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-head h2 { font-size: 24px; margin: 0; }
.drawer-close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.drawer-login { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 18px;
  padding: 16px 20px; border: 0; border-radius: 14px; background: var(--primary); color: var(--on-primary);
  font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; }
.drawer-login svg { width: 22px; height: 22px; }
.drawer-link { display: block; padding: 15px 2px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 500;
  border-bottom: 1px solid var(--border); }
.drawer-link:active { color: var(--primary); }
.drawer-foot { margin-top: auto; padding-top: 22px; }
.drawer-phone { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 500; color: var(--ink); text-decoration: none; margin-bottom: 6px; }
.drawer-social { display: flex; gap: 8px; margin-top: 12px; }
.drawer-social a { display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 12px; border-radius: 10px;
  background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; }


/* липкая строка разделов: появляется, когда шапка меню ушла вверх */
.catbar { position: sticky; top: 0; z-index: 65; display: block; padding-top: var(--app-top, 0px);
  background: var(--hdr-bg-solid); border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px); }
.catbar-in { display: flex; align-items: center; gap: 10px; padding-block: 7px; }
.catbar-burger { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); border-color: var(--primary); flex: 0 0 auto; display: grid; align-items: center; justify-items: center; }
.catbar-burger span { background: var(--on-primary); width: 16px; }
.catbar-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.catbar-pills::-webkit-scrollbar { display: none; }
.catbar-pills button { flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 9px 15px; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.catbar-pills button[aria-pressed="true"] { background: transparent; border-color: var(--primary); color: var(--primary-ink); }

/* категории живут в липкой строке, в обычной полосе оставляем только переключатель */
.menu-bar .chips { display: none; }
.menu-bar .menu-row { display: flex; }
.menu-bar .seg { width: 100%; max-width: 420px; }

.catbar-build { flex: 0 0 auto; font-size: 10px; color: var(--muted); opacity: .7; padding-right: 4px; }

/* разделы меню прямо в липкой шапке */
.hdr-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; width: 100%;
  padding: 0 max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter))) 9px; }
.hdr-cats::-webkit-scrollbar { display: none; }
.hdr-cats button { flex: 0 0 auto; border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 15px; font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.hdr-cats button[aria-pressed="true"] { background: rgba(var(--primary-rgb), .1); border-color: var(--primary); color: var(--primary-ink); }
@media (min-width: 900px) { .hdr-cats { display: none; } }
@media (max-width: 899px) { .topnav { display: none; } .hdr-in { padding-block: 8px; } }
.catbar { display: none !important; }

/* в режиме выездной кухни полоса разделов в шапке не нужна */
.hdr.no-cats .hdr-cats { display: none; }

/* шапка не должна вылезать за экран */
.hdr-in { overflow: hidden; }
.brand { min-width: 0; flex: 0 1 auto; }
.brand-text { min-width: 0; overflow: hidden; }
.brand-text b { white-space: nowrap; }
.brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.hdr-actions { flex: 0 0 auto; }
@media (max-width: 620px) {
  .brand .brand-sub { display: none; }
  .brand-logo { width: 40px; height: 40px; border-radius: 10px; }
  .brand-logo img { width: 34px; height: 34px; }
  .hdr-in { gap: 8px; padding-block: 7px; }
  .user-icon, .cart-icon { width: 40px; height: 40px; }
  .hdr-cats { padding-bottom: 7px; }
  .hdr-cats button { padding: 7px 13px; font-size: 13px; }
}

/* в режиме выездной кухни вместо разделов — переключатель режима */
.hdr.no-cats .hdr-mode { display: flex; }
.hdr-mode[hidden] { display: none !important; }
.hdr-mode button { font-size: 13px; padding: 8px 14px; }

/* на телефоне переключатель режима уже есть в шапке — нижняя полоса не нужна (не дублируется) */
/* полоса с переключателем не нужна: он есть в шапке */
.menu-bar { display: none !important; }

/* выбор количества гостей для выездной кухни */
.guests-card { margin: var(--s-4) 0 var(--s-2); padding: var(--s-4); border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface); }
.guests-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); }
.guests-value { display: flex; align-items: baseline; gap: 6px; }
.guests-value b { font-family: var(--font-display); font-size: clamp(30px, 6vw, 44px); font-weight: 500; color: var(--primary); line-height: 1; }
.guests-value span { font-size: 13px; color: var(--muted); }
.guests-card input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary) 40%, #3a3b3e 40%, #3a3b3e 100%); outline: none; padding: 0; min-height: 0; border: 0; }
.guests-card input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.45); cursor: pointer; }
.guests-card input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); border: 3px solid var(--bg); cursor: pointer; }
.guests-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; }
.guests-hint { font-size: 13px; color: var(--muted); margin-top: var(--s-2); }
@media (max-width: 600px) { .guests-card { padding: var(--s-3); } }

/* компактная карточка гостей */
.guests-card { max-width: 640px; margin: var(--s-3) 0 var(--s-3); padding: var(--s-3) var(--s-4); }
.guests-head { margin-bottom: var(--s-2); align-items: center; }
.guests-value b { font-size: clamp(26px, 4vw, 34px); }
.guests-hint { font-size: 12.5px; margin-top: var(--s-1); }
.guests-scale { margin-top: 4px; }
@media (max-width: 600px) { .guests-card { max-width: none; } }

.guests-card { max-width: 520px; }
.guests-value { justify-content: space-between; margin-bottom: 6px; }
.guests-card .guests-hint, .guests-card .guests-head { display: none; }
.hdr-mode + .wrap .guests-card { margin-top: var(--s-3); }
.dish-norm { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* карточка гостей в одной строке с заголовком категории */
.cat-head { display: flex; align-items: center; justify-content: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: var(--s-3); }
.cat-head h2 { margin: 0; }
.cat-head .guests-card { margin: 0; max-width: 380px; flex: 1 1 300px; padding: 10px 14px; border-radius: 14px; }
.cat-head .guests-value b { font-size: 26px; }
.cat-head .guests-card input[type="range"] { height: 5px; }
.cat-head .guests-scale { font-size: 10px; }
#banquet { padding-block: var(--s-5) var(--s-3); }
#guests-slot { display: none; }

.cat-head .guests-scale { display: none; }
.cat-head .guests-value { margin-bottom: 2px; }
.cat-head .guests-value b { font-size: 24px; }
.cat-head .guests-card { padding: 8px 14px; }

/* компактная карточка: цифра слева, шкала справа, одна строка */
.cat-head .guests-card { display: flex; align-items: center; gap: 12px; padding: 8px 14px !important;
  max-width: 320px; min-height: 0; border-radius: 999px; }
.cat-head .guests-value { margin: 0; gap: 4px; flex: 0 0 auto; align-items: baseline; }
.cat-head .guests-value b { font-size: 22px; }
.cat-head .guests-value span { font-size: 11px; }
.cat-head .guests-card input[type="range"] { flex: 1 1 auto; }

/* очистка корзины в шапке */
.hdr-clear[hidden], .cart-clear-icon[hidden] { display: none !important; }
.cart-clear-icon { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: transparent;
  color: var(--danger); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cart-clear-icon:hover { border-color: var(--danger); }
@media (min-width: 900px) { .cart-clear-icon { display: none !important; } }

/* подсказки адреса */
.field { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,.5); max-height: 260px; overflow-y: auto; }
.suggest-item { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink);
  padding: 10px 14px; font: inherit; font-size: 14px; cursor: pointer; border-bottom: 1px solid rgba(194,191,189,.25); }
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.is-active { background: rgba(var(--primary-rgb),.12); }
.suggest-item b { display: block; font-weight: 600; }
.suggest-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* подпись режима в заголовке оформления */
.modal-mode { display: inline-block; vertical-align: middle; margin-left: 10px; font-family: var(--font-text);
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: none; color: var(--primary);
  border: 1px solid var(--primary); border-radius: 999px; padding: 3px 10px; }
@media (max-width: 520px) { .modal-mode { display: block; margin: 8px 0 0; width: fit-content; } }

/* не даём браузеру «подтягивать» прокрутку при пересчёте текста */
#menu-body, .cat-block, .dish-norm, .guests-card { overflow-anchor: none; }
html { overflow-anchor: none; }

/* пояснение под полем адреса */
.field-note { margin: 6px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); min-height: 0; }
.field-note:empty { display: none; }

/* квартира / офис — ниже адреса и не на всю ширину */
.field-flat { max-width: 220px; }
@media (max-width: 559px) { .field-flat { max-width: none; } }
/* сообщение об ошибке в поле — обычным потоком, без наложения на соседние поля */
.field > .err, .field > .field-err { position: static; margin: 0; padding-top: 2px; }

/* переключатель режима в начале меню */
.mode-switch-wrap { padding-top: var(--s-3); }
.mode-switch { max-width: 420px; width: 100%; }
.mode-switch button { flex: 1 1 0; }
@media (max-width: 420px) { .mode-switch button { font-size: 13px; padding: 8px 10px; } }

/* пояснение под меню выездной кухни */
.menu-note { margin: var(--s-5) 0 0; padding: 14px 16px; border: 1px dashed var(--border); border-radius: var(--radius);
  font-size: 13.5px; line-height: 1.45; color: var(--muted); background: rgba(var(--primary-rgb), .05); }
.menu-note b { color: var(--ink); }

/* вход по звонку */
.call-number { display: block; margin: 10px 0 4px; font-family: var(--font-display); font-size: clamp(26px, 7vw, 34px);
  font-weight: 500; color: var(--primary); text-decoration: none; letter-spacing: .5px; }
.call-state { font-size: 13px; color: var(--muted); margin-bottom: var(--s-3); display: flex; align-items: center; gap: 8px; }
.call-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); animation: callpulse 1.2s infinite; }
.call-state.done::before { background: var(--ok); animation: none; }
.call-state.off::before { display: none; }
@keyframes callpulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- первый экран: компактная сводка вместо двух карточек ---------- */
.hero { padding-block: var(--s-3) 0; }
.hero-top { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero-top { grid-template-columns: minmax(0, 1fr); } }
.hero-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 10px 18px;
  padding: 12px 16px;
  align-self: start;
  border-radius: 12px;
}
.hero-note-text { min-width: 0; }
.hero-note h2 { font-size: clamp(17px, 1.5vw, 21px); margin: 0 0 3px; line-height: 1.2; }
.hero-note p { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 0; max-width: 64ch; }
.hero-note .info-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 14px;
  margin: 0;
  padding: 0;
  border: 0;
  flex: none;
}
.hero-note .info-stats div { min-width: 0; }
.hero-note .info-stats div b { font-size: 18px; }
.hero-note .info-stats div span { font-size: 10px; letter-spacing: .05em; }
@media (min-width: 900px) {
  .hero-note { grid-template-columns: minmax(0, 1.4fr) auto; gap: 10px 24px; padding: 12px 18px; }
  .hero-note .info-stats { border-left: 1px solid var(--border); padding-left: 24px; gap: 4px 22px; }
  .hero-note .info-stats div b { font-size: 20px; }
}
@media (max-width: 700px) {
  .hero-note { padding: 10px 14px; }
  .hero-note .info-stats { padding-top: 8px; border-top: 1px solid var(--border); gap: 6px 10px; }
  .hero-note .info-stats div b { font-size: 17px; }
}

/* подвал в том же ритме, что и блоки */
.footer { margin-top: var(--space-section); }

/* активный раздел верхнего меню — залитая «таблетка», видно с первого взгляда */
.topnav-in { align-items: center; padding-block: 6px; }
.topnav a, .topnav button { border-radius: 999px; padding: 8px 14px; }
.topnav a.active, .topnav button.active {
  background: var(--primary); color: var(--on-primary, #fff); font-weight: 700;
  box-shadow: 0 4px 12px rgba(var(--primary-rgb, 0, 95, 150), .28);
}
.topnav a.active::after, .topnav button.active::after { display: none !important; }
.topnav a.active:hover, .topnav button.active:hover { color: var(--on-primary, #fff); }

/* на телефоне бренд не обрезается */
@media (max-width: 460px) {
  .brand-text b { font-size: 16.5px; letter-spacing: .2px; }
  .brand-logo { width: 36px; height: 36px; border-radius: 9px; }
  .brand-logo img { width: 30px; height: 30px; }
  .hdr-in { gap: 6px; }
  .hdr-actions { gap: 6px; }
}

/* подпись «необязательно» у поля квартиры */
.field > label .opt { font-weight: 400; color: var(--muted); opacity: .75; font-size: 11.5px; margin-left: 4px; }
/* поля в оформлении не уже 240px — подсказки не обрезаются */
.field-flat { max-width: 240px; }
@media (max-width: 559px) { .field-flat { max-width: none; } }

/* набор в конце меню: фото + состав с количеством */
.set-block { margin: var(--s-6) 0 var(--s-4); display: grid; gap: var(--s-3); }
.set-photo { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.set-info { display: grid; gap: var(--s-2); }
.set-info h3 { font-size: var(--t-h3); }
.set-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.set-list li { display: flex; justify-content: space-between; gap: var(--s-3); font-size: 14px; padding-bottom: 7px; border-bottom: 1px dashed var(--border); }
.set-list li span { color: var(--muted); }
.set-list li b { white-space: nowrap; }
.set-total { display: flex; align-items: baseline; gap: 10px; margin-top: var(--s-1); }
.set-total b { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--primary); }
.set-total span { font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .set-block { grid-template-columns: 1.1fr 1fr; align-items: start; gap: var(--s-4); }
  .set-photo { position: sticky; top: 100px; }
}

/* комплексный дастархан: готовые наборы над меню */
.dastarkhan-title { font-size: var(--t-h2); margin-bottom: 6px; }
.dastarkhan-sub { font-size: 14px; color: var(--muted); margin-bottom: var(--s-3); }
#dastarkhan { margin-top: var(--s-5); }
#dastarkhan .set-block + .set-block { margin-top: var(--s-4); }
