/* ===== Цвета, шрифты, размеры — меняйте здесь ===== */
:root {
  --bg: #0a0a0b;
  --surface: #151517;
  --text: #f2eee8;
  --muted: #9a9a9f;
  --line: #2a2a2d;
  --accent: #f0d9a4;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --pad: clamp(20px, 3.2vw, 56px);
  --ease: cubic-bezier(.7, 0, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); }
body { font: 400 clamp(1rem, min(1vw, 1.6vh), 1.125rem)/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.label { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--muted); }
.logo { font: 500 1.35rem var(--serif); letter-spacing: .32em; }

/* Кнопки */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center;
  padding: 14px 26px; background: var(--accent); color: var(--bg);
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.btn:hover::before { transform: scaleX(1); }
.link { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 4px; border-bottom: 1px solid rgba(242,238,232,.3); transition: color .3s, border-color .3s; }
.link:hover { color: var(--accent); border-color: var(--accent); }

/* Кнопка «Меню» и полноэкранная навигация */
.menu-toggle { position: fixed; top: var(--pad); right: var(--pad); z-index: 60; display: flex; align-items: center; gap: 12px; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; }
.menu-toggle::before { content: ""; width: 32px; height: 1px; background: currentColor; transition: width .4s var(--ease); }
.menu-toggle:hover { color: var(--accent); }
/* В открытом меню: «Закрыть ×» золотом */
.menu-toggle[aria-expanded="true"] { color: var(--accent); flex-direction: row-reverse; }
.menu-toggle[aria-expanded="true"]::before { content: "×"; width: auto; height: auto; background: none; font-size: 1.1rem; line-height: 1; }

