/* Frnds — дизайн-система.
   Палитра из брендбука; контрасты закреплены тестом tests/test_contrast.py.
   Белый текст на брендовой заливке запрещён: #FF7F17 + белый = 2.53:1. */

:root {
  --brand: #FF7F17;        /* заливка; текст поверх — тёмный, не белый */
  --brand-deep: #D96410;   /* крупные заголовки на кремовом, от 24px bold */
  --brand-text: #A84C08;   /* мелкий брендовый текст: цены, ссылки */
  --brand-soft: #FFE8D2;   /* нежная подложка: бейджи, ховеры */
  --cream: #FDF8F3;
  --surface: #FFFFFF;
  --ink: #1A1A1A;
  --ink-soft: rgba(26, 26, 26, .62);
  --line: rgba(26, 26, 26, .10);
  --success: #2E9E5B;
  --wa: #25D366;           /* фирменный зелёный WhatsApp — только заливка,
                              текст поверх тёмный: с белым всего 1.98:1 */

  --radius-card: 24px;
  --radius-pill: 9999px;
  --container: 1180px;
  --gap: 24px;
  --header-h: 64px;
  --shadow-pop: 0 18px 40px -18px rgba(120, 60, 8, .28);
}

/* ---------- база ---------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4 { letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }

p { margin: 0 0 1em; }

.display { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; letter-spacing: 0; }
/* У Playfair нет казахских ә ғ қ ң ө ү һ — на kk display рендерим жирным Manrope */
body[data-lang="kk"] .display { font-family: Manrope, system-ui, sans-serif; font-weight: 800; letter-spacing: -.02em; }

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

.section { padding: 72px 0; position: relative; }
.section--tint { background: var(--surface); }
.section__more { margin-top: 28px; font-weight: 600; }

/* Рукописный водяной знак — фирменный мотив с упаковки */
.watermark { position: relative; overflow: hidden; }
.watermark::before {
  content: "";
  position: absolute; right: -140px; top: -40px;
  width: 560px; height: 260px;
  background: url(/img/logo/frnds-orange-640.png) no-repeat center / contain;
  opacity: .07; transform: rotate(-8deg);
  pointer-events: none;
}

.stroke { color: var(--brand); width: 150px; height: 10px; margin: 2px 0 26px; }

/* Письмо гостю на главной */
.manifesto { max-width: 720px; }
.manifesto p { font-size: 18px; line-height: 1.75; }
.manifesto__sign {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px; font-weight: 700; margin-top: 22px;
}
body[data-lang="kk"] .manifesto__sign { font-family: Manrope, system-ui, sans-serif; font-weight: 800; }

/* ---------- доступность ---------- */

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 999; padding: 12px 18px;
  background: var(--ink); color: var(--surface);
  border-radius: var(--radius-pill); text-decoration: none;
}

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- пилюли и бейджи ---------- */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  border: 0; border-radius: var(--radius-pill);
  font: 700 15px/1 Manrope, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out,
              padding .2s ease-out, transform .15s ease-out;
}
.pill:active { transform: scale(.97); }

.pill--brand { background: var(--brand); color: var(--ink); }
.pill--brand:hover { background: #FF8F35; color: var(--ink); }

.pill--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.pill--ghost:hover { background: var(--ink); color: var(--cream); }

/* Кнопки WhatsApp: значок + зелёный фирменный ховер. Правило стоит после
   pill--brand и pill--ghost, чтобы при наведении побеждал зелёный. */
.icon-wa { width: 18px; height: 18px; flex: none; }
.pill--wa { gap: 9px; }
.pill--wa:hover, .pill--wa:focus-visible {
  background: var(--wa); color: var(--ink);   /* 8.78:1 */
  box-shadow: none;
}

/* Пилюля-цена: цена и есть кнопка. На ховере раздувается, показывает действие. */
.pill--price {
  min-height: 36px; padding: 8px 14px;
  background: var(--cream); color: var(--brand-text);
  font-weight: 700; font-size: 14px;
}
.pill--price .pill__action { display: none; }
.pill--price:hover, .pill--price:focus-visible {
  background: var(--brand); color: var(--ink);   /* 6.88:1 */
  padding: 11px 20px; min-height: 44px;
}
.pill--price:hover .pill__action,
.pill--price:focus-visible .pill__action { display: inline; }
.pill--price.is-added { background: var(--success); color: #fff; }

.badge {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--brand); color: var(--ink);
  font: 700 13px/1 Manrope, sans-serif;
}

.card__tags { font-size: .85em; }

/* ---------- шапка ---------- */

.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 248, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.logo { flex: none; display: flex; }
.logo img { width: 96px; height: auto; }

.nav { display: flex; gap: 20px; }
.nav a, .mobile-nav a:not(.pill) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px;
}
.nav a:hover { color: var(--brand-deep); }

