: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); }

@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; }
}

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

.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);
}

.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); }

.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; }
}

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

.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); }

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

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

.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; }
}

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

.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; }
