/* Вывеска на всю ширину: имя стоит внизу первого экрана, как золотые буквы
   над лавкой на Кузнецком мосту. Дальше страница чередует ночной синий
   фасад и белую бумагу кондитерской коробки, крупные фото во всю ширину,
   в конце имя возвращается обрезанным краем. */
:root {
  color-scheme: dark;
  --bg: #1a2039;          /* ночной синий фасада */
  --surface: #212846;     /* ступень тона на синем */
  --surface-2: #283058;
  --ink: #f9a3c0;         /* розовый */
  --muted: #c896aa;
  --accent: #f9a3c0;
  --accent-ink: #1a2039;
  --paper: #fdf8fa;       /* белая бумага с розовым отсветом */
  --paper-2: #f6e9ef;     /* ступень тона на белом */
  --navy-ink: #1a2039;
  --navy-muted: #5a5f7d;

  --display: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;

  --step-small: 0.9375rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1vw, 2.125rem);
  --step-head: clamp(2.5rem, 1.2rem + 4.4vw, 5.25rem);

  --m: clamp(20px, 2.2vw, 32px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-hover: 300ms;
}

*, *::before, *::after { box-sizing: border-box; }
/* Телефоны не должны сами увеличивать шрифт в отдельных блоках (iOS при повороте, Android). */
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.wrap {
  padding-left: max(var(--m), env(safe-area-inset-left, 0px));
  padding-right: max(var(--m), env(safe-area-inset-right, 0px));
}
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--m); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
p, blockquote, figure { margin: 0; }

.light { background: var(--paper); color: var(--navy-ink); }
.light ::selection { background: var(--navy-ink); color: var(--paper); }

.button {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  background: var(--accent); color: var(--accent-ink);
  padding: 0.9em 1.3em; border: 0; border-radius: 0; text-decoration: none; cursor: pointer;
  transition: background-color var(--t-hover) ease;
}
.button:hover { background: #ffc2d6; }
.button.navy { background: var(--navy-ink); color: var(--paper); }
.button.navy:hover { background: #2b3459; }

/* ---------- фото и запасной рисунок ---------- */
[data-photo] { position: relative; margin: 0; background: var(--surface); overflow: hidden; }
.light [data-photo] { background: var(--paper-2); }
[data-photo] img { width: 100%; height: 100%; object-fit: cover; }
[data-photo] picture { display: contents; }
[data-photo].is-missing img { visibility: hidden; }
[data-photo].is-missing::after {
  content: ""; position: absolute; inset: 22% 18%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 120' fill='none' stroke='%23f9a3c0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 82C28 42 78 20 100 22C122 20 172 42 182 82C168 93 150 91 140 79C128 99 72 99 60 79C50 91 32 93 18 82Z'/%3E%3Cpath d='M60 79C61 56 74 36 90 26'/%3E%3Cpath d='M140 79C139 56 126 36 110 26'/%3E%3Cpath d='M100 22C97 48 98 72 100 96'/%3E%3Cpath d='M36 74C40 60 48 50 58 44'/%3E%3Cpath d='M164 74C160 60 152 50 142 44'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- доступность ---------- */
.skip { position: absolute; left: var(--m); top: -100px; z-index: 20; background: var(--ink); color: var(--navy-ink); padding: 10px 14px; font-family: var(--display); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- шапка ---------- */
/* Шапка закреплена. Над первым экраном прозрачная, при прокрутке получает
   синий фон фасада и становится ниже, чтобы не теряться на светлых блоках. */
.top {
  position: fixed; z-index: 5; inset: 0 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-top: calc(env(safe-area-inset-top, 0px) + 18px); padding-bottom: 10px;
  background-color: transparent;
  transition: background-color 400ms ease, padding 400ms var(--ease-out), box-shadow 400ms ease;
}
.top.is-scrolled {
  background-color: var(--bg); box-shadow: 0 1px 0 var(--surface-2);
  padding-top: calc(env(safe-area-inset-top, 0px) + 8px); padding-bottom: 8px;
}
/* Переход по якорям останавливается под шапкой, а не за ней. */
html { scroll-padding-top: 84px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; text-decoration: none; }
.brand-symbol { display: block; width: 60px; height: 60px; flex: none; }
.brand-word { font-family: var(--display); font-size: 1.6rem; font-weight: 900; line-height: 1; letter-spacing: -0.045em; text-transform: uppercase; }
.top nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 32px); font-family: var(--display); font-size: 0.9375rem; }
.top nav a:not(.button) { text-decoration: none; position: relative; padding-block: 12px; }
.top nav a:not(.button)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-hover) var(--ease-out);
}
.top nav a:not(.button):hover::after { transform: scaleX(1); }
.button-sm { font-size: 0.9375rem; padding: 0.7em 1em; min-height: 44px; gap: 0; }

