/* ==========================================================================
   Динамо Блюз — стейк & музика
   Дизайн-система: теплий чорний, кремовий текст, латунь як тонкий акцент,
   фірмовий червоний — лише для головних дій.
   ========================================================================== */

:root {
  --bg: #0d0b0a;
  --bg-2: #121010;
  --surface: #171412;
  --surface-2: #201c19;
  --line: rgba(236, 224, 206, .10);
  --line-2: rgba(236, 224, 206, .20);
  --text: #f0e8dc;
  --text-2: #c9bdac;
  --muted: #8e8171;
  --brass: #c9a56e;
  --brass-2: #e6cc9c;
  --red: #c42a33;
  --red-2: #d93943;

  --serif: "Playfair Display", "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 12px;
  --r-sm: 8px;
  --wrap: 1260px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 78px;
  --section: clamp(64px, 7vw, 104px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 72px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip; /* clip не ламає sticky-шапку на мобільних */
}

/* Легке плівкове зерно поверх фону */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

main, .topbar, .header, .footer { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--brass); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- Типографіка ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 500; }

.display, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.012em;
  line-height: 1.02;
}
.h2 { font-size: clamp(2.7rem, 5.4vw, 4.75rem); }
.h3 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.h2 em, .h3 em, .display em { font-style: italic; font-weight: 400; color: var(--brass-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font: 600 11.5px/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

.lead { color: var(--text-2); font-size: 17px; line-height: 1.7; max-width: 36em; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.section-head .h2 { margin-top: 22px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-2);
  transition: color .3s, border-color .3s;
  white-space: nowrap;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.link-arrow:hover { color: var(--brass-2); border-color: var(--brass); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 12.5px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn:active { transform: scale(.98); }

.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px rgba(196, 42, 51, .8); }
.btn--red:hover { background: var(--red-2); box-shadow: 0 16px 40px -12px rgba(217, 57, 67, .85); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-2); }

.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; }

.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .3s, color .3s, background .3s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--brass); color: var(--brass-2); }

/* ---------- Верхня смуга з контактами ---------- */

.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
}
.topbar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
}
.topbar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar__label { color: var(--muted); margin-right: 8px; }
.topbar a { text-decoration: none; transition: color .3s; }
.topbar a:hover { color: var(--brass-2); }

