/* ============ RUMA — источник кофе ============
   Палитра взята с логотипа (#804228, крем #E9DBC6) и смягчена:
   фон — тёплый крем, заголовки и кнопки — терракота логотипа,
   текст — тёмный кофейный, а не чистый чёрный.
================================================ */

:root {
  --bg: #F5E9D9;
  --bg-alt: #EFE0CB;
  --surface: #FBF4EA;      /* карточки, поля ввода */
  --ink: #2B1D17;
  --ink-soft: #6B5547;
  --ink-menu: #54423A;     /* описания блюд: темнее для читаемости */
  --terra: #804228;        /* цвет логотипа */
  --terra-hover: #6A3520;
  --terra-tint: #EBD6BE;   /* светлая терракота: пометки, иконки */
  --cream: #E9DBC6;        /* кремовый логотипа — текст на терракоте */
  --line: rgba(43, 29, 23, 0.14);
  --ok: #5E8A4E;
  --warn: #B0823F;
  --error: #A33A22;

  --font-display: "Playfair Display", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 20px;
  --header-h: 72px;
  --tabbar-h: 64px;         /* высота нижней панели на телефоне */
  --anchor-gap: clamp(32px, 5vw, 64px); /* расстояние от шапки до подписи секции после перехода по ссылке */
}

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

html {
  touch-action: manipulation; /* двойное касание не увеличивает страницу; прокрутка и щипок браузера остаются */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body { touch-action: manipulation; }
body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--terra); color: var(--cream);
  padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon { width: 16px; height: 16px; flex-shrink: 0; }
.icon--star { color: var(--terra); }

/* ---------- типографика ---------- */
/* подпись над заголовком секции: «МЕНЮ RUMA», «RUMA — ЭТО» */
.eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--terra);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  flex-shrink: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.4vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--terra);
  text-wrap: balance;
}

.section {
  --pad-top: var(--section-y);
  --pad-bottom: var(--section-y);
  padding: var(--pad-top) 0 var(--pad-bottom);
  /* scroll-padding у <html> уже отодвигает на высоту шапки + 8px; здесь вычитаем собственный верхний
     отступ секции, чтобы подпись («RUMA — это», «Меню RUMA»…) всегда вставала на --anchor-gap под шапкой */
  scroll-margin-top: calc(var(--anchor-gap) - 8px - var(--pad-top));
}
/* «О нас» — компактнее остальных секций */
.about { --pad-top: clamp(40px, 5vw, 64px); --pad-bottom: clamp(40px, 5vw, 64px); }

/* шапка секции: подпись + заголовок слева, пояснение справа */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head .display { margin-top: 16px; }
.section-head__aside { color: var(--ink-soft); line-height: 1.65; padding-bottom: 0.5em; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn .icon { transition: transform 0.2s; }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--terra); color: var(--cream); }
.btn--primary:hover { background: var(--terra-hover); }
.btn--outline { background: transparent; color: var(--terra); box-shadow: inset 0 0 0 1.5px var(--terra); }
.btn--outline:hover { background: var(--terra); color: var(--cream); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; color: var(--terra); text-decoration: none;
}
.link-arrow .icon { transition: transform 0.2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--back:hover .icon { transform: translateX(-4px); }

/* ---------- статус «открыто/закрыто» над шапкой ---------- */
.statusbar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px var(--gutter); background: var(--bg-alt);
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); line-height: 1.4;
}
.statusbar__sep { opacity: 0.5; }
.statusbar .hours-badge { font-size: inherit; }