/* ---------- первый экран ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 580px; overflow: hidden; background: var(--bg); }
.hero-media { position: absolute; inset: 0; }
.hero-media [data-photo] { position: absolute; inset: 0; }
.hero-media::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 50%;
  background: linear-gradient(to top, rgba(10, 13, 28, 0.88), rgba(10, 13, 28, 0)); /* taste-skill-ignore: нейтральная подложка под текстом на фото */
  pointer-events: none;
}
.hero-media::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22%; z-index: 1;
  background: linear-gradient(to bottom, rgba(10, 13, 28, 0.55), rgba(10, 13, 28, 0)); /* taste-skill-ignore: подложка под навигацией */
  pointer-events: none;
}
.hero-foot { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(18px, 2.4vw, 34px); }
.hero-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(12px, 1.4vw, 22px); }
.hero-meta .plate {
  /* сплошная табличка, чтобы текст не терялся на любом кадре */
  background: var(--bg); color: var(--ink); padding: 14px 18px 15px; max-width: 26rem;
  font-family: var(--display); font-weight: 500; letter-spacing: -0.01em;
  font-size: 1.0625rem; line-height: 1.4;
}
.hero-hours { background: var(--bg); padding: 10px 14px; font-family: var(--display); font-weight: 600; }
.sign {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: calc((100vw - 2 * var(--m)) / 5.18);
  line-height: 0.8; letter-spacing: -0.045em; margin: 0 0 -0.04em;
  white-space: nowrap; display: flex; overflow: hidden; padding-top: 0.04em;
}
.sign span { display: inline-block; }

/* ---------- лента расписания ---------- */
.ticker { background: var(--ink); color: var(--navy-ink); overflow: hidden; padding-block: 18px; }
.ticker-track { display: flex; width: max-content; font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 0.9rem + 1.3vw, 2rem); letter-spacing: -0.02em; white-space: nowrap; }
.ticker-track span { padding-right: 2.2em; }
.ticker-track b { font-weight: 900; margin-right: 0.45em; }