.header__meta {
  display: flex; align-items: center; gap: 8px; margin-left: auto;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.header__rating { color: var(--brand-text); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }

.lang { display: flex; gap: 2px; }
.lang a {
  padding: 6px 9px; border-radius: 8px; font-size: 13px; font-weight: 700;
  color: var(--ink-soft); text-decoration: none;
}
.lang a[aria-current="true"] { background: var(--brand-soft); color: var(--brand-text); }

.burger { display: none; }

.mobile-nav { display: none; }

/* ---------- герой ---------- */

.hero { padding: 56px 0 72px; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 40px; align-items: center;
}
.hero__h1 { margin: 0 0 18px; line-height: 0; }
.hero__logo { width: min(330px, 72%); height: auto; }
/* Слоган под логотипом. Не uppercase: фраза длинная, и в верхнем регистре
   с разрядкой она разъезжается на три строки и читается как заголовок. */
.hero__kicker {
  font: 700 clamp(17px, 1.6vw, 20px)/1.4 Manrope, sans-serif;
  color: var(--brand-text); margin-bottom: 16px; max-width: 22ch;
}
.hero__lead { font-size: 19px; line-height: 1.65; max-width: 46ch; color: var(--ink-soft); }
.hero__lead p { margin: 0 0 .8em; }
.hero__lead p:last-child { margin-bottom: 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero__meta { display: flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); }

.hero__media { position: relative; justify-self: end; width: min(460px, 100%); }
.hero__media img {
  border-radius: 50%; aspect-ratio: 1; object-fit: cover;
  box-shadow: var(--shadow-pop);
  position: relative; z-index: 1;
}
.hero__circle {
  position: absolute; inset: -7% -9% auto auto;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--brand);
}