.socials { display: flex; gap: 4px; }
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.socials a:hover { color: var(--brass-2); border-color: var(--line-2); }
.socials svg { width: 16px; height: 16px; }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .45s, border-color .45s;
}
.header.is-scrolled {
  background: rgba(13, 11, 10, .8);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header__in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo { flex: none; display: block; line-height: 0; }
.logo img { height: 48px; width: auto; }

.nav { display: flex; gap: clamp(20px, 2.6vw, 38px); margin: 0 auto; }
.nav a {
  position: relative;
  padding: 10px 0;
  font: 500 12.5px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav + .header__actions { margin-left: 0; }

.header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  line-height: 1.2;
}
.header__phone small {
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.header__phone span { font-weight: 600; font-size: 15px; letter-spacing: .02em; transition: color .3s; }
.header__phone:hover span { color: var(--brass-2); }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 8px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(23, 20, 18, .6);
  cursor: pointer;
  font: 600 13px/1 var(--sans);
  letter-spacing: .04em;
  transition: border-color .3s, background .3s;
}
.cart-btn svg { width: 19px; height: 19px; }
.cart-btn:hover { border-color: var(--brass); }
.cart-btn__count {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12.5px;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.cart-btn.has-items .cart-btn__count { background: var(--red); color: #fff; }
.cart-btn.bump .cart-btn__count { transform: scale(1.25); }

.burger { display: none; }

/* ---------- Мобільне меню ---------- */

.mnav {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s var(--ease), visibility .4s;
}
.mnav.is-open { opacity: 1; visibility: visible; }
.is-menu-open .header { z-index: 75; background: var(--bg); }
.mnav__links { display: grid; gap: 4px; }
.mnav__links a {
  font: 500 clamp(2.4rem, 10vw, 3.4rem)/1.15 var(--serif);
  text-decoration: none;
  padding: 6px 0;
}
.mnav__links a:hover { color: var(--brass-2); }
.mnav__foot {
  margin-top: auto;
  display: grid;
  gap: 10px;
  color: var(--text-2);
  font-size: 15px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.mnav__foot a { text-decoration: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(32px, 4.5vw, 64px) 0 clamp(24px, 3vw, 40px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 60% at 76% 46%, rgba(196, 42, 51, .20), transparent 70%),
    radial-gradient(38% 46% at 6% 4%, rgba(72, 98, 196, .13), transparent 70%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(36px, 5vw, 84px);
}
.hero__title {
  font-size: clamp(3.3rem, 7.2vw, 7.2rem);
  line-height: .93;
  margin: 28px 0 30px;
}
.hero__title em { display: block; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 42px; }

/* Три рівні колонки з однаковими відступами до роздільників */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 540px;
  margin: 44px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.fact { padding: 0 clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); }
.fact:first-child { padding-left: 0; border-left: 0; }
.fact__num {
  display: flex;
  align-items: flex-start;
  height: 1em;
  font: 500 clamp(2.4rem, 3.4vw, 3rem)/1 var(--serif);
  color: var(--text);
  white-space: nowrap;
}
/* Одиниці (₴, %) — маленькі латунні, на рівні верху цифр */
.unit {
  margin-left: 5px;
  padding-top: .12em;
  font: 600 .36em/1 var(--sans);
  letter-spacing: .02em;
  color: var(--brass);
}
.fact__txt { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Платівка-тарілка */
.disc {
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1;
  margin-inline: auto;
}
.disc__vinyl {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .045) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 50%, #1b1816 0 58%, #0a0908 100%);
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .85),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.disc__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 20deg, transparent 0 14%, rgba(255, 240, 220, .09) 20%, transparent 27% 62%, rgba(255, 240, 220, .06) 70%, transparent 78%);
  animation: spin 16s linear infinite;
  pointer-events: none;
}
.disc__ring {
  position: absolute;
  inset: 0;
  animation: spin 60s linear infinite;
  pointer-events: none;
}
.disc__ring text {
  fill: var(--brass);
  font: 600 7.4px var(--sans);
  letter-spacing: .42em;
  text-transform: uppercase;
}
.disc__plate {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201, 165, 110, .55),
    0 0 0 9px #0d0b0a,
    0 0 0 10px rgba(201, 165, 110, .22),
    0 30px 60px -10px rgba(0, 0, 0, .7);
}
.disc__plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transition: transform 1.6s var(--ease);
}
.disc:hover .disc__plate img { transform: scale(1.2); }

.disc__card {
  position: absolute;
  left: -2%;
  bottom: 4%;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 330px;
  padding: 12px 12px 12px 12px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(23, 20, 18, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .8);
  text-align: left;
  cursor: pointer;
  transition: border-color .3s, transform .5s var(--ease);
}
.disc__card:hover { border-color: var(--brass); transform: translateY(-3px); }
.disc__card img { width: 60px; height: 60px; border-radius: 10px; object-fit: cover; flex: none; }
.disc__card small {
  display: block;
  font: 600 10px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
}
.disc__card strong { display: block; font: 500 19px/1.15 var(--serif); margin: 6px 0 4px; }
.disc__card span.price { font-size: 14px; font-weight: 600; color: var(--text-2); }
.disc__card .plus {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  margin-left: 6px;
}
.disc__card .plus svg { width: 16px; height: 16px; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Топ продажів ---------- */

.top { padding: var(--section) 0 0; }
.top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.top-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.top-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.top-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 11, 10, 0) 38%, rgba(13, 11, 10, .55) 62%, rgba(13, 11, 10, .95) 100%);
}
.top-card:hover img { transform: scale(1.07); }
.top-card__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 26px 24px 24px;
}
.top-card__num { font: italic 400 22px/1 var(--serif); color: var(--brass-2); }
.top-card__name { display: block; font: 500 clamp(1.45rem, 2vw, 1.75rem)/1.1 var(--serif); margin: 10px 0 18px; }
.top-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(236, 224, 206, .18);
}
.top-card__price { font-weight: 600; font-size: 16px; }
.top-card__go {
  font: 600 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.top-card__go svg { width: 15px; height: 15px; transition: transform .4s var(--ease); }
.top-card:hover .top-card__go svg { transform: translateX(4px); }

/* ---------- Меню ---------- */

.menu { padding: var(--section) 0 0; }
.menu__intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 32px;
}
.menu__intro .h2 { margin: 22px 0 18px; }

