/* MOULIN — страничка «скоро». Палитра бренда v004: уголь #2A2623, крем #F1E8D6, янтарь #E2A64A (только акценты),
   терракота #A4502E, вино #5A1E24. Шрифты — системные (скачивать шрифты нельзя без «да» Vaso).
   Вся страница помещается на один экран без прокрутки: мельница занимает всё место, оставшееся от текста. */

:root {
  --coal: #2a2623;
  --cream: #f1e8d6;
  --amber: #e2a64a;
  --terracotta: #a4502e;
  --wine: #5a1e24;
  --night: #0f0b0a;                 /* фон страницы: тот же почти чёрный, что по краям фото башни */
  --cream-dim: #cfc4ad;
  --cream-faint: #a99e89;
  --serif: Georgia, "Times New Roman", "Sylfaen", "Noto Serif Georgian", "Noto Sans Georgian", serif;
  --ui: system-ui, -apple-system, "Segoe UI", "Noto Sans Georgian", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* мягкий (плавный) переход бокового края фото в кирпичный фон */
  --mill-fade: linear-gradient(to right, transparent 0, rgb(0 0 0 / 0.12) 8%, rgb(0 0 0 / 0.4) 16%, rgb(0 0 0 / 0.78) 25%, #000 34%, #000 66%, rgb(0 0 0 / 0.78) 75%, rgb(0 0 0 / 0.4) 84%, rgb(0 0 0 / 0.12) 92%, transparent 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--cream);
  font-family: var(--ui);
  line-height: 1.5;
  background-color: var(--night);
  /* тёмный кирпич: тёплый свет от арок мельницы, затемнение по краям, сам кирпич еле заметен */
  background-image:
    radial-gradient(ellipse 75% 40% at 50% 62%, rgb(226 166 74 / 0.09), transparent 72%),
    radial-gradient(ellipse 120% 90% at 50% 45%, transparent 35%, rgb(0 0 0 / 0.6) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='48'%3E%3Crect width='96' height='48' fill='%230d0907'/%3E%3Cg fill='%23160f0c'%3E%3Crect x='1' y='1' width='46' height='22'/%3E%3Crect x='49' y='1' width='46' height='22'/%3E%3Crect x='-23' y='25' width='46' height='22'/%3E%3Crect x='25' y='25' width='46' height='22'/%3E%3Crect x='73' y='25' width='46' height='22'/%3E%3C/g%3E%3Cg fill='%231b1310'%3E%3Crect x='49' y='1' width='46' height='22'/%3E%3Crect x='25' y='25' width='46' height='22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, auto, 96px 48px;
  /* страница теперь с прогоном вниз (лента блюд): свет и затемнение краёв держатся за окном, кирпич едет с прокруткой */
  background-attachment: fixed, fixed, scroll;
  overflow-x: hidden;
}

/* ---------- узкий экран: мельница сверху (занимает всё свободное место), текст внизу ---------- */
/* первый экран на 3rem короче окна: внизу выглядывает заголовок ленты блюд — видно, что страница идёт дальше */
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 3rem);
  min-height: calc(100svh - 3rem);
}

.mill {
  position: relative;
  flex: 1 1 0;
  min-height: 15rem;                 /* на совсем низком экране страница чуть прокрутится, но мельница не пропадёт */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;                  /* углы повёрнутого квадрата крыльев пустые — не должны давать горизонтальную прокрутку */
  container-type: size;              /* внутри — размеры в cqw/cqh: башня всегда целиком, пропорция 2:3 (1152×1728) */
}
.mill__box {
  position: relative;
  flex: none;
  height: 100%;                      /* запасной вариант для старых браузеров */
  aspect-ratio: 2 / 3;
}
@supports (width: 1cqw) {
  .mill__box { width: min(100cqw, 66.667cqh); height: auto; }
}
.mill picture { display: block; width: 100%; height: 100%; }

/* края и низ фото растворяются в кирпичный фон страницы: два вложенных слоя-маски (бока — на picture, низ — на img) */
.mill picture {
  -webkit-mask-image: var(--mill-fade);
  mask-image: var(--mill-fade);
}
.mill .tower {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 90%, transparent 100%);
}

