/* ===== Чайная история — дизайн-система (тёплая тушь: уголь × терракота × крем) ===== */

:root {
  --bg: #14100b;            /* тёплый угольно-чёрный (фон макета) */
  --bg-soft: #1a140e;
  --panel: #211a12;
  --panel-2: #2a2016;
  --accent: #c34a2c;        /* кирпично-терракотовый — главный акцент */
  --accent-soft: #e8783e;   /* «уголёк» — иконки, ховеры, светлый акцент */
  --accent-glow: #d65a2e;
  --white: #efe3cf;         /* тёплый кремовый (вместо чистого белого) */
  --white-soft: #e8dcc8;
  --text: #efe3cf;
  --text-dim: #a89074;      /* приглушённый тёплый таупе */
  --line: rgba(195, 74, 44, 0.18);
  --line-strong: rgba(195, 74, 44, 0.40);
  --line-white: rgba(239, 227, 207, 0.08);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.66);
  --shadow-glow: 0 0 40px rgba(195, 74, 44, 0.18);
  --serif: "Playfair Display", "Georgia", serif;
  --hanzi: "Noto Serif SC", "Playfair Display", serif;
  --sans: "Noto Sans", "Segoe UI", system-ui, sans-serif;
  --r: 18px;

  /* ——— Алиасы старой палитры → новая (тёплая гамма макета) ——— */
  --gold: var(--accent);
  --gold-soft: var(--accent-soft);
  --seal: var(--accent);
  --seal-soft: var(--accent-soft);
  --jade: var(--accent-soft);
  --indigo: var(--panel-2);
  --dark-ink: #14100b;        /* тёмный текст на акцентных кнопках */
  --accent-rgb: 195, 74, 44;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(900px 600px at 86% -6%, rgba(195, 74, 44, 0.13), transparent 60%),
    radial-gradient(720px 520px at 8% 108%, rgba(120, 70, 40, 0.12), transparent 58%),
    radial-gradient(600px 600px at 50% 40%, rgba(195, 74, 44, 0.04), transparent 72%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  padding-bottom: 70px;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* тонкий шум для текстуры */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}
#app, .topbar, .tabbar, .foot { position: relative; z-index: 1; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.center { text-align: center; }
.muted { color: var(--text-dim); }
.hidden { display: none !important; }

h2.h2c { font-family: var(--serif); font-weight: 700; text-transform: uppercase; text-align: center; font-size: clamp(28px, 5.4vw, 48px); margin: 6px 0 26px; letter-spacing: 0; line-height: 1.04; background: linear-gradient(165deg, #f0823f, var(--accent) 58%, #97301d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cross-mark { color: var(--accent-soft); font-family: var(--hanzi); font-weight: 400; -webkit-text-fill-color: var(--accent-soft); }
.cat-h { font-family: var(--hanzi); font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 14.5px; margin: 50px 0 20px; color: var(--white-soft); display: flex; align-items: center; gap: 12px; }
.cat-h i { color: var(--accent-soft); font-size: 1em; width: 30px; height: 30px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(195, 74, 44, 0.08); }
.cat-h .addon { font-family: var(--sans); text-transform: none; letter-spacing: normal; font-weight: 400; font-size: 12.5px; color: var(--text-dim); margin-left: 2px; }
.cat-h::after { content: ""; flex: 1; height: 1px; min-width: 20px; background: linear-gradient(90deg, var(--line-strong), transparent); }

/* ===== Иконки общие ===== */
.bi { line-height: 1; vertical-align: -0.06em; }

/* ===== Навигация ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 22px;
  background: rgba(20, 16, 11, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-white);
}
.topbar .logo { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 20px; color: var(--accent-soft); text-decoration: none; letter-spacing: 0.03em; }
.ded-mark { width: 38px; height: 38px; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(195, 74, 44, 0.45)); transition: transform .3s ease, filter .3s ease; }
.topbar .logo:hover .ded-mark { transform: rotate(-4deg) scale(1.06); filter: drop-shadow(0 0 14px rgba(232, 120, 62, 0.6)); }
.topbar .logo .logo-text { font-family: var(--hanzi); font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; font-size: 12.5px; line-height: 1.18; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  display: flex; align-items: center; gap: 7px;
  color: var(--text-dim); text-decoration: none; font-size: 14px;
  padding: 8px 14px; border-radius: 22px; transition: all 0.2s;
}
.nav-links a i { font-size: 15px; opacity: 0.8; }
.nav-links a:hover { color: var(--text); background: var(--panel-2); }
.nav-links a.active { color: var(--accent-soft); background: rgba(195, 74, 44, 0.14); }
.nav-links a.active i { opacity: 1; color: var(--accent); }

.cart-btn {
  position: relative; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--accent-soft); font-size: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  transition: all 0.2s;
}
.cart-btn:hover { border-color: var(--accent); background: rgba(195, 74, 44, 0.1); box-shadow: 0 0 20px rgba(195, 74, 44, 0.22); }
.cart-count {
  position: absolute; top: -4px; right: -4px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* нижняя таб-панель */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: none; justify-content: space-around;
  background: rgba(20, 16, 11, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-white);
  padding: 8px 0 10px;
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-dim); text-decoration: none; font-size: 10px; padding: 4px 10px;
}
.tabbar a i { font-size: 18px; }
.tabbar a.active { color: var(--accent-soft); }

/* ===== Hero ===== */
.hero { position: relative; text-align: center; padding: 90px 22px 60px; overflow: hidden; }
.hero.short { padding: 64px 22px 36px; }
.hero-home { padding-top: 96px; }
.kanji-bg {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -52%);
  font-family: var(--hanzi); font-weight: 700;
  font-size: clamp(220px, 42vw, 460px); line-height: 1;
  color: rgba(195, 74, 44, 0.05);
  pointer-events: none; user-select: none; z-index: 0;
  text-shadow: 0 0 80px rgba(195, 74, 44, 0.1);
}
.hero > *:not(.kanji-bg) { position: relative; z-index: 1; }
.hero::after {
  content: "茶道"; position: absolute; top: 20px; right: 20px; z-index: 1;
  writing-mode: vertical-rl; font-family: var(--hanzi); font-weight: 700;
  font-size: 19px; letter-spacing: 0.12em; line-height: 1;
  color: var(--accent); opacity: 0.9; padding: 9px 5px;
  border: 1px solid var(--line-strong); border-radius: 6px;
  background: rgba(195, 74, 44, 0.06); text-shadow: 0 0 16px rgba(195, 74, 44, 0.4);
}
.brand-mark {
  font-family: var(--hanzi); letter-spacing: 0.45em; text-transform: uppercase;
  font-size: 12px; color: var(--accent-soft); margin-bottom: 20px; padding-left: 0.45em;
}
.hero h1 {
  font-family: var(--serif); font-weight: 700; text-transform: uppercase;
  font-size: clamp(40px, 7.8vw, 82px); line-height: 1.02; letter-spacing: 0;
  background: linear-gradient(165deg, #f0823f, var(--accent) 58%, #97301d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.hero .lead { max-width: 580px; margin: 0 auto 30px; color: var(--text-dim); font-size: clamp(15px, 2.4vw, 18px); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.steam { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 120px; height: 180px; pointer-events: none; opacity: 0.5; z-index: 1; }
.steam span { position: absolute; bottom: 0; width: 14px; height: 14px; background: var(--accent-soft); border-radius: 50%; filter: blur(8px); opacity: 0; animation: rise 6s infinite ease-in; }
.steam span:nth-child(1){left:30%;animation-delay:0s}
.steam span:nth-child(2){left:50%;animation-delay:1.6s}
.steam span:nth-child(3){left:65%;animation-delay:3.1s}
@keyframes rise { 0%{transform:translateY(0) scale(.6);opacity:0} 20%{opacity:.5} 100%{transform:translateY(-160px) scale(1.6);opacity:0} }

/* кисть-разделитель */
.brush-divider {
  width: min(420px, 70%); height: 3px; margin: 38px auto 0; position: relative;
  background: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--gold) 50%, var(--line-strong) 82%, transparent);
  border-radius: 3px;
}
.brush-divider::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(45deg);
  width: 9px; height: 9px; background: var(--accent); box-shadow: 0 0 12px rgba(195,74,44,0.6);
}

