/* Layout concept: Rishtan-glaze palette, Samarkand arch frames, chekich bread-stamp as the signature mark.
   Цвета и шрифты меняются здесь. */
:root {
  --ink: #0e1830;          /* ночной кобальт — фон тёмных секций и текст */
  --cobalt: #2340c8;       /* риштанская синь — ссылки, акценты */
  --glaze: #1c9aa6;        /* бирюзовая глазурь */
  --saffron: #f3a712;      /* шафран / морковь плова — главный акцент */
  --paper: #f5f3ee;        /* фон светлых секций */
  --card: #ffffff;
  --text: #0e1830;
  --muted: #5d6678;
  --line: rgba(14, 24, 48, .14);
  --on-ink: #f5f3ee;
  --on-ink-muted: rgba(245, 243, 238, .66);

  --font-display: "Unbounded", "Arial Black", "Helvetica Neue", sans-serif;
  --font-text: "Golos Text", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --arch: 999px 999px 18px 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.ink { background: var(--ink); color: var(--on-ink); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--cobalt);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.ink .kicker { color: var(--saffron); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 60ch; }
.ink .lead { color: var(--on-ink-muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(40px, 6vw, 84px); margin-top: 16px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border: 2px solid var(--saffron); border-radius: 999px;
  background: var(--saffron); color: var(--ink);
  font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); background: #ffb92e; border-color: #ffb92e; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.ink .btn--ghost { color: var(--on-ink); border-color: var(--on-ink); }
.ink .btn--ghost:hover { background: var(--on-ink); color: var(--ink); }
.btn--sm { padding: 11px 20px; font-size: 15px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(245, 243, 238, .86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background .2s;
}
.nav a:not(.btn):hover { background: rgba(14, 24, 48, .07); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .btn { margin-left: 10px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--card); }
.lang button { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 999px; cursor: pointer; letter-spacing: .04em; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .3s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1320px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; z-index: 40;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 20px var(--gutter) 28px; background: var(--paper); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .4s var(--ease);
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { font-family: var(--font-display); font-size: 26px; font-weight: 700; padding: 10px 0; border-radius: 0; }
  .nav a[aria-current="page"] { background: none; color: var(--cobalt); }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
}

/* ---------- Чекич (штамп на лепёшке) ---------- */
.stamp { color: var(--saffron); }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.stamp--spin svg { animation: spin 38s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Главный экран ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 110px); }
.hero::after { /* икат-полосы по низу */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: repeating-linear-gradient(90deg, var(--saffron) 0 46px, var(--glaze) 46px 70px, var(--cobalt) 70px 120px, var(--on-ink) 120px 132px);
  filter: blur(.6px);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { min-width: 0; container-type: inline-size; }
.hero h1 { font-size: min(9cqi, 128px); line-height: .92; letter-spacing: -.04em; margin: 22px 0 28px; }
.hero h1 .hline { display: block; width: max-content; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--on-ink); }
.hero h1 .accent { color: var(--saffron); }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px clamp(20px, 3.5vw, 48px); margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(245, 243, 238, .18); }
.hero-stats b { display: block; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); line-height: 1; color: var(--on-ink); }
.hero-stats span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ink-muted); }

.hero-visual { position: relative; justify-self: center; width: min(100%, 520px); }
.hero-arch {
  aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden;
  border: 10px solid rgba(245, 243, 238, .08);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.06); animation: settle 1.6s var(--ease) both; }
