/* fonts:start — свои копии Google Fonts (Fraunces, Nunito; латиница + кириллица), см. tools — не грузим с fonts.googleapis.com */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/nunito-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/nunito-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* fonts:end */
:root {
  /* Тёплая, мягкая палитра для чайханы — кремовый фон, терракота и золото
     вместо тёмной хай-тек темы с неоном. Имена переменных оставлены как
     были (--cyan/--amber/--magenta и т.д.), чтобы не переписывать десятки
     мест использования — теперь это просто «основной акцент»/«акцент-2»/
     «акцент-3» по смыслу, а не буквально цвета. */
  --bg: #faf5ee;
  --bg-alt: #f3e9db;
  --surface: rgba(255, 255, 255, .72);
  --surface-solid: #ffffff;
  --border: rgba(196, 154, 108, .28);
  --border-strong: rgba(196, 154, 108, .55);
  --cyan: #c47a3f;       /* терракота — основной акцент */
  --cyan-dim: #a3612c;
  --amber: #c79a4b;      /* тёплое золото — второй акцент */
  --amber-dim: #a17d38;
  --magenta: #b98a6a;    /* мягкая глина — акцент для мелких деталей */
  --text: #4a3a2c;
  --muted: #9c8a76;
  --ok: #6f9a5a;
  --danger: #c1594a;
  --font-head: 'Fraunces', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16.5px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0 0 .5rem;
  letter-spacing: 0;
}

p { font-family: var(--font-body); font-size: 1.02rem; }

a { color: inherit; }

img { max-width: 100%; }

/* --- фон: ровный тёплый кремовый, без «технической сетки» --- */

body {
  background: var(--bg);
}

/* --- баннер установки приложения (PWA) --- */

.install-banner {
  background: var(--surface-solid);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--font-body);
  font-size: .88rem;
  text-align: center;
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 0 0 auto;
}

.install-banner .btn-primary {
  padding: .4rem 1.1rem;
  font-size: .8rem;
}

.install-banner-dismiss {
  border: none;
  background: transparent;
  color: var(--cyan);
  opacity: .8;
  font-size: .95rem;
  cursor: pointer;
  padding: .2rem .4rem;
}
.install-banner-dismiss:hover { opacity: 1; }

/* --- шапка --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 245, 238, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0;
}

.brand-ornament {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(196, 122, 63, .15);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex: 1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.site-nav a:hover { color: var(--cyan); border-color: var(--cyan); }
.site-nav-cta { color: var(--amber-dim) !important; }

.header-phone {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  color: var(--cyan);
  white-space: nowrap;
}
.header-phone:hover { color: var(--amber-dim); }

.header-account-btn {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cyan-dim);
  cursor: pointer;
  white-space: nowrap;
}
.header-account-btn:hover { background: var(--bg-alt); }

@media (max-width: 720px) {
  .site-header-inner { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; gap: 1rem; overflow-x: auto; }
  .header-phone { margin-left: auto; }
}

/* --- регистрация/вход покупателя (скидка 10%) --- */

.account-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(74, 58, 44, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
/* Без этого display:flex выше перебивает встроенное [hidden]{display:none}
   браузера (авторский CSS приоритетнее UA-стиля независимо от специфичности)
   — оверлей оставался видимым и не закрывался, даже когда JS ставил hidden. */
.account-overlay[hidden] { display: none; }

.account-card {
  position: relative;
  background: var(--surface-solid);
  border-radius: 14px;
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(74, 58, 44, .25);
}

.account-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
}
.account-close:hover { color: var(--text); }