/* печать 茶道 */
.seal-mark {
  font-family: var(--hanzi); font-weight: 700; writing-mode: vertical-rl;
  font-size: 30px; color: #fff; line-height: 1.05;
  background: linear-gradient(160deg, var(--accent-soft), var(--accent));
  width: 56px; padding: 14px 8px; border-radius: 10px; margin: 0 auto 22px;
  box-shadow: 0 8px 22px rgba(195, 74, 44, 0.4); transform: rotate(-2deg);
}

/* ===== Кнопки ===== */
.btn {
  font-family: var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent-soft);
  padding: 13px 28px; border-radius: 40px; font-size: 15px; letter-spacing: 0.02em;
  transition: all 0.22s ease;
}
.btn i { font-size: 1.05em; }
.btn:hover { background: var(--accent); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(195,74,44,0.3); }
.btn.primary { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #fff; border: none; box-shadow: 0 10px 28px rgba(195,74,44,0.32); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 14px 36px rgba(195,74,44,0.42); }
.btn.ghost { border-color: var(--line-white); color: var(--text-dim); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); border-color: var(--line-strong); }
.btn.small { padding: 8px 16px; font-size: 13px; }
.btn.full { width: 100%; justify-content: center; }

.section-tag { font-family: var(--hanzi); letter-spacing: 0.28em; text-transform: uppercase; font-size: 11px; color: var(--seal-soft); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 8px; }
.section-tag.center { display: flex; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.section-tag.center::before, .section-tag.center::after { content: ""; height: 1px; width: 46px; }
.section-tag.center::before { background: linear-gradient(90deg, transparent, var(--line-strong)); }
.section-tag.center::after { background: linear-gradient(90deg, var(--line-strong), transparent); }

/* ===== Pillars ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px auto 64px; }
.pillar { position: relative; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 22px; text-align: center; overflow: hidden; }
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.5; }
.pillar .pg { font-size: 32px; color: var(--gold); margin-bottom: 14px; }
.pillar .pg i { filter: drop-shadow(0 0 12px rgba(195,74,44,0.4)); }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--text-dim); font-size: 14px; }

/* ===== Signature elixirs ===== */
.sig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 70px; }
.sig-card { text-align: center; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 32px 20px; transition: transform .2s, border-color .2s; }
.sig-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.sig-glyph { font-size: 40px; color: var(--mc); margin-bottom: 14px; filter: drop-shadow(0 0 16px var(--mc)); }
.sig-card h4 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 4px; }
.sig-tag { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }
.sig-eff { margin-bottom: 18px; }
.sig-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.final-cta { padding: 30px 0 80px; text-align: center; }

/* ===== Алхимик ===== */
.alchemist {
  position: relative; max-width: 760px; margin: 36px auto 70px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 42px;
}
.alchemist::before, .alchemist::after {
  content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--line-strong); opacity: 0.7;
}
.alchemist::before { top: 14px; left: 14px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.alchemist::after { bottom: 14px; right: 14px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }
.progress { display: flex; gap: 8px; justify-content: center; margin: 16px 0 26px; }
.progress i { width: 34px; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.progress i.on { background: var(--gold); }
.step-title { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 4vw, 30px); text-align: center; }
.step-sub { text-align: center; color: var(--text-dim); margin: 6px 0 26px; font-size: 14px; }

.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.option { cursor: pointer; text-align: center; padding: 24px 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(0,0,0,.18); transition: all .2s; }
.option:hover { border-color: var(--accent); transform: translateY(-3px); background: rgba(195,74,44,.08); }
.option:hover .emoji { color: var(--gold); transform: scale(1.08); }
.option .emoji { font-size: 28px; color: var(--gold-soft); display: block; margin-bottom: 12px; transition: all .2s; }
.option .label { font-family: var(--serif); font-weight: 500; font-size: 17px; display:block; }
.option .desc { font-size: 12px; color: var(--text-dim); margin-top: 4px; display:block; }
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; }

/* Результат алхимика */
.result { animation: fade .55s ease; }
@keyframes fade { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
.result-head { text-align: center; margin-bottom: 22px; }
.result-head .tier { display:inline-flex; align-items:center; gap:6px; font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--gold); border:1px solid var(--line); padding:5px 14px; border-radius:20px; margin-bottom:14px; }
.result-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 5vw, 40px); background: linear-gradient(180deg,var(--gold-soft),var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.result-head .cross { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-soft); font-size: 16px; margin-top: 6px; }
.result-head .cross i.bi-plus-lg { color: var(--seal-soft); font-size: 12px; }
.result-head .meta { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.story { font-family: var(--serif); font-size: 18px; text-align: center; max-width: 600px; margin: 0 auto 24px; font-style: italic; }

.elixir-effect { display: flex; align-items: center; gap: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--mc, var(--line)); border-radius: 16px; padding: 16px 18px; margin-bottom: 22px; }
.elixir-effect .ee-glyph { font-size: 28px; color: var(--mc); filter: drop-shadow(0 0 10px var(--mc)); }
.elixir-effect .ee-title { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--gold-soft); }
.elixir-effect .ee-sub { font-size: 13px; color: var(--text-dim); }
.elixir-effect .eff-chip { margin-left: auto; }

.notes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 22px; }
.note { font-size: 13px; color: var(--accent-soft); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; background: rgba(195,74,44,.07); }

.brew { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.brew-card { text-align: center; background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 12px; }
.brew-card .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); display:flex; align-items:center; justify-content:center; gap:6px; }
.brew-card .k i { color: var(--seal-soft); }
.brew-card .v { font-family: var(--serif); font-weight: 500; font-size: 17px; color: var(--gold-soft); margin-top: 8px; }

.price-line { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px dashed var(--line); color: var(--text-dim); }
.price-line.total { border-bottom: none; color: var(--gold-soft); font-family: var(--serif); font-weight: 500; font-size: 20px; padding-top: 12px; }
.result-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.disclaimer { font-size: 11px; color: var(--text-dim); text-align: center; margin-top: 22px; opacity: 0.8; line-height: 1.5; }
.disclaimer i { color: var(--seal-soft); }