.menu-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(13, 11, 10, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-block: 1px solid var(--line);
}
.menu-nav__in { display: flex; align-items: center; gap: 24px; }

/* Доріжка категорій: min-width: 0 дозволяє рядку прокручуватися всередині flex */
.menu-nav__track { position: relative; flex: 1; min-width: 0; }
.menu-nav__track::before,
.menu-nav__track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 84px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s;
}
.menu-nav__track::before { left: 0; background: linear-gradient(90deg, #0d0b0a 30%, rgba(13, 11, 10, 0)); }
.menu-nav__track::after { right: 0; background: linear-gradient(270deg, #0d0b0a 30%, rgba(13, 11, 10, 0)); }
.menu-nav__track.can-prev::before,
.menu-nav__track.can-next::after { opacity: 1; }

.menu-nav__list {
  display: flex;
  gap: clamp(20px, 2.4vw, 34px);
  margin: 0;
  padding: 0 2px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden; /* інакше iPhone дає рядку «їздити» ще й вертикально */
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.menu-nav__list::-webkit-scrollbar { display: none; }
.menu-nav__list.is-dragging { cursor: grabbing; }
.menu-nav__list.is-dragging a { pointer-events: none; }

.menu-nav__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity .3s, border-color .3s, color .3s;
}
.menu-nav__arrow svg { width: 14px; height: 14px; }
.menu-nav__arrow:hover { border-color: var(--brass); color: var(--brass-2); }
.menu-nav__arrow--prev { left: 0; }
.menu-nav__arrow--next { right: 0; }
.can-prev .menu-nav__arrow--prev,
.can-next .menu-nav__arrow--next { opacity: 1; pointer-events: auto; }
@media (hover: none) { .menu-nav__arrow { display: none; } }
.menu-nav__link {
  display: block;
  white-space: nowrap;
  padding: 22px 0 20px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.menu-nav__link sup { font-size: 9.5px; letter-spacing: 0; color: var(--brass); margin-left: 5px; }
.menu-nav__link:hover { color: var(--text-2); }
.menu-nav__link.is-active { color: var(--text); border-bottom-color: var(--brass); }

.search { position: relative; flex: none; }
.search__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 230px;
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 14px var(--sans);
  transition: border-color .3s, width .4s var(--ease);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brass); }
.search input::-webkit-search-cancel-button { display: none; }
.search.has-value input { padding-right: 44px; }
.search__clear {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color .3s, background .3s;
}
.search__clear svg { width: 13px; height: 13px; }
.search__clear:hover { color: #fff; background: var(--red); }
.search__count { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); }
.search__count b { color: var(--text); font-weight: 600; }

.cat { padding-top: 56px; }
.cat__head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding-bottom: 22px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.cat__num { font: italic 400 22px/1 var(--serif); color: var(--brass); min-width: 30px; }
.cat__title { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.cat__meta { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }
.cat__note { max-width: 44em; margin: -14px 0 34px; color: var(--muted); font-size: 14.5px; }

.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 48px 26px;
}

.dish { display: flex; flex-direction: column; min-width: 0; }
.dish__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  padding: 0;
  border: 0;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}
.dish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.dish__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  pointer-events: none;
}
.dish:hover .dish__media img { transform: scale(1.06); }

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 7px 11px 6px;
  border-radius: 999px;
  font: 600 10px/1 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-2);
  background: rgba(13, 11, 10, .74);
  border: 1px solid rgba(201, 165, 110, .4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tag--new { color: #fff; background: rgba(196, 42, 51, .9); border-color: transparent; }

.dish__body { display: flex; flex-direction: column; flex: 1; padding-top: 20px; }
.dish__meta {
  min-height: 12px;
  font: 600 10.5px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.dish__name { margin: 10px 0 8px; font: 500 1.6rem/1.08 var(--serif); }
.dish__name button {
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: color .3s;
}
.dish__name button:hover { color: var(--brass-2); }
.dish__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  opacity: .85;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish__foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  min-height: 58px;
}
.price { font-weight: 600; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); margin-right: 4px; }

.add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
  font: 600 11.5px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .3s, border-color .3s, color .3s;
}
.add svg { width: 15px; height: 15px; }
.add:hover { background: var(--red); border-color: var(--red); color: #fff; }
.add__n {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: -6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--brass);
  background: rgba(201, 165, 110, .08);
}
.stepper button {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text);
  border-radius: 50%;
  transition: color .3s;
}
.stepper button:hover { color: var(--brass-2); }
.stepper button svg { width: 14px; height: 14px; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }

.menu__empty { padding: 80px 0 20px; text-align: center; color: var(--text-2); }
.menu__empty p { font: 500 2rem/1.2 var(--serif); color: var(--text); margin: 0 0 8px; }

/* ---------- Просмажка ---------- */

.doneness { padding: var(--section) 0 0; }
.dn-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.dn { padding: 36px 26px 0 0; }
.dn + .dn { padding-left: 26px; border-left: 1px solid var(--line); }
.dn__cut {
  width: 100%;
  max-width: 170px;
  aspect-ratio: 1.55;
  border-radius: 48% 52% 46% 54% / 55% 50% 50% 45%;
  background:
    radial-gradient(ellipse at 50% 50%, var(--c1) 0 42%, var(--c2) 64%, #6b3a22 76%, #3a1d10 86%, #26130a 100%);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .05);
  margin-bottom: 26px;
}
.dn__name { font: 500 1.75rem/1 var(--serif); }
.dn__temp {
  margin: 10px 0 12px;
  font: 600 11.5px/1 var(--sans);
  letter-spacing: .16em;
  color: var(--brass);
}
.dn__txt { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- Ланчі ---------- */

.lunch {
  padding: var(--section) 0;
  margin-top: calc(var(--section) * .4);
  background: linear-gradient(180deg, transparent, var(--bg-2) 16%, var(--bg-2) 84%, transparent);
}
.lunch__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}
.arch { position: relative; max-width: 470px; }
.arch::before {
  content: "";
  position: absolute;
  inset: -16px;
  border: 1px solid rgba(201, 165, 110, .32);
  border-radius: 999px 999px 18px 18px;
  pointer-events: none;
}
.arch__img {
  aspect-ratio: 4 / 5.3;
  border-radius: 999px 999px var(--r) var(--r);
  overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
}
.arch__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.arch__badge {
  position: absolute;
  right: -34px;
  top: 16%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--red);
  color: #fff;
  font: 600 11px/1.35 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 20px 50px -16px rgba(196, 42, 51, .8);
}
.arch__badge b { display: block; font: 500 30px/1 var(--serif); letter-spacing: 0; text-transform: none; margin-bottom: 4px; }

.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .16em .22em;
  margin: 30px 0 34px;
  font: 400 clamp(3.2rem, 6.4vw, 5.6rem)/1 var(--serif);
}
.equation .op { font-style: italic; color: var(--brass); }
.equation .sum { font-weight: 500; white-space: nowrap; }

.checks { list-style: none; margin: 0 0 44px; padding: 0; display: grid; gap: 16px; }
.checks li { display: flex; align-items: center; gap: 16px; color: var(--text-2); font-size: 16px; }
.checks li::before {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(201, 165, 110, .6);
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6cc9c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.2 4.2L19 7'/></svg>") center / 13px no-repeat;
}
.lunch__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Про нас ---------- */

.about { padding: var(--section) 0 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: center;
}
.about__photos { position: relative; aspect-ratio: 1 / 1.08; }
.about__photos figure { margin: 0; position: absolute; border-radius: var(--r); overflow: hidden; }
.about__photos img { width: 100%; height: 100%; object-fit: cover; }
.about__photos .ph-1 { left: 0; top: 0; width: 74%; aspect-ratio: 4 / 5; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85); }
.about__photos .ph-2 {
  right: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 1;
  border: 10px solid var(--bg);
  border-radius: 20px;
}
.about__years {
  position: absolute;
  right: 4%;
  top: 6%;
  font: italic 400 clamp(6rem, 12vw, 10rem)/.8 var(--serif);
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 165, 110, .55);
  pointer-events: none;
}

.creed { list-style: none; counter-reset: c; margin: 44px 0 0; padding: 0; }
.creed li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  font: 400 clamp(1.45rem, 2.2vw, 1.95rem)/1.28 var(--serif);
}
.creed li:last-child { border-bottom: 1px solid var(--line); }
.creed li::before {
  counter-increment: c;
  content: "0" counter(c);
  padding-top: .6em;
  font: 600 11.5px/1 var(--sans);
  letter-spacing: .16em;
  color: var(--brass);
}
.creed em { color: var(--brass-2); }

