/* reelsalad — публичная главная. Концепция «Fresh cuts»: бумага и чернила, цветовые блоки из фирменной палитры,
   редакционная типографика (Archivo с осью ширины), пиксельные метки (Silkscreen), пиксель-арт без сглаживания. */
:root {
  --paper: #f2ede4; --paper-2: #e9e2d4; --card: #fbf8f2; --ink: #0f0f0e; --ink-2: #1b1a18; --ink-3: #2a2925;
  --stone: #6b6860; --bone: #cfcabd; --muted: #4a4842;
  --tomato: #e5705f; --tomato-d: #a9443a; --mustard: #c9a24a; --mustard-d: #8d6f2a; --leaf: #6fcf7f; --leaf-d: #3f8f52;
  --carrot: #e8955a; --berry: #5aa9e6; --berry-d: #2f6f9f; --cap: #ffd400;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px); --maxw: 1360px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* углы «пикселем»: ступенька 4px */
  --px-corners: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px),
    calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 4px 4px);
}
/* русская версия: у Archivo и Silkscreen нет кириллицы — Roboto Flex (та же ось ширины) и пиксельный Tiny5 */
html[lang="ru"] { --display: "Roboto Flex", "Archivo", "Helvetica Neue", Arial, sans-serif; --pixel: "Tiny5", "Silkscreen", ui-monospace, Menlo, monospace; }
html[lang="ru"] .h-hero { font-size: clamp(44px, 7.6vw, 128px); font-stretch: 98%; }
html[lang="ru"] .h2 { font-size: clamp(38px, 5.8vw, 92px); }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; }
img.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; max-width: none; }
a { color: inherit; }
button { font: inherit; }
::selection { background: var(--cap); color: var(--ink); }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.pixel { font-family: var(--pixel); letter-spacing: .02em; }
.ink { background: var(--ink); color: var(--paper); }

/* ── пиксельная стрелка: маска из квадратов, цвет — currentColor ── */
.px-arrow { display: inline-block; width: 14px; height: 12px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 2h4v2H0zM4 0h1v6H4zM5 1h1v4H5zM6 2h1v2H6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 2h4v2H0zM4 0h1v6H4zM5 1h1v4H5zM6 2h1v2H6z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s var(--ease); }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; border: 0; cursor: pointer; text-decoration: none;
  font: 750 15px/1 var(--display); font-stretch: 108%; letter-spacing: -.005em; padding: 15px 20px; clip-path: var(--px-corners);
  transition: background .2s var(--ease), color .2s var(--ease), transform .12s var(--ease); }