/* ===== Эффект-чипы ===== */
.eff-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c, var(--gold-soft)); border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 50%, transparent); background: color-mix(in srgb, var(--c, var(--gold)) 12%, transparent); border-radius: 20px; padding: 5px 12px; }
.effects-legend { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 6px 0 30px; }

/* ===== Карточки (сетка) ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card { position: relative; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .2s, border-color .2s; overflow: hidden; }
.card::before { content: ""; position: absolute; top: 11px; right: 11px; width: 16px; height: 16px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); opacity: 0.4; transition: opacity .2s; }
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card:hover::before { opacity: 0.95; }
.card .ctier { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 5px; }
.card h4 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin: 8px 0 2px; }
.card .corigin { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; display:flex; align-items:center; gap:5px; }
.card .corigin i { color: var(--seal-soft); }
.card .cstory { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; }
.card .ctype { font-size: 12px; color: var(--gold-soft); border-top: 1px solid var(--line); padding-top: 10px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.card .price { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--gold-soft); }
.fav { position: absolute; top: 14px; right: 14px; cursor: pointer; background: transparent; border: none; color: var(--text-dim); font-size: 18px; transition: color .2s, transform .2s; z-index: 2; }
.fav:hover { transform: scale(1.18); color: var(--seal-soft); }
.fav.on { color: var(--seal); }

/* категорийная навигация в меню */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 22px auto 4px; max-width: 880px; }
.cat-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); text-decoration: none; border: 1px solid var(--line); border-radius: 30px; padding: 8px 16px; transition: all .2s; }
.cat-pill i { color: var(--seal-soft); font-size: .95em; }
.cat-pill:hover { color: var(--accent-soft); border-color: var(--accent); background: rgba(195,74,44,.08); transform: translateY(-2px); }

/* граммовки на карточке чая */
.cweights { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wchip { font-size: 11.5px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; background: rgba(0,0,0,.16); white-space: nowrap; }
.tea-card .price { font-size: 17px; }

/* Грибные карточки */
.mush-card { border-color: color-mix(in srgb, var(--mc) 38%, var(--line)); }
.mush-card .mush-glyph { font-size: 32px; color: var(--mc); filter: drop-shadow(0 0 12px var(--mc)); margin-bottom: 10px; }
.mush-card .mlatin { font-size: 12px; color: var(--text-dim); font-style: italic; margin-bottom: 10px; }
.mush-card .meffect { margin-bottom: 10px; }
.mush-card .mrow { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-dim); padding: 5px 0; border-top: 1px solid var(--line); }
.mush-card .mrow .mk { color: var(--gold-soft); min-width: 78px; display:flex; align-items:center; gap:5px; }
.mush-card .mrow .mk i { color: var(--mc); }
.mush-card .mbenefits { font-size: 11px; color: var(--text-dim); text-align: right; }

.lab-note { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; margin: 30px 0 60px; }
.lab-note h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-bottom: 10px; color: var(--gold-soft); display:flex; align-items:center; gap:10px; }
.lab-note h3 i { color: var(--seal-soft); }
.lab-note p { color: var(--text-dim); margin-bottom: 10px; }

/* ===== Паспорт ===== */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 10px 0 30px; }
.stat { text-align: center; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 16px; padding: 26px 14px; }
.stat .si { font-size: 24px; color: var(--seal-soft); margin-bottom: 6px; }
.stat .sv { font-family: var(--serif); font-weight: 500; font-size: 34px; color: var(--gold-soft); }
.stat .sk { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.loyalty { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.loyalty h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin-bottom: 6px; display:flex; align-items:center; gap:10px; }
.loyalty h3 i { color: var(--gold); }
.stamps { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.stamp { width: 48px; height: 48px; border-radius: 50%; border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; font-size: 19px; color: var(--text-dim); opacity: 0.5; }
.stamp.on { opacity: 1; border-style: solid; border-color: var(--accent); background: rgba(195,74,44,.12); color: var(--accent-soft); }
.history { display: flex; flex-direction: column; gap: 8px; }
.hist-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 12px; gap: 12px; }
.hist-tea { color: var(--text); font-size: 14px; display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.hist-tea .hist-x { color: var(--seal-soft); }
.hist-tea i { color: var(--gold-soft); }
.hist-date { color: var(--text-dim); font-size: 12px; white-space: nowrap; }

/* ===== Корзина ===== */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 50; }
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); z-index: 60;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border-left: 1px solid var(--line); box-shadow: var(--shadow);
  transform: translateX(105%); transition: transform .32s ease;
  display: flex; flex-direction: column;
}
.cart.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; display:flex; align-items:center; gap:10px; }
.cart-head h3 i { color: var(--gold); }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ci-name { font-family: var(--serif); font-weight: 500; font-size: 16px; }
.ci-mush { font-size: 12px; color: var(--text-dim); margin-top: 3px; display:flex; align-items:center; gap:6px; }
.ci-right { display: flex; align-items: center; gap: 12px; }
.ci-price { color: var(--gold-soft); }
.ci-del { cursor: pointer; background: transparent; border: none; color: var(--text-dim); font-size: 16px; }
.ci-del:hover { color: var(--seal); }
.cart-foot { padding: 20px 22px; border-top: 1px solid var(--line); }
.cart-total-row { display: flex; justify-content: space-between; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--gold-soft); margin-bottom: 14px; }

/* ===== Модалка ===== */
.modal { position: fixed; inset: 0; z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.6); }
.modal.open { display: flex; }
.modal-card { position: relative; width: min(520px, 100%); max-height: 86vh; overflow-y: auto; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line-strong); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.modal-h { font-family: var(--serif); font-weight: 500; font-size: 26px; margin: 4px 0 4px; }
.modal-x { cursor: pointer; background: transparent; border: none; color: var(--text-dim); font-size: 20px; line-height: 1; }
.modal-x:hover { color: var(--text); }
.modal-card .modal-x { position: absolute; top: 18px; right: 20px; }
.picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 18px; }
.pick-mush { cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 18px 10px; border: 1px solid var(--mc, var(--line)); border-radius: 14px; background: rgba(0,0,0,.18); color: var(--text); transition: all .2s; }
.pick-mush:hover { transform: translateY(-3px); background: color-mix(in srgb, var(--mc, var(--gold)) 12%, transparent); }
.pick-mush.none { border-color: var(--line); }
.pick-mush .pm-glyph { font-size: 26px; color: var(--mc, var(--gold)); }
.pick-mush .pm-name { font-family: var(--serif); font-weight: 500; font-size: 15px; }
.pick-mush small { font-size: 11px; color: var(--text-dim); }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px); background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #fff; font-weight: 600; padding: 12px 22px; border-radius: 30px; box-shadow: 0 14px 36px rgba(195,74,44,.38); opacity: 0; pointer-events: none; transition: all .3s; z-index: 80; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Footer ===== */
.foot { position: relative; padding: 46px 22px 64px; color: var(--text-dim); font-size: 13px; border-top: 1px solid var(--line); margin-top: 30px; overflow: hidden; }
/* волны сэйгайха */
.foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 26px; opacity: 0.25;
  background-image:
    radial-gradient(circle at 10px 26px, transparent 8px, var(--gold) 8px 9px, transparent 9px),
    radial-gradient(circle at 30px 26px, transparent 8px, var(--gold) 8px 9px, transparent 9px);
  background-size: 40px 26px; background-position: 0 0, 20px 0;
}
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding-top: 22px; }
.foot-brand { text-align: center; }
.foot-ded { width: 64px; height: 64px; margin: 0 auto 8px; filter: drop-shadow(0 0 14px rgba(195,74,44,.45)); }
.foot-brand-name { font-family: var(--serif); font-size: 24px; color: var(--gold-soft); letter-spacing: .02em; }
.foot-motto { font-family: var(--hanzi); font-size: 13px; color: var(--seal-soft); letter-spacing: .12em; margin-top: 4px; }
.foot-contacts { text-align: center; }
.foot-h { font-family: var(--hanzi); letter-spacing: .26em; text-transform: uppercase; font-size: 11px; color: var(--seal-soft); margin-bottom: 12px; }
.foot-phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: clamp(22px, 4vw, 28px); color: var(--gold-soft); border: 1px solid var(--line-strong); border-radius: 40px; padding: 10px 22px; transition: all .22s ease; }
.foot-phone:hover { background: rgba(195,74,44,.12); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(195,74,44,.28); }
.foot-phone i { color: var(--seal-soft); font-size: .8em; }
.foot-sub { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }
.foot-apps { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 10px; padding: 7px 13px; }
.store-badge i { color: var(--gold-soft); font-size: 1.1em; }
.foot-base { text-align: center; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 12.5px; }