/* крылья: квадрат 90.538 % ширины башни, ось в центре, ось втулки на башне — (579,526) из 1152×1728 */
.mill .sails {
  position: absolute;
  left: 4.991%;
  top: 0.26%;
  width: 90.538%;
  height: auto;
  aspect-ratio: 1;
  display: block;
  transform: rotate(18deg);
  will-change: transform;
  pointer-events: none;
  user-select: none;
}

/* тёплое дыхание света в арках у основания башни (49.5 %, 81 % кадра) */
.mill .glow {
  position: absolute;
  left: 49.5%;
  top: 81%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgb(226 166 74 / 0.32), rgb(226 166 74 / 0.08) 45%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.75;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .mill .glow { animation: mo-breathe 5.5s ease-in-out infinite; }
}
@keyframes mo-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

/* кнопка «остановить крылья» (слева: справа — столбик каналов) */
.spin {
  position: absolute;
  left: 1rem;
  bottom: 0.5rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--cream);
  background: rgb(42 38 35 / 0.62);
  border: 1px solid rgb(241 232 214 / 0.3);
  border-radius: 999px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, color 0.2s;
}
.spin svg { fill: currentColor; }
.spin .spin__play { display: none; }
.spin.is-paused .spin__pause { display: none; }
.spin.is-paused .spin__play { display: block; }
.spin:hover { color: var(--amber); border-color: rgb(226 166 74 / 0.7); }
.spin:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- текст ---------- */
.intro {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0 1.25rem max(1rem, env(safe-area-inset-bottom));
  text-align: center;
}

/* знак — маленькой печатью в левом верхнем углу (небо над мельницей пустое) */
.mark {
  position: absolute;
  top: max(0.9rem, env(safe-area-inset-top));
  left: 1rem;
  display: block;
  width: auto;
  height: 2.6rem;
  filter: drop-shadow(0 0 18px rgb(226 166 74 / 0.28));
}

.word {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 8vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;               /* выравнивает пробел, который добавляет последняя буква */
  line-height: 1.1;
  color: var(--cream);
}

/* «винный бар и бистро» — главная подсказка, что это место, где едят и пьют (Vaso 22.10: «говорят: заказ мельницы что ли?»):
   светлее и крупнее прежнего, но по-прежнему в одну строку на любой ширине телефона (размер ограничен через vw) */
.tag { margin: 0; line-height: 1.4; }
.tag--ka { margin-top: 0.5rem; font-size: min(0.95rem, 4vw); color: var(--cream); }
.tag--en {
  margin-top: 0.1rem;
  font-size: min(0.75rem, 3.2vw);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

/* три арки — свет из арок мельницы */
.arches { display: flex; gap: 0.45rem; margin-top: 0.8rem; }
.arches i {
  display: block;
  width: 0.6rem;
  height: 0.9rem;
  border-radius: 0.3rem 0.3rem 0 0;
  background: linear-gradient(180deg, var(--amber), var(--terracotta));
  opacity: 0.85;
}
.arches i:nth-child(2) { opacity: 0.55; }
.arches i:nth-child(3) { opacity: 0.3; }

/* «сайт скоро откроется» (ресторан уже работает) — две строки: en курсивом, ka под ней */
.soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin: 0.8rem 0 0;
  font-family: var(--serif);
  line-height: 1.25;
  color: var(--cream);
}
.soon__en { font-size: 1.35rem; font-style: italic; }
.soon__ka { font-size: 1rem; color: var(--cream-dim); }

/* адрес: на узком экране одной строкой «ka · en» */
.where {
  margin: 0.7rem 0 0;
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cream-dim);
}
.where span { display: inline; }
.where span + span { color: var(--cream-faint); }
.where span + span::before { content: "·"; margin: 0 0.45rem 0 0.05rem; color: var(--terracotta); }

/* разделы будущего сайта: Menu / Wine / Reserve — «арки» (верх круглый, как двери мельницы), две строки: en и ka.
   Сейчас заглушки для показа заказчику (см. комментарий в index.html) */