.motto {
  padding: var(--section) 0 0;
  text-align: center;
}
.motto p {
  margin: 0 auto;
  max-width: 16em;
  font: italic 400 clamp(2.4rem, 5.2vw, 4.6rem)/1.05 var(--serif);
  color: var(--text);
}
.motto p span { color: var(--brass-2); }
.motto__rule {
  width: 1px;
  height: 72px;
  margin: 0 auto 36px;
  background: linear-gradient(var(--brass), transparent);
}

/* ---------- Доставка ---------- */

.delivery { padding: var(--section) 0 0; }
.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.perk {
  position: relative;
  padding: 44px 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface), rgba(23, 20, 18, 0));
  overflow: hidden;
  transition: border-color .4s;
}
.perk:hover { border-color: rgba(201, 165, 110, .35); }

/* Виділена картка — самовивіз −10% */
.perk--accent {
  top: -10px;
  border-color: rgba(196, 42, 51, .6);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(196, 42, 51, .38), transparent 62%),
    linear-gradient(180deg, #2a1515, var(--surface));
  box-shadow: 0 34px 80px -34px rgba(196, 42, 51, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.perk--accent:hover { border-color: var(--red-2); }
.perk--accent .perk__big { color: #fff; }
.perk--accent .perk__txt { color: var(--text); }
.perk__flag {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 8px 12px 7px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font: 600 10px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* ---------- Спливаюче вікно «Ланчі» ---------- */

.promo {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--bg-2);
  color: var(--text);
  overflow: hidden;
}
.promo::backdrop {
  background: rgba(6, 5, 4, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.promo[open] { animation: pop .6s var(--ease); }
.promo__grid { display: grid; grid-template-columns: .9fr 1.1fr; }
.promo__media { position: relative; min-height: 480px; }
.promo__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.promo__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--bg-2));
}
.promo__badge {
  position: absolute;
  left: 22px;
  top: 22px;
  z-index: 1;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--red);
  color: #fff;
  font: 600 10px/1.35 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  box-shadow: 0 16px 40px -14px rgba(196, 42, 51, .9);
}
.promo__badge b { display: block; font: 500 26px/1 var(--serif); letter-spacing: 0; text-transform: none; margin-bottom: 3px; }
.promo__body { position: relative; padding: 48px 44px 40px; overflow: hidden; }
.promo__body::before {
  content: "";
  position: absolute;
  right: -30%;
  top: -40%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 42, 51, .22), transparent 65%);
  pointer-events: none;
}
.promo .h2 { position: relative; margin-top: 18px; font-size: clamp(2.6rem, 4.4vw, 3.7rem); }
.promo .equation { position: relative; margin: 18px 0 24px; font-size: clamp(2.6rem, 4.6vw, 3.9rem); }
.promo .checks { position: relative; gap: 12px; margin-bottom: 32px; }
.promo .checks li { font-size: 15px; }
.promo__cta { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }
.promo__cta .btn { height: 52px; padding: 0 26px; }
.promo__close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(13, 11, 10, .6); }