/* Полноэкранное меню: плавно проявляется, пункты поднимаются по очереди */
.overlay {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background: radial-gradient(ellipse 45% 90% at 0% 40%, #1d1d20, transparent 70%), var(--bg);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s;
}
.overlay.open { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.overlay-top { padding: var(--pad); }
.overlay-body { flex: 1; display: grid; grid-template-columns: 1fr minmax(220px, auto); gap: 80px; align-items: center; padding: 0 var(--pad); }
.nav-list { list-style: none; max-width: 950px; }
.nav-list li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.overlay.open .nav-list li { opacity: 1; transform: none; }
.overlay.open .nav-list li:nth-child(1) { transition-delay: .15s; }
.overlay.open .nav-list li:nth-child(2) { transition-delay: .25s; }
.overlay.open .nav-list li:nth-child(3) { transition-delay: .35s; }
.nav-list a { display: flex; align-items: baseline; gap: 24px; padding: clamp(24px, 5vh, 48px) 0; transition: color .3s; }
.nav-name { display: flex; align-items: center; gap: 14px; font: 400 clamp(2.5rem, min(7vw, 10vh), 5.5rem)/1.05 var(--serif); letter-spacing: -.02em; }
.nav-seal { height: .8em; width: .8em; font-family: var(--serif); opacity: 0; transform: rotate(-20deg) scale(.8); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.nav-list a:hover { color: var(--accent); }
.nav-list a:hover .nav-seal { opacity: 1; transform: none; }
.overlay-aside { display: grid; gap: 36px; opacity: 0; transition: opacity .7s var(--ease) .45s; }
.overlay.open .overlay-aside { opacity: 1; }
.overlay-aside p + p { font-size: .9rem; margin-top: 8px; }
.overlay-bottom { display: flex; gap: 32px; padding: 28px var(--pad); border-top: 1px solid var(--line); }
.overlay-bottom a:hover { color: var(--text); }
body.menu-open { overflow: hidden; }

/* ===== ГЛАВНАЯ: один экран ===== */
.home { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.home-main { flex: 1; display: flex; min-height: 0; }
.home-text { width: 45%; padding: var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.home-text h1 { font: 400 clamp(2.75rem, min(7vw, 10.5vh), 7.5rem)/.92 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.home-text .serif-italic { font-size: clamp(1rem, min(1.75vw, 2.8vh), 1.75rem); margin-top: 24px; }
.home-text p.desc { max-width: 44ch; color: rgba(242,238,232,.8); margin-top: 24px; }
.actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; flex-wrap: wrap; }
.home-image { flex: 1; position: relative; overflow: hidden; }
.home-image img { transform: scale(1.08); animation: settle 2.4s var(--ease) forwards; }
.home-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg), transparent 30%); }
@keyframes settle { to { transform: scale(1); } }

/* Нижняя полоса с информацией */
.info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 20px var(--pad); border-top: 1px solid var(--line); }
.info p + p { font-size: .8125rem; color: rgba(242,238,232,.8); margin-top: 4px; }

/* ===== Внутренние страницы: текст слева, фото закреплено справа ===== */
.split { display: flex; min-height: 100dvh; }
.split-content { width: 50%; padding: var(--pad); padding-top: calc(var(--pad) * 3); }
.split-image { position: sticky; top: 0; width: 50%; height: 100dvh; overflow: hidden; }
.split-image img { transition: opacity .6s; }
.page-head { margin: 12vh 0 64px; }
.page-head h1 { font: 400 clamp(2.5rem, 5.5vw, 5.5rem)/.95 var(--serif); letter-spacing: -.03em; margin: 16px 0 20px; }
.page-head .serif-italic { font-size: clamp(1.1rem, 1.6vw, 1.6rem); }
.back { position: fixed; top: var(--pad); left: var(--pad); z-index: 40; }

/* Меню блюд */
.tabs { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; margin-bottom: 48px; position: sticky; top: 0; padding: 20px 0; background: var(--bg); z-index: 5; }
.tabs button { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid transparent; transition: .3s; }
.tabs button.active, .tabs button:hover { color: var(--text); border-color: var(--accent); }
.category { padding: 40px 0; border-bottom: 1px solid var(--line); }
.category:last-child { border: 0; }
.category h2 { font: 400 clamp(1.8rem, 2.6vw, 2.6rem)/1 var(--serif); letter-spacing: -.015em; }
.category > p { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--muted); margin: 8px 0 20px; }
.dish { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 18px 0; cursor: default; }
/* Миниатюра при наведении вырастает в 2.6 раза от левого края и перекрывает строку */
.dish-thumb { position: relative; width: clamp(64px, 6vw, 96px); aspect-ratio: 1; }
.dish-thumb img { position: absolute; inset: 0; transform-origin: left center; background: var(--surface); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.dish:hover .dish-thumb { z-index: 20; }
.dish:hover .dish-thumb img { transform: scale(2.6); box-shadow: 0 30px 60px rgba(0,0,0,.6); }
@media (hover: none) { .dish:hover .dish-thumb img { transform: none; box-shadow: none; } }
.dish h3 { font: 400 1.5rem/1.1 var(--serif); letter-spacing: -.02em; transition: color .3s; }
.dish:hover h3 { color: var(--accent); }
.dish p { font-size: .8125rem; color: rgba(242,238,232,.7); margin-top: 4px; }
.dish .price { font-family: var(--serif); font-size: 1.1rem; }

/* Бронь */
.steps { display: flex; gap: 12px; margin-bottom: 40px; }
.steps span { flex: 1; height: 2px; background: var(--line); transition: background .5s; }
.steps span.done { background: var(--accent); }
.step { display: none; }
.step.active { display: block; animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
.step h2 { font: 400 clamp(2rem, 3.4vw, 3.4rem)/1 var(--serif); letter-spacing: -.025em; margin: 12px 0 40px; }
.field { margin-bottom: 36px; }
.field > .label { display: block; color: var(--text); margin-bottom: 10px; }
.field input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font: inherit; padding: 12px 0; color-scheme: dark; }
.field input:focus { outline: none; border-color: var(--accent); }
.counter { display: flex; align-items: center; border: 1px solid var(--line); width: fit-content; }
.counter button { width: 48px; height: 48px; font-size: 1.2rem; }
.counter button:hover { color: var(--accent); }
.counter output { width: 48px; text-align: center; font-family: var(--serif); font-size: 1.3rem; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.times button { border: 1px solid var(--line); padding: 12px; font-size: .8125rem; letter-spacing: .14em; transition: .3s; }
.times button:hover { border-color: var(--muted); }
.times button.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }
.summary { border-top: 1px solid var(--line); margin-bottom: 36px; }
.summary div { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* Появление */
.rise { opacity: 0; transform: translateY(20px); animation: rise 1s var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1 { animation-delay: .1s } .d2 { animation-delay: .25s } .d3 { animation-delay: .4s } .d4 { animation-delay: .55s } .d5 { animation-delay: .7s }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; } }

/* ===== Телефон и планшет ===== */
@media (max-width: 1024px) {
  :root { --pad: clamp(24px, 7.5vw, 64px); }
  /* логотип и кнопка «Меню» на одной линии */
  .logo, .menu-toggle { line-height: 1; }
  .menu-toggle { top: calc(var(--pad) + 5px); }
  .actions { gap: 20px; }
  .overlay-body { grid-template-columns: 1fr; }
  .overlay-aside { display: none; }
  .actions .btn { padding: 14px 20px; }

  /* Главная: текст → фото 3:2 → информация в одну колонку */
  .home { height: auto; overflow: visible; }
  .home-main { flex-direction: column; }
  .home-text { width: 100%; justify-content: flex-start; gap: clamp(40px, 8vw, 64px); padding-bottom: clamp(64px, 14vw, 120px); }
  .home-text > span { display: none; }
  .home-image { flex: none; aspect-ratio: 3 / 2; max-width: 100%; }
  .home-image::after { display: none; }
  .info { grid-template-columns: 1fr; gap: 16px; padding-block: 32px; }

  /* Меню и бронь: без большого фото, логотип уходит при прокрутке */
  .split { display: block; }
  .split-content { width: 100%; padding-top: calc(var(--pad) + 56px); }
  .split-image { display: none; }
  .back { position: absolute; }
  .page-head { margin: 0 0 40px; }
  .page-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
  .tabs { gap: 12px 24px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
  .dish { gap: 16px; }
  .dish h3 { font-size: 1.25rem; }
  .times { grid-template-columns: repeat(3, 1fr); }
  .step-nav .btn { flex: 1; justify-content: center; }
  .step-nav .btn:only-of-type:first-child { flex: none; }
}