/* ===== Адаптив ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .tabbar { display: flex; }
  .pillars, .sig-grid, .stat-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .alchemist { padding: 28px 18px; }
  .brew { grid-template-columns: 1fr; }
  .topbar .logo { font-size: 17px; }
  .hero::after { font-size: 15px; top: 14px; right: 14px; }
}


/* ===== АККАУНТЫ / НАВИГАЦИЯ ===== */
.wrap.narrow { max-width: 620px; }
.nav-auth { display: flex; align-items: center; }
.nav-user { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); padding: 5px 12px 5px 6px; border-radius: 30px; border: 1px solid var(--line); transition: all .2s; }
.nav-user:hover, .nav-user.active { background: var(--panel-2); border-color: var(--line-strong); }
.nav-user .nu-name { font-size: 14px; }
.login-btn { text-decoration: none; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(160deg, color-mix(in srgb, var(--av) 75%, #fff 10%), var(--av)); color: #fff; font-family: var(--serif); font-weight: 600; box-shadow: 0 4px 14px rgba(0,0,0,.3); flex-shrink: 0; letter-spacing: .02em; }

/* ===== Форма входа ===== */
.auth-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 32px; margin: 30px 0 60px; }
.auth-tabs { display: flex; gap: 8px; background: rgba(0,0,0,.2); padding: 6px; border-radius: 30px; margin-bottom: 26px; }
.auth-tab { flex: 1; cursor: pointer; background: transparent; border: none; color: var(--text-dim); padding: 11px; border-radius: 24px; font-size: 14px; font-family: var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: all .2s; }
.auth-tab.active { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #fff; font-weight: 600; }
.auth-form .field { margin-bottom: 16px; }
.auth-form label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.auth-form label i { color: var(--seal-soft); }
.auth-form input, .auth-form textarea {
  width: 100%; background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-family: var(--sans); font-size: 15px; transition: border-color .2s;
}
.auth-form input:focus, .auth-form textarea:focus { outline: none; border-color: var(--gold); }
.auth-form textarea { resize: vertical; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-opt { position: relative; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt span { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--text-dim); transition: all .2s; }
.role-opt input:checked + span { border-color: var(--accent); background: rgba(195,74,44,.12); color: var(--accent-soft); }
.auth-error { background: rgba(195,74,44,.14); border: 1px solid rgba(195,74,44,.4); color: var(--accent-soft); padding: 11px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 16px; }
.auth-demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; justify-content: center; }
.chip-btn { cursor: pointer; background: rgba(0,0,0,.2); border: 1px solid var(--line); color: var(--text-dim); padding: 7px 14px; border-radius: 20px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
.chip-btn:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ===== Кабинеты (dashboard) ===== */
.dash-hero { position: relative; padding: 56px 22px 36px; max-width: 1080px; margin: 0 auto; overflow: hidden; }
.dash-greet { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }
.dash-name { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 5vw, 44px); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }
.rank-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--seal-soft); font-size: 14px; margin-top: 6px; }
.rank-line i { color: var(--gold); }
.dash-intent { position: relative; z-index: 1; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--text-dim); margin-top: 20px; }
.master-hero .kanji-bg, .client-hero .kanji-bg { font-size: clamp(180px, 34vw, 360px); }

.spirit-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 30px; }
.spirit { text-align: center; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 16px; padding: 20px 12px; }
.spirit .si { font-size: 22px; color: var(--seal-soft); margin-bottom: 6px; }
.spirit .sv { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--gold-soft); }
.spirit .sk { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 14px; }
.dash-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.dash-card.accent { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(195,74,44,.1), var(--panel-2)); }
.dash-card .dc-head { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--gold-soft); display: flex; align-items: center; gap: 9px; }
.dash-card .dc-head i { color: var(--seal-soft); }
.dash-card p { color: var(--text-dim); font-size: 14px; }
.dash-card .btn { align-self: flex-start; margin-top: auto; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ===== База гостей (таблица) ===== */
.db-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.db-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; gap: 10px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.db-row:last-child { border-bottom: none; }
.db-head { background: rgba(0,0,0,.22); color: var(--gold-soft); font-family: var(--serif); font-size: 13px; letter-spacing: .04em; }
.db-name { display: flex; align-items: center; gap: 10px; }
.db-row i { color: var(--seal-soft); }

/* ===== Профиль ===== */
.profile-top { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.profile-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; margin: 22px 0; }
.profile-card .dc-head { font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--gold-soft); display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.profile-card .dc-head i { color: var(--seal-soft); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ach { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.18); color: var(--text-dim); font-size: 13px; }
.ach i { font-size: 20px; color: var(--text-dim); }
.ach.done { border-color: var(--accent); color: var(--text); background: rgba(195,74,44,.08); }
.ach.done i { color: var(--gold); }

/* ===== Практики ===== */
.practice-grid .practice-card { border-color: color-mix(in srgb, var(--mc) 34%, var(--line)); display: flex; flex-direction: column; }
.practice-card .pc-icon { font-size: 28px; color: var(--mc); filter: drop-shadow(0 0 12px var(--mc)); margin-bottom: 8px; }
.practice-card .pc-effect { font-size: 12px; color: var(--gold-soft); margin-bottom: 8px; }
.practice-card .card-foot { margin-top: auto; }

.breath-stage { margin: 10px 0 30px; }
.breath-inner { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--mc) 16%, var(--panel)), var(--panel-2)); border: 1px solid color-mix(in srgb, var(--mc) 40%, var(--line)); border-radius: 24px; padding: 50px 22px 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: var(--shadow); }
.breath-orb { position: relative; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--mc) 60%, transparent), transparent 70%); border: 2px solid var(--mc); display: flex; align-items: center; justify-content: center; transform: scale(1); box-shadow: 0 0 50px color-mix(in srgb, var(--mc) 50%, transparent); }
.breath-core { position: absolute; width: 70px; height: 70px; border-radius: 50%; background: color-mix(in srgb, var(--mc) 30%, transparent); }
.breath-count { position: relative; font-family: var(--serif); font-size: 30px; color: #fff; z-index: 1; }
.breath-phase { font-family: var(--serif); font-size: 26px; color: var(--gold-soft); display: flex; align-items: center; gap: 10px; }
.breath-meta { font-size: 13px; color: var(--text-dim); }

.medit-step { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-left: 3px solid var(--mc, var(--gold)); border-radius: 12px; padding: 22px; margin: 18px 0; }
.medit-step .ms-num { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--seal-soft); margin-bottom: 8px; }
.medit-step .ms-text { font-family: var(--serif); font-size: 19px; line-height: 1.5; }

