/* «Байдар» — стили сайта. Цвета взяты из логотипа. */

:root {
  --bg: #fbf6ec;
  --surface: #ffffff;
  --cream: #f5ebd6;
  --line: #e9dcc4;
  --line-strong: #d9c8a8;
  --ink: #2a1e17;
  --ink-2: #5e4d42;
  --brand: #473325;
  --brand-hover: #5a4232;
  --on-brand: #fff6e0;
  --on-brand-2: rgba(255, 246, 224, 0.82);
  --accent: #b04e28;
  --olive: #56673a;
  --danger: #b42318;
  --open: #3e8e41;

  --font-display: 'Forum', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(71, 51, 37, 0.08), 0 2px 8px rgba(71, 51, 37, 0.06);
  --shadow: 0 18px 40px -18px rgba(71, 51, 37, 0.35);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --header-h: 64px;
  --menu-nav-h: 64px;
  --container: 1200px;
}

@media (min-width: 900px) {
  :root { --header-h: 72px; }
}

/* ---------- База ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

html.is-locked { overflow: hidden; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button,
input,
textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { text-wrap: balance; }

:focus-visible {
  outline: 3px solid rgba(176, 78, 40, 0.55);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus { top: 12px; }

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--ghost { border-color: var(--line-strong); background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--cream); }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.2s;
}

.icon-btn:hover { background: var(--cream); }
.icon-btn[hidden] { display: none; }
.icon-btn--outline { border: 1.5px solid var(--line-strong); }

.round-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  transition: background-color 0.2s, transform 0.2s var(--ease);
}

.round-btn:hover { background: var(--brand-hover); }
.round-btn.is-done { background: var(--olive); transform: scale(1.06); }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 246, 236, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.header.is-scrolled { border-bottom-color: var(--line); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.header__logo { display: block; flex: none; }
.header__logo img { width: auto; height: 38px; }

.header__nav { display: none; gap: 28px; margin-left: 28px; }

.header__nav a {
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.header__nav a:hover { color: var(--ink); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.status {
  display: none;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a89a8d;
}

.status.is-open .status__dot {
  background: var(--open);
  box-shadow: 0 0 0 4px rgba(62, 142, 65, 0.16);
}

.header__phone {
  display: none;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.cart-btn:hover { background: var(--brand-hover); }
.cart-btn.is-bump { animation: bump 0.4s var(--ease); }

.cart-btn__count {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.cart-btn__count[hidden] { display: none; }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@media (max-width: 479px) {
  .cart-btn__total { display: none; }
  .cart-btn { width: 44px; padding: 0; justify-content: center; }
}

@media (min-width: 900px) {
  .header__nav { display: flex; }
  .header__phone { display: inline; }
  .header__call { display: none; }
  .header__logo img { height: 42px; }
  .header__actions { gap: 20px; }
  .cart-btn { height: 48px; padding: 0 20px 0 16px; }
}

@media (min-width: 1100px) {
  .status { display: inline-flex; }
}

/* ---------- Первый экран ---------- */

.hero { padding: 28px 0 56px; }

