:root {
  --bg: #f7f1ea;
  --bg-2: #efe5d9;
  --card: #fffaf4;
  --ink: #2b1a1f;
  --ink-2: #6f5a5f;
  --line: #e4d6c8;
  --wine: #7a1f33;
  --wine-2: #9b2f45;
  --wine-soft: #f3dfe2;
  --gold: #b08a4f;
  --gold-soft: #f1e6d2;
  --ok: #3f7d5a;
  --warn: #b2682a;
  --shadow: 0 1px 2px rgba(60, 20, 30, .06), 0 8px 24px rgba(60, 20, 30, .07);
  --c-red: #7b1e2c; --c-white: #e7d49b; --c-rose: #e6a3ad; --c-sparkling: #efe2b0;
  --c-orange: #d88a3b; --c-sweet: #c8962e; --c-fortified: #8a4b24;
  --radius: 18px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #160d10; --bg-2: #20141a; --card: #241820; --ink: #f4e9e3; --ink-2: #b9a3a8; --line: #3a2730;
    --wine: #d0586f; --wine-2: #e27389; --wine-soft: #3a1c25; --gold: #d2ad6f; --gold-soft: #33281b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  --bg: #160d10; --bg-2: #20141a; --card: #241820; --ink: #f4e9e3; --ink-2: #b9a3a8; --line: #3a2730;
  --wine: #d0586f; --wine-2: #e27389; --wine-soft: #3a1c25; --gold: #d2ad6f; --gold-soft: #33281b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--wine); text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.15; letter-spacing: .01em; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- каркас ---------- */
.app { max-width: 560px; margin: 0 auto; padding: 0 16px 104px; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; margin: 0 -16px 8px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}
.logo { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--wine); display: flex; align-items: center; gap: 8px; }
.logo svg { width: 22px; height: 22px; }
.logo em { font-style: normal; color: var(--gold); }
.iconbtn { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 12px; cursor: pointer; color: var(--ink-2); }
.iconbtn:hover { background: var(--bg-2); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center;
  background: var(--card); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar nav { display: flex; width: 100%; max-width: 560px; justify-content: space-around; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; min-height: 52px;
  color: var(--ink-2); font-size: 11px; font-weight: 600; border-radius: 12px;
}
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--wine); }
.tab.main { color: #fff; }
.tab.main .bubble {
  width: 52px; height: 52px; margin-top: -22px; border-radius: 50%; background: linear-gradient(145deg, var(--wine-2), var(--wine));
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(122, 31, 51, .35); border: 4px solid var(--card);
}
.tab.main span { color: var(--wine); }

/* ---------- элементы ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-title { margin: 26px 2px 10px; display: flex; justify-content: space-between; align-items: baseline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 14px; border: 0; cursor: pointer; font-weight: 700; letter-spacing: .01em;
  background: linear-gradient(145deg, var(--wine-2), var(--wine)); color: #fff; transition: transform .1s, opacity .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--wine); border: 1.5px solid var(--wine); }
.btn.soft { background: var(--wine-soft); color: var(--wine); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }

input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 13px 14px; outline: none; transition: border-color .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--wine); }
textarea { resize: vertical; min-height: 84px; }
label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--bg-2); color: var(--ink-2); border: 1.5px solid transparent; cursor: pointer; user-select: none;
}
.chip.on { background: var(--wine-soft); color: var(--wine); border-color: var(--wine); }
.chip.static { cursor: default; }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chip.warn { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; cursor: pointer; }
.switch input { display: none; }
.switch i { width: 46px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--wine); }
.switch input:checked + i::after { left: 21px; }

/* ---------- приветствие ---------- */
.hero {
  margin: 8px 0 22px; padding: 30px 22px 26px; border-radius: 26px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, #b4485e 0%, #7a1f33 45%, #3d0f1c 100%);
}
.hero h1 { font-size: 38px; }
.hero p { opacity: .88; margin: 10px 0 0; max-width: 34ch; }
.hero .glass { position: absolute; right: -10px; bottom: -14px; width: 150px; opacity: .22; }
.hero .btn { background: #fff; color: var(--wine); margin-top: 20px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ic { width: 42px; height: 42px; border-radius: 13px; background: var(--wine-soft); color: var(--wine); display: grid; place-items: center; flex: none; }
.feature .ic svg { width: 22px; height: 22px; }

/* ---------- профиль ---------- */
.arch { display: grid; grid-template-columns: 112px 1fr 38px; gap: 10px; align-items: center; font-size: 13px; }
.arch + .arch { margin-top: 8px; }
.bar { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.bar > b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--wine)); }
.taste { display: grid; grid-template-columns: 118px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.taste + .taste { margin-top: 7px; }
.pips { display: flex; gap: 3px; }
.pips i { flex: 1; height: 8px; border-radius: 3px; background: var(--bg-2); }
.pips i.on { background: var(--wine); }
.pips i.range { background: color-mix(in srgb, var(--wine) 35%, transparent); }
.qr { background: #fff; padding: 14px; border-radius: 16px; display: inline-block; }
.qr img, .qr canvas { display: block; }
.persona { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--wine); }

/* ---------- чат ---------- */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; white-space: pre-wrap; animation: rise .25s ease-out; }
.msg.bot { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.me { background: var(--wine); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); margin-right: 4px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
.composer { position: sticky; bottom: 76px; display: flex; gap: 8px; padding: 10px 0; background: var(--bg); }
.composer textarea { min-height: 48px; max-height: 140px; }
.composer .btn { flex: none; width: 52px; padding: 0; }
@keyframes blink { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }
@keyframes rise { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }

/* ---------- вина ---------- */
.wine-row { display: flex; gap: 14px; align-items: center; padding: 14px; cursor: pointer; }
.wine-row + .wine-row { border-top: 1px solid var(--line); }
.bottle { width: 34px; height: 64px; flex: none; }
.wine-row .info { flex: 1; min-width: 0; }
.wine-row .name { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.2; }
.wine-row .meta { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { text-align: right; font-weight: 700; white-space: nowrap; font-size: 14px; }
.price small { display: block; font-weight: 500; color: var(--ink-2); font-size: 11.5px; }
.list { padding: 0; overflow: hidden; }

.result { position: relative; overflow: hidden; animation: rise .35s ease-out both; }
.result:nth-child(2) { animation-delay: .08s; } .result:nth-child(3) { animation-delay: .16s; }
.result .head { display: flex; gap: 14px; align-items: flex-start; }
.ring { width: 74px; height: 74px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 19px var(--sans); color: var(--wine); }
.ring b small { display: block; font-size: 9.5px; font-weight: 600; color: var(--ink-2); margin-top: -26px; }
.result .style { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.result .aroma { font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.35; margin: 12px 0 8px; }
.result .scores { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }
.result .scores b { color: var(--ink); }
.result.chosen { border-color: var(--wine); box-shadow: 0 0 0 2px var(--wine), var(--shadow); }

.sheet-bg { position: fixed; inset: 0; background: rgba(20, 8, 12, .45); z-index: 40; animation: fade .2s; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 88vh; overflow: auto; background: var(--card);
  border-radius: 26px 26px 0 0; padding: 10px 20px 30px; animation: up .28s ease-out; max-width: 560px; margin: 0 auto;
}
.sheet .grip { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 14px; }
@keyframes fade { from { opacity: 0 } }
@keyframes up { from { transform: translateY(40px); opacity: 0 } }

.stars { display: flex; gap: 6px; }
.stars button { border: 0; background: none; cursor: pointer; font-size: 30px; line-height: 1; color: var(--line); padding: 2px; }
.stars button.on { color: var(--gold); }

.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg);
  padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; animation: rise .2s; max-width: calc(100% - 32px);
}
.empty { text-align: center; padding: 34px 18px; color: var(--ink-2); }
.empty svg { width: 54px; height: 54px; color: var(--gold); margin-bottom: 8px; }
.loading { display: grid; place-items: center; padding: 40px 0; gap: 14px; color: var(--ink-2); text-align: center; }
.swirl { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--wine-soft); border-top-color: var(--wine); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

table.admin { width: 100%; border-collapse: collapse; font-size: 13px; }
table.admin td, table.admin th { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.admin th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.num { width: 64px; padding: 8px; text-align: center; }
.badge { white-space: nowrap; display: inline-block; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.badge.draft { background: var(--gold-soft); color: var(--gold); }
.badge.verified { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }

/* ---------- админка: реестр оцифровки ---------- */
body.wide .app { max-width: 1180px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.tile b { display: block; font: 700 24px var(--sans); color: var(--wine); }
.tile span { font-size: 12.5px; color: var(--ink-2); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.toolbar input[type=search] { flex: 1 1 320px; }
.toolbar select { flex: 0 1 190px; width: auto; }
.toolbar .btn { flex: none; }
table.reg tbody tr { cursor: pointer; transition: background .15s; }
table.reg tbody tr:hover { background: var(--bg-2); }
table.reg td, table.reg th { padding: 11px 12px; }
table.admin .r { text-align: right; white-space: nowrap; }
table.cmp td, table.cmp th { padding: 6px 10px; }
mark { background: color-mix(in srgb, var(--gold) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.chip.mini { padding: 2px 8px; font-size: 11px; }
.conf { font-weight: 700; font-size: 12.5px; padding: 2px 7px; border-radius: 7px; }
.conf.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.conf.mid { color: var(--gold); background: var(--gold-soft); }
.conf.low { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.an-head { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.an-cost { text-align: right; display: flex; flex-direction: column; }
.an-meta { margin-top: 8px; line-height: 1.6; }
.an .an-open { display: none; }
.an.open .an-open { display: block; }
pre.json {
  margin: 0; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word;
  max-height: 560px; overflow: auto;
}
.jk { color: var(--wine); } .js { color: var(--ok); } .jn { color: var(--gold); } .jl { color: var(--warn); }
@media (max-width: 760px) {
  table.reg thead { display: none; }
  table.reg tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  table.reg td { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border: 0; text-align: right; }
  table.reg td::before { content: attr(data-l); color: var(--ink-2); font-size: 12px; text-align: left; }
  table.reg td:first-child { display: block; text-align: left; margin-bottom: 4px; }
  table.reg td:first-child::before { content: none; }
  .toolbar select { flex: 1 1 45%; }
}

/* ---------- алгоритм Акулова ---------- */
.pstep { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
.pstep.done { background: color-mix(in srgb, var(--ok) 6%, transparent); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.pnum { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg-2); color: var(--ink-2); flex: none; }
.pstep.done .pnum { background: var(--ok); color: #fff; }
.pyramid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lvl { width: var(--w); min-width: 280px; max-width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); text-align: center; }
.lvl-t { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.fnode { padding: 9px 13px; border-radius: 12px; font-weight: 700; font-size: 13.5px; background: var(--bg-2); }
.fnode small { display: block; font-weight: 600; font-size: 11px; color: var(--ink-2); }
.fnode.a { background: var(--wine-soft); color: var(--wine); } .fnode.b { background: var(--gold-soft); color: var(--gold); }
.fnode.m { background: var(--wine); color: #fff; } .fnode.m small { color: rgba(255,255,255,.8); }
.farr { color: var(--ink-2); font-weight: 800; }
.timeline { position: relative; margin-top: 18px; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.tstep { display: flex; gap: 14px; margin-bottom: 16px; position: relative; }
.tnum { width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font: 800 17px var(--sans); flex: none; z-index: 1; box-shadow: 0 0 0 5px var(--bg); }
.tbody { flex: 1; min-width: 0; }
.algo-h { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wine); margin-bottom: 4px; }
.algo ol, .tbody ul { margin: 0; padding-left: 20px; } .algo li, .tbody ul li { margin: 3px 0; font-size: 14px; }
@media (max-width: 760px) { .grid2.algo { grid-template-columns: 1fr; } .timeline::before { left: 15px; } .tnum { width: 32px; height: 32px; font-size: 14px; } }

/* ---------- ИИ: модели и токены ---------- */
.ai-grid { align-items: start; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
.daychart { position: relative; margin-top: 12px; }
.dc-plot { height: 160px; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 39px, color-mix(in srgb, var(--line) 60%, transparent) 39px 40px); }
.dc-col { height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 1px; cursor: default; }
.dc-bar { width: min(28px, 70%); background: var(--wine); border-radius: 4px 4px 0 0; transition: opacity .15s; }
.dc-col:hover .dc-bar { opacity: .75; }
.dc-axis { display: flex; font-size: 11px; color: var(--ink-2); margin-top: 4px; }
.dc-axis span { text-align: center; white-space: nowrap; overflow: hidden; }
.dc-tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 600;
  padding: 7px 10px; border-radius: 9px; white-space: nowrap; z-index: 5; }
code { font: 12.5px ui-monospace, Menlo, monospace; background: var(--bg-2); padding: 1px 5px; border-radius: 5px; }
.wine-row.na { opacity: .55; }

/* ---------- админка: боковое меню ---------- */
body.admin-mode .tabbar { display: none; }
body.admin-mode .app { padding-bottom: 40px; }
.adm-title { margin: 6px 2px 16px; }
.adm-title h1 { font-size: 32px; }
.adm-nav { display: flex; gap: 6px; }
.an-group { display: contents; }
.an-gt { display: none; }
.an-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; color: var(--ink-2);
  font-weight: 600; font-size: 14px; white-space: nowrap; }
.an-link:hover { background: var(--bg-2); color: var(--ink); }
.an-link.on { background: var(--wine-soft); color: var(--wine); }
.an-link svg { flex: none; }
.an-back { color: var(--ink-2); font-weight: 500; }
@media (min-width: 961px) {
  body.admin-mode .app { display: grid; grid-template-columns: 228px minmax(0, 1fr); column-gap: 28px; max-width: 1360px; }
  body.admin-mode .topbar { grid-column: 1 / -1; }
  .adm-nav { flex-direction: column; position: sticky; top: 76px; align-self: start; gap: 2px;
    background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 10px; }
  .an-group { display: flex; flex-direction: column; gap: 2px; }
  .an-group + .an-group { margin-top: 10px; }
  .an-gt { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: var(--gold); padding: 6px 12px 4px; }
  .an-back { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0 0 11px 11px; padding-top: 12px; }
}
@media (max-width: 960px) {
  /* на телефоне — лента разделов под шапкой, листается вбок */
  .adm-nav { position: sticky; top: 64px; z-index: 9; margin: 0 -16px 10px; padding: 6px 16px; overflow-x: auto;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); scrollbar-width: none; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .an-link { background: var(--bg-2); padding: 8px 12px; font-size: 13px; }
  .an-link svg { display: none; }
  .an-back { order: 99; background: transparent; }
  .adm-title h1 { font-size: 27px; }
}

/* ---------- заглушка «в разработке» ---------- */
.closed-hero { min-height: 280px; display: flex; flex-direction: column; justify-content: flex-end; }
.team-login { margin-top: 14px; box-shadow: none; }
.team-login summary { cursor: pointer; font-weight: 700; color: var(--ink-2); list-style: none; }
.team-login summary::-webkit-details-marker { display: none; }
.team-login summary::after { content: ' ›'; }
.team-login[open] summary::after { content: ' ⌄'; }
.an-ver { font-size: 11px; padding: 8px 12px 2px; } @media (max-width: 960px) { .an-ver { display: none; } }
.dc-bar.pk { background: var(--wine-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--wine) 40%, transparent); }
.dc-in { position: absolute; left: 0; right: 0; bottom: 0; background: var(--wine); border-radius: 4px 4px 0 0; }

/* ---------- «О проекте» — презентация ---------- */
body.project-mode .tabbar { display: none; }
body.project-mode .app { max-width: 1180px; padding-bottom: 30px; }
.pj-teaser { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: inherit;
  background: linear-gradient(120deg, var(--wine-soft), var(--card) 70%); }
.pj-teaser > span { font-size: 26px; color: var(--wine); }
.pj-hero { position: relative; overflow: hidden; border-radius: 30px; padding: 64px 56px 58px; margin-top: 6px; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, #b4485e 0%, #7a1f33 42%, #2c0a14 100%); }
.pj-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 50% at 15% 110%, rgba(210,173,111,.28), transparent 70%); pointer-events: none; }
.pj-hero-in { position: relative; z-index: 1; max-width: 640px; }
.pj-hero h1 { font-size: clamp(56px, 9vw, 104px); line-height: .95; letter-spacing: -.01em; margin: 18px 0 14px; }
.pj-lead { font-size: clamp(17px, 2.1vw, 21px); line-height: 1.45; opacity: .9; margin: 0; max-width: 34ch; }
.pj-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.13);
  font-size: 13px; font-weight: 700; letter-spacing: .02em; backdrop-filter: blur(6px); }
.pj-live { width: 8px; height: 8px; border-radius: 50%; background: #9be38f; box-shadow: 0 0 0 0 rgba(155,227,143,.7); animation: pjpulse 2s infinite; }
@keyframes pjpulse { 70% { box-shadow: 0 0 0 9px rgba(155,227,143,0) } 100% { box-shadow: 0 0 0 0 rgba(155,227,143,0) } }
.pj-partners { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 26px; font-family: var(--serif); font-size: 21px; }
.pj-partners span { width: 100%; font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); opacity: .95; }
.pj-btn { background: #fff; color: #5a1426; }
.pj-btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.pj-glass { position: absolute; right: 6%; bottom: -10px; width: min(300px, 34%); z-index: 1; filter: drop-shadow(0 20px 40px rgba(0,0,0,.35)); }
.pj-wine { animation: pjslosh 6s ease-in-out infinite; transform-origin: 100px 100px; }
@keyframes pjslosh { 0%, 100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-4px) rotate(-2.5deg) } }
.pj-sec { padding: 72px 8px 8px; }
.pj-sec.pj-alt { margin: 64px -16px 0; padding: 64px 24px 56px; background: var(--bg-2); border-radius: 30px; }
.pj-kicker { font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--wine); margin-bottom: 8px; }
.pj-sec h2 { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 10px; }
.pj-sub { color: var(--ink-2); font-size: 17px; max-width: 60ch; margin: 0 0 26px; }
.pj-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.pj-reveal.in { opacity: 1; transform: none; }
.pj-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 24px; }
.pj-stat { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.pj-stat b { font: 700 clamp(36px, 4vw, 46px) var(--serif); color: var(--wine); line-height: 1; }
.pj-stat span { font-weight: 700; }
.pj-stat small { color: var(--ink-2); }
.pj-flow3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.pj-s3 { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px 24px; }
.pj-s3-n { position: absolute; top: 18px; right: 22px; font: 700 54px var(--serif); color: var(--wine-soft); line-height: 1; }
.pj-s3 h3 { font-size: 24px; margin: 14px 0 6px; }
.pj-s3 p { margin: 0; }
.pj-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--wine-soft); color: var(--wine); flex: none; }
.pj-ic svg { width: 22px; height: 22px; }
.pj-demo { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.pj-phone { border-radius: 40px; padding: 12px; background: #1b0d12; box-shadow: 0 30px 60px rgba(60,20,30,.25); }
.pj-phone-in { border-radius: 30px; background: var(--bg); padding: 22px 16px; min-height: 420px; }
.pj-demo-txt h3 { font-size: 28px; margin-bottom: 8px; }
.pj-algo { display: flex; align-items: stretch; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pj-node { flex: 1 1 180px; border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); background: var(--card); }
.pj-node small { font: 800 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.pj-node b { font: 600 23px var(--serif); }
.pj-node span { color: var(--ink-2); font-size: 14px; }
.pj-node.a { background: var(--wine-soft); border-color: transparent; } .pj-node.a b { color: var(--wine); }
.pj-node.b { background: var(--gold-soft); border-color: transparent; } .pj-node.b b { color: var(--gold); }
.pj-node.m { background: linear-gradient(150deg, var(--wine-2), var(--wine)); color: #fff; border: 0; } .pj-node.m small, .pj-node.m span { color: rgba(255,255,255,.82); }
.pj-plus, .pj-arrow { align-self: center; font: 700 26px var(--sans); color: var(--ink-2); }
.pj-arch { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pj-ac { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.pj-ac::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--gold), var(--wine)); opacity: calc(.35 + var(--i) * .1); }
.pj-ac-n { font: 700 13px var(--sans); color: var(--gold); letter-spacing: .1em; }
.pj-ac b { font: 600 24px var(--serif); }
.pj-ac small { color: var(--ink-2); margin-top: 6px; }
.pj-done { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 24px; }
.pj-dc { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px; }
.pj-dc-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pj-dc-h b { font: 600 24px var(--serif); }
.pj-dc ul, .pj-rs ul { list-style: none; margin: 0; padding: 0; }
.pj-dc li { position: relative; padding: 7px 0 7px 28px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pj-dc li::before { content: '✓'; position: absolute; left: 4px; top: 7px; color: var(--ok); font-weight: 800; }
.pj-band { margin: 72px 0 0; padding: 0; }
.pj-band-in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; border-radius: 30px; padding: 48px 52px;
  background: radial-gradient(80% 140% at 0% 0%, #3d0f1c 0%, #1e0a10 70%); color: #fff; }
.pj-band-n { text-align: center; } .pj-band-n b { display: block; font: 700 96px var(--serif); line-height: 1; color: var(--gold); } .pj-band-n span { opacity: .8; }
.pj-road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; position: relative; }
.pj-road::before { content: ''; position: absolute; left: 22px; right: 22px; top: 11px; height: 2px; background: var(--line); }
.pj-rs { position: relative; padding-top: 34px; }
.pj-rs-dot { position: absolute; top: 2px; left: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.pj-rs.now .pj-rs-dot { border-color: var(--wine); background: var(--wine); box-shadow: 0 0 0 6px var(--wine-soft); }
.pj-rs-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; } .pj-rs-h b { font: 600 26px var(--serif); } .pj-rs-h span { color: var(--ink-2); font-size: 13px; }
.pj-rs li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; margin-bottom: 8px; font-size: 14.5px; }
.pj-asks { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 10px; }
.pj-ask { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.pj-ask span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--wine); color: #fff; font-size: 13px; }
.pj-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 64px; padding: 22px 6px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .pj-hero { padding: 40px 24px 200px; border-radius: 24px; }
  .pj-glass { right: 50%; transform: translateX(50%); width: 170px; }
  .pj-flow3, .pj-road { grid-template-columns: 1fr; } .pj-road::before { display: none; }
  .pj-demo { grid-template-columns: 1fr; } .pj-phone { max-width: 360px; margin: 0 auto; }
  .pj-sec { padding-top: 52px; } .pj-sec.pj-alt { margin-top: 48px; padding: 44px 16px; border-radius: 24px; }
  .pj-band-in { padding: 34px 24px; } .pj-band-n b { font-size: 72px; }
  .pj-plus, .pj-arrow { width: 100%; text-align: center; transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) { .pj-reveal { opacity: 1; transform: none; transition: none; } .pj-wine, .pj-live { animation: none; } }
.adm-nav[hidden] { display: none !important; }
.pj-hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); } .pj-band .btn.pj-btn { color: #3d0f1c; }