.sections {
  display: flex;
  gap: 0.5rem;
  width: min(100%, 20rem);
  margin-top: 0.9rem;
}
.sec {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.3rem 0.4rem;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
  background: rgb(42 38 35 / 0.55);
  border: 1px solid rgb(226 166 74 / 0.45);
  border-radius: 1.5rem 1.5rem 0.5rem 0.5rem;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.sec__en { font-family: var(--serif); font-size: 1rem; letter-spacing: 0.04em; }
.sec__ka { font-size: 0.75rem; color: var(--cream-dim); }
.sec:hover { color: var(--amber); border-color: rgb(226 166 74 / 0.85); background-color: rgb(226 166 74 / 0.1); }
.sec:hover .sec__ka { color: var(--amber); }
.sec:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.sections + .links { margin-top: 0.6rem; }

/* кнопки: телефон («таблетка») и Facebook; на узком экране — в один ряд, Facebook кружком */
.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: min(100%, 20rem);
  margin-top: 0.9rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.55rem 1.25rem;
  font-size: 1rem;
  color: var(--cream);
  text-decoration: none;
  border: 1px solid rgb(241 232 214 / 0.35);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.btn svg { flex: none; fill: currentColor; }
.btn--phone {
  flex: 1 1 auto;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  background: var(--coal);
  border-color: rgb(226 166 74 / 0.7);
}
.btn--phone svg { color: var(--amber); }
.btn:hover { color: var(--amber); border-color: rgb(226 166 74 / 0.85); background-color: rgb(226 166 74 / 0.08); }
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
/* подпись скрыта визуально, но читается программами экранного чтения */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* низкий телефон (SE и т.п.): чуть плотнее, чтобы всё влезло */
@media (max-height: 700px) {
  .mark { height: 2.2rem; }
  .tag--ka { margin-top: 0.35rem; }
  .arches { margin-top: 0.55rem; }
  .soon { margin-top: 0.55rem; }
  .soon__en { font-size: 1.2rem; }
  .soon__ka { font-size: 0.9rem; }
  .where { margin-top: 0.5rem; }
  .sections { margin-top: 0.6rem; }
  .sections + .links { margin-top: 0.45rem; }
  .sec { min-height: 44px; padding-block: 0.2rem; }
  .sec__en { font-size: 0.9375rem; }
  .sec__ka { font-size: 0.6875rem; }
  .links { margin-top: 0.65rem; }
  .btn { min-height: 44px; }
  }

/* ---------- широкий экран: текст слева, мельница справа на всю высоту ---------- */
@media (min-aspect-ratio: 5 / 4) and (min-width: 560px) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: clamp(1rem, 4vw, 4rem);
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 0 0 clamp(2rem, 8vw, 9rem);
  }
  .mill {
    grid-column: 2;
    grid-row: 1;
    flex: none;
    height: calc(100vh - 3rem);
    height: calc(100svh - 3rem);
    min-height: 420px;
    width: calc((100vh - 3rem) * 2 / 3);
    width: calc((100svh - 3rem) * 2 / 3);
  }
  .spin { left: 1.5rem; bottom: 1.5rem; }
  .intro {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
    max-width: 38rem;
    margin: 0;
    padding: 2rem 0;
    text-align: left;
  }
  .mark { position: static; height: 4.4rem; margin-bottom: 1.3rem; }
  .word { font-size: clamp(2.8rem, 5.2vw, 4.75rem); text-indent: 0; }
  .tag--ka { margin-top: 1.1rem; font-size: 1.3rem; }
  .tag--en { margin-top: 0.25rem; font-size: 0.9375rem; letter-spacing: 0.16em; }
  .arches { margin-top: 1.4rem; gap: 0.5rem; }
  .arches i { width: 0.7rem; height: 1.05rem; border-radius: 0.35rem 0.35rem 0 0; }
  .soon { align-items: flex-start; gap: 0.35rem; margin-top: 1.5rem; }
  .soon__en { font-size: 2.1rem; }
  .soon__ka { font-size: 1.3rem; }
  .where { margin-top: 1.5rem; font-size: 1rem; }
  .where span { display: block; }
  .where span + span { font-size: 0.8125rem; }
  .where span + span::before { content: none; }
  .sections { width: auto; margin-top: 1.5rem; }
  .sec { flex: none; min-width: 7.25rem; min-height: 58px; padding-inline: 1.2rem; }
  .sec__en { font-size: 1.1rem; }
  .sec__ka { font-size: 0.8125rem; }
  .links { justify-content: flex-start; width: auto; margin-top: 1.5rem; }
  .sections + .links { margin-top: 0.8rem; }
  .btn { min-height: 48px; padding-inline: 1.4rem; }
  .btn--phone { flex: none; }
  }