@keyframes settle { from { transform: scale(1.18); } }
.hero-visual .stamp { position: absolute; width: clamp(130px, 13vw, 176px); aspect-ratio: 1; left: -9%; bottom: 8%; }
.hero-visual .stamp-core {
  position: absolute; inset: 27%; border-radius: 50%; background: var(--saffron); color: var(--ink);
  display: grid; place-content: center; text-align: center; line-height: 1;
}
.stamp-core b { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); }
.stamp-core small { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.hero-tag {
  position: absolute; right: -4%; top: 10%;
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 10px 18px;
  font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
}

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { width: min(100%, 420px); margin-top: 8px; }
  .hero-visual .stamp { left: -4%; }
  .hero-tag { right: 0; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
}

/* ---------- Бегущая строка ---------- */
.marquee { background: var(--saffron); color: var(--ink); overflow: hidden; padding-block: 18px; border-block: 2px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 800; white-space: nowrap; text-transform: uppercase; letter-spacing: -.01em; }
.marquee__track i { width: 14px; height: 14px; border-radius: 50%; background: var(--cobalt); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Категории-арки ---------- */
.arches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.arch-card { display: flex; flex-direction: column; gap: 18px; text-decoration: none; min-width: 0; }
.arch-card__img { position: relative; aspect-ratio: 3 / 4.3; border-radius: var(--arch); overflow: hidden; background: var(--ink); }
.arch-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.arch-card__count {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.arch-card:hover .arch-card__img img { transform: scale(1.07); }
.arch-card h3 { font-size: clamp(24px, 2.2vw, 32px); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.arch-card h3 .arrow { font-size: .8em; color: var(--cobalt); transition: transform .3s var(--ease); }
.arch-card:hover h3 .arrow { transform: translateX(6px); }
.arch-card p { color: var(--muted); font-size: 15px; }
.arch-card:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
@media (max-width: 960px) { .arches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .arches { grid-template-columns: 1fr; } .arch-card:nth-child(even) { margin-top: 0; } .arch-card__img { aspect-ratio: 4 / 4.4; } }

/* ---------- Каталог с поиском ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip .count { opacity: .55; margin-left: 4px; }
.search { position: relative; flex: 1 1 240px; max-width: 360px; }
.toolbar__right { display: flex; gap: 10px; flex-wrap: wrap; flex: 1 1 300px; justify-content: flex-end; }
.search input {
  width: 100%; padding: 13px 18px 13px 46px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(35, 64, 200, .12); }
.search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.select {
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer;
}

.r-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
@media (max-width: 980px) { .r-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .r-grid { grid-template-columns: 1fr; } }
.r-card {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border-radius: 22px; overflow: hidden; text-decoration: none;
  box-shadow: 0 1px 0 var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.r-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(14, 24, 48, .35); }
.r-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.r-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.r-card:hover .r-card__img img { transform: scale(1.06); }
.r-card__body { display: grid; gap: 6px; padding: 20px 22px 22px; }
.r-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.r-card__cat { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cobalt); }
.r-card h3 { font-size: 26px; letter-spacing: -.01em; line-height: 1.1; overflow-wrap: anywhere; }
.r-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 15px; font-weight: 600; }
.r-card__foot .go { color: var(--cobalt); }
.rate {
  position: absolute; top: 14px; right: 14px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--paper); color: var(--ink); padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.rate::before { content: "★"; color: var(--saffron); }
.empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: var(--muted); }
.empty[hidden] { display: none; }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: rgba(245, 243, 238, .14); border-radius: 26px; overflow: hidden; }
.step { background: var(--ink); padding: clamp(28px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.step__n { font-family: var(--font-display); font-size: 15px; color: var(--saffron); letter-spacing: .1em; }
.step img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--saffron); }
.step h3 { font-size: clamp(26px, 2.4vw, 34px); }
.step p { color: var(--on-ink-muted); flex: 1; }
.step .btn { align-self: flex-start; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--cobalt); color: var(--on-ink); border-radius: 32px; padding: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta h2 { font-size: clamp(38px, 5.4vw, 76px); max-width: 12ch; }
.cta p { color: rgba(245, 243, 238, .78); margin-top: 18px; max-width: 46ch; }
.cta .stamp { position: absolute; width: 420px; aspect-ratio: 1; right: -120px; top: -140px; opacity: .22; color: var(--on-ink); }
.cta > * { position: relative; }
.cta .stamp { position: absolute; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Страница категории ---------- */
.cat-hero { padding-block: clamp(48px, 6vw, 88px); }
.cat-hero .container { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.cat-hero h1 { hyphens: auto; overflow-wrap: anywhere; font-size: clamp(32px, 8vw, 116px); line-height: .9; letter-spacing: -.035em; margin: 20px 0 26px; }
.cat-hero__arch { aspect-ratio: 3 / 4; border-radius: var(--arch); overflow: hidden; border: 8px solid rgba(245, 243, 238, .08); }
.cat-hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.dishes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.dishes span { border: 1.5px solid rgba(245, 243, 238, .3); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
@media (max-width: 860px) { .cat-hero .container { grid-template-columns: 1fr; } .cat-hero__arch { max-width: 360px; } }
.crumbs { font-size: 14px; color: var(--on-ink-muted); }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: var(--saffron); }
.crumbs--light { color: var(--muted); }

/* ---------- Страница ресторана ---------- */
.place { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 110px); }
.place__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; margin-top: 28px; }
.place__media { position: relative; }
.place__arch { aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden; background: var(--ink); }
.place__arch img { width: 100%; height: 100%; object-fit: cover; }
.place__media .stamp { position: absolute; width: 150px; aspect-ratio: 1; right: -24px; bottom: 32px; }
.place__media .stamp-core { position: absolute; inset: 27%; border-radius: 50%; background: var(--saffron); color: var(--ink); display: grid; place-content: center; text-align: center; line-height: 1; }
.place__grid > div:last-child { container-type: inline-size; }
.place h1 { font-size: clamp(36px, 15cqi, 104px); line-height: .9; letter-spacing: -.035em; margin: 18px 0 24px; overflow-wrap: anywhere; }
.place .lead { color: var(--muted); }
.facts { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1.5px solid var(--ink); }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts li span:first-child { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.place__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 860px) { .place__grid { grid-template-columns: 1fr; } .place__media { max-width: 460px; } .place__media .stamp { right: 0; width: 120px; } }
.not-found { padding-block: 140px; text-align: center; display: grid; gap: 20px; justify-items: center; }
.not-found h1 { font-size: clamp(40px, 6vw, 72px); }

/* ---------- Заказ ---------- */
.order { padding-block: clamp(40px, 6vw, 88px) clamp(72px, 9vw, 120px); }
.order__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.order__aside > div:first-child { container-type: inline-size; }
.order h1 { font-size: clamp(36px, 13.5cqi, 96px); line-height: .9; letter-spacing: -.035em; margin: 18px 0 24px; }
.order__aside { position: sticky; top: 110px; display: grid; gap: 28px; }
.pick { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; background: var(--card); border-radius: 22px; padding: 14px; }
.pick img { width: 96px; height: 96px; object-fit: cover; border-radius: 999px 999px 10px 10px; }
.pick b { font-family: var(--font-display); font-size: 24px; display: block; line-height: 1.1; }
.pick small { color: var(--muted); }
.pick[hidden] { display: none; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.perks li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--glaze); flex: none; }

.form { background: var(--card); border-radius: 28px; padding: clamp(24px, 4vw, 48px); display: grid; gap: 20px; box-shadow: 0 30px 60px -40px rgba(14, 24, 48, .35); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field label .req { color: var(--cobalt); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1.5px solid transparent; border-radius: 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--card); border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(35, 64, 200, .12); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c4361d; }
.form .btn { justify-self: start; }
.form-error { color: #c4361d; font-size: 15px; }
.form-error:empty { display: none; }
.form-success { background: var(--card); border-radius: 28px; padding: clamp(32px, 5vw, 56px); display: grid; gap: 18px; justify-items: start; }
.form-success h2 { font-size: clamp(40px, 5vw, 64px); }
.form-success .stamp { width: 110px; aspect-ratio: 1; color: var(--saffron); }
@media (max-width: 900px) { .order__grid { grid-template-columns: 1fr; } .order__aside { position: static; } .form .row { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: var(--on-ink); padding-block: clamp(64px, 8vw, 110px) 32px; position: relative; overflow: hidden; }
.footer-big { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 13vw, 210px); line-height: .85; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(245, 243, 238, .35); margin-bottom: clamp(40px, 6vw, 80px); white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(245, 243, 238, .16); }
.footer-grid h4 { font-family: var(--font-text); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); font-weight: 600; margin-bottom: 16px; }
.footer-grid p, .footer-grid a { color: var(--on-ink-muted); text-decoration: none; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--on-ink); }
.footer-grid .say { font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 32px); color: var(--on-ink); line-height: 1.15; max-width: 16ch; margin-bottom: 20px; }
.copyright { padding-top: 24px; font-size: 14px; color: var(--on-ink-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Появление при прокрутке ---------- */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal:not(.in) { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}

/* ---------- Подпись источника фото ---------- */
.credit { margin-top: 12px; font-size: 13px; color: var(--muted); }
.credit a { color: var(--cobalt); }

/* ---------- Конструктор заказа ---------- */
.form fieldset { border: 0; margin: 0; padding: 0 0 28px; display: grid; gap: 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.form fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }
.form legend { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 20px; padding: 0; margin-bottom: 18px; }
.form legend .num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 15px; }
.builder { display: grid; grid-template-columns: 1fr; gap: 28px; }
.builder > * { min-width: 0; }
.builder h4 { font-family: var(--font-text); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.hint { color: var(--muted); font-size: 15px; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; }
.menu { display: grid; gap: 8px; }
.dish { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; background: var(--paper); border-radius: 14px; }
.dish b { display: block; font-weight: 600; line-height: 1.3; }
.dish span { font-size: 14px; color: var(--muted); }
.dish .btn { flex: none; padding: 8px 14px; font-size: 14px; }
.cart { display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; position: relative; }
.line__name { padding-right: 24px; min-width: 0; }
.line__name b { display: block; font-weight: 600; line-height: 1.3; }
.line__name span { font-size: 13px; color: var(--muted); }
.line__sum { align-self: center; justify-self: end; grid-column: 2; grid-row: 2; }
.line__x { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.line__x:hover { color: #c4361d; }
.seg { grid-column: 1 / -1; justify-self: start; display: flex; flex-wrap: wrap; gap: 4px; background: var(--paper); padding: 4px; border-radius: 999px; width: max-content; max-width: 100%; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.qty { grid-row: 2; align-self: center; justify-self: start; display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 999px; width: max-content; }
.qty button { width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 50%; background: none; font-size: 18px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; }
.line .seg { grid-row: 3; }
.totals { display: grid; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1.5px solid var(--ink); font-size: 15px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin-top: 4px; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.aside-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: var(--ink); color: var(--paper); border-radius: 18px; padding: 16px 20px; }
.aside-total b { font-family: var(--font-display); font-size: 24px; color: var(--saffron); }
.aside-total[hidden] { display: none; }

/* ---------- Источники фото ---------- */
.credits-page h1 { font-size: clamp(40px, 6vw, 80px); margin: 18px 0 20px; }
.credits-page .lead { margin-bottom: 40px; }
.credits-page h3 { font-size: 22px; margin: 44px 0 14px; }
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.credits li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 10px; background: var(--card); border-radius: 16px; }
.credits img { width: 64px; height: 64px; object-fit: cover; border-radius: 999px 999px 8px 8px; }
.credits b { display: block; } .credits small { color: var(--muted); }
.credits li > span { font-size: 14px; text-align: right; }
.credits a { color: var(--cobalt); }
@media (max-width: 560px) { .credits li { grid-template-columns: 56px 1fr; } .credits li > span { grid-column: 2; text-align: left; } }