/* ---------- шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: var(--header-h);
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter);
}
.topbar__logo { display: block; padding: 6px 0; }
.topbar__logo img { height: 26px; width: auto; }
.topbar__nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.topbar__nav a { font-weight: 500; font-size: 0.95rem; text-decoration: none; padding: 8px 0; position: relative; }
.topbar__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
}
.topbar__nav a:hover::after { transform: scaleX(1); }

.topbar__order {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
}
.topbar__order .icon { transition: transform 0.2s; }
.topbar__order:hover .icon { transform: translateX(4px); }
.topbar__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: var(--terra); color: var(--cream); font-size: 0.75rem;
}


/* ---------- главный экран ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.hero__title {
  margin: 20px 0 28px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 6.4vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--terra);
  text-wrap: balance;
}

.hero__lead { max-width: 30em; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.65; }

.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 36px; }

/* водяной знак — полный логотип в тон фона, целиком, без обрезки */
.hero__watermark {
  width: clamp(96px, 9vw, 124px);
  margin-top: 32px;
  transform: rotate(-6deg);
  pointer-events: none;
  user-select: none;
}

.hours-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-style: normal; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft);
}
.hours-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok); flex-shrink: 0;
}
.hours-badge--closed::before { background: var(--warn); }
.hours-badge:empty { display: none; }

.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 540px; }

.arch {
  aspect-ratio: 9 / 10;
  border-radius: 999px 999px 6px 6px;
  overflow: hidden;
  background: var(--terra);
  box-shadow: 0 30px 60px -30px rgba(43, 29, 23, 0.45);
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }

.stamp {
  position: absolute; top: 4%; left: -8%;
  width: clamp(128px, 11vw, 144px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--terra); color: var(--cream);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3;
  transform: rotate(-9deg);
  box-shadow: 0 12px 28px -12px rgba(43, 29, 23, 0.5);
}
.stamp span:first-child { font-size: 1.125rem; letter-spacing: 0.06em; }

/* ---------- о нас ---------- */
.statement {
  margin-top: 24px;
  max-width: 21em;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--terra);
  text-wrap: pretty;
}

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 880px;
  margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line);
}
.facts li { padding: 24px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.facts b { font-family: var(--font-body); font-weight: 600; font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.facts span { font-size: 0.875rem; color: var(--ink-soft); }

/* ---------- меню ---------- */
.menu { background: var(--bg-alt); }

/* вкладки — центрированный переключатель; активный пункт подсвечивает «бегунок», он скользит между пунктами */
.tabs {
  position: relative;
  display: flex; width: fit-content; max-width: 100%; margin: 0 auto clamp(28px, 4vw, 44px);
  padding: 4px; gap: 4px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.tabs::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; z-index: 0;
  width: var(--thumb-w, 0); border-radius: 999px; background: var(--terra);
  transform: translateX(var(--thumb-x, 0)); opacity: 0;
}
.tabs.has-thumb::before { opacity: 1; }
.tabs.thumb-anim::before { transition: transform 0.2s ease-out; }
.tab {
  position: relative; z-index: 1;
  padding: 12px 24px; border: 0; border-radius: 999px; background: none;
  font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); white-space: nowrap;
  transition: color 0.2s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--cream); }
.tabs:not(.has-thumb) .tab.is-active { background: var(--terra); } /* пока скрипт не расставил бегунок */

/* список позиций — две колонки, строки с линиями, как в макете */
.menu__panel { touch-action: pan-y; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }

.item {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 0 16px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.page-menu .item { grid-template-columns: minmax(0, 1fr) auto auto; }

.item__main { min-width: 0; overflow-wrap: anywhere; }

.item__num { font-size: 0.8125rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* позиции меню — простой гротеск (Manrope): названия и состав читаются быстро, без тонких засечек */
.item__name {
  font-family: var(--font-body); font-weight: 600; font-size: clamp(1.0625rem, 1.2vw + 0.8rem, 1.1875rem);
  line-height: 1.35; letter-spacing: -0.005em; color: var(--ink);
}
.item__desc { margin-top: 4px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-menu); }
.item__price { font-weight: 700; font-size: 1rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-block; vertical-align: 0.5em; margin-left: 6px; padding: 1px 6px; border-radius: 2px;
  background: var(--terra-tint); color: var(--terra);
  font-family: var(--font-body); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.6;
}

.item__add {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ink-soft); background: transparent; color: var(--ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.item__add::before, .item__add::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%);
}
.item__add::before { width: 14px; height: 1.5px; }
.item__add::after { width: 1.5px; height: 14px; }
.item__add:hover { background: var(--terra); border-color: var(--terra); color: var(--cream); }
.item__add.is-flash { transform: scale(1.15); background: var(--terra); color: var(--cream); }
.item__add--none { border: 0; visibility: hidden; }
.item__add[data-count]::after { /* когда позиция уже в заказе — показываем число вместо плюса */
  content: attr(data-count); width: auto; height: auto; background: none; font-size: 0.8125rem; font-weight: 700;
}
.item__add[data-count] { background: var(--terra); border-color: var(--terra); color: var(--cream); }
.item__add[data-count]::before { display: none; }

