/* ==========================================================
   «Суши-Муши» — вариант «как ваше меню».
   Каждый раздел — как их картинка в Instagram: светло-серый фон
   с затемнением к краям, тонкая чёрная рамка, шрифт с засечками,
   подчёркнутые названия с ценой и красное «New».
   ========================================================== */

:root {
	--ink: #1b1b1b;
	--muted: #5b5b5b;
	--red: #b0343a;
	--green: #1e8a4c;
	--f-serif: "Old Standard TT", Georgia, "Times New Roman", serif;
	--f-sans: "Jost", "Futura", system-ui, -apple-system, sans-serif;
	--f-jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
	--f-logo: "PT Serif", Georgia, serif;
	/* лёгкое «зерно», как на их картинках */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--sheet: var(--grain), radial-gradient(ellipse 78% 62% at 50% 45%, #f8f8f8 0%, #ebebeb 42%, #cfcfcf 78%, #a8a8a8 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #3f3f3f; color: var(--ink); font: 400 15px/1.45 var(--f-serif); }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #1b1b1b; outline-offset: 2px; }

/* ---------- «страница» с рамкой ---------- */
/* сайт только для телефона: на компьютере — узкая колонка по центру, как экран смартфона */
.page, .section {
	position: relative;
	max-width: 480px;
	margin: 0 auto 8px;
	padding: 34px 28px 30px;
	background: var(--sheet);
}
.page::before, .section::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 2px solid #1c1c1c;
	pointer-events: none;
}
.page-mark, .section-mark { font: 400 15px/1 var(--f-sans); letter-spacing: .01em; color: #2a2a2a; white-space: nowrap; }

/* ---------- обложка ---------- */
.cover { display: flex; flex-direction: column; align-items: center; min-height: min(100svh, 760px); padding-top: 22px; text-align: center; }
.cover .page-mark { align-self: flex-end; }
.logo { width: min(82%, 330px); height: auto; margin: auto 0 18px; }
.logo-ring { font: 700 25px/1 var(--f-logo); fill: #1c1c1c; }
.logo-jp { font: 700 35px/1 var(--f-jp); fill: #1c1c1c; }
.logo-en { font: 400 19px/1 var(--f-sans); fill: #8a1f2b; letter-spacing: .3px; }
.logo-sub { font: 400 9px/1 var(--f-serif); fill: #1c1c1c; }
.cover-hint { max-width: 300px; margin: 0 0 auto; font: italic 400 15px/1.45 var(--f-serif); color: #333; }

.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 14px; margin-top: 16px; }
.phone { display: inline-flex; align-items: center; gap: 6px; color: #1b1b1b; font: 300 18px/1.3 var(--f-sans); letter-spacing: .04em; text-decoration: none; white-space: nowrap; }
.phone svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------- панель разделов ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: 480px;
	margin: 0 auto 8px;
	padding: 0 8px 0 0;
	background: rgba(24, 24, 24, .97);
}
.nav { display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
	flex: none;
	padding: 15px 11px 12px;
	border-bottom: 2px solid transparent;
	color: rgba(255, 255, 255, .65);
	font: 500 13px/1 var(--f-sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
}
.nav a[aria-current] { color: #fff; border-bottom-color: #fff; }
/* глазик скрытия цен — только значок */
.prices-btn {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.prices-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ---------- разделы ---------- */
.section { scroll-margin-top: 52px; padding-top: 30px; }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.section-title { margin: 0; font: 700 21px/1.15 var(--f-serif); letter-spacing: .14em; text-transform: uppercase; }
.items { display: grid; gap: 4px; }

.row { display: grid; grid-template-columns: 40% minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; }
.row--plain { grid-template-columns: minmax(0, 1fr); }
.row-media { position: relative; }
.row-photo { display: block; width: 100%; filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .22)); }
.new { position: absolute; right: -6px; bottom: -4px; font: italic 400 21px/1 var(--f-serif); color: var(--red); text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.row-text { min-width: 0; text-align: center; }
.row-name {
	margin: 0;
	font: 700 19px/1.3 var(--f-serif);
	letter-spacing: .05em;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
	text-shadow: 1px 1px 1.5px rgba(0, 0, 0, .3);
}
.row-name .new { position: static; margin-left: 8px; text-decoration: none; display: inline-block; }
.row-desc { margin: 8px 0 0; font: 400 13.5px/1.5 var(--f-serif); letter-spacing: .07em; color: #262626; }
.price { white-space: nowrap; transition: filter .2s ease; }

.buy { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.row-text > .buy .price { display: none; }
.add {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 0;
	border-radius: 50%;
	background: #1b1b1b;
	color: #fff;
	box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .6);
	cursor: pointer;
}
.add svg, .stepper svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.stepper { display: inline-flex; align-items: center; padding: 2px; border-radius: 999px; background: #1b1b1b; color: #fff; }
.stepper button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.stepper output { min-width: 22px; text-align: center; font: 500 16px/1 var(--f-sans); }
.ask { font: italic 400 14px/1.3 var(--f-serif); color: var(--muted); }

.variants { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.variants li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.variant-name { font: 700 16px/1.2 var(--f-serif); letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; }
.variants .buy { margin: 0; }
.variants .buy .price { display: none; }

/* пицца — две колонки, как три колонки у них, но под телефон */
.section--pizza .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
.section--pizza .row { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 6px; padding: 0; }
.section--pizza .row-photo { width: 92%; margin: 0 auto; }
.section--pizza .row-name { font-size: 17px; letter-spacing: .03em; }
.section--pizza .row-desc { font-size: 12.5px; letter-spacing: .04em; }

/* сеты — крупно и по центру */
.section--sets .row { padding: 12px 0 14px; }
.section--sets .row-name { font-size: 23px; letter-spacing: .06em; }
.section--sets .row-desc { font-size: 15px; }

/* ролл-доги и напитки — списком, как их «Другое» и «Напитки» */
.section--rolldogs .row-text,
.section--drinks .row-text { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; text-align: left; }
.section--rolldogs .row, .section--drinks .row { padding: 6px 0; }
.section--rolldogs .row-name, .section--drinks .row-name { font-size: 19px; }
.section--rolldogs .buy, .section--drinks .buy { margin: 0; }
.section--drinks .variants { grid-column: 1 / -1; margin-top: 4px; padding-left: 14px; }

/* ---------- контакты ---------- */
.page--end { text-align: center; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.page--end .page-mark { position: absolute; top: 24px; right: 28px; }
.end-title { margin: 8px 0 12px; font: 700 21px/1.2 var(--f-serif); letter-spacing: .14em; }
.page--end p { margin: 4px 0; font-size: 16px; letter-spacing: .04em; }
.page--end .end-note { margin-top: 16px; font: italic 400 14px/1.3 var(--f-serif); color: var(--muted); }

/* ---------- «Мой заказ» ---------- */
.orderbar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 30; display: flex; justify-content: center; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.orderbar-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 11px 11px 11px 18px;
	border: 0;
	border-radius: 999px;
	background: #1b1b1b;
	color: #fff;
	font: 500 17px/1 var(--f-sans);
	letter-spacing: .02em;
	box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7);
	pointer-events: auto;
	cursor: pointer;
}
.orderbar-icon svg { display: block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.orderbar-count { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: #fff; color: #1b1b1b; font: 500 16px/1 var(--f-sans); }

.toast { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 50%; z-index: 50; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: rgba(27, 27, 27, .95); color: #fff; font: 400 15px/1.3 var(--f-sans); transform: translateX(-50%); }

dialog.sheet { width: 100%; max-width: 480px; max-height: 90vh; margin: auto auto 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: var(--sheet); color: var(--ink); }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .6); }
.sheet-inner { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 24px calc(22px + env(safe-area-inset-bottom)); }
.sheet-inner::before { content: ""; position: absolute; inset: 8px; border: 2px solid #1c1c1c; border-radius: 8px; pointer-events: none; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 0; font: 700 21px/1 var(--f-serif); letter-spacing: .14em; }
.icon-btn { position: relative; width: 38px; height: 38px; border: 1.5px solid #1b1b1b; border-radius: 50%; background: transparent; color: #1b1b1b; font-size: 15px; cursor: pointer; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(0, 0, 0, .18); }
.line-name { display: block; font: 700 16px/1.25 var(--f-serif); letter-spacing: .03em; }
.line-unit { font: 400 13px/1.3 var(--f-serif); color: var(--muted); }
.line .stepper button { width: 30px; height: 30px; }
.line-sum { text-align: right; font: 700 16px/1 var(--f-serif); }
.empty { padding: 20px 0; text-align: center; font: italic 400 16px/1.4 var(--f-serif); color: var(--muted); }
.total-row { display: flex; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 2px solid #1b1b1b; font: 700 20px/1 var(--f-serif); letter-spacing: .1em; text-transform: uppercase; }
.total-row .price { font-size: 26px; letter-spacing: .02em; }
.ready-note { margin: 0; font: italic 400 14px/1.4 var(--f-serif); color: var(--muted); }
.whatsapp { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font: 500 17px/1 var(--f-sans); cursor: pointer; }
.whatsapp svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.call { display: flex; flex-direction: column; align-items: center; font: italic 400 14px/1 var(--f-serif); color: var(--muted); }
.call .phones { margin-top: 6px; }
.secondary { position: relative; align-self: center; padding: 8px; border: 0; background: none; color: #7d2a2a; font: 400 15px/1 var(--f-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- кнопка «Скрыть цены» ---------- */
[data-prices="hidden"] .price { filter: blur(7px); user-select: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