.hero__grid {
  display: grid;
  gap: 32px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 78px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero__lead {
  max-width: 520px;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 18px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 479px) {
  .hero__cta .btn { flex: 1 1 0; padding: 0 14px; font-size: 15px; }
}

.hero__facts {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero__facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.35;
}

.hero__facts b {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.hero__facts .icon { margin-top: 1px; color: var(--accent); }

@media (min-width: 560px) {
  .hero__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

.hero__media { position: relative; }

.hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero__card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero__card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
}

.hero__card-text {
  display: grid;
  min-width: 0;
  padding-right: 4px;
  line-height: 1.25;
}

.hero__card-label {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__card-name { font-size: 15px; font-weight: 800; white-space: nowrap; }
.hero__card-price { color: var(--ink-2); font-size: 14px; font-weight: 700; }

@media (min-width: 1024px) {
  .hero { padding: 56px 0 96px; }
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
  }
  .hero__img { aspect-ratio: 4 / 5; max-height: 660px; }
  .hero__card { left: -32px; bottom: 44px; padding: 10px; }
  .hero__card img { width: 64px; height: 64px; }
}

/* ---------- Заголовки секций ---------- */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 400;
  line-height: 1.05;
}

.section-sub {
  max-width: 440px;
  margin: 0;
  color: var(--ink-2);
}

/* ---------- Меню ---------- */

.menu { padding-bottom: 80px; }

.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: rgba(251, 246, 236, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.menu-nav__inner {
  display: flex;
  gap: 8px;
  padding-top: 11px;
  padding-bottom: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu-nav__inner::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover { border-color: var(--line-strong); }

.chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: var(--on-brand);
}

.chip__count { font-size: 12px; opacity: 0.6; }

.category {
  padding-top: 40px;
  scroll-margin-top: calc(var(--header-h) + var(--menu-nav-h) + 4px);
}

.category__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  margin-bottom: 18px;
}

.category__title {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.1;
}

.category__sub { margin: 0; color: var(--ink-2); font-size: 15px; }

.dish-grid { display: grid; gap: 12px; }

.dish {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.dish__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: var(--cream);
}

.dish__media img { width: 100%; height: 100%; object-fit: cover; }

.dish__tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.tag--hit { background: var(--accent); color: #fff; }
.tag--veg { background: var(--olive); color: #fff; }
.tag--spicy { background: #fff; color: var(--accent); }
.tag--soon { background: var(--brand); color: var(--on-brand); }

.dish__body { display: flex; flex-direction: column; min-width: 0; }

.dish__head { display: flex; flex-direction: column; gap: 2px; }

.dish__name {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.dish__weight { color: var(--ink-2); font-size: 13px; font-weight: 600; }

.dish__desc {
  display: -webkit-box;
  margin: 6px 0 12px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.dish__price {
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.dish--soon {
  border: 1.5px dashed var(--line-strong);
  background: transparent;
}

.dish__media--soon { display: grid; place-items: center; }
.dish__media--soon img { width: 58%; height: auto; object-fit: contain; opacity: 0.28; }
.dish__soon { color: var(--ink-2); font-size: 14px; font-weight: 700; }

@media (min-width: 640px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .dish { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
  .dish:not(.dish--soon):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
  .dish__media { aspect-ratio: 4 / 3; border-radius: 0; }
  .dish__tags { top: 12px; left: 12px; }
  .dish__body { flex: 1; padding: 18px 20px 20px; }
  .dish__head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .dish__name { font-size: 18px; }
  .dish__weight { white-space: nowrap; }
  .dish__desc { margin: 8px 0 18px; font-size: 14.5px; -webkit-line-clamp: 3; }
  .dish__price { font-size: 19px; }
}

@media (min-width: 1024px) {
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

/* Кнопка «в корзину» и счётчик */

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.add-btn:hover { background: var(--brand-hover); }
.add-btn__label { display: none; }

@media (min-width: 640px) {
  .add-btn { padding: 0 18px 0 14px; }
  .add-btn__label { display: inline; }
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 2px;
  border-radius: 999px;
  background: var(--cream);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  transition: background-color 0.2s;
}

.stepper button:hover { background: var(--surface); }
.stepper button[disabled] { opacity: 0.35; cursor: default; background: transparent; }

.stepper__value {
  min-width: 26px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- Как заказать ---------- */

.how { padding: 72px 0 80px; background: var(--cream); }

.steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.step__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
}

.step h3 { margin: 14px 0 6px; font-size: 18px; font-weight: 800; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

.options { display: grid; gap: 12px; margin-top: 12px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--brand);
  color: var(--on-brand);
}

.option__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  background: rgba(255, 246, 224, 0.12);
}

.option__icon .icon { width: 24px; height: 24px; }
.option h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; }
.option p { margin: 0; color: var(--on-brand-2); font-size: 15px; }

.how__pay { margin: 20px 0 0; color: var(--ink-2); font-size: 15px; }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
}

/* ---------- Контакты ---------- */

.contacts { padding: 80px 0; }

.contacts__grid { display: grid; gap: 32px; }

.contacts__info .section-sub { margin-top: 12px; }

.contacts__list { display: grid; margin: 28px 0 0; }

.contacts__list > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contacts__list dt { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.contacts__list dd { margin: 0; font-weight: 700; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }

.contacts__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 340px;
  padding: 48px 32px;
  border-radius: var(--radius-xl);
  background: var(--cream);
  text-align: center;
}

.brand-card img { width: min(320px, 76%); height: auto; margin-bottom: 18px; }
.brand-card p { margin: 0; }
.brand-card__tagline { color: var(--ink-2); font-weight: 600; }

.brand-card__hours {
  margin-top: 14px !important;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
}

.brand-card__note { color: var(--ink-2); font-size: 14px; }

@media (min-width: 560px) {
  .contacts__list > div { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
}

@media (min-width: 900px) {
  .contacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 56px; }
  .brand-card { min-height: 440px; }
}

/* ---------- Подвал ---------- */

.footer {
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  background: var(--brand);
  color: var(--on-brand-2);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.footer img { width: auto; height: 46px; }
.footer p { margin: 0; font-size: 15px; }
.footer__text { display: grid; gap: 6px; }
.footer__small { font-size: 13px !important; opacity: 0.8; }

@media (min-width: 768px) {
  .footer__text { text-align: right; }
}

.noscript { padding: 24px 0; color: var(--ink-2); }

/* ---------- Плавающая корзина (телефон) ---------- */

.cart-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 20px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 18px 40px -14px rgba(42, 30, 23, 0.6);
  font-size: 16px;
  font-weight: 700;
  visibility: hidden;
  transform: translateY(160%);
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.cart-bar.is-visible {
  visibility: visible;
  transform: none;
  transition: transform 0.3s var(--ease);
}

.cart-bar__count {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.cart-bar__total { margin-left: auto; font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  body.has-cart-bar .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (min-width: 768px) {
  .cart-bar { display: none; }
}

/* ---------- Корзина и оформление ---------- */

.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer[hidden] { display: none; }

.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 30, 23, 0.5);
  opacity: 0;
  transition: opacity 0.25s;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  background: var(--bg);
  box-shadow: -24px 0 60px -24px rgba(42, 30, 23, 0.4);
  outline: none;
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
}

.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

@media (max-width: 639px) {
  .drawer__panel {
    top: auto;
    left: 0;
    width: 100%;
    height: 94%;
    height: 94dvh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
}

.drawer__head {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  height: 64px;
  padding: 0 10px 0 20px;
  border-bottom: 1px solid var(--line);
}

.drawer__head [data-back]:not([hidden]) + .drawer__title { margin-left: -6px; }

.drawer__title {
  flex: 1;
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}

.drawer__body {
  flex: 1;
  padding: 16px 20px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer__foot {
  flex: none;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.drawer__foot:empty { display: none; }

.cart-lines { margin: 0; padding: 0; list-style: none; }

.cart-line {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line__img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.cart-line__name { margin: 0; font-size: 15px; font-weight: 700; line-height: 1.3; }
.cart-line__meta { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.cart-line__side { display: grid; justify-items: end; gap: 4px; }
.cart-line__sum { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }

.progress {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cream);
  font-size: 14px;
}

.progress p { margin: 0; }

.progress__bar {
  height: 6px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(71, 51, 37, 0.12);
}

.progress__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.3s var(--ease);
}

.empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 8px;
  text-align: center;
}

.empty img { width: 150px; height: auto; margin-bottom: 8px; opacity: 0.3; }

.empty h3 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
}

.empty p { max-width: 300px; margin: 0 0 12px; color: var(--ink-2); }

.summary { display: grid; gap: 6px; margin-bottom: 14px; }

.summary--card {
  margin: 24px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink-2);
  font-size: 15px;
}

.summary-row > :last-child { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.summary-row--total { margin-top: 4px; color: var(--ink); font-size: 18px; font-weight: 800; }
.summary-row--total > :last-child { font-weight: 800; }

.form-alert {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fdecea;
  color: #8a1c12;
  font-size: 14px;
  font-weight: 600;
}

.form-alert[hidden] { display: none; }

.consent {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

.demo-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
}

/* Форма */

.checkout { display: grid; gap: 22px; }

.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset.field { display: block; }
fieldset.field > legend { margin-bottom: 8px; padding: 0; }

.field__label,
.field > legend { color: var(--ink); font-size: 14px; font-weight: 700; }

.field__opt { color: var(--ink-2); font-weight: 500; }

.input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input::placeholder { color: #9b8a7d; }

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(71, 51, 37, 0.12);
}

textarea.input { height: auto; min-height: 80px; padding: 12px 14px; line-height: 1.45; resize: vertical; }

.input[aria-invalid='true'] { border-color: var(--danger); }

.field__error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 600; }
.field__error:empty { display: none; }
.field__hint { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; }

.field-row { display: grid; gap: 22px; }

@media (min-width: 420px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

.seg {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--cream);
}

.seg label,
.choice label { position: relative; }

.seg input,
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.seg input:focus-visible + span,
.choice input:focus-visible + span { outline: 3px solid rgba(176, 78, 40, 0.55); outline-offset: 2px; }

.choice { display: flex; flex-wrap: wrap; gap: 8px; }

.choice span {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.choice input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }

.time-wrap { margin-top: 10px; }
.time-wrap[hidden] { display: none; }

.pickup-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cream);
  font-size: 14px;
}

.pickup-note b { display: block; font-size: 15px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Заказ принят */

.success {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 0 4px;
  text-align: center;
}

.success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
}

.success__icon .icon { width: 30px; height: 30px; stroke-width: 2.2; }

.success h3 {
  margin: 0;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
}

.success p { max-width: 340px; margin: 0; color: var(--ink-2); }

.receipt {
  margin-top: 20px;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.receipt__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.receipt__row:last-child { border-bottom: 0; font-size: 16px; font-weight: 800; }
.receipt__row > :last-child { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Превью сообщения в Telegram (демо-режим) */

.tg { margin-top: 22px; }
.tg__label { margin: 0 0 8px; color: var(--ink-2); font-size: 13px; font-weight: 700; }

.tg__chat {
  padding: 14px;
  border-radius: 16px;
  background: #dbe5ec;
}

.tg__bubble {
  max-width: 100%;
  padding: 10px 12px 8px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  color: #111;
  font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  overflow-wrap: anywhere;
}

.tg__from { margin-bottom: 4px; color: #2b7bb9; font-size: 13px; font-weight: 700; }
.tg__text { white-space: pre-wrap; }
.tg__text a { color: #2b7bb9; }
.tg__time { margin-top: 2px; color: #8a9aa6; font-size: 11px; text-align: right; }

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