.account-tabs {
  display: flex;
  gap: .5rem;
  margin-bottom: 1.1rem;
}
.account-tab-btn {
  flex: 1;
  padding: .5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.account-tab-btn.active { background: var(--cyan); border-color: var(--cyan); color: #fff; }

.account-form { display: flex; flex-direction: column; gap: .7rem; }
.account-form input {
  padding: .6rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  color: var(--text);
}
.account-form input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }

.account-status { font-size: .85rem; min-height: 1.1em; color: var(--ok); }
.account-status.error { color: var(--danger); }

.account-perk { margin: 1.1rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

#account-logged-view p { margin: 0 0 .75rem; }
#account-logged-view .account-perk { margin: 0 0 1rem; text-align: left; }

.order-discount-note {
  margin: .75rem 0 0;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ok);
}

/* --- герой --- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(196,122,63,.10), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(199,154,75,.12), transparent 55%),
    var(--bg-alt);
  color: var(--text);
  padding: 6rem 1.5rem 5.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* Раньше здесь была техническая сетка + скан-линия поверх героя — для
   мягкого стиля убраны совсем, элементы остаются в разметке (decorative,
   aria-hidden), просто ничего не рисуют. */
.hero-grid,
.hero-scanline {
  display: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: .5;
}
.hero-glow-1 { width: 320px; height: 320px; background: var(--cyan); top: -80px; left: -60px; }
.hero-glow-2 { width: 260px; height: 260px; background: var(--magenta); bottom: -70px; right: -40px; opacity: .35; }

.hero-content { position: relative; max-width: 680px; margin: 0 auto; }

.hero-kicker {
  font-family: var(--font-body);
  letter-spacing: .06em;
  font-size: .82rem;
  font-weight: 600;
  color: var(--cyan);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  margin-bottom: 1.1rem;
  line-height: 1.2;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36em;
  margin: 0 auto 2rem;
}

.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn {
  display: inline-block;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 6px 18px rgba(196,122,63,.3);
}
.btn-primary:hover { background: var(--cyan-dim); box-shadow: 0 8px 22px rgba(196,122,63,.4); }
.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,.5);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(255,255,255,.85); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat { display: flex; flex-direction: column; gap: .2rem; }
.hero-stat-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--amber-dim);
}
.hero-stat-label {
  font-size: .78rem;
  color: var(--muted);
}

/* --- секции --- */

.section { padding: 5rem 1.5rem; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-inner { max-width: 1120px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.section-index {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  color: var(--cyan);
  border: 1px solid var(--border-strong);
  padding: .15rem .55rem;
  border-radius: 999px;
}
.section-lead {
  color: var(--muted);
  margin: 0 0 2.25rem;
}

/* --- меню --- */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2rem;
}
.menu-tab-btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  color: var(--muted);
  font-size: .88rem;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.menu-tab-btn.active { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.menu-tab-btn:hover:not(.active) { border-color: var(--cyan); color: var(--cyan); }

.menu-loading, .menu-error {
  color: var(--muted);
  padding: 1rem 0;
}
.menu-error { color: var(--danger); }

.menu-group { margin-bottom: 2.5rem; }
.menu-group-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--amber-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}

.menu-dish {
  background: var(--surface);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(120, 90, 60, .06);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.menu-dish:hover { border-color: var(--border-strong); box-shadow: 0 10px 26px rgba(120, 90, 60, .14); transform: translateY(-2px); }

.dish-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.dish-body {
  flex: 1;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.dish-text { display: flex; flex-direction: column; gap: .35rem; }

.menu-dish .dish-name { font-family: var(--font-head); font-size: 1.05rem; }
.dish-ingredients {
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Ставится поваром на кухне (вкладка «В наличии») — приходит с кассы на
   сайт через автосинк (см. siteBridge.js/menu-display.js, тот же бейдж). */
.dish-stock-warning {
  font-size: .78rem;
  font-weight: 700;
  color: #a32e23;
}

.dish-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
}
.menu-dish .dish-price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cyan);
  white-space: nowrap;
}

.dish-add-btn {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: rgba(196,122,63,.08);
  color: var(--cyan);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.dish-add-btn:hover { background: var(--cyan); color: #fff; box-shadow: 0 4px 12px rgba(196,122,63,.35); }

/* --- о нас --- */

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.about-text p { margin: 0 0 1rem; color: var(--text); }

.delivery-area-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.delivery-area-list li {
  margin: 0;
  padding-left: 1.1rem;
  position: relative;
  color: var(--text);
  line-height: 1.5;
}
.delivery-area-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--cyan);
}
.delivery-area-list strong { color: var(--cyan); }

.about-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(120, 90, 60, .06);
}
.about-panel-row {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-size: .85rem;
  color: var(--muted);
}
.about-panel-bar {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(120, 90, 60, .1);
  overflow: hidden;
}
.about-panel-bar i {
  display: block;
  width: var(--v, 50%);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* --- доставка для бизнеса --- */

.corporate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.corporate-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(120, 90, 60, .06);
}
.corporate-card h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0 0 .5rem;
  color: var(--cyan-dim);
}
.corporate-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.corporate-cta { display: inline-block; }