/* Стаггер появления героя */
@media (prefers-reduced-motion: no-preference) {
  .hero__text > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero__text > *:nth-child(2) { animation-delay: .07s; }
  .hero__text > *:nth-child(3) { animation-delay: .14s; }
  .hero__text > *:nth-child(4) { animation-delay: .21s; }
  .hero__text > *:nth-child(5) { animation-delay: .28s; }
  .hero__media { animation: pop .7s cubic-bezier(.2, .7, .25, 1.15) both .15s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes pop  { from { opacity: 0; transform: scale(.92); } }

/* ---------- веер полароидов (команда и гости) ---------- */

.hero__media--wall { width: min(520px, 100%); }
.fan {
  position: relative; width: 100%; aspect-ratio: 1 / 0.92;
}
.fan__card {
  position: absolute; margin: 0; width: 46%;
  filter: drop-shadow(0 18px 28px rgba(120, 60, 8, .28));
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}
/* Сбрасываем правило круглого фото героя: полароид должен остаться
   прямоугольным целиком, вместе с подписью внизу */
.fan__card img {
  width: 100%; height: auto; border-radius: 6px;
  aspect-ratio: auto; object-fit: fill; box-shadow: none;
}
.fan__card--left   { left: 0;   top: 12%;  transform: rotate(-9deg); z-index: 1; }
.fan__card--center { left: 27%; top: 0;    transform: rotate(2deg);  z-index: 2; }
.fan__card--right  { right: 0;  top: 14%;  transform: rotate(8deg);  z-index: 1; }
.fan__card:hover { transform: rotate(0) scale(1.04); z-index: 3; }

/* Два полароида рядом с текстом — блок «Наш дом» */
.fan--duo { aspect-ratio: 1 / 0.9; }
.fan--duo .fan__card { width: 54%; }
.fan--duo .fan__card--left  { left: 0;  top: 6%;  transform: rotate(-7deg); }
.fan--duo .fan__card--right { right: 0; top: 0;   transform: rotate(6deg); }

@media (prefers-reduced-motion: no-preference) {
  .fan__card { animation: pop .7s cubic-bezier(.2, .7, .25, 1.15) both; }
  .fan__card--center { animation-delay: .1s; }
  .fan__card--right  { animation-delay: .2s; }
}

/* ---------- стопка фото (страница доставки) ---------- */

.hero--delivery { padding: 34px 0 48px; }
.hero--delivery .hero__inner { grid-template-columns: 1.05fr .95fr; }

.photo-stack {
  position: relative; justify-self: end;
  width: min(460px, 100%); aspect-ratio: 1 / 1.02;
}
.photo-stack figure { position: absolute; margin: 0; }
.photo-stack img {
  width: 100%; height: auto; border-radius: 20px;
  box-shadow: 0 22px 50px -18px rgba(120, 60, 8, .45);
  border: 6px solid var(--surface);
}
.photo-stack__back {
  right: 0; top: 0; width: 62%;
  transform: rotate(5deg);
}
.photo-stack__front {
  left: 0; bottom: 0; width: 72%; z-index: 1;
  transform: rotate(-4deg);
}
.photo-stack__front::after {
  /* оранжевый круг из макета меню — тот же мотив, что на главной */
  content: ""; position: absolute; z-index: -1;
  left: -10%; bottom: -8%; width: 46%; aspect-ratio: 1;
  border-radius: 50%; background: var(--brand);
}
@media (prefers-reduced-motion: no-preference) {
  .photo-stack figure { animation: pop .7s cubic-bezier(.2, .7, .25, 1.15) both; }
  .photo-stack__front { animation-delay: .12s; }
}

/* ---------- сетка карточек ---------- */

.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface); border-radius: var(--radius-card);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform .25s ease-out, box-shadow .25s ease-out;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.card__media { position: relative; display: block; }
.card__media img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.card__title { font-size: 18px; margin: 0 0 6px; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brand-deep); }
/* Описания у блюд разной длины: без ограничения карточки в ряду
   получаются разной высоты и сетка «пляшет». Три строки хватает,
   полный состав всегда есть на странице блюда. */
.card__desc {
  font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 14px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
  overflow: hidden;
}
.card__foot { margin-top: auto; }

/* Плотный список для разделов без фото */
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 18px; background: var(--surface); border-radius: 16px;
}
.row + .row { margin-top: 10px; }
.row__title { font-size: 16.5px; margin: 0 0 2px; }
.row__desc { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.row__price { flex: none; }

/* ---------- якорная навигация меню ---------- */

.chips {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(253, 248, 243, .95); backdrop-filter: blur(8px);
  padding: 12px 0; margin: 0 -20px; overflow-x: auto;
  scrollbar-width: none; border-bottom: 1px solid var(--line);
}
.chips::-webkit-scrollbar { display: none; }
.chips__inner { display: flex; gap: 8px; padding: 0 20px; width: max-content; }
.chip {
  flex: none; padding: 9px 16px; border-radius: var(--radius-pill);
  font: 600 14px/1 Manrope, sans-serif; color: var(--ink);
  text-decoration: none; background: transparent; white-space: nowrap;
  transition: background-color .15s ease-out, color .15s ease-out;
}
.chip:hover { background: var(--brand-soft); color: var(--brand-text); }
.chip.is-active { background: var(--ink); color: var(--cream); }

.menu-section { padding: 34px 0 10px; scroll-margin-top: calc(var(--header-h) + 64px); }
.menu-section h2 { display: flex; align-items: center; gap: 14px; }
.menu-section h2 .stroke { width: 90px; margin: 0; flex: none; }

/* ---------- нижний бар корзины ---------- */

.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transform: translateY(110%); transition: transform .3s cubic-bezier(.5, 1, .5, 1);
}
.cartbar.is-visible { transform: none; }
.cartbar__sum { font-weight: 700; font-size: 15.5px; }
.cartbar__count { color: rgba(253, 248, 243, .65); font-weight: 600; margin-right: 8px; }