.menu__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.menu__swipe { display: none; font-size: 0.8125rem; color: var(--ink-soft); }


/* ---------- отзывы ---------- */
.reviews { padding: var(--section-y) 0; }
.reviews + .contacts { --pad-top: 0px; } /* чтобы отступ под карточкой равнялся отступу над ней */
.reviews__card {
  background: var(--terra); color: var(--cream); border-radius: var(--radius);
  padding: clamp(40px, 7vw, 96px) clamp(20px, 6vw, 80px);
  text-align: center;
}
.reviews__ratings { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; font-size: 0.875rem; }
.reviews__ratings a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; opacity: 0.85; }
.reviews__ratings a:hover { opacity: 1; }
.reviews__ratings b { font-size: 1.25rem; font-weight: 700; }
.reviews__ratings .icon--star { color: var(--cream); }

.quotes {
  display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-top: clamp(28px, 4vw, 48px);
}
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 100%; scroll-snap-align: center; max-width: 100%; padding: 0 4px; }
.quote blockquote {
  max-width: 24em; margin: 0 auto;
  font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 2.6rem); line-height: 1.28; letter-spacing: -0.005em;
  text-wrap: balance;
}
.quote figcaption { margin-top: 28px; font-size: 0.875rem; opacity: 0.75; }

.quotes__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(28px, 4vw, 44px); }
.quotes__count { font-size: 0.8125rem; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; min-width: 5.5em; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(233, 219, 198, 0.45); background: none; color: var(--cream);
  transition: background-color 0.2s, color 0.2s;
}
.round-btn:hover { background: var(--cream); color: var(--terra); }
.reviews :focus-visible { outline-color: var(--cream); }

/* ---------- контакты ---------- */
.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px clamp(40px, 6vw, 96px);
  align-items: start;
}
.contacts__intro .display { margin-top: 16px; }
.contacts__lead { margin-top: 24px; max-width: 28em; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-soft); }
.contacts__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* карточка с контактами: каждая строка — иконка, подпись, значение */
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px clamp(20px, 3vw, 36px);
}
.info-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 0; }
.info-row__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--terra-tint); color: var(--terra);
}
.info-row__icon .icon { width: 20px; height: 20px; }
.info-row__label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.info-row__value { margin-top: 2px; font-size: 1.0625rem; font-weight: 500; line-height: 1.5; }
.info-row__value a { text-decoration: none; border-bottom: 1px solid var(--line); transition: border-color 0.2s; }
.info-row__value a:hover { border-bottom-color: currentColor; }
.info-row__value .hours-badge { display: flex; margin-top: 4px; }

.contacts__map {
  margin-top: clamp(48px, 6vw, 80px); border-radius: var(--radius); overflow: hidden;
  height: clamp(280px, 40vw, 440px); background: var(--bg-alt);
}
.contacts__map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- подвал ---------- */
.footer { background: var(--terra); color: var(--cream); padding: clamp(32px, 4vw, 44px) 0 18px; }
.footer a { text-decoration: none; }
.footer :focus-visible { outline-color: var(--cream); }
.footer__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px clamp(40px, 7vw, 96px); align-items: start;
}
.footer__logo { justify-self: start; }
.footer__logo img { width: 84px; height: auto; }
.footer__nav { display: grid; gap: 6px; font-size: 0.9375rem; font-weight: 600; }
.footer__nav a:hover, .footer__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__contacts { display: grid; gap: 6px; font-size: 0.9375rem; opacity: 0.85; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin-top: clamp(24px, 3vw, 32px); padding-top: 16px;
  border-top: 1px solid rgba(233, 219, 198, 0.2);
  font-size: 0.8125rem;
}
.footer__bottom p { opacity: 0.75; }
.footer__up { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.has-cart .footer { padding-bottom: 104px; }

/* ---------- страница полного меню ---------- */
.menu-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(28px, 4vw, 40px); }
.menu-hero .display { margin-top: 28px; }
.menu-hero__sub { margin-top: 16px; max-width: 32em; color: var(--ink-soft); }