/* ---------- печь: живой элемент ---------- */
.oven { padding-block: clamp(80px, 9vw, 140px) 0; }
.oven-grid { align-items: end; row-gap: 48px; }
.oven-now { grid-column: 1 / 7; }
.oven-now .label { font-size: var(--step-lead); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.oven-now .count {
  font-family: var(--display); font-weight: 900; letter-spacing: -0.06em; line-height: 0.82;
  font-size: clamp(6rem, 3rem + 13vw, 17rem); font-variant-numeric: tabular-nums;
  margin: 0.1em 0 0.12em; display: flex; align-items: baseline; gap: 0.1em; overflow: hidden;
}
.oven-now .count small { font-size: 0.26em; letter-spacing: -0.02em; font-weight: 800; }
.oven-now .what { font-size: var(--step-lead); line-height: 1.25; max-width: 20ch; }
.oven-now .status { margin-top: 24px; font-family: var(--display); font-size: 1rem; color: var(--muted); }
.oven-now .status b { color: var(--ink); font-weight: 600; }
.batches { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.batch {
  display: grid; grid-template-columns: 7rem 1fr; gap: 18px; align-items: center;
  padding: 22px 24px; background: var(--surface-2); transition: background-color var(--t-hover) ease;
}
.batch time { font-family: var(--display); font-weight: 900; font-size: 2.25rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.batch span { font-size: 1.125rem; line-height: 1.35; }
.batch.is-done { background: var(--surface); color: var(--muted); }
.batch.is-next { background: var(--accent); color: var(--accent-ink); }
/* У высот в svh везде есть запасное значение в vh: старые iPhone (iOS до 15.4) svh не знают. */
.oven-band { margin-top: clamp(64px, 8vw, 120px); height: clamp(320px, 62vh, 640px); height: clamp(320px, 62svh, 640px); }
.oven-band img { height: 125%; }

/* ---------- меню: светлое, фото держится рядом ---------- */
.menu { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.menu-visual { grid-column: 1 / 7; position: relative; }
.menu-visual .stick { position: sticky; top: 0; height: 100vh; height: 100svh; }
.menu-visual [data-photo] { position: absolute; inset: 0; }
.menu-visual [data-photo] + [data-photo] { opacity: 0; }
.menu-visual .tag {
  position: absolute; z-index: 2; left: var(--m); bottom: var(--m);
  background: var(--paper); color: var(--navy-ink); padding: 10px 14px; font-family: var(--display); font-weight: 600;
}
.menu-list { grid-column: 7 / 13; padding-block: clamp(72px, 8vw, 120px); padding-left: clamp(24px, 4vw, 72px); padding-right: max(var(--m), env(safe-area-inset-right, 0px)); }
.menu-list h2 { margin-bottom: 18px; }
.menu-list .note { color: var(--navy-muted); margin-bottom: 56px; font-size: var(--step-small); }
.menu-group { background: var(--paper-2); padding: clamp(22px, 2.6vw, 36px); }
.menu-group + .menu-group { margin-top: var(--m); }
.menu-group h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); letter-spacing: -0.03em; margin-bottom: 14px; }
.row {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding: 13px 0; font-size: 1.1875rem; position: relative;
}
.row .dish { min-width: 0; }
.row .dish i { display: block; color: var(--navy-muted); font-size: 1rem; line-height: 1.35; }
.row .price { font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 1.25rem; }
.row .price::after { content: " ₽"; font-weight: 600; }

/* ---------- как мы печём ---------- */
.about { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.about-text { grid-column: 1 / 7; padding-block: clamp(72px, 9vw, 140px); padding-left: max(var(--m), env(safe-area-inset-left, 0px)); padding-right: clamp(24px, 4vw, 72px); display: flex; flex-direction: column; gap: 40px; justify-content: center; }
.about-text .lead { font-size: var(--step-lead); line-height: 1.28; }
.about-text .body { max-width: 34em; }
.about-photo { grid-column: 7 / 13; min-height: 82vh; min-height: 82svh; }
.facts { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--ink); color: var(--navy-ink); }
.fact { padding: clamp(28px, 3.4vw, 52px) var(--m); display: grid; gap: 6px; align-content: start; }
.fact + .fact { background: #f7b4cb; }
.fact + .fact + .fact { background: #f4c4d5; }
.fact b { font-family: var(--display); font-weight: 900; font-size: clamp(3rem, 1.6rem + 5vw, 6.5rem); letter-spacing: -0.06em; line-height: 0.85; }
.fact span { font-size: 1.125rem; }

/* ---------- лента фото: светлая ---------- */
.strip { padding-block: clamp(80px, 9vw, 130px); }
.strip-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.strip-head p { color: var(--navy-muted); max-width: 22em; }
/* Без Motion лента листается пальцем или колесом; с Motion едет сама. */
.strip-row { overflow-x: auto; scrollbar-width: none; padding-left: max(var(--m), env(safe-area-inset-left, 0px)); }
.strip-row::-webkit-scrollbar { display: none; }
.strip-row.is-auto { overflow: hidden; padding-left: 0; }
.strip-track { display: flex; width: max-content; }
.frame { flex: 0 0 auto; margin-right: var(--m); }
.frame.tall { width: clamp(240px, 26vw, 420px); aspect-ratio: 3 / 4; }
.frame.wide { width: clamp(320px, 40vw, 640px); aspect-ratio: 4 / 3; align-self: end; }
.frame img { pointer-events: none; transition: transform 700ms var(--ease-out); }
.frame:hover img { transform: scale(1.06); }

/* ---------- адрес ---------- */
.contact { padding-block: clamp(80px, 9vw, 140px); }
.contact-grid { row-gap: 48px; align-items: stretch; }
.contact-info { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 36px; }
.contact-kicker { font-family: var(--display); font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.contact h2 { max-width: 9ch; }
.contact-sub { margin-top: 18px; font-size: var(--step-lead); line-height: 1.25; max-width: 20em; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.contact-list li {
  background: var(--surface-2);
  font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere;
}
.contact-list li.note { font-family: var(--text); font-weight: 400; font-size: 1.0625rem; letter-spacing: 0; line-height: 1.45; }
/* Отступ у содержимого, а не у плашки: ссылка занимает всю плашку, и по ней легко попасть пальцем. */
.contact-list li > * { display: block; padding: 20px 24px; }
.contact-list a {
  text-decoration: underline 2px transparent; text-underline-offset: 6px;
  transition: text-decoration-color var(--t-hover) ease, background-color var(--t-hover) ease;
}
.contact-list a:hover { text-decoration-color: currentColor; background: #2f3866; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px currentColor; }
.button.ghost:hover { background: var(--surface-2); }
.contact-map { grid-column: 7 / 13; min-height: 520px; background: var(--surface); overflow: hidden; position: relative; }
.contact-map iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 800ms ease; }
.contact-map.is-loaded iframe { opacity: 1; }
/* Заглушка, пока грузится виджет Яндекса: улицы-сетка и булавка. */
.map-ph {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600; color: var(--ink);
  background:
    linear-gradient(var(--surface-2) 2px, transparent 2px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--surface-2) 2px, transparent 2px) 0 0 / 88px 100%,
    var(--surface);
}
.map-ph svg { width: 44px; height: 44px; animation: pin 1.4s ease-in-out infinite; }
@keyframes pin { 50% { transform: translateY(-6px); } }
/* Ссылка на Яндекс Карты: появляется, если виджет так и не загрузился. */
.map-open {
  display: none; margin-top: 6px; padding: 12px 16px; background: var(--ink); color: var(--navy-ink);
  font-weight: 600; text-decoration: none;
}
.contact-map.is-failed .map-open { display: inline-block; }
.contact-map.is-failed .map-ph svg { animation: none; }
/* Пока карта не загрузилась, невидимый iframe не должен перекрывать заглушку и её ссылку. */
.contact-map:not(.is-loaded) iframe { pointer-events: none; }
/* На тач-экранах карта не перехватывает прокрутку страницы, пока по ней не нажмут. */
.map-hint { display: none; }
@media (hover: none) {
  .contact-map:not(.is-active) iframe { pointer-events: none; }
  .contact-map.is-loaded:not(.is-active) .map-hint {
    display: grid; place-items: center; position: absolute; z-index: 2; inset: 0;
    margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .map-hint span {
    padding: 11px 15px; white-space: nowrap;
    background: var(--bg); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 0.9375rem;
    box-shadow: 0 8px 24px rgba(6, 8, 20, 0.35); /* taste-skill-ignore: подсказка поверх карты */
  }
}

/* ---------- финал ---------- */
.end { position: relative; min-height: 100vh; min-height: 100svh; background: var(--ink); color: var(--bg); overflow: hidden; display: flex; flex-direction: column; }
.end .grid { padding-top: clamp(90px, 10vw, 140px); }
.end h2 { font-size: clamp(2.6rem, 1rem + 5vw, 5.5rem); max-width: 16ch; }
.end .invite { grid-column: 1 / 10; }
.end .button { margin-top: 36px; background: var(--bg); color: var(--ink); }
.end .button:hover { background: var(--surface-2); }
.end .links { grid-column: 10 / 13; display: grid; gap: 0; align-content: start; justify-items: start; font-family: var(--display); font-size: 1rem; padding-top: 2px; }
.end .links a { text-decoration: none; padding-block: 8px; }
.end .links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.end .legal { margin-top: auto; padding-top: 64px; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; font-size: 1rem; line-height: 1.45; padding-bottom: 14px; }
.end .legal a { text-underline-offset: 3px; }
.end .giant {
  font-family: var(--display); font-weight: 900; text-transform: uppercase; white-space: nowrap;
  font-size: 28vw; line-height: 0.8; letter-spacing: -0.05em; margin-left: -0.03em;
  height: 0.62em; overflow: hidden;
}
.end .giant span { display: block; }

/* ---------- бронь: окно с формой ---------- */
.book {
  width: min(600px, calc(100vw - 2 * var(--m))); max-width: none;
  max-height: calc(100vh - 2 * var(--m)); max-height: calc(100dvh - 2 * var(--m));
  margin: auto; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--navy-ink);
}
.book::backdrop { background: rgba(10, 13, 28, 0.72); backdrop-filter: blur(6px); } /* taste-skill-ignore: затемнение страницы под окном */
.book[open] { animation: book-in 520ms var(--ease-out); }
.book[open]::backdrop { animation: fade-in 420ms ease; }
.book.is-closing { animation: book-out 260ms ease-in forwards; }
.book.is-closing::backdrop { animation: fade-in 260ms ease-in reverse forwards; }
@keyframes book-in { from { opacity: 0; transform: translateY(28px) scale(0.98); } }
@keyframes book-out { to { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }
html.is-locked { overflow: hidden; }

.book-panel { position: relative; padding: clamp(28px, 4vw, 44px); }
.book-close {
  position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--navy-ink); cursor: pointer; transition: background-color var(--t-hover) ease;
}
.book-close:hover { background: var(--paper-2); }
.book-close svg { width: 22px; height: 22px; }
.book-kicker { font-family: var(--display); font-weight: 600; color: var(--navy-muted); margin-bottom: 10px; }
.book h2 { font-size: clamp(2.125rem, 1.6rem + 2vw, 3rem); padding-right: 40px; }
.book-sub { margin-top: 12px; color: var(--navy-muted); font-size: 1.0625rem; line-height: 1.45; max-width: 30em; }

.book-form { display: grid; gap: 22px; }
.book-form[hidden] { display: none; }
.book-done:not([hidden]) { animation: done-in 520ms var(--ease-out); }
@keyframes done-in { from { opacity: 0; transform: translateY(14px); } }
.book-form > h2 + .book-sub { margin-bottom: 6px; }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-label { font-family: var(--display); font-weight: 600; font-size: 0.9375rem; padding: 0; }
.field-label i { font-style: normal; font-weight: 400; color: var(--navy-muted); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border: 0; border-radius: 0;
  background: var(--paper-2); color: var(--navy-ink); font: 400 1.0625rem/1.4 var(--text);
  box-shadow: inset 0 -2px 0 transparent; transition: box-shadow var(--t-hover) ease, background-color var(--t-hover) ease;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 76px; }
.field select {
  padding-right: 44px; cursor: pointer;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a2039' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat;
}
.field input::placeholder, .field textarea::placeholder { color: #8d90a8; }
.field input:hover, .field select:hover, .field textarea:hover { background-color: #f1e0e8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 -3px 0 var(--navy-ink); }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.75; }
.field-error { display: none; font-family: var(--display); font-size: 0.875rem; color: #b3264f; }
.field.is-invalid input, .field.is-invalid select { box-shadow: inset 0 -3px 0 #b3264f; }
.field.is-invalid .field-error { display: block; }

.pills { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.pills label { position: relative; }
.pills input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pills span {
  display: grid; place-items: center; min-height: 52px; background: var(--paper-2);
  font-family: var(--display); font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.pills label:hover span { background: #f1e0e8; }
.pills input:checked + span { background: var(--navy-ink); color: var(--paper); }
.pills input:focus-visible + span { outline: 3px solid var(--navy-ink); outline-offset: 2px; }

.book-foot { display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; margin-top: 4px; }
.book-foot .button { min-height: 52px; padding-inline: 1.6em; }
.book-demo { font-size: 0.875rem; line-height: 1.4; color: var(--navy-muted); flex: 1 1 14em; }

.book-done { display: grid; justify-items: start; gap: 0; }
.book-done[hidden] { display: none; }
.book-done-mark { width: 56px; height: 56px; color: var(--navy-ink); margin-bottom: 22px; }
.book-done-mark circle { stroke-dasharray: 132; stroke-dashoffset: 132; animation: draw 700ms var(--ease-out) forwards; }
.book-done-mark path { stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw 450ms var(--ease-out) 450ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.book-done h2:focus { outline: none; }
.book-done .book-sub { color: var(--navy-ink); font-size: var(--step-lead); line-height: 1.3; margin-top: 14px; }
.book-done .book-demo { margin: 18px 0 28px; }

/* ---------- живой статус печи: точка дышит, как огонёк у двери ---------- */
.live { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 600; font-size: 0.9375rem; line-height: 1.2; }
.live i { position: relative; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--ink); }
.live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ink); animation: breathe 2s ease-out infinite; }
@keyframes breathe { from { transform: scale(1); opacity: 0.7; } to { transform: scale(3.2); opacity: 0; } }
.hero-live { display: none; }

/* ---------- печь: полоса до следующего противня ---------- */
.oven-progress { position: relative; height: 6px; max-width: 520px; margin: 4px 0 26px; background: var(--surface-2); overflow: hidden; }
.oven-progress i {
  position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0));
  transition: transform 1.4s var(--ease-out); box-shadow: 0 0 18px rgba(249, 163, 192, 0.55); /* taste-skill-ignore: свечение раскалённой печи */
}

/* ---------- элементы, которые живут только на телефоне ---------- */
.burger, .menu-tabs, .mbar, .strip-progress { display: none; }

.burger {
  width: 46px; height: 46px; place-content: center; gap: 7px; padding: 0; border: 0; cursor: pointer;
  background: var(--ink); color: var(--navy-ink);
}
.burger span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform var(--t-hover) var(--ease-out); }
.burger span + span { width: 14px; justify-self: end; }

/* Меню-навигация: раскрывается кругом из кнопки в правом верхнем углу. */
.mnav {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--m) calc(env(safe-area-inset-bottom, 0px) + 24px);
  background: var(--bg); color: var(--ink); overflow: hidden auto; overscroll-behavior: contain;
}
.mnav[open] { display: flex; flex-direction: column; animation: mnav-in 760ms var(--ease-out); }
.mnav.is-closing { animation: mnav-out 420ms cubic-bezier(0.55, 0, 0.75, 0) forwards; }
.mnav::backdrop { background: transparent; }
@keyframes mnav-in { from { clip-path: circle(0 at calc(100% - 43px) 33px); } to { clip-path: circle(150% at calc(100% - 43px) 33px); } }
@keyframes mnav-out { from { clip-path: circle(150% at calc(100% - 43px) 33px); } to { clip-path: circle(0 at calc(100% - 43px) 33px); } }
.mnav-top { display: flex; justify-content: space-between; align-items: center; }
.mnav-close { width: 46px; height: 46px; display: grid; place-items: center; border: 0; cursor: pointer; background: var(--ink); color: var(--navy-ink); }
.mnav-close svg { width: 22px; height: 22px; }
.mnav-links { list-style: none; margin: auto 0; padding: 32px 0; display: grid; gap: 4px; }
.mnav-links a {
  display: flex; align-items: baseline; gap: 14px; padding-block: 6px; text-decoration: none;
  font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.05em; line-height: 0.95;
  font-size: clamp(3rem, 17vw, 5.5rem);
}
.mnav-links small { font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--muted); transform: translateY(-1.6em); }
.mnav-foot { display: grid; gap: 14px; }
.mnav-foot .button { justify-content: center; min-height: 54px; font-size: 1.0625rem; }
.mnav-contacts { display: grid; gap: 2px; margin: 4px 0 0; font-family: var(--display); color: var(--muted); font-size: 0.9375rem; }
.mnav-contacts a { color: var(--ink); font-weight: 800; font-size: 1.25rem; text-decoration: none; padding-block: 8px; }
.mnav-mark { position: absolute; z-index: -1; right: -18%; bottom: 14%; width: 78%; height: auto; opacity: 0.06; transform: rotate(-14deg); pointer-events: none; }
.mnav[open] .mnav-links li, .mnav[open] .mnav-foot > * { animation: rise 820ms var(--ease-out) both; animation-delay: calc(180ms + var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(38px); } }

/* Нижняя панель брони, как в приложениях. */
.mbar {
  position: fixed; z-index: 6; left: 10px; right: 10px; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px);
  gap: 8px; padding: 8px;
  background: rgba(26, 32, 57, 0.86); /* taste-skill-ignore: стекло над контентом */
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 14px 40px rgba(6, 8, 20, 0.45), inset 0 0 0 1px rgba(249, 163, 192, 0.18); /* taste-skill-ignore: панель парит над страницей */
  transform: translateY(calc(100% + 30px)); transition: transform 620ms var(--ease-out);
}
.mbar.is-shown { transform: none; }
.mbar .button { flex: 1; justify-content: center; min-height: 52px; font-size: 1.0625rem; }
.mbar-call { width: 52px; height: 52px; flex: none; display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.mbar-call svg { width: 22px; height: 22px; }

/* Вкладки меню: переключатель с ползущей подложкой. */
.menu-tabs {
  position: sticky; z-index: 3; top: calc(env(safe-area-inset-top, 0px) + 66px);
  grid-template-columns: 1fr 1fr; padding: 4px; margin: -12px 0 22px; background: var(--paper-2);
  box-shadow: 0 0 0 10px var(--paper);
}
.menu-tabs button {
  position: relative; z-index: 1; min-height: 46px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.9375rem; color: var(--navy-muted); transition: color 400ms ease;
}
.menu-tabs button[aria-selected="true"] { color: var(--paper); }
.menu-tabs-ink {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--navy-ink); /* сдвиг на 100% своей ширины = ровно на вторую вкладку */
  transform: translateX(var(--x, 0%)); transition: transform 520ms var(--ease-out);
}

/* Полоса прогресса под каруселью фото. */
.strip-progress { position: relative; height: 3px; margin: 22px var(--m) 0; background: var(--paper-2); overflow: hidden; }
.strip-progress i { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w, 30%); background: var(--navy-ink); transform: translateX(var(--x, 0%)); }

@media (max-width: 760px) {
  .top .button-sm { display: none; }
  .hero-live {
    display: inline-flex; padding: 9px 13px; background: rgba(26, 32, 57, 0.7); /* taste-skill-ignore: стекло на фото */
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(249, 163, 192, 0.28);
  }
  .mbar { display: flex; }
  .menu-tabs { display: grid; }
  .menu-group.is-off { display: none; }
  .menu-group + .menu-group { margin-top: 0; }
  /* Название раздела уже на вкладке: видимый заголовок прячем, для чтения с экрана оставляем. */
  .menu-group h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .oven-now .count small { margin-right: 0.18em; }
  .oven-now .count small:last-child { margin-right: 0; }
  .oven-progress { margin-bottom: 22px; }
  /* Подвал не прячется под нижней панелью. */
  .end .legal { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 84px); }
}

/* ---------- большие экраны ---------- */
@media (min-width: 1800px) {
  .about-text { padding-inline: 5vw; }
  .menu-list { padding-left: 6vw; }
}

/* ---------- стартовые состояния анимаций ---------- */
.js .sign span { transform: translateY(102%); }
.js .hero-meta > * { opacity: 0; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 960px) {
  .hero-hours { display: none; }
  .menu-visual, .menu-list, .about-text, .about-photo { grid-column: 1 / -1; }
  .menu-visual .stick { height: min(48vh, 500px); height: min(48svh, 500px); position: relative; }
  .menu-list { padding-left: max(var(--m), env(safe-area-inset-left, 0px)); }
  .about-photo { min-height: min(48vh, 500px); min-height: min(48svh, 500px); }
  .oven-now, .batches { grid-column: 1 / -1; }
  .contact-info, .contact-map { grid-column: 1 / -1; }
  .contact-map { min-height: 380px; }
}
@media (max-width: 760px) {
  .top { gap: 10px; padding-top: calc(env(safe-area-inset-top, 0px) + 10px); padding-bottom: 10px; }
  .top.is-scrolled { padding-top: calc(env(safe-area-inset-top, 0px) + 8px); padding-bottom: 8px; }
  .brand { gap: 6px; padding-block: 4px; }
  .brand-symbol { width: 44px; height: 44px; }
  .brand-word { font-size: 1.15rem; }
  html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 72px); }
  /* Первый экран на телефоне: фото на весь экран, текст на глубокой тени снизу.
     Высота по реальной видимой области (--app-h из скрипта в head), иначе по svh. */
  .hero { height: var(--app-h, 100svh); min-height: 460px; }
  .hero-media::before { height: 18%; }
  .hero-media::after {
    height: 72%;
    background: linear-gradient(to top, rgba(10, 13, 28, 0.96) 0%, rgba(10, 13, 28, 0.72) 38%, rgba(10, 13, 28, 0) 100%); /* taste-skill-ignore: подложка под текстом на фото */
  }
  .hero-foot { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
  .hero-meta .plate { max-width: 22rem; padding: 0; background: transparent; font-size: 1.0625rem; line-height: 1.45; text-wrap: pretty; }
  .sign { margin-bottom: 0; }
  .ticker { padding-block: 13px; }
  .ticker-track { font-size: 1.125rem; }
  .oven { padding-top: 64px; }
  .oven-grid { row-gap: 32px; }
  .oven-now .count { font-size: clamp(4.25rem, 17vw, 7.5rem); gap: 0.06em; }
  .oven-now .status { margin-top: 18px; }
  .batches { gap: 5px; }
  .oven-band { height: 46vh; height: 46svh; min-height: 260px; }
  .menu-visual .stick { height: clamp(250px, 38vh, 380px); height: clamp(250px, 38svh, 380px); }
  .menu-list { padding-block: 56px 64px; padding-right: max(var(--m), env(safe-area-inset-right, 0px)); }
  .menu-list .note { margin-bottom: 36px; }
  .row { font-size: 1.0625rem; }
  .menu-group { padding: 18px; }
  .about-text { gap: 24px; padding-block: 64px; padding-right: max(var(--m), env(safe-area-inset-right, 0px)); }
  .about-photo { min-height: clamp(280px, 42vh, 430px); min-height: clamp(280px, 42svh, 430px); }
  .fact { padding-block: 24px; }
  .fact { grid-template-columns: auto 1fr; align-items: baseline; gap: 16px; }
  .strip { padding-block: 64px; }
  .strip-head { margin-bottom: 24px; }
  /* Карусель: кадр встаёт по центру, палец может листать и вбок, и страницу вниз. */
  .strip-row { scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding-left: 0; }
  .strip-track { padding-inline: 26vw; }
  .frame { scroll-snap-align: center; margin-right: 14px; transform-origin: 50% 60%; will-change: transform; }
  .strip-progress { display: block; }
  .end .legal { font-size: 0.9375rem; }
  .top nav { display: none; }
  .burger { display: grid; }
  .grid { column-gap: 0; }
  .batch { grid-template-columns: 5.4rem 1fr; padding: 18px; }
  .batch time { font-size: 1.75rem; }
  .facts { grid-template-columns: 1fr; }
  .strip-head { flex-direction: column; align-items: flex-start; }
  /* На телефоне все кадры одной высоты: без пустот над горизонтальными. */
  .frame.tall, .frame.wide { height: 64vw; width: auto; align-self: auto; }
  .contact-list li > * { padding: 16px 18px; }
  .contact { padding-block: 64px; }
  .contact-grid { row-gap: 32px; }
  .contact-info { gap: 26px; }
  .contact-actions { display: grid; grid-template-columns: 1fr; }
  .contact-actions .button { justify-content: center; min-height: 50px; }
  .contact-map { min-height: 320px; }
  .end .grid { padding-top: 72px; }
  .end .invite { grid-column: 1 / -1; }
  .end h2 { font-size: 9.6vw; }
  .end .links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 28px; font-size: 0.9375rem; }
  .end .links a { padding-block: 11px; }
  .end .giant { font-size: 34vw; }
  /* На телефоне подвал по высоте содержимого, без пустого экрана розового. */
  .end { min-height: 0; }
  .end .legal { padding-top: 48px; }
  /* Окно брони на телефоне выезжает снизу, как лист. */
  .book { width: 100vw; max-height: 94vh; max-height: 94dvh; margin: auto 0 0; }
  .book-panel { padding: 26px var(--m) calc(26px + env(safe-area-inset-bottom, 0px)); }
  .book-grid { grid-template-columns: 1fr; gap: 16px; }
  .pills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .book-foot .button { flex: 1 1 100%; justify-content: center; }
  @keyframes book-in { from { transform: translateY(100%); } }
  @keyframes book-out { to { transform: translateY(100%); } }
}
@media (max-width: 480px) {
  .button-sm { font-size: 0.875rem; padding: 0.6em 0.85em; white-space: nowrap; }
  .button-sm .long { display: none; }
  .brand-symbol { width: 38px; height: 38px; }
  .brand-word { font-size: 1.02rem; }
  .book h2 { font-size: clamp(1.875rem, 8vw, 2.125rem); padding-right: 0; }
}
@media (max-width: 380px) {
  h2 { font-size: 2.125rem; }
  .end h2 { font-size: 2.125rem; }
  .button-sm { font-size: 0.875rem; padding: 0.6em 0.9em; white-space: nowrap; }
  .button-sm .long { display: none; } /* «Забронировать» без «стол» */
  .brand { gap: 4px; }
  .brand-symbol { width: 36px; height: 36px; }
  .brand-word { font-size: 1rem; }
  .batch { grid-template-columns: 4.6rem 1fr; padding: 16px 14px; gap: 12px; }
  .batch time { font-size: 1.5rem; }
  .batch span { font-size: 1rem; }
  .oven-now .count { font-size: 4.25rem; }
}
@media (max-height: 520px) and (orientation: landscape) {
  /* Телефон боком: первый экран ровно по высоте экрана, вывеска не уходит за край. */
  .hero { min-height: 320px; }
  .hero-meta .plate { display: none; }
}
@media (max-width: 760px) and (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: 320px; }
}
@media (hover: none) {
  .frame:hover img { transform: none; }
}
/* iOS 14 и старше не знают aspect-ratio: задаём кадрам галереи размеры напрямую. */
@supports not (aspect-ratio: 1) {
  .frame.tall { height: calc(clamp(240px, 26vw, 420px) * 4 / 3); }
  .frame.wide { height: calc(clamp(320px, 40vw, 640px) * 3 / 4); }
  @media (max-width: 760px) {
    .frame.tall { width: 48vw; height: 64vw; }
    .frame.wide { width: 85.33vw; height: 64vw; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}

/* Small French editorial captions, shared across sections. */
.fr-caption {
  display: block;
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(0.6875rem, 0.65rem + 0.15vw, 0.8125rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
}
.contact-kicker.fr-caption { margin-bottom: 14px; }
@media (max-width: 760px) {
  .fr-caption { margin-bottom: 12px; letter-spacing: 0.09em; }
}

/* Both translations share a grid cell to keep the hero layout stable. */
.hero-meta .plate-translate {
  display: grid;
  border: 0;
  border-radius: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  appearance: none;
}
.plate-translate .plate-fr,
.plate-translate .plate-ru {
  grid-area: 1 / 1;
  transition: opacity 180ms ease;
}
.plate-translate .plate-ru { opacity: 0; }
.plate-translate.is-russian .plate-fr { opacity: 0; }
.plate-translate.is-russian .plate-ru { opacity: 1; }
.plate-translate:focus-visible { outline: 2px solid currentColor; outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) {
  .plate-translate .plate-fr, .plate-translate .plate-ru { transition: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero-meta .plate-translate { display: none; }
}

/* Give the hero translation enough room for two balanced desktop lines. */
@media (min-width: 761px) {
  .hero-meta .plate-translate { width: 27rem; max-width: 27rem; }
  .plate-translate .plate-ru { text-wrap: balance; }
}