/* --- галерея / отзывы --- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: .9rem;
  margin-bottom: 2.5rem;
}
.gallery-tile {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--cyan);
  box-shadow: 0 2px 10px rgba(120, 90, 60, .06);
  transition: border-color .15s, box-shadow .15s, color .15s, transform .15s;
}
.gallery-tile:hover { border-color: var(--border-strong); box-shadow: 0 10px 22px rgba(120, 90, 60, .14); color: var(--amber-dim); transform: translateY(-2px); }
.gallery-icon { width: 42%; height: 42%; }
.gallery-tile span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  color: var(--text);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.review-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(120, 90, 60, .06);
}
.review-card blockquote { margin: 0 0 .6rem; font-style: italic; color: var(--text); }
.review-card figcaption {
  font-size: .82rem;
  color: var(--muted);
}

/* --- контакты --- */

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-list { margin: 1.25rem 0 0; }
.contact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: .5rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
}
.contact-row dt { color: var(--muted); font-size: .85rem; }
.contact-row dd { margin: 0; font-weight: 600; }
.contact-row a { text-decoration: none; color: var(--cyan); }
.contact-row a:hover { color: var(--amber-dim); }

.faq-list { margin: 1.5rem 0 0; max-width: 56rem; }
.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { padding-top: 0; }
.faq-item dt { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.faq-item dd { margin: .4rem 0 0; color: var(--muted); line-height: 1.5; }

.contact-note {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1rem;
}

.map-directions-link {
  display: inline-block;
  margin-top: 1.5rem;
}

.contact-social-qr {
  display: flex;
  gap: 12px;
  margin-top: 1.25rem;
}

.contact-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
}

.contact-qr-card img {
  width: 76px;
  height: 76px;
  flex: none;
  display: block;
}

.contact-qr-card span {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
}

.map-embed {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  height: 320px;
  box-shadow: 0 2px 10px rgba(120, 90, 60, .06);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  /* Карта Яндекса светлая по умолчанию — на тёплом светлом фоне фильтры
     инверсии больше не нужны (раньше подгонялись под тёмную тему). */
}

@media (max-width: 780px) {
  .map-embed { height: 260px; }
  .contacts-grid { grid-template-columns: 1fr; }
}

/* --- заказ (корзина + форма) --- */

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.order-cart-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.order-cart-list .empty-hint {
  color: var(--muted);
  font-size: .88rem;
}

.order-cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: .6rem;
  font-size: .9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .6rem .8rem;
  backdrop-filter: blur(8px);
}
.order-cart-item .name { font-weight: 600; }
.order-cart-item .unit-price { color: var(--muted); font-size: .78rem; }

.order-cart-item .qty-control { display: flex; align-items: center; gap: .4rem; }
.order-cart-item .qty-control button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-size: .95rem;
  line-height: 1;
}
.order-cart-item .qty-control button:hover { border-color: var(--cyan); background: rgba(196,122,63,.08); }
.order-cart-item .qty-control span { min-width: 1.4em; text-align: center; }

.order-cart-item .remove-btn {
  border: none;
  background: none;
  color: var(--danger);
  cursor: pointer;
  font-size: .78rem;
}

.order-cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 1.1rem;
  padding-top: .85rem;
  border-top: 1px solid var(--border);
  color: var(--amber-dim);
}

.order-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(120, 90, 60, .06);
}
.order-form h3 { color: var(--cyan); margin: 0 0 .3rem; }
.order-form-lead { margin: 0 0 1.25rem; }