/* ===== Адаптив (аккаунты) ===== */
@media (max-width: 860px) {
  .dash-grid, .ach-grid { grid-template-columns: 1fr; }
  .spirit-row { grid-template-columns: repeat(2, 1fr); }
  .nav-user .nu-name { display: none; }
  .db-row { grid-template-columns: 1.6fr 1fr 1fr; }
  .db-hide { display: none; }
  .role-pick { grid-template-columns: 1fr; }
}

/* ============================================================
   ЭЛИКСИРЫ — концепция «меню Деда» (винтажная тушь)
   ============================================================ */
.ex-wrap { max-width: 1080px; }
.elixir-page {
  --ex-red: #c8442a;
  --ex-ember: #e8703a;
  --ex-cream: #efe3cf;
  position: relative; overflow: hidden;
  border: 1px solid rgba(200, 68, 42, 0.32);
  border-radius: 22px;
  padding: 34px 38px 30px;
  margin-bottom: 34px;
  background:
    radial-gradient(720px 420px at 88% -6%, rgba(200, 68, 42, 0.16), transparent 62%),
    radial-gradient(620px 520px at 96% 4%, rgba(120, 70, 40, 0.18), transparent 60%),
    linear-gradient(170deg, #1a130d 0%, #120d09 60%, #0d0a07 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.ex-grain { position: absolute; inset: 0; pointer-events: none; opacity: 0.05; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ex-scene { position: absolute; top: 0; right: 0; width: 66%; height: 320px; z-index: 0; pointer-events: none; opacity: .92;
  -webkit-mask: linear-gradient(to left, #000 42%, transparent 92%), linear-gradient(to top, transparent 2%, #000 38%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(to left, #000 42%, transparent 92%), linear-gradient(to top, transparent 2%, #000 38%);
  mask-composite: intersect; }
.ex-scene svg { width: 100%; height: 100%; display: block; }
.elixir-page > *:not(.ex-grain):not(.ex-scene) { position: relative; z-index: 1; }

/* шапка эликсира */
.ex-top { display: flex; align-items: flex-start; justify-content: space-between; }
.ex-logo { display: flex; align-items: center; gap: 9px; }
.ex-logo-ded { width: 34px; height: 34px; }
.ex-logo span { font-family: var(--hanzi); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ex-cream); line-height: 1.2; }
.ex-seal { font-family: var(--hanzi); writing-mode: vertical-rl; font-size: 20px; letter-spacing: .1em; color: var(--ex-red); text-shadow: 0 0 16px rgba(200,68,42,.4); }

/* геро-зона */
.ex-hero { margin-top: 10px; max-width: 56%; min-height: 196px; }
.ex-title {
  font-family: var(--serif); font-weight: 700; text-transform: uppercase;
  font-size: clamp(52px, 10vw, 104px); line-height: 0.92; letter-spacing: -0.01em;
  background: linear-gradient(165deg, #f0823f 8%, var(--ex-red) 58%, #97301d);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 8px 36px rgba(200, 68, 42, 0.22); margin-bottom: 8px;
}
.ex-sub { font-family: var(--hanzi); text-transform: uppercase; letter-spacing: 0.18em; font-size: clamp(13px, 2vw, 16px); color: var(--ex-cream); margin-bottom: 16px; }
.ex-desc { color: #c9b79b; font-size: 14.5px; line-height: 1.7; max-width: 460px; }

/* баннер-заголовок */
.ex-banner {
  position: relative; text-align: center; margin: -44px auto 22px; width: fit-content;
  font-family: var(--hanzi); text-transform: uppercase; letter-spacing: 0.2em; font-size: 13px; font-weight: 600;
  color: #fff; padding: 9px 26px; border-radius: 30px;
  background: linear-gradient(135deg, var(--ex-ember), var(--ex-red));
  box-shadow: 0 8px 24px rgba(200, 68, 42, 0.35);
}
.ex-banner::before, .ex-banner::after { content: ""; position: absolute; top: 50%; width: 120px; height: 1px; background: linear-gradient(90deg, transparent, rgba(200,68,42,.5)); }
.ex-banner::before { right: 100%; margin-right: 18px; transform: scaleX(-1); }
.ex-banner::after { left: 100%; margin-left: 18px; }
.ex-banner.sm { font-size: 12px; }

/* рекомендация деда */
.ex-rec, .ex-pairings {
  position: relative; margin-top: 40px;
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 30px 28px 28px; background: rgba(0, 0, 0, 0.16);
}
.ex-rec-body { display: grid; grid-template-columns: 156px 1fr; gap: 24px; align-items: center; }
.ex-ded-wrap { width: 144px; height: 144px; margin: 0 auto; border: 1px solid rgba(195, 74, 44, 0.45); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 32px rgba(195, 74, 44, 0.12); }
.ex-ded { width: 118px; height: 118px; filter: drop-shadow(0 0 18px rgba(200, 68, 42, 0.35)); }
.ex-pair { display: flex; flex-direction: column; gap: 14px; }
.ex-teas { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.ex-tea { display: flex; flex-direction: column; gap: 3px; }
.ex-tea i { font-size: 22px; color: var(--ex-ember); margin-bottom: 3px; }
.ex-tea b { font-family: var(--hanzi); text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: var(--ex-cream); }
.ex-tea span { font-size: 12.5px; color: #b09a7c; line-height: 1.4; }
.ex-or { font-family: var(--hanzi); text-transform: uppercase; font-size: 11px; color: #fff; background: rgba(200,68,42,.85); padding: 4px 9px; border-radius: 20px; align-self: center; }
.ex-plus { text-align: center; color: var(--ex-red); font-size: 18px; }
.ex-ingredient { display: flex; align-items: flex-start; gap: 18px; padding-top: 8px; border-top: 1px dashed rgba(200,68,42,.25); }
.ex-ing-glyph { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.ex-art { width: 88px; height: 88px; filter: drop-shadow(0 6px 16px rgba(0,0,0,.5)); }
.ex-art-icon { width: 62px; height: 62px; border-radius: 50%; font-size: 28px; color: var(--ex-ember); border: 1px solid rgba(200,68,42,.4); background: radial-gradient(circle at 50% 35%, rgba(200,68,42,.18), transparent 70%); display: flex; align-items: center; justify-content: center; }
.ex-ing-text h4 { font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 21px; color: var(--ex-red); }
.ex-ing-latin { font-size: 11.5px; font-style: italic; color: #9a8568; margin: 2px 0 6px; }
.ex-ing-text p { font-size: 13px; color: #c4b193; line-height: 1.6; }

/* сочетания */
.ex-pcols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.ex-pcol { padding: 0 22px; }
.ex-pcol:first-child { padding-left: 4px; }
.ex-pcol + .ex-pcol { border-left: 1px solid var(--line); }
.ex-pc-h { display: flex; align-items: center; gap: 8px; font-family: var(--hanzi); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; color: var(--ex-cream); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid rgba(200,68,42,.22); }
.ex-pc-h i { color: var(--ex-ember); }
.ex-pcol ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ex-pcol li { display: flex; align-items: center; font-size: 13.5px; color: #cdbb9d; }
.ex-bullet { width: 7px; height: 7px; background: var(--ex-red); transform: rotate(45deg); display: inline-block; margin-right: 11px; flex-shrink: 0; box-shadow: 0 0 8px rgba(200,68,42,.4); }

/* подвал эликсира */
.ex-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 26px; padding: 20px 26px; border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(0, 0, 0, 0.16); }
.ex-quote { display: flex; align-items: center; gap: 14px; max-width: 60%; }
.ex-quote-ded .ded-mark { width: 52px; height: 52px; }
.ex-q-h { font-family: var(--hanzi); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; color: var(--ex-red); margin-bottom: 3px; }
.ex-q-text { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: #d8c8ac; line-height: 1.5; }
.ex-buy { display: flex; align-items: center; gap: 20px; }
.ex-price { text-align: right; line-height: 1.1; }
.ex-rub { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 5vw, 44px); color: var(--ex-red); display: block; }
.ex-vol { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: #9a8568; }

@media (max-width: 860px) {
  .elixir-page { padding: 24px 18px; }
  .ex-hero { max-width: 100%; }
  .ex-scene { width: 100%; height: 210px; opacity: .4; }
  .ex-rec-body { grid-template-columns: 1fr; gap: 14px; }
  .ex-ded-wrap { width: 116px; height: 116px; }
  .ex-ded { width: 94px; height: 94px; }
  .ex-teas { grid-template-columns: 1fr; }
  .ex-or { justify-self: start; }
  .ex-pcols { grid-template-columns: 1fr; gap: 0; }
  .ex-pcol { padding: 14px 4px; }
  .ex-pcol:first-child { padding-top: 0; }
  .ex-pcol + .ex-pcol { border-left: none; border-top: 1px solid var(--line); }
  .ex-foot { flex-direction: column; align-items: flex-start; }
  .ex-quote { max-width: 100%; }
  .ex-buy { width: 100%; justify-content: space-between; }
  .ex-banner::before, .ex-banner::after { width: 40px; }
}

/* ===== Услуги и ритуалы ===== */
.services-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 8px; }
.service-card { display: flex; flex-direction: column; border-color: var(--line-strong); background: linear-gradient(180deg, rgba(195,74,44,.06), var(--panel-2)); }
.service-card .svc-icon { font-size: 30px; color: var(--accent-soft); margin-bottom: 10px; filter: drop-shadow(0 0 12px rgba(195,74,44,.3)); }
.service-card h4 { font-family: var(--serif); font-weight: 500; font-size: 19px; margin-bottom: 8px; color: var(--white-soft); }
.service-card .cstory { flex: 1; }
.svc-tiers { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 12px; }
.svc-tier { font-size: 12.5px; color: var(--text-dim); display: flex; align-items: baseline; gap: 8px; }
.svc-tier b { font-family: var(--serif); color: var(--accent-soft); min-width: 64px; font-size: 14px; }
.svc-addon { font-size: 12px; color: var(--accent-soft); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; opacity: .9; }
.svc-price { display: flex; flex-direction: column; line-height: 1.15; }
.svc-price .price { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--accent-soft); }
.svc-unit { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }

/* ===== Холодный чай ===== */
.cold-grid { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); }
.cold-card { text-align: center; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 16px; padding: 22px 18px; transition: transform .2s, border-color .2s; }
.cold-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.cold-img { width: 144px; height: 144px; margin: 0 auto 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 34%, rgba(195,74,44,.2), rgba(0,0,0,.45) 72%); border: 1px solid var(--line-strong); box-shadow: inset 0 0 26px rgba(0,0,0,.5); }
.cold-img .drink-svg { width: 76%; height: 76%; }
.cold-name { font-family: var(--serif); text-transform: uppercase; font-size: 18px; color: var(--white-soft); margin-bottom: 4px; letter-spacing: .02em; }
.cold-comp { font-size: 12px; color: var(--text-dim); font-style: italic; margin-bottom: 14px; min-height: 30px; line-height: 1.4; }
.cold-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cold-foot .price { font-family: var(--serif); font-size: 18px; color: var(--accent-soft); }

/* ===== Авторские напитки ===== */
.author-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.author-card { display: flex; gap: 16px; align-items: stretch; }
.author-img { flex-shrink: 0; width: 92px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: radial-gradient(circle at 50% 30%, rgba(195,74,44,.16), rgba(0,0,0,.35) 75%); border: 1px solid var(--line); }
.author-img .drink-svg { width: 88%; height: auto; }
.author-text { flex: 1; display: flex; flex-direction: column; }
.author-text h4 { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--white-soft); margin-bottom: 6px; }
.author-text .cstory { flex: 1; margin-bottom: 12px; }

/* ===== Десерты ===== */
.dessert-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.dessert-card { display: flex; align-items: center; gap: 14px; }
.dessert-text { flex: 1; }
.dessert-text h4 { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--white-soft); }
.dessert-price { font-family: var(--serif); font-size: 20px; color: var(--accent-soft); margin: 4px 0 10px; }
.dessert-fillings { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dessert-fillings span { font-size: 11.5px; color: var(--text-dim); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; }
.dessert-img { flex-shrink: 0; width: 130px; height: 116px; display: flex; align-items: center; justify-content: center; }
.dessert-img .drink-svg { width: 100%; height: 100%; }

/* ===== Афиша мероприятий ===== */
.ev-wrap { max-width: 780px; }
.ev-day { display: flex; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.ev-daycol { flex-shrink: 0; width: 88px; text-align: center; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line-strong); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14px 8px; }
.ev-dayshort { font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--accent-soft); }
.ev-dayname { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); }
.ev-list { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ev-item { display: flex; align-items: center; gap: 14px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; transition: border-color .2s, transform .2s; }
.ev-item:hover { border-color: var(--accent); transform: translateX(3px); }
.ev-time { font-family: var(--serif); font-size: 14px; color: var(--accent-soft); display: flex; align-items: center; gap: 5px; min-width: 66px; }
.ev-ico { font-size: 20px; color: var(--accent-soft); }
.ev-body { flex: 1; }
.ev-name { font-family: var(--serif); font-size: 17px; color: var(--white-soft); }
.ev-desc { font-size: 12.5px; color: var(--text-dim); }
.ev-price { text-align: right; font-family: var(--serif); font-size: 16px; color: var(--accent-soft); line-height: 1.15; }
.ev-price span { display: block; font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.ev-free { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dim); }
.ev-cta { text-align: center; margin: 34px 0 54px; }
.ev-cta p { margin-bottom: 14px; }

@media (max-width: 860px) {
  .author-card { flex-direction: column; }
  .author-img { width: 100%; height: 120px; }
  .dessert-card { flex-direction: column-reverse; text-align: center; }
  .dessert-fillings { justify-content: center; }
  .ev-item { flex-wrap: wrap; }
  .ev-price { margin-left: auto; }
}

/* ===== Практики: Совет Деда, гунфу-таймер, наборы, дневник ===== */
.ded-wisdom { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, rgba(195,74,44,.1), var(--panel-2)); border: 1px solid var(--line-strong); border-radius: var(--r); padding: 20px 24px; margin: 8px 0 26px; }
.dw-ded .ded-mark { width: 58px; height: 58px; }
.dw-h { font-family: var(--hanzi); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--accent-soft); margin-bottom: 6px; }
.dw-text { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--white-soft); line-height: 1.4; margin-bottom: 6px; }
.dw-tip { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 7px; }
.dw-tip i { color: var(--accent-soft); }

.gongfu { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 26px; }
.gf-head { font-family: var(--serif); font-size: 21px; color: var(--accent-soft); display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.gf-head i { color: var(--accent); }
.gf-controls { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.gf-select { flex: 1; min-width: 180px; background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 11px 14px; font-family: var(--sans); font-size: 14px; }
.gf-select:focus { outline: none; border-color: var(--accent); }
.gf-info { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.gf-info i { color: var(--accent-soft); margin-right: 4px; }
.gf-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.gf-orb { width: 120px; height: 120px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--accent); background: radial-gradient(circle at 50% 38%, rgba(195,74,44,.28), transparent 70%); transition: transform .4s ease, box-shadow .4s ease; }
.gf-orb.on { transform: scale(1.08); box-shadow: 0 0 40px rgba(195,74,44,.4); }
.gf-count { font-family: var(--serif); font-size: 38px; color: var(--accent-soft); }
.gf-meta { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }

.practice-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 24px; }
.pt { cursor: pointer; background: transparent; border: 1px solid var(--line); color: var(--text-dim); border-radius: 30px; padding: 8px 16px; font-size: 13px; font-family: var(--sans); display: inline-flex; align-items: center; gap: 7px; transition: all .2s; }
.pt i { color: var(--accent-soft); font-size: .95em; }
.pt:hover { color: var(--text); border-color: var(--line-strong); }
.pt.active { background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #fff; border-color: transparent; }
.pt.active i { color: #fff; }

.journal { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 40px 0 60px; }
.jr-head { font-family: var(--serif); font-size: 21px; color: var(--accent-soft); display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.jr-head i { color: var(--accent); }
.jr-moods { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.jr-mood { cursor: pointer; background: rgba(0,0,0,.22); border: 1px solid var(--line); color: var(--text-dim); border-radius: 20px; padding: 7px 14px; font-size: 13px; font-family: var(--sans); transition: all .2s; }
.jr-mood:hover { color: var(--text); border-color: var(--line-strong); }
.jr-mood.on { background: rgba(195,74,44,.16); border-color: var(--accent); color: var(--accent-soft); }
.jr-note { width: 100%; background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 12px 14px; font-family: var(--sans); font-size: 14px; margin-bottom: 12px; }
.jr-note:focus { outline: none; border-color: var(--accent); }
.jr-row { display: flex; gap: 10px; flex-wrap: wrap; }
.jr-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.jr-item { position: relative; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 12px; padding: 13px 40px 13px 16px; }
.jr-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.jr-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-soft); border: 1px solid var(--line-strong); border-radius: 20px; padding: 3px 10px; }
.jr-tea { font-size: 12px; color: var(--text-dim); }
.jr-tea i { color: var(--accent-soft); }
.jr-date { font-size: 12px; color: var(--text-dim); margin-left: auto; }
.jr-item-note { font-size: 14px; color: var(--white-soft); }
.jr-del { position: absolute; top: 10px; right: 12px; cursor: pointer; background: transparent; border: none; color: var(--text-dim); font-size: 18px; line-height: 1; }
.jr-del:hover { color: var(--accent); }

/* ===== Сплеш-заставка: мазок + «Чайная история» + Дед ===== */
.splash { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(760px 620px at 50% 46%, rgba(236,140,76,.12), transparent 70%), #100c08;
  transition: opacity 1.1s ease; will-change: opacity; }
.splash.hide { opacity: 0; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 4px;
  transform: scale(.985);
  transition: opacity 1.1s ease, transform 1.3s cubic-bezier(.25,.7,.25,1); will-change: opacity, transform; }
.splash.in .splash-inner { transform: scale(1); }
.splash.hide .splash-inner { opacity: 0; transform: scale(1.05); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.4,0,.2,1); }

/* Чайный Дед */
.sp-ded-wrap { position: relative; width: min(148px, 38vw); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.sp-ded-glow { position: absolute; inset: -8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(243,163,90,.34), transparent 64%); filter: blur(14px);
  opacity: 0; transition: opacity 1.3s ease .2s; }
.splash.in .sp-ded-glow { opacity: 1; }
.sp-ded2 { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4));
  opacity: 0; transform: scale(.94) translateY(6px);
  transition: opacity 1.1s ease .2s, transform 1.2s cubic-bezier(.25,.7,.25,1) .2s; }
.splash.in .sp-ded2 { opacity: 1; transform: scale(1) translateY(0); }

/* мазок + надпись */
.sp-stroke { position: relative; width: min(580px, 92vw); height: clamp(96px, 24vw, 140px); display: flex; align-items: center; justify-content: center; }
.sp-stroke-paint { position: absolute; inset: 0; clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s cubic-bezier(.55,0,.2,1) .55s; }
.splash.in .sp-stroke-paint { clip-path: inset(0 0 0 0); }
.sp-stroke-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 24px rgba(223,125,60,.28)); }
.sp-title { position: relative; z-index: 1; font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 6.2vw, 44px);
  color: #fff7ec; letter-spacing: 1px; white-space: nowrap; text-shadow: 0 2px 12px rgba(120,50,20,.55);
  opacity: 0; transition: opacity 1.1s ease 1.55s; }