/* низкий ноутбучный экран — чуть плотнее */
@media (min-aspect-ratio: 5 / 4) and (min-width: 560px) and (max-height: 760px) {
  .mark { height: 3.4rem; margin-bottom: 1rem; }
  .arches { margin-top: 1rem; }
  .soon { margin-top: 1rem; }
  .soon__en { font-size: 1.8rem; }
  .where, .links, .sections { margin-top: 1rem; }
  .sections + .links { margin-top: 0.6rem; }
  .sec { min-height: 50px; }
}
@media (min-aspect-ratio: 5 / 4) and (min-width: 560px) and (max-height: 600px) {
  .mark { height: 2.6rem; margin-bottom: 0.6rem; }
  .word { font-size: 2.6rem; }
  .tag--ka { margin-top: 0.6rem; }
  .arches { margin-top: 0.7rem; }
  .soon { margin-top: 0.7rem; }
  .soon__en { font-size: 1.5rem; }
  .soon__ka { font-size: 1.05rem; }
  .where, .links, .sections { margin-top: 0.7rem; }
  .sections + .links { margin-top: 0.5rem; }
  .sec { min-height: 44px; padding-block: 0.15rem; }
}

/* телефон на боку (низкий широкий экран): всё то же, но плотнее и адрес одной строкой */
@media (min-aspect-ratio: 5 / 4) and (min-width: 560px) and (max-height: 500px) {
  .mill { min-height: 0; }
  .intro { padding: 0.75rem 0; }
  .mark { height: 2rem; margin-bottom: 0.4rem; }
  .word { font-size: 2rem; }
  .tag--ka { margin-top: 0.35rem; font-size: 0.9375rem; }
  .arches { display: none; }
  .soon { margin-top: 0.5rem; gap: 0.1rem; }
  .soon__en { font-size: 1.25rem; }
  .soon__ka { font-size: 0.9375rem; }
  .where { margin-top: 0.5rem; font-size: 0.8125rem; }
  .where span { display: inline; }
  .where span + span { font-size: inherit; }
  .where span + span::before { content: "·"; margin: 0 0.45rem 0 0.05rem; color: var(--terracotta); }
  .links { margin-top: 0.6rem; }
  .sections { margin-top: 0.5rem; }
  .sections + .links { margin-top: 0.4rem; }
  .sec { min-height: 38px; flex-direction: row; gap: 0.45rem; padding-block: 0.1rem; min-width: 6rem; }
  .sec__en { font-size: 0.9375rem; }
  .sec__ka { font-size: 0.75rem; }
  .btn { min-height: 44px; }
  }

/* ---------- столбик каналов справа (решение Vaso 22.10; макет design/concept/v4/site_v4_rail.html) ----------
   Закреплён у правого края, на ноутбуке и на телефоне одинаковый. Иконка без ссылки (<a> без href) скрыта.
   Группы разделены маленькими арками. Телефон — не здесь, а «таблеткой» в тексте. */