/* ---------- панель заказа ---------- */

.cart-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(26, 26, 26, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s ease-out;
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(430px, 100vw);
  background: var(--cream); padding: 22px;
  display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .3s cubic-bezier(.5, 1, .5, 1);
  overflow-y: auto;
}
.cart-panel.is-open { transform: none; }
.cart-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cart-panel__close {
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--surface); font-size: 20px; cursor: pointer; line-height: 1;
}
.cart-list { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.cart-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: 16px; padding: 12px 14px;
}
.cart-item + .cart-item { margin-top: 8px; }
.cart-item__name { flex: 1; font-weight: 600; font-size: 14.5px; }
.cart-item__price { font-weight: 700; font-size: 14px; color: var(--brand-text); white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button {
  width: 34px; height: 34px; border: 0; border-radius: 10px;
  background: var(--cream); font-size: 17px; font-weight: 700; cursor: pointer; color: var(--ink);
}
.qty button:hover { background: var(--brand-soft); }
.qty output { min-width: 22px; text-align: center; font-weight: 700; font-size: 14.5px; }

.cart-mode { display: flex; gap: 6px; background: var(--surface); border-radius: var(--radius-pill); padding: 5px; margin-bottom: 14px; position: relative; }
.cart-mode label {
  flex: 1; text-align: center; padding: 9px 6px; border-radius: var(--radius-pill);
  font: 600 14px/1 Manrope, sans-serif; cursor: pointer; color: var(--ink-soft);
  transition: background-color .2s ease-out, color .2s ease-out;
}
.cart-mode input { position: absolute; opacity: 0; pointer-events: none; }
.cart-mode input:checked + label { background: var(--brand); color: var(--ink); }
.cart-mode input:focus-visible + label { outline: 3px solid var(--brand-deep); outline-offset: 2px; }

.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.cart-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 10px; }
.cart-empty { color: var(--ink-soft); padding: 28px 0; text-align: center; }
.cart-send { width: 100%; }
.cart-clear { background: none; border: 0; color: var(--ink-soft); font: 600 13px Manrope, sans-serif; cursor: pointer; text-decoration: underline; }

/* ---------- уведомление о персональных данных ---------- */

.consent {
  position: fixed; left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  margin: 0 auto; max-width: 960px; z-index: 75;
  display: flex; align-items: center; gap: 14px;
  padding: 13px 14px 13px 22px;
  background: var(--surface); border-radius: 18px;
  box-shadow: 0 14px 44px rgba(26, 26, 26, .20);
  font-size: 14.5px; line-height: 1.5;
}
/* display: flex перебил бы атрибут hidden — возвращаем скрытие явно */
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1; }
.consent a { color: var(--brand-text); font-weight: 600; }
.consent__close {
  flex: none; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: var(--cream);
  font-size: 19px; line-height: 1; color: var(--ink); cursor: pointer;
}
.consent__close:hover { background: var(--brand-soft); }

/* ---------- страница политики ---------- */

.legal { max-width: 760px; padding-top: 34px; padding-bottom: 60px; }
.legal section { margin-top: 34px; }
.legal h2 { font-size: 22px; }
.legal__updated { margin-top: 40px; color: var(--ink-soft); font-size: 13.5px; }

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