.splash.in .sp-title { opacity: 1; }




/* ============================================================
   ОПЕРАЦИОННЫЙ КОНТУР: управление, заказы, склад, персонал, смены
   (тёплая тушь — единый язык с остальным приложением)
   ============================================================ */

.admin-hero .kanji-bg,
.master-hero .kanji-bg { color: rgba(201, 160, 78, 0.06); }

/* ——— Вкладки управляющего ——— */
.admin-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 4px 0 26px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-tabs .atab {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: 22px;
  color: var(--text-dim); font-family: var(--sans); font-size: 13.5px;
  padding: 8px 16px; transition: all 0.2s;
}
.admin-tabs .atab i { color: var(--accent-soft); }
.admin-tabs .atab:hover { color: var(--text); background: var(--panel-2); }
.admin-tabs .atab.active {
  color: var(--white); border-color: var(--accent);
  background: rgba(195, 74, 44, 0.16); box-shadow: var(--shadow-glow);
}

.spirit-warn .si,
.spirit-warn .sv { color: var(--accent-soft); }
.spirit-warn { border-color: var(--line-strong) !important; }

/* ——— Гистограмма топ-позиций ——— */
.bar-list { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.bar-row { display: grid; grid-template-columns: 1fr 90px 26px; align-items: center; gap: 10px; }
.bar-name { font-size: 13.5px; color: var(--white-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; border-radius: 6px; background: rgba(239, 227, 207, 0.08); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); }
.bar-val { text-align: right; font-weight: 700; color: var(--accent-soft); font-size: 13px; }

/* ——— Каналы выручки ——— */
.chan-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.chan-row span i { color: var(--accent-soft); margin-right: 6px; }
.chan-row b { color: var(--white); }
.chan-row.total { border-bottom: none; border-top: 1px solid var(--line-strong); margin-top: 4px; padding-top: 11px; }
.chan-row.total b { color: var(--accent-soft); font-size: 16px; }

/* ——— Чипы дефицита ——— */
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.low-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(195, 74, 44, 0.1); border: 1px solid var(--line-strong);
  color: var(--white-soft); border-radius: 20px; padding: 6px 13px; font-size: 12.5px;
}
.low-chip i { color: var(--accent-soft); }