.btn:hover .px-arrow { transform: translateX(4px); }
.btn:active { transform: translateY(2px); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--tomato); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--cap); }
.btn-lg { padding: 21px 28px; font-size: 17px; }
.btn-sm { padding: 12px 16px; font-size: 14px; }
.btn-text { font: 600 15px/1 var(--text); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.btn-text:hover { text-decoration-color: var(--tomato); }
.btn-text.on-ink { color: var(--paper); }

/* ── навигация ── */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-bottom-color: rgba(15, 15, 14, .1); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 20px/1 var(--display); font-stretch: 106%; letter-spacing: -.03em; }
.brand svg { flex: none; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 500; color: #57554e; text-decoration: none; padding: 8px 12px; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-links:not([hidden]) + .nav-cta { margin-left: 8px; }
/* язык: EN · RU */
.lang { display: inline-flex; gap: 2px; font-size: 12px; }
.lang a { padding: 7px 8px; text-decoration: none; color: var(--stone); letter-spacing: .04em; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { background: var(--ink); color: var(--paper); }

/* ── герой ── */
.eyebrow { font: 400 13px/1 var(--pixel); text-transform: uppercase; letter-spacing: .05em; color: var(--stone);
  display: flex; align-items: center; gap: 10px; margin: 0 0 22px; }
.ink .eyebrow { color: #8d8a7e; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--leaf); box-shadow: 0 0 0 4px rgba(111, 207, 127, .22); animation: pulse 1.8s steps(2) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(111, 207, 127, .08); } }
.hero { position: relative; padding-top: clamp(20px, 3.6vw, 52px); }
.h-hero { font-family: var(--display); font-weight: 860; font-stretch: 102%; font-size: clamp(52px, 8.7vw, 146px);
  line-height: .88; letter-spacing: -.048em; margin: 0; }
.h-line { display: block; white-space: nowrap; }
.tiles { display: inline-block; vertical-align: -.035em; }
.tiles svg { height: .76em; width: auto; display: block; }
.hero-side { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(20px, 2.4vw, 32px); }
.lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: #3b3a35; max-width: 50ch; margin: 0; }
.ctas { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* сцена */
.stage { position: relative; z-index: 0; height: clamp(440px, 46vw, 660px); margin-top: 0; }
.stage-poster, #stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.stage-poster { object-fit: contain; object-position: center; transition: opacity .7s var(--ease); }
#stage-canvas { opacity: 0; transition: opacity .7s var(--ease); cursor: pointer; touch-action: pan-y; }
.stage.ready #stage-canvas { opacity: 1; }
.stage.ready .stage-poster { opacity: 0; }
.stage-ui { position: absolute; left: 0; right: 0; bottom: clamp(10px, 2vw, 24px); display: flex; justify-content: space-between;
  align-items: center; gap: 12px; pointer-events: none; font-size: 14px; text-transform: uppercase; color: var(--stone); }
/* счётчики «подано»: крупно и на чёрных плашках — читаются поверх любой части сцены (и деревянной доски) */
.served { display: flex; gap: 10px; }
.served > span { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; background: var(--ink); color: var(--paper);
  clip-path: var(--px-corners); box-shadow: 0 6px 18px rgba(15, 15, 14, .18); }
.served .plat { width: 22px; height: 22px; flex: none; }
.served b { color: var(--paper); font-size: 20px; line-height: 1; font-weight: 700; min-width: 2ch; display: inline-block; }
.served b.bump { animation: bump .45s steps(3); }
@keyframes bump { 40% { transform: translateY(-5px); color: var(--cap); } }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── бегущая строка ── */
.ticker { background: var(--ink); color: var(--paper); overflow: hidden; padding: 20px 0; }
.ticker-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: marquee 42s linear infinite; }
.ticker span { font: 820 clamp(22px, 2.5vw, 36px)/1 var(--display); font-stretch: 116%; letter-spacing: -.02em;
  text-transform: uppercase; white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── секции ── */
.sec { padding: clamp(84px, 11vw, 168px) 0; }
.sec-head { display: grid; gap: 0; margin-bottom: clamp(44px, 6vw, 88px); max-width: 980px; }
.h2 { font: 860 clamp(42px, 6.4vw, 104px)/.9 var(--display); font-stretch: 102%; letter-spacing: -.045em; margin: 0; }
.h3 { font: 800 clamp(22px, 1.9vw, 28px)/1.05 var(--display); letter-spacing: -.025em; margin: 0 0 10px; }
.sec-lede { font-size: clamp(17px, 1.35vw, 19px); max-width: 52ch; margin: 26px 0 0; color: #b8b5a8; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.meta li { border: 1.5px solid var(--ink); padding: 8px 11px; font-size: 12px; text-transform: uppercase; }
.meta b { font-weight: 700; }

/* рецепт */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 32px); }
.step { position: relative; }
.step-art { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; margin-bottom: 24px; overflow: hidden;
  /* разделочный коврик: сетка по 16px */
  background-image: linear-gradient(rgba(15, 15, 14, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 15, 14, .07) 1px, transparent 1px);
  background-size: 16px 16px; background-position: -1px -1px; }
.tint-mustard { background-color: #eadfc2; }
.tint-tomato { background-color: #f2d3ca; }
.tint-berry { background-color: #d3e5f2; }
.step-art img { transition: transform .5s var(--ease); }
.step:hover .step-art img { transform: translateY(-6px) rotate(-1.5deg); }
.step-n { position: absolute; top: 14px; left: 14px; z-index: 1; font: 400 13px/1 var(--pixel); background: var(--ink); color: var(--paper); padding: 7px 9px; }
.step p { color: var(--muted); max-width: 40ch; margin: 0; }

/* неделя */
.week-scroller { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px; scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: #3a3933 transparent; }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(148px, 1fr)); gap: 14px; min-width: 1080px; }
.day { display: flex; flex-direction: column; gap: 12px; scroll-snap-align: start; }
.day-label { font-size: 13px; text-transform: uppercase; color: #8d8a7e; padding-bottom: 10px; border-bottom: 1px solid #2a2925; }
.day-label i { font-style: normal; color: var(--leaf); }
.today .day-label { color: var(--paper); border-bottom-color: var(--leaf); }
.card { position: relative; margin: 0; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink-2); border-radius: 12px; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card .cap { position: absolute; left: 7%; right: 7%; top: 54%; text-align: center; color: #fff; text-transform: uppercase;
  font: 900 clamp(12px, 1.02vw, 15px)/1.04 var(--display); font-stretch: 96%;
  text-shadow: 0 2px 0 #000, 0 0 2px #000, 0 0 12px rgba(0, 0, 0, .55); }
.card .cap b { color: var(--cap); font-weight: 900; display: block; }
.card-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 30px 8px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.card-foot .t { font: 600 12px/1 var(--text); color: #ece9e1; }
.st { margin-left: auto; font-size: 11px; display: inline-flex; gap: 5px; align-items: center; text-transform: uppercase; color: #ece9e1; }
.st img.px { filter: none; }
.is-later img:not(.px) { filter: saturate(.2) brightness(.5); }
.is-later .cap { opacity: .55; }
.st.later { color: #bdb8aa; }
.is-live { box-shadow: 0 0 0 2px var(--ink), 0 0 0 4px var(--leaf); }
.st.live { color: var(--leaf); }
.st.live::before { content: ""; width: 6px; height: 6px; background: var(--leaf); animation: blink 1s steps(1) infinite; }
.fine { font-size: 13px; color: #8d8a7e; margin: 18px 0 0; }

/* меню */
.menu-card { background: var(--card); border: 2px solid var(--ink); padding: clamp(22px, 4vw, 60px); box-shadow: 12px 12px 0 var(--ink); }
.menu-top { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; text-transform: uppercase;
  border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.menu-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 80px); }
.dish { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px dashed rgba(15, 15, 14, .28); }
.dish-art { flex: none; width: 104px; height: 88px; display: grid; place-items: center; }
.dish:hover .dish-art img { animation: hop .5s steps(4); }
@keyframes hop { 50% { transform: translateY(-8px); } }
.dish-body { min-width: 0; flex: 1; }
.dish-line { display: flex; align-items: baseline; gap: 10px; }
.dish-line h3 { font: 800 21px/1.1 var(--display); letter-spacing: -.02em; margin: 0; }
.dots { flex: 1; min-width: 16px; border-bottom: 2px dotted rgba(15, 15, 14, .38); transform: translateY(-4px); }
.incl { font-size: 11px; text-transform: uppercase; color: var(--leaf-d); white-space: nowrap; }
.dish p { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 46ch; }

/* правила кухни */
.rules { background: var(--paper-2); }
.rules-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.rules-left { position: sticky; top: 100px; }
.house { list-style: none; counter-reset: r; padding: 0; margin: 44px 0 0; display: grid; gap: 20px; }
.house li { counter-increment: r; position: relative; padding-left: 66px; font-size: 17px; line-height: 1.5; color: #2f2e2a; }
.house li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 2px; width: 48px; font: 400 13px/1 var(--pixel);
  background: var(--ink); color: var(--paper); padding: 7px 0; text-align: center; }
.house b { color: var(--ink); }
.labels { display: grid; gap: 28px; }
.label { background: #fff; border: 2px solid var(--ink); padding: 20px 22px 18px; font-size: 14.5px; line-height: 1.55; }
.label header { border-bottom: 10px solid var(--ink); padding-bottom: 10px; margin-bottom: 12px; }
.label-h { font: 900 clamp(24px, 2.2vw, 30px)/1 var(--display); font-stretch: 88%; letter-spacing: -.02em; margin: 0; }
.label-sub { margin: 7px 0 0; font-weight: 700; font-size: 13px; }
.label p { margin: 0 0 10px; }
.label dl { margin: 12px 0; border-top: 4px solid var(--ink); }
.label dt { padding-top: 11px; }
.label dd { margin: 5px 0 0; padding-bottom: 11px; border-bottom: 1px solid var(--ink); }
.label code { font: 700 13px/1.4 ui-monospace, Menlo, monospace; background: var(--paper-2); padding: 3px 7px; }
.label a { text-decoration: underline; text-underline-offset: 3px; }
.label-foot { font-size: 13.5px; }
.label-fine { font-size: 12.5px; color: #6b6860; border-top: 1px solid var(--ink); padding-top: 10px; margin: 6px 0 0 !important; }

/* поделиться */
.share { position: relative; overflow: hidden; background: var(--tomato); color: var(--ink); padding: clamp(72px, 10vw, 150px) 0; }
.share-row { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px 48px; align-items: end; }
.h-share { font: 900 clamp(42px, 6.2vw, 100px)/.9 var(--display); font-stretch: 100%; letter-spacing: -.05em; margin: 0; }
.share-sub { font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; margin: 22px 0 0; }
.share-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-end; }
.copied { font-size: 12px; text-transform: uppercase; flex-basis: 100%; text-align: right; min-height: 1em; }
.share-deco { position: absolute; right: var(--gutter); top: clamp(-150px, -9vw, -90px); display: flex; align-items: flex-end; gap: 6px;
  transform: rotate(-9deg); pointer-events: none; }

/* финал */
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(64px, 9vw, 150px) var(--gutter); }
.bowl { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 640px; justify-self: center; }
.bowl-fallback { position: absolute; inset: 0; margin: auto; width: 74%; height: auto; transition: opacity .6s var(--ease); }
#bowl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease); cursor: pointer; touch-action: pan-y; }
.bowl.ready #bowl-canvas { opacity: 1; }
.bowl.ready .bowl-fallback { opacity: 0; }
.bowl-hint { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); font-size: 12px; text-transform: uppercase; color: #8d8a7e; white-space: nowrap; }
.h-final { font: 900 clamp(42px, 5.8vw, 96px)/.92 var(--display); letter-spacing: -.05em; margin: 0 0 40px; }

/* подвал */
.foot { padding: 34px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid #23221e; }
.foot-row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot .brand { color: var(--paper); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.foot-links a, .foot-note a { color: #b8b5a8; text-decoration: none; }
.foot-links a:hover, .foot-note a:hover { color: var(--paper); }
.foot-note { margin: 0; color: #8d8a7e; font-size: 14px; }

/* появление при прокрутке (без JS — всё видно сразу) */
html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 70ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .steps { grid-template-columns: 1fr; max-width: 620px; }
  .menu-list { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-left { position: static; }
  .share-row { grid-template-columns: 1fr; }
  .share-actions { justify-content: flex-start; }
  .copied { text-align: left; }
  .final-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-cta .btn-text { display: none; }
  .nav-cta { gap: 10px; }
  .nav-cta .btn-sm { white-space: nowrap; padding: 11px 12px; font-size: 13px; }
  .lang a { padding: 6px 5px; }
  .nav-row { gap: 12px; }
  .h-line { white-space: normal; }
  .hero-side { flex-direction: column; align-items: flex-start; }
  .stage { height: min(118vw, 560px); }
  .stage-ui { flex-direction: column-reverse; align-items: flex-start; gap: 8px; }
  .dish { gap: 14px; }
  .dish-line { flex-wrap: wrap; row-gap: 4px; }
  .dish-line h3 { font-size: 19px; }
  .dots { display: none; }
  .dish-art { width: 78px; height: 72px; }
  .dish-art img.px { width: auto; height: auto; max-width: 78px; max-height: 72px; }
  .menu-card { box-shadow: 8px 8px 0 var(--ink); }
  .share-deco { display: none; }
  .btn-lg { padding: 19px 22px; }
}
@media (max-width: 380px) {
  .nav .brand span { display: none; }  /* узкий телефон: в шапке значок, переключатель языка и кнопка */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track, .blink, .eyebrow .dot, .st.live::before { animation: none; }
}