.order-field {
  display: block;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.order-field input, .order-field textarea {
  display: block;
  width: 100%;
  margin-top: .4rem;
  padding: .7rem .9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  resize: vertical;
}
.order-field input:focus, .order-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(196,122,63,.15);
}
.order-field input::placeholder, .order-field textarea::placeholder { color: #b8a894; }

.order-submit-btn { width: 100%; text-align: center; }
.order-submit-btn:disabled { background: rgba(120, 90, 60, .12); color: var(--muted); box-shadow: none; cursor: not-allowed; }

.order-status { margin-top: .75rem; font-size: .85rem; min-height: 1.2em; }
.order-status.ok { color: var(--ok); }
.order-status.error { color: var(--danger); }

@media (max-width: 780px) {
  .order-grid { grid-template-columns: 1fr; }
}

/* --- плавающая полоса корзины --- */

.cart-bar {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  padding: .5rem .7rem .5rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  box-shadow: 0 10px 28px rgba(120, 90, 60, .22);
}
.cart-bar .btn { padding: .45rem .9rem; font-size: .78rem; border-radius: 999px; }

@media (max-width: 480px) {
  .cart-bar { width: calc(100% - 1.5rem); justify-content: space-between; }
}

/* --- плавающие кнопки чата (WhatsApp/Telegram) --- */

.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35; /* выше .cart-bar (30) — кнопки чата не должны прятаться под ней */
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.chat-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: transform .15s;
}
.chat-btn:hover { transform: scale(1.08); }
.chat-btn svg { width: 28px; height: 28px; fill: #fff; }

.chat-whatsapp { background: #25d366; }
.chat-telegram { background: #229ed9; }

@media (max-width: 480px) {
  /* Поднимаем выше — на узком экране .cart-bar (когда корзина не пуста)
     растягивается почти на всю ширину и перекрыла бы кнопки чата снизу. */
  .chat-widget { right: .75rem; bottom: 4.5rem; }
  .chat-btn { width: 46px; height: 46px; }
  .chat-btn svg { width: 24px; height: 24px; }
}

/* --- футер --- */

.site-footer {
  background: var(--bg-alt);
  color: var(--muted);
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .85rem;
}
.footer-sep { opacity: .5; }
.site-footer-inner a { color: var(--muted); text-decoration: underline; }
.site-footer-inner a:hover { color: var(--cyan-dim); }

/* --- всплывающий выбор «иду в чайхану» / «доставка» --- */

.mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(74, 58, 44, .45);
}
.mode-overlay[hidden] { display: none; }

.mode-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: 0 18px 50px rgba(74, 58, 44, .25);
  text-align: center;
}

.mode-card h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.mode-close {
  position: absolute;
  top: .6rem;
  right: .7rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.mode-step[hidden] { display: none; }

.mode-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.mode-actions .btn { width: 100%; }

.mode-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-bottom: 1rem;
}

.mode-chip {
  padding: .75rem .5rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}
.mode-chip:hover { background: var(--bg-alt); }

.mode-back {
  margin-top: .75rem;
  border: none;
  background: none;
  color: var(--muted);
  font-size: .9rem;
  cursor: pointer;
}

.mode-card .order-field { text-align: left; }

.mode-error {
  min-height: 1.2rem;
  margin: .5rem 0 0;
  color: var(--danger);
  font-size: .85rem;
}

.order-mode-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: .9rem;
}
.order-mode-banner[hidden] { display: none; }

.order-mode-change {
  border: none;
  background: none;
  color: var(--cyan-dim);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.order-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .25rem 0 1rem;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
}
.order-checkbox input { margin-top: .25rem; accent-color: var(--cyan); }