/* ——— Карточки заказов ——— */
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.order-card {
  background: var(--panel); border: 1px solid var(--line);
  border-left: 3px solid var(--sc, var(--accent)); border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 8px;
}
.oc-top { display: flex; justify-content: space-between; align-items: center; }
.oc-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--sc, var(--accent-soft)); }
.oc-time { font-size: 11.5px; color: var(--text-dim); }
.oc-guest { font-size: 13px; color: var(--white-soft); }
.oc-guest i { color: var(--accent-soft); margin-right: 4px; }
.oc-items { font-size: 13px; color: var(--text-dim); line-height: 1.4; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.oc-actions { display: inline-flex; gap: 6px; }

/* ——— Таблица склада ——— */
.stock-table .db-row { grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; }
.stock-row.low { background: rgba(195, 74, 44, 0.07); }
.stock-val { font-weight: 600; color: var(--white-soft); font-size: 14px; white-space: nowrap; }
.stock-val.warn { color: var(--accent-soft); }
.stock-ctl { display: inline-flex; gap: 6px; }
.ic-btn {
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer;
  background: var(--panel-2); border: 1px solid var(--line-strong);
  color: var(--accent-soft); font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.18s;
}
.ic-btn:hover { background: rgba(195, 74, 44, 0.16); border-color: var(--accent); }

/* ——— Персонал ——— */
.staff-row { grid-template-columns: 1.4fr auto auto; gap: 12px; align-items: center; }
.staff-email { display: block; font-size: 11.5px; color: var(--text-dim); margin-left: 42px; margin-top: 1px; }
.staff-ctl { display: inline-flex; gap: 8px; align-items: center; }
.role-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 4px 10px; border-radius: 16px; border: 1px solid var(--line-strong); white-space: nowrap; }
.role-badge i { font-size: 12px; }
.role-admin { color: #e3c069; background: rgba(201, 160, 78, 0.12); border-color: rgba(201, 160, 78, 0.4); }
.role-master { color: var(--accent-soft); background: rgba(195, 74, 44, 0.12); }
.role-client { color: var(--text-dim); }

/* ——— Смены (планировщик) ——— */
.shifts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.shift-day { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.shift-date { font-family: var(--hanzi); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; color: var(--accent-soft); margin-bottom: 12px; }
.shift-slots { display: flex; flex-direction: column; gap: 12px; }
.shift-slot { border: 1px dashed var(--line); border-radius: 11px; padding: 10px 11px; }
.ss-head { font-size: 13px; color: var(--white-soft); display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.ss-head i { color: var(--accent-soft); }
.ss-head small { color: var(--text-dim); font-size: 11px; }
.ss-people { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.ss-person { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: rgba(195, 74, 44, 0.12); border: 1px solid var(--line-strong); color: var(--white-soft); border-radius: 16px; padding: 4px 6px 4px 11px; }
.ss-x { background: none; border: none; color: var(--accent-soft); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.ss-add { display: flex; gap: 7px; }
.ss-add .gf-select { flex: 1; }

/* ——— Моя смена (мастер) ——— */
.my-shift { display: flex; flex-direction: column; gap: 10px; }
.shift-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; }
.shift-card.open { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.sc-info { font-size: 14px; color: var(--white-soft); }
.sc-info i { color: var(--accent-soft); margin-right: 6px; }

/* ——— Касса (POS) ——— */
.pos { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.pos-guest { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.pos-guest i { color: var(--accent-soft); font-size: 18px; }
.pos-guest .gf-select { max-width: 320px; }
.pos-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.pos-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 13px;
  padding: 12px 13px; cursor: pointer; text-align: left; transition: all 0.18s; color: var(--white-soft);
}
.pos-item i { color: var(--accent-soft); font-size: 18px; }
.pos-item span { font-size: 12.5px; line-height: 1.3; }
.pos-item b { color: var(--accent-soft); font-size: 13px; }
.pos-item:hover { border-color: var(--accent); background: rgba(195, 74, 44, 0.1); transform: translateY(-2px); }
.pos-ticket { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; position: sticky; top: 78px; }
.pt-head { font-family: var(--hanzi); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; color: var(--accent-soft); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pt-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow-y: auto; }
.pt-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--white-soft); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.pt-r { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-soft); white-space: nowrap; }
.pt-foot { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; padding-top: 11px; border-top: 1px solid var(--line-strong); font-weight: 700; }
.pt-foot span:last-child { color: var(--accent-soft); font-size: 17px; }

/* ——— Адаптив операционного контура ——— */
@media (max-width: 720px) {
  .pos { grid-template-columns: 1fr; }
  .pos-ticket { position: static; }
  .staff-row { grid-template-columns: 1fr auto; }
  .staff-row .staff-ctl { grid-column: 1 / -1; justify-content: flex-end; }
  .staff-email { margin-left: 42px; }
}


/* ============================================================
   АККАУНТ И ПРОФИЛЬ: логин-вход, выбор цвета, безопасность
   ============================================================ */

/* подсказка под полем */
.field-hint { display: block; margin-top: 5px; font-size: 11.5px; color: var(--text-dim); }

/* логин в шапке профиля */
.prof-login { color: var(--accent-soft); }
.prof-login i { font-size: 0.9em; margin-right: 1px; }

/* показать/скрыть пароль */
.pass-wrap { position: relative; }
.pass-wrap input { width: 100%; padding-right: 44px; }
.pass-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-dim);
  width: 34px; height: 34px; border-radius: 8px; font-size: 16px; transition: color 0.2s;
}
.pass-eye:hover { color: var(--accent-soft); }

/* выбор цвета аватара */
.color-pick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: var(--sw); border: 2px solid transparent;
  box-shadow: 0 0 0 1px rgba(239, 227, 207, 0.12); transition: transform 0.16s, box-shadow 0.16s;
}
.swatch:hover { transform: scale(1.12); }
.swatch.on { border-color: var(--white); box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(195, 74, 44, 0.4); }

/* несколько карточек профиля подряд */
.profile-card + .profile-card { margin-top: 18px; }

/* демо-кнопки входа переносятся аккуратно */
.auth-demo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