.footer { background: var(--ink); color: rgba(253, 248, 243, .82); margin-top: 72px; }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px; padding: 52px 20px 30px;
}
.footer__col p { margin: 0 0 6px; font-size: 14.5px; }
.footer__col img { width: 120px; margin-bottom: 16px; }
.footer__col nav, .footer__col--contacts { display: flex; flex-direction: column; gap: 10px; }
.footer a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.footer a:hover { color: var(--brand); }
.footer .link-wa .icon-wa { width: 16px; height: 16px; vertical-align: -3px; margin-right: 7px; }
.footer .link-wa:hover { color: var(--wa); }
.footer__legal {
  border-top: 1px solid rgba(253, 248, 243, .14);
  padding: 18px 20px; font-size: 13px; color: rgba(253, 248, 243, .55);
}

/* ---------- карта, страницы ---------- */

#map { height: 380px; border-radius: var(--radius-card); z-index: 1; }

.breadcrumbs { font-size: 13.5px; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.dish { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; padding: 34px 0 60px; }
.dish__media img { border-radius: var(--radius-card); box-shadow: var(--shadow-pop); }
.dish__price { font-size: 26px; font-weight: 800; color: var(--brand-text); margin: 12px 0 20px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.tile {
  background: var(--surface); border-radius: var(--radius-card); padding: 26px;
  display: flex; flex-direction: column;
}
.tile h3 { margin-bottom: 8px; }
.tile p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
/* Кнопка прижата к низу карточки — плитки в ряду остаются ровными,
   даже когда кнопка есть только у одной из них */
.tile .pill { margin-top: 18px; align-self: flex-start; }
.tile p + .pill { margin-top: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split img { border-radius: var(--radius-card); }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
/* figure и blockquote приходят с браузерными отступами по 40px —
   без сброса карточка отзыва на телефоне сжимается почти вдвое. */
.quote {
  margin: 0;
  background: var(--surface); border-radius: var(--radius-card); padding: 24px;
  font-size: 14.5px; line-height: 1.6;
}
.quote blockquote { margin: 0; }
.quote blockquote::before { content: "«"; }
.quote blockquote::after { content: "»"; }
.quote footer { margin-top: 10px; color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.rating-line { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.rating-line strong { font-size: 44px; font-weight: 800; color: var(--brand-deep); }

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav, .header__meta, .header .lang, .header__cta { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s ease-out, opacity .2s ease-out; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .mobile-nav {
    display: flex; flex-direction: column; gap: 16px;
    padding: 20px; border-top: 1px solid var(--line);
  }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a:not(.pill) { font-size: 17px; }

  .hero { padding: 34px 0 52px; }
  .hero__inner, .hero--delivery .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero--delivery .hero__text { order: 1; }
  .hero--delivery .photo-stack { order: 0; }
  .hero__media { justify-self: center; width: min(340px, 88%); }
  .photo-stack { justify-self: center; width: min(360px, 90%); margin-top: 8px; }
  .hero__media--wall { width: min(400px, 96%); }
  .fan--duo { width: min(380px, 92%); margin: 0 auto; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__body { padding: 12px 13px 14px; }
  .card__title { font-size: 15.5px; }
  .card__desc { font-size: 12.5px; -webkit-line-clamp: 2; }

  /* На узком экране крупное вступление съедает первый экран целиком */
  .hero__lead { font-size: 16px; }
  .page-menu h1, .page-breakfast h1, .page-geo h1 { margin-bottom: .3em; }
  .page-menu .hero__lead { margin-bottom: 4px; }
  .chips { padding: 10px 0; }
  .menu-section { padding: 22px 0 6px; }

  .dish, .split { grid-template-columns: 1fr; gap: 26px; }
  .tiles, .quote-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 52px 0; }
}

@media (max-width: 420px) {
  .row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .row__price { align-self: flex-end; }
}

/* ---------- движение по вкусу пользователя ---------- */

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

@media print {
  .header, .footer, .cartbar, .cart-panel, .cart-overlay, .chips { display: none !important; }
}