.rail {
  /* узкий экран: столбик у верхнего правого угла, его высота — в пределах мельницы, чтобы не закрывать текст внизу */
  --s: clamp(30px, calc((100vh - 480px) / 11.34), 40px);
  position: absolute;                /* на телефоне столбик — часть первого экрана и уезжает вверх вместе с ним, ленту блюд не закрывает */
  z-index: 5;
  right: max(0.6rem, env(safe-area-inset-right));
  top: max(0.75rem, env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 999px;
  background: rgb(42 38 35 / 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(241 232 214 / 0.23);
}
@supports (height: 1svh) {
  .rail { --s: clamp(30px, calc((100svh - 480px) / 11.34), 40px); }
}
.rail:not(:has(a[href])),
.rail .grp:not(:has(a[href])),
.rail a:not([href]) { display: none; }
.rail .grp { display: flex; flex-direction: column; align-items: center; }
/* арки-разделитель между видимыми группами */
.rail .grp:has(a[href]) ~ .grp:has(a[href])::before {
  content: "";
  width: calc(var(--s) * 0.5);
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10' fill='none' stroke='%23e2a64a' stroke-opacity='.6' stroke-width='1.2'%3E%3Cpath d='M2 10V6a3 3 0 0 1 6 0v4M12 10V6a3 3 0 0 1 6 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ico {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--s);
  height: var(--s);
  color: var(--cream);
  border-radius: 50%;
  text-decoration: none;
  transition: color 0.2s;
}
.ico svg { width: 56%; height: 56%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico svg.fill { width: 52%; height: 52%; fill: currentColor; stroke: none; }
/* две «арки» слева от иконки при наведении */
.ico::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  width: 9px;
  height: 56%;
  transform: translateY(-50%) scaleY(0.4);
  opacity: 0;
  border-left: 2px solid var(--amber);
  border-right: 2px solid var(--amber);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.ico:hover, .ico:focus-visible { color: var(--amber); }
.ico:hover::after, .ico:focus-visible::after { opacity: 1; transform: translateY(-50%) scaleY(1); }
.ico:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
/* доставки: настоящие логотипы платформ как есть, на белой плитке */
.ico.brand { width: var(--s); height: calc(var(--s) * 0.78); margin: 2px 0; background: #fff; border-radius: 10px; }
.ico.brand img { display: block; width: 78%; height: auto; max-height: 70%; object-fit: contain; }
.ico.brand::after { display: none; }
.ico.brand:hover, .ico.brand:focus-visible { box-shadow: 0 0 0 2px var(--amber); }
/* подпись при наведении (только на устройствах с мышью) */
.ico::before {
  content: attr(data-label);
  position: absolute;
  right: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font: 12px/1 var(--serif);
  letter-spacing: 0.12em;
  color: var(--cream);
  background: rgb(42 38 35 / 0.92);
  border: 1px solid rgb(241 232 214 / 0.2);
  border-radius: 999px;
  padding: 7px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
@media (hover: hover) {
  .ico:hover::before, .ico:focus-visible::before { opacity: 1; }
}

/* широкий экран (решение Vaso 22.10: «ссылки справа на всю длину монитора»): столбик — полоса во всю высоту правого края.
   Группы «раскрыты» (display: contents), поэтому иконки и арки-разделители — равноудалённые элементы одной колонки,
   и иконки равномерно рассыпаны от верха до низа экрана. Иконки крупнее (текст слева, места хватает). */
@media (min-aspect-ratio: 5 / 4) and (min-width: 560px) {
  .rail {
    --s: clamp(30px, calc((100vh - 200px) / 12.6), 48px);
    position: fixed;                 /* на широком экране полоса стоит у края окна при прокрутке (ленте блюд оставлен отступ справа) */
    top: 0;
    bottom: 0;
    right: 0;
    justify-content: space-between;
    padding: 18px calc(9px + env(safe-area-inset-right)) 18px 9px;
    border-radius: 0;
    border-width: 0 0 0 1px;
  }
  .rail .grp { display: contents; }
}
@supports (height: 1svh) {
  @media (min-aspect-ratio: 5 / 4) and (min-width: 560px) {
    .rail { --s: clamp(30px, calc((100svh - 200px) / 12.6), 48px); }
  }
}

/* ---------- лента блюд внизу (решение Vaso 22.10: «снизу лентой блюда, чтобы прокручивались») ----------
   Прокрутка вбок со «прилипанием» карточек (scroll-snap); следующая карточка выглядывает — видно, что лента идёт дальше.
   Сейчас карточки — заглушки в цветах бренда: настоящие блюда и фото даёт клиент (make_dishes.py). Верх карточки — арка, как двери мельницы. */
.dishes {
  position: relative;
  padding: 0.9rem 0 max(2.5rem, env(safe-area-inset-bottom));
}
.dishes__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.25rem;
}
.dishes__title {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}
.dishes__ka { font-size: 1rem; letter-spacing: 0.04em; text-transform: none; color: var(--cream-dim); }
.dishes__ctrl { display: flex; align-items: center; gap: 0.5rem; }
.dishes__nav { display: none; gap: 0.5rem; }
/* кнопка «пауза / пуск» ленты — на любом устройстве (лента едет сама, должна быть возможность её остановить) */
.dishes__play svg { fill: currentColor; stroke: none; }
.dishes__play .play__play { display: none; }
.dishes__play.is-paused .play__pause { display: none; }
.dishes__play.is-paused .play__play { display: block; }
/* пока лента едет сама, «прилипание» к карточкам выключено (оно возвращало бы её назад) */
.dishes__track.is-auto { scroll-snap-type: none; }
.dishes__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--cream);
  background: rgb(42 38 35 / 0.62);
  border: 1px solid rgb(241 232 214 / 0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, opacity 0.2s;
}
.dishes__btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dishes__btn:hover:not(:disabled) { color: var(--amber); border-color: rgb(226 166 74 / 0.7); }
.dishes__btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.dishes__btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .dishes__nav { display: flex; } }

.dishes__track {
  display: flex;
  gap: 1rem;
  margin: 0.9rem 0 0;
  padding: 0.25rem 1.25rem 0.75rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1.25rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dishes__track::-webkit-scrollbar { display: none; }
.dishes__track:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; border-radius: 0.5rem; }

.dish { flex: none; width: min(62vw, 15rem); scroll-snap-align: start; }
.dish__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 7.5rem 7.5rem 0.75rem 0.75rem;      /* арка: верх — полукруг шириной в карточку */
  border: 1px solid rgb(226 166 74 / 0.4);
  background: #1b1310;
}
.dish__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* заглушка: тёплый свет снизу, три оттенка бренда по кругу (вино / терракота / янтарь), тарелка с вилкой и ножом */
.dish__media--ph {
  display: grid;
  place-items: center;
  color: rgb(241 232 214 / 0.55);
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgb(226 166 74 / 0.3), transparent 70%),
    linear-gradient(180deg, #1c1411 0%, #2b1b14 100%);
}
.dish:nth-child(3n + 1) .dish__media--ph {
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgb(164 80 46 / 0.4), transparent 70%),
    linear-gradient(180deg, #1c1411 0%, #2b1814 100%);
}
.dish:nth-child(3n + 2) .dish__media--ph {
  background:
    radial-gradient(ellipse 80% 55% at 50% 100%, rgb(122 40 50 / 0.5), transparent 70%),
    linear-gradient(180deg, #1b1210 0%, #2a1618 100%);
}
.dish__plate { width: 46%; height: auto; }
.dish__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin: 0.7rem 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.3;
  color: var(--cream);
}
.dish__ka { font-family: var(--ui); font-size: 0.8125rem; color: var(--cream-dim); }

@media (min-aspect-ratio: 5 / 4) and (min-width: 560px) {
  /* широкий экран: лента — в одной колонке с текстом; справа оставлено место под полосу каналов (она стоит у края окна) */
  .dishes {
    max-width: 1500px;
    margin: 0 auto;
    padding: 1.4rem 5.5rem max(3rem, env(safe-area-inset-bottom)) clamp(2rem, 8vw, 9rem);
  }
  .dishes__head { padding: 0; }
  .dishes__title { font-size: 1.5rem; }
  .dishes__ka { font-size: 1.15rem; }
  .dishes__track { padding-inline: 0; scroll-padding-inline: 0; margin-top: 1.1rem; gap: 1.4rem; }
  .dish { width: clamp(13rem, 18vw, 16.5rem); }
  .dish__media { border-top-left-radius: 8.25rem; border-top-right-radius: 8.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .spin, .ico, .dishes__btn { transition: none; }
  .dishes__track { scroll-behavior: auto; }
}