.menubar {
  position: sticky; top: var(--header-h); z-index: 40;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.menubar .container { display: grid; gap: 14px; padding-top: 14px; padding-bottom: 14px; }
.menubar .tabs { margin-bottom: 0; }
.chips {
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none;
}
/* пустые элементы по краям центрируют чипсы, а если не влезают — лента просто листается с начала */
.chips::before, .chips::after { content: ""; margin: auto; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 961px) {
  .chips { flex-wrap: wrap; justify-content: center; overflow: visible; }
  .chips::before, .chips::after { display: none; }
}
.chip {
  flex-shrink: 0; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--ink-soft); }
.chip.is-active { background: var(--terra); border-color: var(--terra); color: var(--cream); }

.page-menu .topbar__order { display: none; } /* на странице меню заказ открывает плашка снизу */
.full-menu { padding-top: 8px; padding-bottom: var(--section-y); }
.cat { padding-top: clamp(32px, 4vw, 52px); scroll-margin-top: 220px; }
.cat__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2; color: var(--terra); padding-bottom: 4px;
}
.cat__sub {
  display: flex; align-items: baseline; gap: 8px; margin-top: clamp(24px, 3vw, 36px); padding-bottom: 2px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--terra);
}
.cat__sub .cat__note { margin-left: 0; font-size: 0.875rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.cat__note { font-family: var(--font-body); font-size: 0.9375rem; color: var(--ink-menu); margin-left: 8px; }

/* ---------- плашка корзины ---------- */
.cart-bar {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  width: min(460px, calc(100% - 24px));
  transform: translateX(-50%);
  animation: bar-in 0.3s ease-out;
}
@keyframes bar-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cart-bar__open {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 8px 8px 8px 10px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream); text-align: left;
  box-shadow: 0 18px 40px -12px rgba(43, 29, 23, 0.55);
}
.cart-bar.is-bump .cart-bar__open { animation: bump 0.4s ease-out; }
@keyframes bump { 40% { transform: scale(1.04); } }
.cart-bar__icon {
  position: relative; display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%; background: rgba(233, 219, 198, 0.12);
}
.cart-bar__icon .icon { width: 20px; height: 20px; }
.cart-bar__count {
  position: absolute; top: -3px; right: -3px; display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--terra); color: var(--cream); font-size: 0.6875rem; font-weight: 700;
}
.cart-bar__info { flex: 1; min-width: 0; font-weight: 600; font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-bar__cta {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  padding: 12px 18px; border-radius: 999px; background: var(--cream); color: var(--terra);
  font-weight: 700; font-size: 0.875rem;
}
.cart-bar__open:hover .cart-bar__cta { background: #fff; }

/* ---------- окна: выбор варианта и оформление заказа ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.overlay__backdrop { position: absolute; inset: 0; background: rgba(43, 29, 23, 0.55); animation: fade 0.2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.dialog {
  position: relative; width: min(560px, 100%); max-height: 92vh; max-height: 92dvh;
  background: var(--bg); color: var(--ink);
  border-radius: 24px 24px 0 0;
  animation: sheet-in 0.3s ease-out;
}
.dialog:focus { outline: none; }
@keyframes sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.dialog__handle {
  position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
  border-radius: 2px; background: var(--line);
}
.dialog__eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.dialog__title { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; color: var(--terra); }
.dialog__close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: none; font-size: 1.1rem; transition: background-color 0.2s, color 0.2s;
}
.dialog__close:hover { background: var(--terra); color: var(--cream); }

/* выбор объёма */
.dialog--small { width: min(420px, 100%); padding: 32px 24px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.dialog--small .dialog__title { margin: 4px 48px 20px 0; }
.variant-options { display: grid; gap: 10px; }
.variant-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 58px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--surface); font-weight: 600; text-align: left;
  transition: border-color 0.2s, background-color 0.2s;
}
.variant-btn b { color: var(--terra); }
.variant-btn:hover { border-color: var(--terra); background: var(--terra-tint); }

/* оформление: шапка, прокручиваемое содержимое и закреплённый низ с итогом */
.dialog--cart { display: flex; flex-direction: column; overflow: hidden; }
.sheet__head { display: flex; align-items: baseline; gap: 12px; padding: 28px 72px 16px 24px; border-bottom: 1px solid var(--line); }
.sheet__meta { font-size: 0.875rem; color: var(--ink-soft); }
.sheet__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 28px; }
.sheet__foot {
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--surface);
}
.sheet__total { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sheet__total span { font-size: 0.875rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; }
.sheet__total b { font-family: var(--font-display); font-weight: 500; font-size: 1.75rem; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; }

.notice {
  margin-top: 16px; padding: 12px 14px; border-radius: 12px;
  background: #F6E3C9; border-left: 3px solid var(--warn);
  font-size: 0.875rem; line-height: 1.5;
}

.cart-items { display: grid; }
.cart-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.cart-item__name { display: block; font-weight: 600; line-height: 1.35; }
.cart-item__variant { display: block; margin-top: 2px; font-size: 0.8125rem; color: var(--ink-soft); }
.cart-item__qty {
  display: inline-flex; align-items: center; padding: 3px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.cart-item__qty b { min-width: 1.8em; text-align: center; font-variant-numeric: tabular-nums; }
.qty-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: none;
  font-size: 1.1rem; line-height: 1; transition: background-color 0.2s, color 0.2s;
}
.qty-btn:hover { background: var(--terra); color: var(--cream); }
.qty-btn:disabled { opacity: 0.3; pointer-events: none; }
.cart-item__sum { min-width: 4.8em; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.cart-tools { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; }
.cart-more, .cart-clear { border: 0; background: none; padding: 10px 0; font-size: 0.875rem; }
.cart-more { font-weight: 700; color: var(--terra); }
.cart-clear { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.cart-clear:hover { color: var(--terra); }
.cart-clear.is-confirm { color: var(--error); font-weight: 700; text-decoration: none; }

.order-step { margin-top: 24px; }
.order-step__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; }
.order-step__num {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--terra); color: var(--cream); font-size: 0.8125rem;
}

/* формат заказа — карточки-радиокнопки */
.order-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.order-type { position: relative; display: block; cursor: pointer; }
.order-type input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.order-type__body {
  position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; min-height: 64px;
  padding: 12px 12px 12px 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: border-color 0.25s, background-color 0.25s, transform 0.2s;
}
.order-type:active .order-type__body { transform: scale(0.98); }
.order-type__body::before {
  content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--ink-soft); background: var(--surface); transition: background-color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.order-type b { font-size: 0.9375rem; line-height: 1.3; }
.order-type small { font-size: 0.75rem; line-height: 1.4; color: var(--ink-soft); }
.order-type:hover .order-type__body { border-color: var(--ink-soft); }
.order-type input:checked + .order-type__body { border-color: var(--terra); background: #F6E6D2; }
.order-type input:checked + .order-type__body::before {
  border-color: var(--terra); background: var(--terra); box-shadow: inset 0 0 0 3px var(--surface);
}
.order-type input:focus-visible + .order-type__body { outline: 2px solid var(--terra); outline-offset: 2px; }

/* поле «время / адрес» раскрывается по высоте, а не появляется рывком */
.collapse {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.25s ease, visibility 0s linear 0.4s;
}
.collapse.is-open {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows 0.4s cubic-bezier(0.3, 0.8, 0.3, 1), opacity 0.35s ease 0.08s, visibility 0s;
}
.collapse { margin: 0 -4px; } /* запас по бокам под обводку фокуса */
.collapse__inner { min-height: 0; overflow: hidden; }
.collapse__inner > .field { padding: 0 4px 14px; } /* отступ внутри: сам блок схлопывается до 0 */

.field + .field { margin-top: 14px; }
.field__label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field__input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font: inherit; font-size: 1rem; /* 16px — iPhone не приближает страницу при вводе */
  color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field__input::placeholder { color: #9C8676; }
.field__input:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px rgba(128, 66, 40, 0.15); }
.field__input.is-invalid { border-color: var(--error); box-shadow: 0 0 0 3px rgba(163, 58, 34, 0.12); }
.field__error { margin-top: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--error); }

.order-submit {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px;
  border-radius: 12px; background: var(--terra); color: var(--cream);
  font-weight: 700; font-size: 1rem; text-decoration: none; transition: background-color 0.2s;
}
.order-submit:hover { background: var(--terra-hover); }
.order-submit .icon--wa { width: 22px; height: 22px; }
.order-hint { margin-top: 10px; font-size: 0.75rem; line-height: 1.5; color: var(--ink-soft); text-align: center; }

@media (min-width: 640px) {
  .overlay { align-items: center; padding: 24px; }
  .dialog { border-radius: 24px; max-height: 88vh; max-height: 88dvh; }
  .dialog__handle { display: none; }
  .dialog--small { padding: 36px 32px 32px; }
  .sheet__head { padding: 32px 72px 18px 32px; }
  .sheet__body { padding: 4px 32px 28px; }
  .sheet__foot { padding: 18px 32px 22px; }
}

/* ---------- роллы: карточки с фото ---------- */
.rolls-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.rolls__foot { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }
.rolls + .reviews { padding-top: 0; } /* между «Роллами» и отзывами — один отступ, а не два */
.rolls-page { padding-bottom: var(--section-y); }

.roll-card { display: flex; flex-direction: column; min-width: 0; }
.roll-card__open {
  display: flex; flex-direction: column; justify-content: flex-start; flex: 1; width: 100%; padding: 0; border: 0; background: none;
  text-align: left; color: inherit; cursor: pointer;
}
.roll-card__open:focus-visible { outline: none; }
.roll-card__open:focus-visible .roll-card__media { outline: 2px solid var(--terra); outline-offset: 3px; }
.roll-card__media {
  position: relative; display: block; flex-shrink: 0; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 16px; background: var(--terra-tint);
}
.roll-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease;
}
.roll-card__img--alt { opacity: 0; } /* крупный план проявляется при наведении мыши */
@media (hover: hover) {
  .roll-card__open:hover .roll-card__img--alt { opacity: 1; }
  .roll-card__open:hover .roll-card__img { transform: scale(1.04); }
}
.roll-card__body { display: block; padding: 14px 2px 0; }
.roll-card__name { display: block; font-weight: 700; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -0.005em; color: var(--ink); }
.roll-card__desc {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 6px; font-size: 0.875rem; line-height: 1.5; color: var(--ink-menu);
}
/* Общая группа действий карточек с фотографией: цена и плюс собраны по центру. */
.card-actions { display: flex; align-items: center; justify-content: center; gap: 16px; }
.card-actions .item__add { flex-shrink: 0; }
.roll-card__foot { padding: 16px 2px 0; }
.roll-card__price { font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }

/* ---------- окно ролла ---------- */
.dialog--roll .sheet__head { flex-wrap: wrap; row-gap: 2px; }
.dialog--roll .dialog__title { font-size: 1.625rem; }
.dialog--roll .sheet__meta { font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.gallery {
  display: flex; margin-top: 16px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; background: var(--terra-tint);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 1 / 1; max-height: 40vh; max-height: 40dvh; object-fit: cover; scroll-snap-align: center; } /* фото не вытесняет состав за границу экрана */
.gallery__dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0 8px; }
.gallery__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background-color 0.3s, transform 0.3s; }
.gallery__dots i.is-on { background: var(--terra); transform: scale(1.2); }
.roll-comp__label { margin-top: 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.roll-comp { margin-top: 6px; font-size: 1rem; line-height: 1.65; color: var(--ink-menu); }
button.order-submit { width: 100%; border: 0; font-family: inherit; cursor: pointer; }

.topbar__nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-hero__more { margin-top: 20px; }

/* ---------- нижняя панель навигации (только телефон): Liquid Glass ---------- */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70;
  display: none; pointer-events: none;
}
.tabbar__glass {
  --thumb-x: 0px; --thumb-w: 0px;
  position: relative; display: flex; max-width: 460px; margin: 0 auto; padding: 6px; pointer-events: auto;
  border-radius: 32px;
  /* «стекло»: полупрозрачная заливка, сильное размытие того, что под панелью, и подсветка цветов */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.60) 0%, rgba(255, 250, 242, 0.30) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
  /* тень, верхний блик, тонкая светлая кромка */
  box-shadow:
    0 14px 32px -10px rgba(43, 29, 23, 0.34),
    0 2px 6px rgba(43, 29, 23, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(255, 255, 255, 0.30),
    inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}