.cross-sell {
  margin: .75rem 0;
  padding: .75rem;
  border: 1px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
}
.cross-sell-title {
  margin: 0 0 .5rem;
  font-size: .85rem;
  font-weight: 700;
  color: var(--muted);
}
.cross-sell-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cross-sell-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-solid);
  font-size: .82rem;
}
.cross-sell-item .cross-sell-price { color: var(--muted); }
.cross-sell-item button {
  border: none;
  background: var(--cyan);
  color: #fff;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

/* --- Рекламный баннер новинки на первом экране (#promo-chicken, см. showPromoIfAvailable в site.js) --- */
.promo-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.4rem;
  margin: 0 auto 2.2rem;
  padding: 1.4rem 1.6rem;
  border-radius: 24px;
  background: radial-gradient(120% 140% at 0% 0%, #8a3f12 0%, #4a2210 55%, #2a140a 100%);
  color: #fff7ec;
  text-align: left;
  box-shadow: 0 18px 40px rgba(74, 34, 16, .35);
  position: relative;
  overflow: hidden;
}
.promo-banner[hidden] { display: none; }
.promo-banner::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 196, 96, .18);
  filter: blur(10px);
}
.promo-art { position: relative; width: 7rem; height: 6.6rem; flex: none; }
.promo-leg { font-size: 5.8rem; line-height: 1; display: block; transform: rotate(-18deg); animation: promo-bob 2.6s ease-in-out infinite; }
.promo-chili { position: absolute; right: -.9rem; bottom: -.6rem; font-size: 2.3rem; transform: rotate(18deg); }
@keyframes promo-bob { 50% { transform: rotate(-12deg) translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .promo-leg { animation: none; } }
.promo-body { position: relative; z-index: 1; }
.promo-badge {
  display: inline-block;
  margin: 0 0 .5rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: #ffcd60;
  color: #2a140a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.promo-title { margin: 0 0 .45rem; font-family: var(--font-head); font-size: 1.65rem; line-height: 1.15; color: #fff; }
.promo-text { margin: 0 0 1rem; font-size: .98rem; line-height: 1.5; color: #f6dfc6; }
.promo-btn { background: #ffcd60; color: #2a140a; font-weight: 800; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.promo-btn:hover { background: #ffd97f; }
@media (max-width: 560px) {
  .promo-banner { grid-template-columns: 1fr; text-align: center; padding: 1.3rem 1.1rem 1.4rem; gap: .6rem; }
  .promo-art { margin: 0 auto; width: 5.6rem; height: 5.2rem; }
  .promo-leg { font-size: 4.6rem; }
  .promo-title { font-size: 1.4rem; }
}

/* Цена в цвет наличия — как на кассе (site.js, buildGroup) */
.menu-dish .dish-price.in-stock { color: #15803d; }
.menu-dish .dish-price.out-of-stock { color: #a32e23; }

/* Ссылка «Скачать прайс-лист» в разделе меню (PDF из tools/pricelist_pdf.py) */
.pricelist-link { margin: -.4rem 0 1.2rem; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pricelist-link a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--surface-solid); border: 1px solid var(--cyan);
  color: var(--cyan); font-weight: 700; text-decoration: none;
}
.pricelist-link a::before { content: "⬇"; font-size: .95em; }
.pricelist-link a:hover { background: var(--cyan); color: #fff; }
.pricelist-link span { font-size: .82rem; color: var(--muted); }

/* Окно входа: сначала только «Вход», регистрация — по ссылке (16.10) */
.account-title { margin: 0 0 14px; font-size: 1.25rem; text-align: center; }
.account-switch { margin: 10px 0 0; text-align: center; font-size: .92rem; color: var(--muted, #8d7a66); }
.account-link-btn { background: none; border: 0; padding: 0; color: var(--accent, #c47a3f); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.account-status .account-link-btn { display: inline; margin-top: 4px; }

/* Оплата через СБП (16.10) */
.btn-sbp { background: #1d1346; color: #fff; border: 0; }
.btn-sbp:hover:not(:disabled) { background: #2b1d66; }
.btn-sbp:disabled { opacity: .55; }
.sbp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; }
.sbp-card { position: relative; background: #fff; color: #2a140a; width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) { .sbp-overlay { align-items: center; } .sbp-card { border-radius: 18px; } }
.sbp-card h3 { margin: 0 0 4px; font-size: 1.25rem; }
.sbp-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: #8d7a66; }
.sbp-sum { margin: 0 0 12px; color: #6b5644; }
.sbp-qr { text-align: center; margin-bottom: 10px; }
.sbp-qr img { width: 220px; height: 220px; }
.sbp-qr p, .sbp-hint { font-size: .9rem; color: #6b5644; margin: 6px 0; }
.sbp-search { width: 100%; border: 1px solid #eadccb; border-radius: 10px; padding: 10px; font: inherit; margin-bottom: 8px; }
.sbp-banks { display: grid; grid-template-columns: 1fr; gap: 6px; max-height: 46vh; overflow-y: auto; }
.sbp-bank { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #eadccb; border-radius: 12px; color: inherit; text-decoration: none; font-weight: 600; }
.sbp-bank:active { background: #faf5ee; }
.sbp-bank img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; flex: none; }
.sbp-loading { color: #8d7a66; padding: 10px; }
.sbp-other { display: block; text-align: center; margin: 12px 0 4px; color: #c47a3f; font-weight: 700; }
.sbp-wait { text-align: center; color: #8d7a66; font-size: .9rem; margin-top: 8px; }

/* Слайдер новинок (26.10, initPromoSlider в site.js) */
.promo-slider { margin: 0 auto 2.2rem; }
.promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 24px;
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-track > .promo-banner { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.promo-photo { width: 8.5rem; height: 8.5rem; }
.promo-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 50%; border: 3px solid #ffcd60; box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}
.promo-dots { display: flex; justify-content: center; gap: .5rem; margin-top: .7rem; }
.promo-dot { width: .7rem; height: .7rem; padding: 0; border: 0; border-radius: 999px; background: rgba(138, 63, 18, .3); cursor: pointer; transition: width .2s, background .2s; }
.promo-dot.active { width: 1.8rem; background: #8a3f12; }
@media (max-width: 560px) {
  .promo-photo { width: 7rem; height: 7rem; margin: 0 auto; }
}

/* «Мы в Яндекс Еде» рядом с баннером новинки (16.10) */
.yaeda-note { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; margin: .9rem 0 1.4rem; padding: .9rem 1.1rem; border-radius: 16px; background: #fff8d6; border: 1px solid #f3dc7a; color: #2a140a; }
.yaeda-icon { font-size: 2rem; line-height: 1; flex: none; }
.yaeda-body { flex: 1 1 16rem; min-width: 0; }
.yaeda-title { margin: 0 0 .2rem; font-weight: 800; font-size: 1.02rem; }
.yaeda-text { margin: 0; font-size: .93rem; line-height: 1.45; color: #4a3a2c; }
.yaeda-btn { flex: none; background: #2a140a; color: #fff; text-decoration: none; font-weight: 700; padding: .6rem 1rem; border-radius: 12px; font-size: .92rem; }
.yaeda-btn:hover { background: #4a2210; }

/* «Почему к нам» (18.10) */
.why-us .section-title { margin-bottom: 1.2rem; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.why-card { background: var(--surface, #fff); border: 1px solid rgba(196, 154, 108, .3); border-radius: 16px; padding: 1.1rem 1.2rem; }
.why-card h3 { margin: .35rem 0 .35rem; font-size: 1.05rem; }
.why-card p { margin: 0; font-size: .93rem; line-height: 1.5; opacity: .9; }
.why-icon { font-size: 1.8rem; line-height: 1; }
.why-links { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 0; }
.why-links a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid rgba(196, 154, 108, .45); text-decoration: none; font-size: .9rem; color: inherit; }
.why-links a:hover { border-color: currentColor; }

/* Маршрут в навигаторах и отзыв (18.10) */
.route-links { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: .8rem 0; }
.route-title { font-weight: 700; margin-right: .2rem; }
.route-links a { padding: .4rem .75rem; border-radius: 999px; border: 1px solid rgba(196, 154, 108, .5); text-decoration: none; color: inherit; font-size: .9rem; }
.route-links a:hover { border-color: currentColor; }
.route-links .route-review { background: #ffcd60; color: #2a140a; border-color: #ffcd60; font-weight: 700; }

/* «Сообщать, когда блюдо готово» (21.10) */
.dish-notify { margin: .4rem 0 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.dish-notify-btn { border: 1px solid rgba(196, 154, 108, .6); background: transparent; color: inherit; border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .92rem; cursor: pointer; }
.dish-notify-btn.on { opacity: .75; }
.dish-notify-btn.pulse { background: #ffcd60; color: #2a140a; border-color: #ffcd60; font-weight: 700; }
.dish-notify-status { font-size: .88rem; opacity: .85; }

/* Художественные описания блюд (22.10) */
.dish-desc { margin: .25rem 0 .2rem; font-size: .9rem; line-height: 1.35; font-style: italic; opacity: .9; }
.dish-desc + .dish-ingredients { font-size: .8rem; opacity: .7; }