@media (max-width: 720px) {
  .promo { overflow-y: auto; }
  .promo__grid { grid-template-columns: 1fr; }
  .promo__media { min-height: 0; aspect-ratio: 16 / 10; }
  .promo__media::after { background: linear-gradient(180deg, transparent 55%, var(--bg-2)); }
  .promo__badge { width: 86px; height: 86px; left: 16px; top: 16px; }
  .promo__badge b { font-size: 21px; }
  .promo__body { padding: 20px 22px 26px; }
  .promo__cta .btn { flex: 1 1 100%; }
}
.perk__big { font: 500 clamp(3.4rem, 5vw, 4.4rem)/1 var(--serif); color: var(--brass-2); }
.perk__big { display: flex; align-items: flex-start; height: 1em; }
.perk__big small {
  margin-left: 6px;
  padding-top: .14em;
  font: 600 .32em/1 var(--sans);
  color: var(--brass);
}
.perk--accent .perk__big small { color: var(--brass-2); }
.perk__title {
  margin: 26px 0 10px;
  font: 600 12.5px/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.perk__txt { margin: 0; color: var(--text-2); font-size: 15px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 28px;
  border-radius: var(--r);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 14.5px;
}
.steps li::before {
  counter-increment: s;
  content: counter(s);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  font: italic 500 18px/1 var(--serif);
  color: var(--brass-2);
}
.steps b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* ---------- Контакти ---------- */

.contacts { padding: var(--section) 0; }
.contacts__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 20px;
}
.contacts__card {
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.contacts__card .h2 { margin-top: 22px; }
.cinfo { display: grid; gap: 26px; margin: 40px 0 44px; }
.cinfo dt {
  margin-bottom: 8px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.cinfo dd { margin: 0; font: 500 clamp(1.5rem, 2.2vw, 1.9rem)/1.2 var(--serif); }
.cinfo a { text-decoration: none; transition: color .3s; }
.cinfo a:hover { color: var(--brass-2); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.contacts__actions .socials { margin-left: 6px; }

.map {
  position: relative;
  min-height: 480px;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(.92) contrast(.88) brightness(.92) sepia(.18);
}
.map__pin {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 999px;
  background: rgba(13, 11, 10, .86);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 14px;
  text-decoration: none;
}
.map__pin i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  display: grid;
  place-items: center;
}
.map__pin svg { width: 16px; height: 16px; color: #fff; }

/* ---------- Футер ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 34px;
  font-size: 14px;
  color: var(--muted);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand img { height: 56px; width: auto; }
.footer__brand p { max-width: 22em; margin: 22px 0 0; font: italic 400 1.3rem/1.35 var(--serif); color: var(--text-2); }
.footer h4 {
  margin: 0 0 20px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a { color: var(--text-2); text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--brass-2); }
.footer .socials { margin-left: -8px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

/* ---------- Кошик ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 5, 4, .62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(470px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform .55s var(--ease), visibility .55s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.drawer__title { font: 500 2rem/1 var(--serif); }
.drawer__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font: 600 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.drawer__back svg { width: 14px; height: 14px; }
.drawer__back:hover { color: var(--brass-2); }
.drawer__body { flex: 1; overflow-y: auto; padding: 6px 28px 28px; overscroll-behavior: contain; }
.drawer__foot { padding: 22px 28px 28px; border-top: 1px solid var(--line); }

.line {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.line img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.line__name { font: 500 1.28rem/1.12 var(--serif); }
.line__opts { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.line__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.line__ctrl .stepper { height: 36px; }
.line__ctrl .stepper button { width: 34px; height: 34px; }
.line__remove {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.line__remove:hover { color: var(--red-2); }
.line__price { font-weight: 600; white-space: nowrap; }

.free {
  margin: 22px 0 4px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-2);
}
.free b { color: var(--text); }
.free__bar { height: 3px; margin-top: 12px; border-radius: 2px; background: var(--line); overflow: hidden; }
.free__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brass), var(--brass-2));
  transition: width .6s var(--ease);
}
.free.is-done { color: var(--brass-2); }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  transition: background .3s, color .3s;
}
.seg label small { font-weight: 600; color: var(--brass); }
.seg input:checked + label { background: var(--surface-2); color: var(--text); }
.seg input:focus-visible + label { outline: 2px solid var(--brass); outline-offset: 2px; }

.totals { display: grid; gap: 8px; margin-bottom: 20px; font-size: 14px; color: var(--text-2); }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals .disc-row { color: var(--brass-2); }
.totals .grand { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); align-items: baseline; }
.totals .grand span:last-child { font: 500 2rem/1 var(--serif); }

.cart-empty { padding: 72px 12px; text-align: center; color: var(--text-2); }
.cart-empty svg { width: 54px; height: 54px; color: var(--brass); opacity: .7; margin: 0 auto 20px; }
.cart-empty p { margin: 0 0 6px; font: 500 1.8rem/1.2 var(--serif); color: var(--text); }
.cart-empty .btn { margin-top: 28px; }

.form { display: grid; gap: 16px; padding-top: 20px; }
.field { display: grid; gap: 8px; }
.field label {
  font: 600 10.5px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 0 16px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 15px var(--sans);
  transition: border-color .3s;
}
.field textarea { height: 92px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field input[aria-invalid="true"] { border-color: var(--red-2); }
.field__err { font-size: 12.5px; color: var(--red-2); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__note { font-size: 12.5px; color: var(--muted); margin: 0; }

.done { padding: 56px 8px 24px; text-align: center; }
.done__mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass);
  color: var(--brass-2);
}
.done__mark svg { width: 30px; height: 30px; }
.done h3 { font: 500 2.2rem/1.1 var(--serif); margin-bottom: 14px; }
.done p { color: var(--text-2); margin: 0 auto 8px; max-width: 26em; }
.done__sum {
  margin: 28px 0;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
  font-size: 13.5px;
  color: var(--text-2);
  white-space: pre-line;
}


/* ---------- Модальне вікно страви ---------- */

.modal {
  width: min(1000px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--bg-2);
  color: var(--text);
  overflow: hidden;
}
.modal::backdrop {
  background: rgba(6, 5, 4, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal[open] { animation: pop .5s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }

.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: calc(100dvh - 48px);
}
.modal__media { position: relative; background: var(--surface); min-height: 100%; }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 2; background: rgba(13, 11, 10, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal__body {
  display: flex;
  flex-direction: column;
  padding: 48px 44px 36px;
  overflow-y: auto;
}
.modal__title { font: 500 clamp(2.1rem, 3.4vw, 2.9rem)/1.02 var(--serif); margin: 18px 0 12px; }
.modal__weight {
  font: 600 11px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.modal__desc { margin: 18px 0 0; color: var(--text-2); font-size: 15px; white-space: pre-line; }

.opt { margin-top: 30px; border: 0; padding: 0; min-width: 0; }
.opt legend {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  margin-bottom: 14px;
  font: 600 10.5px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.opt legend span:last-child { color: var(--brass-2); letter-spacing: .08em; text-transform: none; font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  cursor: pointer;
  font-size: 13.5px;
  white-space: nowrap;
  transition: border-color .3s, background .3s, color .3s;
}
.chip span:hover { border-color: rgba(201, 165, 110, .6); }
.chip input:checked + span { border-color: var(--brass); background: rgba(201, 165, 110, .12); color: var(--brass-2); }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.chip i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .35); }
.chip small { font-size: 12px; color: var(--muted); }

.pairs { margin-top: 30px; }
.pairs__title {
  margin-bottom: 14px;
  font: 600 10.5px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.pairs__list { display: grid; gap: 8px; }
.pair {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.pair img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.pair span small { display: block; color: var(--muted); font-size: 12.5px; }
.pair .icon-btn { width: 36px; height: 36px; }
.pair .icon-btn svg { width: 14px; height: 14px; }

.modal__buy {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}
.modal__buy .stepper { height: 56px; }
.modal__buy .stepper button { width: 46px; height: 54px; }
.modal__buy .btn { flex: 1; padding: 0 22px; }

/* ---------- Сповіщення ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 14px 22px 14px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: 600 14px/1.3 var(--sans);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast i {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
}
.toast svg { width: 13px; height: 13px; }

/* ---------- Поява при прокрутці ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */

@media (max-width: 1180px) {
  .header__phone { display: none; }
  .top-grid { grid-template-columns: repeat(2, 1fr); }
  .top-card { aspect-ratio: 4 / 3.6; }
  .dn-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .dn:nth-child(4) { padding-left: 0; border-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .nav { display: none; }
  .header { background: rgba(13, 11, 10, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-color: var(--line); }
  .header__in { gap: 16px; }
  .logo img { height: 40px; }
  .header__actions,
  .nav + .header__actions { margin-left: auto; gap: 10px; }
  .burger { display: grid; }
  /* Кошик на мобільному — у закріпленій шапці: з сумою й червоний, коли не порожній */
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 6px 0 14px; height: 44px; }
  .cart-btn.has-items { background: var(--red); border-color: var(--red); color: #fff; padding-left: 16px; }
  .cart-btn.has-items .cart-btn__label { display: inline; font-size: 13.5px; }
  .cart-btn.has-items .cart-btn__count { background: rgba(0, 0, 0, .22); }

  .hero { padding-top: 28px; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__visual { order: -1; padding-bottom: 64px; }
  .disc { width: min(100%, 400px); }
  .disc__card {
    left: 50%;
    bottom: -52px;
    width: min(330px, 100%);
    max-width: none;
    transform: translateX(-50%);
  }
  .disc__card:hover { transform: translate(-50%, -3px); }
  .disc__card strong { font-size: 18px; }
  .hero__title { margin: 22px 0 22px; }
  .facts { margin-top: 36px; max-width: none; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .menu__intro { grid-template-columns: 1fr; }

  .lunch__grid, .about__grid, .contacts__grid { grid-template-columns: 1fr; }
  .arch { margin: 0 auto; width: min(100%, 400px); }
  .arch__badge { right: -12px; }
  .about__photos { width: 100%; max-width: 560px; margin-inline: auto; }
  .perks, .steps { grid-template-columns: 1fr; }
  .map { min-height: 360px; }

  .modal__grid { grid-template-columns: 1fr; overflow-y: auto; }
  .modal__media { aspect-ratio: 16 / 10; min-height: 0; }
  .modal__body { padding: 30px 24px 24px; overflow: visible; }

  /* Сповіщення зверху, під шапкою — знизу його перекриває панель браузера */
  .toast { top: calc(var(--header-h) + 12px); bottom: auto; transform: translate(-50%, -16px); }
  .toast.is-show { transform: translate(-50%, 0); }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__title { font-size: clamp(2.8rem, 12.5vw, 3.6rem); }
  .disc { width: min(100%, 320px); }
  .disc__card { padding: 10px; gap: 12px; }
  .disc__card img { width: 52px; height: 52px; }
  .disc__card .plus { width: 36px; height: 36px; }

  .facts { padding-top: 22px; }
  .fact { padding: 0 12px; }
  .fact__num { font-size: 2.1rem; }
  .fact__txt { margin-top: 10px; font-size: 11.5px; }

  /* Про нас: фото акуратно в межах екрана */
  .about__photos { aspect-ratio: 1 / 1.05; }
  .about__photos .ph-1 { width: 80%; }
  .about__photos .ph-2 { width: 54%; border-width: 6px; border-radius: 16px; }
  .about__years { right: 0; top: 4%; font-size: 4.6rem; }

  .perk { padding: 32px 26px 30px; }
  .perk--accent { top: 0; }

  .top-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .top-grid::-webkit-scrollbar { display: none; }
  .top-card { flex: 0 0 78%; aspect-ratio: 3 / 4; scroll-snap-align: start; }
  /* У каруселях лише плавна поява без зсуву — зсув «виштовхував» картки за межі */
  .js .top-grid .reveal, .js .dn-grid .reveal { transform: none; }
  .logo img { height: 36px; }
  .cart-btn.has-items svg { display: none; }

  /* Один компактний рядок: категорії + кнопка пошуку, що розгортається */
  .menu-nav { background: rgba(13, 11, 10, .97); }
  .menu-nav__in { position: relative; gap: 12px; }
  .menu-nav__link { padding: 17px 0 15px; }
  .search { position: static; }
  .search__icon { left: auto; right: 13px; }
  .search.has-value .search__icon { display: none; }
  .search input {
    width: 42px;
    height: 40px;
    padding: 0;
    cursor: pointer;
  }
  .search input::placeholder { color: transparent; }
  .search:focus-within, .search.has-value {
    position: absolute;
    inset: 8px 0;
    z-index: 2;
  }
  .search:focus-within input, .search.has-value input {
    width: 100%;
    padding: 0 44px 0 18px;
    cursor: text;
  }
  .search:focus-within input::placeholder { color: var(--muted); }

  .cat { padding-top: 56px; }
  .cat__head { gap: 14px; }
  .cat__meta { display: none; }
  .dishes { grid-template-columns: 1fr; gap: 0; }
  .dish {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }
  .dish__media { aspect-ratio: 1; border-radius: 10px; }
  .dish__body { padding-top: 0; }
  .dish__name { font-size: 1.35rem; margin: 6px 0 6px; }
  .dish__desc { margin-bottom: 12px; font-size: 13px; }
  .dish__foot { border-top: 0; padding-top: 0; min-height: 0; }
  .price { font-size: 15.5px; }
  .add { height: 38px; padding: 0 14px; }
  .add .add__txt { display: none; }
  .stepper { height: 38px; }
  .stepper button { width: 34px; height: 36px; }
  .tag { top: 8px; left: 8px; padding: 5px 7px 4px; font-size: 8.5px; letter-spacing: .1em; }

  .dn-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .dn { flex: 0 0 62%; scroll-snap-align: start; }
  .dn:nth-child(4) { padding-left: 26px; border-left: 1px solid var(--line); }

  .footer__grid { grid-template-columns: 1fr; }
  .drawer__head, .drawer__body, .drawer__foot { padding-inline: 20px; }
  .row-2 { grid-template-columns: 1fr; }
}

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