.tabbar__glass::before { /* блик по верхней кромке */
  content: ""; position: absolute; inset: 1px 14px auto; height: 42%; border-radius: 26px 26px 60% 60%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
  opacity: 0.55; pointer-events: none;
}
/* «капля» стекла под выбранным пунктом — скользит между пунктами */
.tabbar__thumb {
  position: absolute; top: 6px; bottom: 6px; left: 0; width: var(--thumb-w);
  border-radius: 26px; opacity: 0; transform: translateX(var(--thumb-x));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.50));
  box-shadow:
    0 6px 16px -6px rgba(43, 29, 23, 0.30),
    inset 0 1px 0 #fff,
    inset 0 0 0 1px rgba(255, 255, 255, 0.70),
    inset 0 -6px 10px -6px rgba(128, 66, 40, 0.14);
}
.tabbar__glass.has-thumb .tabbar__thumb { opacity: 1; }
.tabbar__glass.thumb-anim .tabbar__thumb {
  transition: transform 0.2s ease-out;
}
.tabbar__item {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 0; height: calc(var(--tabbar-h) - 12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 26px; text-decoration: none; color: #5A463B;
  font-size: 0.6875rem; font-weight: 600; line-height: 1;
  transition: color 0.18s;
  -webkit-tap-highlight-color: transparent;
}
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__item:active { color: var(--terra); }
.tabbar__item.is-active { color: var(--terra); }
.tabbar__item:focus-visible { outline: 2px solid var(--terra); outline-offset: -2px; }

/* без поддержки размытия или при «уменьшить прозрачность» — плотная панель */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tabbar__glass { background: rgba(251, 244, 234, 0.97); }
}
@media (prefers-reduced-transparency: reduce) {
  .tabbar__glass { background: rgba(251, 244, 234, 0.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- уведомление ---------- */
.toast { pointer-events: none;
  position: fixed; left: 50%; bottom: 24px; z-index: 90; width: max-content; max-width: calc(100% - 32px);
  padding: 14px 20px; border-radius: 16px; background: var(--ink); color: var(--cream);
  font-weight: 600; font-size: 0.9375rem; text-align: center;
  box-shadow: 0 18px 40px -12px rgba(43, 29, 23, 0.55);
  transform: translateX(-50%);
}
.toast.is-in { animation: toast-in 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- экран «Отправили заказ в WhatsApp?» ---------- */
.sheet__confirm { display: none; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px calc(28px + env(safe-area-inset-bottom)); text-align: center; }
.dialog--cart.is-confirm > :not(.sheet__confirm):not(.dialog__handle) { display: none; }
.dialog--cart.is-confirm > .sheet__confirm { display: flex; }
.sheet__confirm-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--terra-tint); color: var(--terra); }
.sheet__confirm-icon .icon { width: 32px; height: 32px; }
.sheet__confirm .dialog__title { margin: 4px 0 0; padding: 0; }
.sheet__confirm-text { max-width: 28em; color: var(--ink-menu); line-height: 1.6; }
.sheet__confirm .order-submit { margin-top: 12px; }
.sheet__confirm-alt {
  width: 100%; min-height: 52px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  font-weight: 700; transition: border-color 0.2s;
}
.sheet__confirm-alt:hover { border-color: var(--terra); }
.sheet__confirm-link { padding: 8px; font-size: 0.875rem; color: var(--ink-soft); text-underline-offset: 3px; }
@media (min-width: 640px) { .sheet__confirm { padding: 48px 36px 36px; } }

/* ---------- плавное появление ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1100px) {
  .rolls-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rolls-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 460px; }
  .hero__watermark { display: none; }
  .stamp { left: -4%; }
  .section-head { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__logo { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .topbar__logo img { height: 22px; }
  .topbar__order { margin-left: auto; }
  .topbar__nav { display: none; } /* на телефоне разделы — в нижней панели */

  .hero__actions .btn--primary { width: 100%; }
  .statusbar__addr, .statusbar__sep { display: none; }
  .stamp { top: 3%; left: 2%; width: 128px; }

  .facts { grid-template-columns: 1fr; }
  .facts li { flex-direction: row; align-items: baseline; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--line); }

  .tabs { width: 100%; }
  .tab { flex: 1 1 0; padding: 12px 8px; font-size: 0.9rem; text-align: center; }
  .items { grid-template-columns: 1fr; }
  .item { grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 0 12px; padding: 18px 0; }
  .page-menu .item { grid-template-columns: minmax(0, 1fr) auto auto; }
  .menu__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .menu__swipe { display: block; }

  .contacts__cta .btn { flex: 1 1 auto; }
  .info-row { padding: 16px 0; }

  .rolls-grid, .rolls-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .roll-card__name { font-size: 1rem; }
  .roll-card__desc { font-size: 0.8125rem; -webkit-line-clamp: 2; }
  .roll-card__price { font-size: 1.0625rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 20px; }
  .footer__logo img { width: 72px; }
  .footer__nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .tabbar { display: block; }
  .cart-bar { bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(18px + var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
  .has-cart .footer { padding-bottom: calc(18px + var(--tabbar-h) + 28px + 72px + env(safe-area-inset-bottom)); }
  .cart-bar__cta { padding: 12px 14px; }
}

@media (max-width: 360px) {
  .order-types { grid-template-columns: 1fr; }
  .tabbar__item { font-size: 0.625rem; }
  .cart-item { grid-template-columns: minmax(0, 1fr) auto; }
  .cart-item__sum { grid-column: 2; grid-row: 1; }
  .cart-item__qty { grid-column: 1 / -1; justify-self: start; }
}

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

/* Общее меню: три раздела в одном переключателе. */
.tabs--menu { width: min(100%, 620px); }
.tabs--menu .tab { flex: 1 1 0; min-width: 0; }
.cat__intro { margin-top: 10px; margin-bottom: 28px; color: var(--ink-menu); font-size: 0.9375rem; line-height: 1.6; }
.menu + .reviews { padding-top: 0; }
@media (max-width: 600px) {
  .tabs--menu .tab { display: grid; place-items: center; white-space: nowrap; padding: 10px 3px; min-height: 44px; font-size: var(--tab-label-size, clamp(0.625rem, 2.75vw, 0.875rem)); letter-spacing: -0.02em; line-height: 1.3; }
}

/* Подписи навигации — элементы управления: двойной щелчок не выделяет текст. */
.topbar__nav, .topbar__logo, .topbar__logo *, .topbar__order, .topbar__order *, .tabbar, .tabs, .chips, .footer__nav {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.page-menu .statusbar { display: none; }
#main:focus { outline: none; }

.menu__panel, .full-menu { overflow-anchor: none; } /* браузер не подстраивает прокрутку вслед за анимацией списка */

@media (max-width: 360px) {
  .tabs--menu { width: calc(100% + 24px); max-width: calc(100% + 24px); margin-inline: -12px; }
}

.topbar__logo img { -webkit-user-drag: none; }

.map-load { margin: 24px auto; }
