/* MORI — дизайн-система по макету Figma (Mori / Page 1) */

:root {
  --bg: #F8F6F2;
  --card: #FFFFFF;
  --ink: #512309;
  --ink-2: #76574A;
  --ink-3: #7F6858;
  --line: #DED3CC;
  --line-2: #C1ADA2;
  --accent: #F28A3A;
  --accent-press: #E07A2B;
  --accent-ink: #2A0F05;
  --accent-text: #A84B16;      /* оранжевый для текста и иконок на светлом (контраст ≥ 5:1) */
  --beige: #EBDCC8;
  --beige-2: #FFF4E5;
  --ok-bg: #E9EFD9;
  --ok-ink: #48612F;
  --warn-bg: #FDEBD8;
  --warn-ink: #9A4A0E;
  --bad-bg: #FBE1DC;
  --bad-ink: #A3301B;
  --dark-chip: #3B1A0C;
  --inv-ink: #FFFFFF;          /* текст на var(--ink)/var(--dark-chip) */
  --title: #3B1A0C;            /* названия и цены в карточках */
  --stat-ink: rgba(38, 35, 36, .8);
  --stat-ink-2: rgba(38, 35, 36, .7);
  --card-2: #FDFBFA;
  --soft: #F5EDE4;
  --soft-2: #FFF8F1;
  --today: #F5E7D4;
  --outer: #E9E4DD;
  --glass: rgba(255, 255, 255, .75);
  --glass-2: rgba(255, 255, 255, .4);
  --flag: rgba(255, 255, 255, .78);
  --skel-a: #EFEAE3;
  --skel-b: #F7F3EE;
  --drink-a: #F7EEE2;
  --drink-b: #E9D9C4;
  --side: #512309;
  --bar-bg: rgba(248, 246, 242, .88);
  --track: #F1ECE6;
  --lane: #EFE9E2;
  --login-glow: #F2D3B3;

  --radius-xl: 32px;
  --radius-lg: 32px;
  --radius-md: 21px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 6px 16px rgba(81, 35, 9, .07);
  --shadow-up: 0 -8px 32px rgba(58, 23, 10, .12);

  --font-head: 'Fira Sans Condensed', 'Arial Narrow', sans-serif;
  --font-logo: 'Jomhuria', 'Fira Sans Condensed', sans-serif;
  --dark: #3B1A0C;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* тема героя (меняется стрелками) */
  --hero-bg: #EDBF86;
  --hero-ink: #3A170A;
  --hero-title: rgba(255, 255, 255, .92);
  --hero-btn: #3A170A;
  --hero-btn-ink: #FFFFFF;
  --hero-card: #FFF4E6;
}

[data-theme="matcha"]     { --hero-bg: #AEB974; --hero-ink: #26300A; --hero-line: rgba(38, 48, 10, .35); --hero-logo: url('../img/logo-brown.svg'); --hero-title: rgba(235,255,212,.8); --hero-btn: #6F9D16; --hero-btn-ink: #fff; --hero-card: rgba(255,255,255,.81); --hero-word-size: 142px; --sec-outer: #AEB974; --sec-inner: #AEB974; }
[data-theme="americano"]  { --hero-bg: #3F0B01; --hero-ink: #FFFFFF; --hero-line: rgba(255, 255, 255, .5); --hero-logo: url('../img/logo-white.svg'); --hero-title: rgba(161,116,94,.8); --hero-btn: #F6CCA7; --hero-btn-ink: #512309; --hero-card: rgba(255,255,255,.81); --hero-word-size: 142px; --sec-outer: #E8BC89; --sec-inner: #512309; }
[data-theme="latte"]      { --hero-bg: #E8BC89; --hero-ink: #3A170A; --hero-line: rgba(58, 23, 10, .35); --hero-logo: url('../img/logo-brown.svg'); --hero-title: rgba(255,236,212,.8); --hero-btn: #512309; --hero-btn-ink: #fff; --hero-card: rgba(255,255,255,.81); --hero-word-size: 142px; --sec-outer: #512309; --sec-inner: #E8BC89; }
[data-theme="cappuccino"] { --hero-bg: #F1BA6F; --hero-ink: #3A170A; --hero-line: rgba(58, 23, 10, .35); --hero-logo: url('../img/logo-brown.svg'); --hero-title: rgba(255,236,212,.8); --hero-btn: #512309; --hero-btn-ink: #fff; --hero-card: rgba(255,255,255,.81); --hero-word-size: 116px; --sec-outer: #512309; --sec-inner: #F1BA6F; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--outer);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* Мобильная колонка; на десктопе — как устройство по центру */
.app {
  max-width: 440px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
}
@media (min-width: 720px) {
  body { padding: 24px 0; }
  .app { min-height: calc(100vh - 48px); border-radius: 32px; box-shadow: 0 30px 80px rgba(58, 23, 10, .18); overflow: hidden; }
}

h1, h2, h3, .h { font-family: var(--font-head); font-weight: 700; letter-spacing: .005em; line-height: 1.02; margin: 0; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pad { padding: 0 16px; }
.section { padding: 28px 16px; }
.section-tight { padding: 16px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}
.topbar.on-hero { background: var(--hero-bg); color: var(--hero-ink); transition: background .35s; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: .02em; text-decoration: none; }
.burger { width: 28px; height: 28px; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { content: ''; display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger span::before { position: absolute; top: -5px; }
.burger span::after { position: absolute; top: 5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--inv-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; border: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: var(--pill); border: 1.5px solid transparent;
  font-weight: 500; font-size: 15px; text-decoration: none;
  transition: transform .08s, background .15s, opacity .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-block { width: 100%; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-press); }
.btn-soft-accent { background: #F8C9A2; color: #fff; }
.btn-dark { background: var(--ink); color: var(--inv-ink); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); min-height: 34px; padding: 0 16px; font-size: 13px; }
.btn-outline-accent { background: var(--card); border-color: #F6C49C; color: var(--accent-text); min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-hero { background: var(--hero-btn); color: var(--hero-btn-ink); }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }

/* ---------- Чипы / сегменты ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--pill);
  background: var(--card); font-size: 13px; color: var(--ink);
}
button.chip { cursor: pointer; }
.chip.on { background: var(--dark-chip); border-color: var(--dark-chip); color: var(--inv-ink); }
.chip-static { background: transparent; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: var(--pill); font-size: 11px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok-ink); }
.tag-warn { background: var(--warn-bg); border-color: transparent; color: var(--warn-ink); }
.tag-bad { background: var(--bad-bg); border-color: transparent; color: var(--bad-ink); }
.tag-dark { background: var(--ink); border-color: var(--ink); color: var(--inv-ink); }
.seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--card); }
.seg button { flex: 1; white-space: nowrap; min-height: 34px; border: 0; background: transparent; border-radius: var(--pill); font-size: 13px; padding: 0 12px; }
.seg button.on { background: var(--ink); color: var(--inv-ink); }
.seg.wrap { flex-wrap: wrap; border-radius: 18px; }
.seg.wrap button { flex: 0 1 auto; }

/* ---------- Карточки ---------- */
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 16px; }
.card-outline { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.card.selected { outline: 1.5px solid var(--ink); }
.list > * + * { margin-top: 12px; }

/* Иллюстрация напитка */
.pic { border-radius: var(--radius-md); background: var(--beige); overflow: hidden; position: relative; aspect-ratio: 1 / .78; display: grid; place-items: center; }
.pic svg { width: 78%; height: 92%; }
.pic.square { aspect-ratio: 1 / 1; }
.pic.photo-like { background: radial-gradient(120% 80% at 70% 10%, rgba(255,255,255,.55), transparent 60%), var(--pic-bg, var(--beige)); }
.pic .leaf { position: absolute; inset: -6%; width: 112%; height: 112%; opacity: .13; pointer-events: none; filter: blur(3px); }

/* Товарная карточка (сравнение) */
.offer .meta { margin-top: 10px; }
.offer .name { font-size: 15px; font-weight: 500; }
.offer .name small { font-size: 11px; color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.price { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.price-lg { font-family: var(--font-head); font-size: 28px; font-weight: 700; }

/* Состав-бар и точки */
.compbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--line); gap: 2px; }
.compbar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend b { font-weight: 500; color: var(--ink); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.dots i.on { background: var(--ink); }
.dotrow { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-2); padding: 3px 0; }

/* ---------- Формы ---------- */
.field { display: block; }
.field > span { display: block; font-size: 13px; color: var(--ink); margin-bottom: 6px; }
.input {
  width: 100%; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--pill);
  background: var(--card); outline: none; font-size: 14px;
}
.input:focus { border-color: var(--ink); }
.input.err { border-color: #E2725B; }
.err-text { color: #C24A33; font-size: 12px; margin-top: 4px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 19px, calc(100% - 15px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 1px 0 0; }

/* Тумблер */
.switch { position: relative; display: inline-block; vertical-align: middle; width: 40px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch i { position: absolute; inset: 0; border-radius: 12px; background: #D9D3CC; transition: background .2s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(16px); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-row b { display: block; font-weight: 500; font-size: 14px; }
.toggle-row small { color: var(--ink-3); font-size: 12px; }

/* ---------- Лендинг ---------- */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 4px 16px 20px; transition: background .35s, color .35s; position: relative; }
.hero-word { font-family: var(--font-head); font-weight: 800; font-size: clamp(64px, 22vw, 92px); line-height: .88; color: var(--hero-title); text-align: center; letter-spacing: -.01em; transition: color .35s; margin-top: 4px; }
.hero-art { height: 260px; margin: -26px auto 0; display: grid; place-items: center; position: relative; }
.hero-art svg { height: 100%; width: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.18)); }
.hero h1 { font-size: 30px; margin-top: 8px; }
.hero p { font-size: 14px; opacity: .92; margin: 10px 0 16px; }
.hero-card { background: var(--hero-card); color: var(--ink); border-radius: var(--radius-lg); padding: 14px; margin-top: 18px; transition: background .35s; }
.hero-card .mini { display: flex; gap: 12px; align-items: center; }
.hero-card .mini .pic { width: 64px; aspect-ratio: 1; background: transparent; }
.hero-card .mini .pic svg { width: 100%; height: 100%; }
.hero-nav { display: flex; justify-content: center; gap: 22px; margin-top: 14px; }
.hero-nav button { background: none; border: 0; color: var(--hero-ink); font-size: 22px; line-height: 1; padding: 4px 8px; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.hero-dots i.on { opacity: 1; }

.step-num { font-family: var(--font-head); font-size: 30px; color: var(--accent-text); font-weight: 700; line-height: 1; }
.howto .item + .item { margin-top: 22px; }
.howto h3 { font-size: 21px; margin: 6px 0 4px; }
.sample { margin-top: 10px; border: 1px solid var(--line-2); border-radius: var(--pill); padding: 8px 14px; font-size: 12px; color: var(--ink-2); background: var(--card); }

.plain { background: var(--hero-bg); color: var(--hero-ink); }
.plain h2 { color: var(--hero-ink); }
.footer { padding: 24px 16px 32px; display: flex; gap: 18px; align-items: flex-start; border-top: 1px solid var(--line); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.footer nav a { text-decoration: none; }

/* ---------- Онбординг ---------- */
.progress { height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); transition: width .3s; }
.q-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); padding: 6px 0 10px; }
.q-head button { background: none; border: 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.q-title { font-size: 30px; margin: 26px 0 20px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { min-height: 54px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--card); padding: 10px 12px; text-align: center; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: border-color .15s, background .15s; }
.opt small { color: var(--ink-3); font-size: 11px; }
.opt.on { border-color: var(--ink); background: var(--beige-2); box-shadow: inset 0 0 0 1px var(--ink); }
.opt.drink { min-height: 128px; gap: 6px; }
.opt.drink svg { height: 88px; width: auto; }
.q-foot { position: sticky; bottom: 0; padding: 16px 0 20px; background: linear-gradient(to top, var(--bg) 70%, transparent); }

/* ---------- Сегодня ---------- */
.today-hero { background: var(--beige-2); border-radius: var(--radius-xl); padding: 16px; position: relative; overflow: hidden; }
.today-hero .word { font-family: var(--font-head); font-weight: 800; font-size: 56px; color: #fff; line-height: .9; text-shadow: 0 1px 0 rgba(0,0,0,.04); }
.today-hero .art { height: 230px; display: grid; place-items: center; margin-top: -20px; }
.today-hero .art svg { height: 100%; filter: drop-shadow(0 14px 20px rgba(58,23,10,.18)); }
.today-hero h2 { font-size: 30px; margin-top: 6px; }
.why { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ctx { display: grid; gap: 14px; }
.ctx-row > span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.caff { background: var(--beige-2); border-radius: var(--radius-lg); padding: 14px; }
.caff .bar { height: 6px; background: var(--card); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.caff .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

.other-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); align-items: center; }
.other-row + .other-row { margin-top: 8px; }
.other-row .n { font-weight: 500; font-size: 14px; }
.other-row .n small { color: var(--ink-3); font-weight: 400; font-size: 11px; margin-left: 4px; }
.other-row .d { font-size: 12px; color: var(--ink-2); }

.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.grid2 > * { min-width: 0; }
.mcard .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 20px; }
.mcard { background: var(--card); border-radius: var(--radius-lg); padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.mcard .pic { aspect-ratio: 1/1; }
.mcard .t { font-size: 13px; margin-top: 8px; line-height: 1.25; }
.mcard .p { font-weight: 600; margin-top: 2px; }
.mcard .tags { margin-top: 6px; display: flex; gap: 4px; flex-wrap: wrap; }

/* Меню-карточки с бейджем ккал/мл */
.menu-card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 12px; }
.menu-card .media { display: grid; grid-template-columns: 54px 1fr; gap: 10px; background: var(--beige); border-radius: var(--radius-md); padding: 8px; min-height: 150px; }
.menu-card .media .stats { display: flex; flex-direction: column; gap: 8px; }
.menu-card .media .stats div { background: var(--glass); border-radius: 10px; text-align: center; padding: 6px 2px; font-size: 13px; font-weight: 600; line-height: 1.1; }
.menu-card .media .stats small { display: block; font-size: 10px; color: var(--ink-3); font-weight: 400; }
.menu-card .media .pic { background: transparent; aspect-ratio: auto; }
.menu-card .media .pic svg { height: 140px; }

/* ---------- Нижний лист / модал ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(32, 14, 6, .38); z-index: 80; opacity: 0; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: min(440px, 100%); max-height: 88vh; overflow: auto;
  background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 16px 24px; z-index: 90;
  box-shadow: var(--shadow-up); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet .grab { width: 40px; height: 4px; background: var(--line-2); border-radius: 2px; margin: 0 auto 12px; }

/* Боковое меню */
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); background: var(--bg); z-index: 90; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: 10px 0 40px rgba(0,0,0,.12); }
.drawer.open { transform: none; }
.drawer a { display: block; padding: 12px 0; font-family: var(--font-head); font-size: 24px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer .sub a { font-family: var(--font-body); font-size: 14px; font-weight: 400; border: 0; padding: 8px 0; color: var(--ink-2); }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: var(--inv-ink); padding: 12px 18px; border-radius: 14px; font-size: 14px; z-index: 120; opacity: 0; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* История */
.hist { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hist .pic { aspect-ratio: 1; border-radius: 12px; }
.hist .pic svg { width: 100%; height: 100%; }
.stars { display: inline-flex; gap: 2px; }
.stars button { border: 0; background: none; padding: 0 1px; font-size: 18px; line-height: 1; color: #D9CFC4; }
.stars button.on { color: var(--accent-text); }

/* Статус заказа */
.status-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0; }
.status-track i { height: 5px; border-radius: 3px; background: var(--line); }
.status-track i.on { background: var(--accent); }
.order-num { font-family: var(--font-head); font-size: 64px; font-weight: 800; line-height: 1; }

/* Скелетоны */
.skel { background: linear-gradient(90deg, var(--skel-a) 25%, var(--skel-b) 50%, var(--skel-a) 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }

.empty { padding: 40px 8px; text-align: center; color: var(--ink-2); }

/* Анимация появления */
.view { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =====================================================================
   MobileKit — значения из Figma (файл Mori, компоненты MobileKit / *)
   ===================================================================== */
body { color: var(--ink); }
h1, h2, h3, .h { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: 0; }
h1 { font-size: 34px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }

/* Header: 68px, ☰ + MORI (Jomhuria 48), справа «Войти» или аватар 37px */
.topbar { height: 68px; padding: 12px 16px; border-bottom: .5px solid var(--line); background: var(--bg); backdrop-filter: none; }
.topbar.on-hero { background: var(--hero-bg); color: var(--hero-ink); border-bottom-color: var(--hero-line, rgba(255,255,255,.25)); }
.topbar .row { gap: 5px !important; }
.burger { width: 36px; height: 36px; font: 600 20px/1 Inter, var(--font-body); color: inherit; }
.burger span { display: none; }
.burger::before { content: '☰'; }
.logo { font-family: var(--font-logo); font-weight: 400; font-size: 48px; line-height: .62; letter-spacing: 0; text-transform: uppercase; padding-top: 6px; color: inherit; }
.avatar { width: 37px; height: 37px; background: var(--ink); font: 600 13px Inter, var(--font-body); text-decoration: none; box-shadow: 0 10px 15px rgba(104,72,125,.1); }
.topbar .btn-outline { min-height: 44px; padding: 0 27px; border-width: 1px; font-size: 13px; font-weight: 400; border-color: var(--ink); }
.topbar.on-hero .btn-outline { border-color: var(--hero-ink); color: var(--hero-ink); }

/* Кнопки: primary 48px r30 15px; в карточках 56px / 51px, 16px */
.btn { min-height: 48px; border-radius: 30px; font-weight: 400; font-size: 15px; padding: 0 20px; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-lg { min-height: 56px; font-size: 16px; }
.btn-outline { border-width: 1px; }

/* Поля: подпись 14px, ввод r12, мин. 52px, рамка #C1ADA2 */
.field > span { font-size: 14px; line-height: 1.5; margin-bottom: 8px; color: var(--ink); }
.input { min-height: 52px; border-radius: 12px; border: 1px solid var(--line-2); padding: 0 16px; font-size: 16px; color: var(--ink); }
select.input { background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; }

/* Карточки: белые r32 p20, мягкая коричневая тень */
.card { border-radius: 32px; padding: 20px; box-shadow: var(--shadow); }
.card.selected { outline: none; border: 2px solid var(--ink); box-shadow: 0 10px 20px rgba(24,24,24,.2); }

/* Теги кофейни */
.tag { height: 22px; padding: 0 8.6px; font: 500 11.9px/20px var(--font-body); border: 1.08px solid var(--ink-2); color: var(--ink-2); }
.tag-ok { background: var(--ok-bg); color: var(--ok-ink); border-color: transparent; }
.tag-dark { background: var(--dark); color: #FBF4E8; border-color: var(--dark); }

/* Подвал */
.footer { padding: 48px 16px 32px; border-top: 0; align-items: center; gap: 16px; }
.footer .logo { font-size: 56px; color: var(--ink); width: 72px; }
.footer nav { gap: 4px; font-size: 16px; }
.footer nav a { padding: 12px 10px; color: var(--ink); }

/* Чипы / сегменты в стиле MobileKit */
.chip { min-height: 41px; padding: 0 16px; border-radius: 30px; font-size: 14px; border-color: var(--line-2); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); }

/* ---------- Лендинг ---------- */
.l-hero { background: var(--hero-bg); color: #fff; transition: background .35s; display: flex; flex-direction: column; gap: 16px; }
.l-hero .word { font-family: var(--font-logo); font-size: var(--hero-word-size, 142px); line-height: .8; color: var(--hero-title); text-align: center; margin-top: 8px; white-space: nowrap; overflow: hidden; }
.l-hero .scene { height: 306px; width: 100%; object-fit: cover; display: block; }
.l-hero .promise { display: flex; flex-direction: column; gap: 20px; padding: 0 16px 24px; }
.l-hero .promise h1 { color: var(--hero-ink); font-size: 34px; }
.l-hero .promise p { margin: 0; font-size: 16px; line-height: 1.5; }
.l-hero .btn-hero { background: var(--hero-btn); border-color: var(--hero-btn); color: var(--hero-btn-ink); }
.rec-card { background: var(--hero-card); border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.rec-card .top { display: flex; gap: 20px; align-items: center; }
.rec-card .top img { width: 110px; height: 110px; object-fit: contain; }
.rec-card .top .nutr { font-size: 14px; line-height: 1.5; display: grid; gap: 8px; }
.rec { display: flex; flex-direction: column; gap: 18px; }
.rec .name { font: 400 34px/1.1 var(--font-head); letter-spacing: -.34px; color: var(--ink); }
.rec .price { font: 600 26px/1.2 var(--font-body); letter-spacing: -.26px; opacity: .8; color: var(--ink); }
.rec .desc { font-size: 16px; line-height: 1.5; opacity: .8; margin: 6px 0 0; }
.rec .btn { min-height: 51px; font-size: 16px; letter-spacing: -.16px; border-radius: 999px; }
.l-arrows { display: flex; justify-content: center; gap: 16px; font: 400 26px Inter, sans-serif; color: #fff; }
.l-arrows button { background: none; border: 0; color: inherit; font: inherit; padding: 0 4px; }

.l-how { padding: 48px 20px; display: flex; flex-direction: column; gap: 28px; }
.l-how .step { display: flex; flex-direction: column; gap: 12px; }
.l-how .num { font: 700 44px/1.2 var(--font-head); color: var(--accent-text); }
.l-how h3 { font-size: 28px; }
.l-how p { margin: 0; font-size: 16px; line-height: 23.5px; color: var(--ink-2); }
.l-how .ex { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; font-size: 14px; line-height: 1.5; }

.l-compare { padding: 0 16px 48px; display: flex; flex-direction: column; gap: 24px; }
.l-compare > p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.shop { background: var(--card); border-radius: 32px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 24px; }
.shop.best { border: 2px solid var(--ink); box-shadow: 0 10px 20px rgba(24,24,24,.2); }
.shop .photo { height: 301px; border-radius: 21px; overflow: hidden; background: var(--beige); }
.shop .photo img { width: 100%; height: 126.6%; object-fit: cover; margin-top: -17.3%; display: block; }
.shop .photo.illus { display: grid; place-items: center; }
.shop .photo.illus svg { height: 92%; }
.shop .info { display: flex; flex-direction: column; gap: 20px; }
.shop .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.shop .nm { display: flex; flex-wrap: wrap; gap: 0 6px; align-items: flex-end; font-weight: 500; }
.shop .nm b { font-weight: 500; font-size: 20px; line-height: 1.1; letter-spacing: -.2px; color: var(--title); opacity: .8; }
.shop .nm small { font-size: 13px; line-height: 18.8px; color: var(--ink-2); }
.shop .pr { font: 600 24px/1.2 var(--font-body); letter-spacing: -.24px; color: var(--title); opacity: .8; margin-top: 10px; }
.shop .sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.shop .btn { min-height: 56px; font-size: 16px; }


.l-well { padding: 48px 20px; display: flex; flex-direction: column; gap: 24px; }
.l-well > p { margin: 0; font-size: 16px; line-height: 23.5px; color: var(--ink-2); }
.l-well .slot { background: var(--beige); border-radius: 24px; padding: 18px 16px; display: flex; align-items: center; gap: 16px; }
.l-well .slot div { flex: 1; }
.l-well .slot b { display: block; font-weight: 400; font-size: 16px; line-height: 23.5px; }
.l-well .slot span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.l-well .portions { width: 100%; height: 420px; object-fit: cover; border-radius: 28px; display: block; }

.l-invite { padding: 16px; }
.l-invite .inner { background: var(--sec-inner, #E8BC89); border-radius: 32px; padding: 24px; display: flex; flex-direction: column; gap: 20px; color: #fff; transition: background .35s; }
.l-invite .inner img { width: 100%; height: 250px; object-fit: cover; border-radius: 24px; display: block; }
.l-invite .inner h2 { font-size: 34px; color: #fff; }
.l-invite .inner > p { margin: 0; font-size: 16px; line-height: 1.5; }
.l-invite .field > span { color: var(--ink); }
[data-theme="americano"] .l-invite .field > span { color: #fff; }

/* MobileKit / Toggle: 48×28 */
.switch { width: 48px; height: 28px; }
.switch i { border-radius: 14px; background: #D7CEC6; }
.switch i::after { width: 22px; height: 22px; }
.switch input:checked + i::after { transform: translateX(20px); }

/* Сегодня — по «Mobile / Сегодня» */
.today-hero { background: var(--beige-2); border-radius: 32px; padding: 20px; }
.today-hero .word { font-family: var(--font-logo); font-weight: 400; font-size: 96px; line-height: .8; color: #fff; text-align: left; }
.today-hero .art { height: 260px; margin-top: -30px; }
.today-hero .art img { filter: drop-shadow(0 14px 20px rgba(81,35,9,.18)); }
.today-hero .card { border-radius: 24px; }
.mcard { border-radius: 24px; padding: 12px; }
.mcard .pic { border-radius: 16px; background: var(--beige); }
.mcard .t { font: 400 20px/1.1 var(--font-head); color: var(--ink); }
.mcard .p { font: 600 18px/1.2 var(--font-body); opacity: .85; }
.other-row { border-radius: 20px; padding: 14px 16px; border-color: var(--line); }
.other-row .n { font-size: 16px; }
.other-row .btn-outline-accent { min-height: 36px; border-radius: 30px; border-color: var(--accent); }
.caff { background: var(--beige); border-radius: 24px; padding: 16px; }
.seg { border-radius: 30px; border-color: var(--line-2); padding: 4px; }
.seg button { min-height: 41px; border-radius: 30px; font-size: 14px; }
.seg.wrap { border-radius: 24px; }
.menu-card { border-radius: 32px; padding: 20px; }
.menu-card .media { border-radius: 21px; background: var(--beige); }
.menu-card h3 { font: 400 26px/1.1 var(--font-head) !important; }
.q-title { font-size: 34px; font-weight: 600; }
.opt { border-radius: 20px; border-color: var(--line-2); font-size: 15px; }
.opt.on { background: var(--beige-2); }
.opt.drink img { height: 92px; width: auto; object-fit: contain; }
.hist .pic { background: var(--beige); border-radius: 16px; }
.today-hero .art { height: 260px; overflow: visible; display: flex; justify-content: center; }
.today-hero .art img, .today-hero .art svg { height: 260px !important; max-height: 260px; width: auto; }

/* ===== MobileKit: точные компоненты (сняты из Figma Plugin API) ===== */
:root { --font-num: 'Fredoka', var(--font-body); }
.seg-label { display: block; font-size: 12px; line-height: 1.4; letter-spacing: .01em; color: var(--ink-2); margin-bottom: 10px; }
.seg, .seg.wrap { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; }
.seg button, .seg.wrap button { flex: 0 0 auto; min-height: 44px; padding: 12px; border-radius: 100px; font-size: 14px; line-height: 1.4; color: var(--ink-2); background: var(--card); white-space: nowrap; }
.seg button.on { background: var(--ink); color: var(--inv-ink); }

.btn-secondary { background: var(--card); border: 1px solid var(--line-2); color: var(--ink); }
.btn-order { min-height: 56px; font-size: 16px; padding: 0 30px; box-shadow: 0 10px 20px rgba(104,72,125,.05); }
.btn-order-outline { min-height: 56px; font-size: 16px; padding: 0 16px; background: transparent; border: 1px solid var(--accent); color: var(--accent-text); }

.toggle-row { min-height: 84px; padding: 18px 0; border-bottom: .5px solid var(--line); }
.toggle-row + .toggle-row { border-top: 0; }
.toggle-row b { font-weight: 400; font-size: 16px; line-height: 23.5px; color: var(--ink); }
.toggle-row small { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.switch i { background: #D8CCC5; }
.switch input:checked + i { background: var(--accent); }

/* Анкета */
.q-head { font-size: 16px; padding: 0 0 16px; }
.q-head button { font-size: 16px; color: var(--ink-2); }
.progress { height: 4px; border-radius: 100px; background: var(--line-2); }
.progress i { background: var(--ink); border-radius: 100px; }
.q-title { margin: 24px 0 28px; }
.opts { gap: 12px; }
.opt { border-radius: 22px; border: 1px solid var(--line-2); padding: 12px; gap: 6px; min-height: 68px; font-size: 15px; line-height: 1.3; color: var(--ink); background: var(--card); }
.opt small { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.opt.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--beige-2); }
.opt.drink { min-height: 150px; }
.opt.drink img, .opt.drink svg { width: 62px; height: 88px; object-fit: cover; }

/* Drink Card */
.menu-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 25px; padding: 16px; box-shadow: none; display: flex; flex-direction: column; gap: 10px; }
.menu-card .media { display: flex; justify-content: space-between; gap: 0; background: var(--beige); border-radius: 20px; padding: 10px; min-height: 212px; }
.menu-card .media .stats { width: 72px; display: flex; flex-direction: column; gap: 4px; }
.menu-card .media .stats div { flex: 1; background: var(--glass-2); border-radius: 15px; padding: 20px 12px; text-align: left; display: flex; flex-direction: column; justify-content: space-between; font: 500 18px/1.1 var(--font-num); color: var(--stat-ink); letter-spacing: -.01em; }
.menu-card .media .stats small { font: 500 16px/1.2 var(--font-num); color: var(--stat-ink-2); }
.menu-card .media .pic { flex: 1; display: grid; place-items: center; background: transparent; }
.menu-card .media .pic img, .menu-card .media .pic svg { width: 156px !important; height: 156px !important; object-fit: contain; }
.menu-card .dn { font: 500 20px/1.1 var(--font-body); color: var(--title); opacity: .8; letter-spacing: -.01em; }
.menu-card .dp { font: 600 24px/1.2 var(--font-body); color: var(--title); opacity: .8; letter-spacing: -.01em; margin-top: 10px; }
.menu-card .dd { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin: 8px 0 0; }
.menu-card.expanded { border-color: var(--ink); border-radius: 28px; gap: 24px; }
.menu-card .ex-head { display: flex; justify-content: space-between; align-items: center; font: 600 24px/1.1 var(--font-body); color: var(--ink); opacity: .8; }
.menu-card .ex-tag { font: 600 16px/1.2 var(--font-body); color: var(--ink); opacity: .8; margin: 10px 0 0; }
.menu-card .ex-desc { font-size: 15px; line-height: 17px; color: var(--ink); opacity: .8; margin: 10px 0 0; }
.legend3 { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; line-height: 17.4px; color: var(--ink); }
.legend3 span { display: inline-flex; align-items: center; gap: 5px; }
.legend3 i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ratings { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; line-height: 17.4px; color: var(--ink); }
.ratings span { display: inline-flex; align-items: center; gap: 6px; }
.ratings .d { display: inline-flex; gap: 6px; }
.ratings .d i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .22; }
.ratings .d i.on { opacity: 1; }

/* Comparison Card / Featured comparison */
.cmp { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cmp.featured { border-color: var(--ink); border-radius: 28px; gap: 16px; }
.cmp .cimg { height: 160px; border-radius: 16px; overflow: hidden; background: var(--beige); }
.cmp.featured .cimg { height: 180px; border-radius: 20px; }
.cmp .cimg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
.cmp .cimg.illus { display: grid; place-items: center; }
.cmp .cimg.illus svg { height: 92%; }
.cmp .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmp .top b { font: 600 20px/1.1 var(--font-body); color: var(--title); opacity: .8; letter-spacing: -.01em; }
.cmp .top small { font: 500 13px/18.8px var(--font-body); color: var(--ink-2); margin-left: 11px; }
.cmp .top .pp { font: 600 22px/1.2 var(--font-body); color: var(--ink); opacity: .8; letter-spacing: -.01em; }
.cmp .mid { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.cmp .mid .dn { font: 600 16px/1.2 var(--font-body); color: var(--ink); opacity: .8; }
.cmp .mid .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cmp .mid .btn { flex: 0 0 auto; min-width: 160px; }

/* History entry */
.hist { grid-template-columns: 66px 1fr; gap: 16px; padding: 20px 0; border-bottom: .5px solid var(--line); align-items: start; }
.hist .pic { width: 66px; height: 76px; aspect-ratio: auto; border-radius: 18px; overflow: hidden; }
.hist .pic img { width: 100%; height: 100%; object-fit: cover; }
.hist .ht { font-size: 16px; line-height: 23.5px; color: var(--ink); }
.hist .hm { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hist .ha { display: flex; align-items: center; gap: 20px; margin-top: 16px; grid-column: 1 / -1; }
.hist .stars button { font-size: 22px; letter-spacing: 2px; color: #E7D8CB; }
.hist .stars button.on { color: var(--accent-text); }

/* Сегодня */
.today-hero { background: var(--today); border: 1px solid var(--line); border-radius: 32px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.today-hero .word { font-size: 90px; line-height: .8; }
.today-hero .art { margin-top: 0; }
.today-hero .ritual { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-2); }
.today-hero .cafe-line { font-size: 12px; line-height: 1.4; color: var(--ink-2); letter-spacing: .01em; }
.today-hero .metas { display: flex; flex-wrap: wrap; gap: 8px; }
.today-hero .metas span { background: var(--beige-2); border-radius: 100px; padding: 8px 12px; font-size: 13px; color: var(--ink); }
.today-hero .link-muted { background: none; border: 0; padding: 0; font-size: 14px; color: var(--ink-2); text-align: left; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.sec-head h2 { font-size: 28px; }
.sec-head a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
/* фикс: фото в «Меню простыми словами» не растягиваем, кадрируем как в Figma (CROP) */
.city-btn { background: transparent; border: 0; padding: 6px 4px; font: 400 14px var(--font-body); color: inherit; opacity: .85; }

/* ===== общие (мобайл) для новых обёрток ===== */
.top-nav, .l-well .thumb { display: none; }
.scene-wrap { display: block; }
.l-how .steps { display: flex; flex-direction: column; gap: 28px; }
.l-how h2, .l-compare h2, .l-well h2 { font-size: 34px; }
.offers { display: flex; flex-direction: column; gap: 24px; }
.l-well .w-text { display: flex; flex-direction: column; gap: 24px; }
.l-invite .i-text { display: flex; flex-direction: column; gap: 20px; }
.l-invite .i-bg img { width: 100%; height: 250px; object-fit: cover; border-radius: 24px; display: block; }
.rec-card .top { flex-direction: row-reverse; justify-content: flex-end; }
.rec-card .nutr b { font-weight: 400; }

/* =====================================================================
   ДЕСКТОП ≥1024 — по макету Figma «Section 5 / landing» (1440 px)
   ===================================================================== */
@media (min-width: 1024px) {
  body { padding: 0; background: var(--bg); }
  .app { max-width: none; min-height: 100vh; border-radius: 0; box-shadow: none; overflow: visible; }
  .pad { max-width: 1128px; margin: 0 auto; padding-left: 0; padding-right: 0; }

  /* Header 1440: 76px поля, логотип 56, навигация-таблетка, кнопки 51/56 */
  .topbar { height: 84px; padding: 14px max(24px, calc((100% - 1288px) / 2)); border-bottom: 0; }
  .topbar .row:first-child { gap: 60px !important; }
  .burger { display: none; }
  .logo { font-size: 56px; padding-top: 8px; }
  .top-nav { display: flex; gap: 14px; padding: 6px 7px; border-radius: 31px; background: rgba(81, 35, 9, .06); }
  .topbar.on-hero .top-nav { background: rgba(255, 255, 255, .1); }
  .top-nav a { padding: 12px 20px; border-radius: 30px; font: 500 16px/19px var(--font-num); color: inherit; text-decoration: none; }
  .top-nav a.on { background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.12)); }
  .topbar:not(.on-hero) .top-nav a.on { background: var(--ink); color: var(--inv-ink); }
  .topbar .btn-outline, .topbar .avatar { min-height: 56px; height: 56px; padding: 0 30px; font: 500 16px var(--font-num); border-color: rgba(81,35,9,.5); }
  .topbar.on-hero .btn-outline { border-color: var(--hero-line); }
  .topbar .avatar { width: 56px; padding: 0; }
  .city-btn { width: 51px; height: 51px; border-radius: 999px; border: 1px solid rgba(81,35,9,.35); font-size: 13px; width: auto; padding: 0 18px; }
  .topbar.on-hero .city-btn { border-color: var(--hero-line); }

  /* ---------- Hero ---------- */
  #land .topbar { position: absolute; left: 0; right: 0; top: 0; z-index: 5; background: transparent; }
  .l-hero { position: relative; display: block; height: min(73.2vw, 1054px); overflow: hidden; }
  .l-hero .word { position: absolute; left: 0; right: 0; top: 0; margin: 0; font-size: min(48.6vw, 700px); line-height: .9; color: var(--hero-title); z-index: 1; letter-spacing: -.01em; }
  [data-theme="americano"] .l-hero .word, [data-theme="cappuccino"] .l-hero .word { font-size: min(33vw, 480px); top: 6%; }
  .l-hero .scene-wrap { position: absolute; left: 0; right: 0; bottom: 0; height: 67.6%; z-index: 2; }
  .l-hero .scene { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .l-hero .promise { position: absolute; inset: 0; z-index: 3; padding: 0; display: block; pointer-events: none; }
  .l-hero .promise > * { pointer-events: auto; }
  .l-hero .promise h1 { position: absolute; left: 5.3%; top: 47%; width: 28%; font: 700 clamp(34px, 3.33vw, 48px)/1.1 var(--font-head); text-wrap: balance; }
  .l-hero .hero-cta { position: absolute; left: 5.3%; top: 65.6%; width: clamp(130px, 12.2vw, 176px); height: clamp(130px, 12.2vw, 176px); min-height: 0; border-radius: 50%; padding: 0 34px; text-align: center; white-space: normal; font: 600 clamp(15px, 1.4vw, 20px)/1.2 Inter, var(--font-body); background: var(--ink) !important; border-color: rgba(81,35,9,.3) !important; color: var(--inv-ink) !important; box-shadow: 0 10px 30px rgba(40,10,0,.25); }
  .l-hero .hero-cta:hover { transform: scale(1.03); }
  .l-hero .hero-desc { position: absolute; left: 67.4%; top: 51.7%; width: 27%; margin: 0; font-size: clamp(16px, 1.53vw, 22px); line-height: 1.1; text-align: right; }
  .l-hero .rec-card { position: absolute; left: 60.5%; top: 70%; width: 33.8%; min-width: 420px; flex-direction: row; gap: 24px; align-items: stretch; padding: 6px 25px 6px 6px; border-radius: 32px; background: rgba(255,255,255,.1); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px); box-shadow: 0 10px 20px rgba(24,24,24,.1); color: #fff; }
  .l-hero .rec-card .top { width: 49%; flex: none; gap: 0; padding: 6px; border-radius: 26px; background: rgba(255,255,255,.4); flex-direction: row; justify-content: flex-start; }
  .l-hero .rec-card .top .nutr { width: 72px; flex: none; display: flex; flex-direction: column; gap: 4px; }
  .l-hero .rec-card .top .nutr span { flex: 1; background: rgba(255,255,255,.4); border-radius: 20px; padding: 16px 12px; display: flex; flex-direction: column; justify-content: space-between; font: 500 16px/1.2 var(--font-num); color: rgba(38,35,36,.4); }
  .l-hero .rec-card .top .nutr b { font: 500 18px/1.1 var(--font-num); color: rgba(38,35,36,.8); }
  .l-hero .rec-card .top img { width: auto; flex: 1; height: 156px; object-fit: contain; }
  .l-hero .rec-card .rec { flex: 1; padding: 12px 0; gap: 14px; justify-content: space-between; }
  .l-hero .rec-card .name { font: 500 20px/1.1 var(--font-body); color: #fff; opacity: .8; letter-spacing: -.01em; }
  .l-hero .rec-card .price { font: 600 18px/1.2 var(--font-body); color: #fff; opacity: .8; margin-top: 6px !important; }
  .l-hero .rec-card .desc { font-size: 13px; line-height: 1.3; color: #fff; margin: 4px 0 0; }
  .l-hero .rec-card .btn { min-height: 51px; background: #fff; border-color: #fff; color: var(--ink); width: auto; padding: 8px 28px; align-self: flex-start; }
  .l-arrows { position: absolute; left: 45.3%; top: 78.7%; gap: 20px; }
  .l-arrows button { width: 59px; height: 59px; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--ink); font-size: 24px; display: grid; place-items: center; transition: background .15s; }
  .l-arrows button:hover { background: #fff; }

  /* ---------- How it works ---------- */
  .l-how { max-width: 1128px; margin: 0 auto; padding: 40px 0 0; gap: 28px; }
  .l-how h2 { font-size: 48px; line-height: .9; text-align: center; }
  .l-how .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .l-how .step { gap: 11px; padding-top: 14px; }
  .l-how .num { font-size: 44px; line-height: 1; }
  .l-how h3 { font-size: 24px; line-height: 1.05; }
  .l-how p { font-size: 16px; line-height: 24px; }
  .l-how .ex { align-self: flex-start; padding: 7px 10px 8px; border: 1px solid rgba(81,35,9,.3); border-radius: 10px; background: var(--card); font: 400 12px/17px 'JetBrains Mono', ui-monospace, monospace; }

  /* ---------- Cafe comparison ---------- */
  .l-compare { max-width: 1121px; margin: 0 auto; padding: 140px 0 116px; gap: 0; align-items: center; }
  .l-compare h2 { font-size: 48px; line-height: .96; text-align: center; }
  .l-compare > p { max-width: 650px; text-align: center; margin-top: 18px; }
  .offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%; margin-top: 59px; }
  .offers .shop { background: rgba(255,255,255,.1); backdrop-filter: blur(80px); box-shadow: 0 10px 20px rgba(24,24,24,.08); background-color: var(--card); }
  .l-compare .all-cafes { width: auto; margin-top: 40px; padding: 0 30px; min-height: 56px; }

  /* ---------- Menu in plain words + QR ---------- */

  /* ---------- Caffeine schedule ---------- */
  .l-well { max-width: 1125px; margin: 0 auto; padding: 98px 0 130px; display: grid; grid-template-columns: 533px 382px; justify-content: space-between; align-items: start; }
  .l-well .w-text { gap: 15px; }
  .l-well h2 { font-size: 48px; line-height: .96; }
  .l-well .w-text > p { margin: 0 0 24px; }
  .l-well .slot { width: 414px; border-radius: 53px; padding: 10px 29px 10px 47px; gap: 29px; min-height: 89px; }
  .l-well .slot + .slot { margin-top: 0; }
  .l-well .thumb { display: block; width: 50px; height: 69px; object-fit: contain; }
  .l-well .slot b { font: 600 28px/1.1 var(--font-body); opacity: .8; }
  .l-well .slot span:not(.switch) { font-size: 16px; color: var(--ink); opacity: .8; }
  .l-well .portions { width: 382px; height: 538px; border-radius: 31px; }

  /* ---------- Signup ---------- */
  .l-invite { padding: 0 44px 44px; }
  .l-invite .inner { position: relative; max-width: 1352px; margin: 0 auto; height: 660px; border-radius: 60px; overflow: hidden; padding: 0 113px 0 121px; display: grid; grid-template-columns: 375px 297px; justify-content: space-between; align-items: center; background: transparent; }
  .l-invite .i-bg { position: absolute; inset: 0; z-index: 0; }
  .l-invite .i-bg img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
  .l-invite .inner::before { content: ''; position: absolute; left: 45px; top: 114px; width: 472px; height: 415px; border-radius: 50%; background: #C59B6B; filter: blur(150px); z-index: 0; }
  .l-invite .i-text, .l-invite form, .l-invite .inner > a { position: relative; z-index: 1; }
  .l-invite .i-text h2 { font-size: 48px; line-height: .96; }
  .l-invite form { grid-column: 2; grid-row: 1 / span 2; gap: 17px !important; }
  .l-invite .field > span { display: none; }
  .l-invite .input { min-height: 56px; border: 0; border-radius: 11px; background: rgba(255,255,255,.9); font-family: var(--font-num); }
  .l-invite form button { background: var(--ink); border-color: rgba(81,35,9,.3); min-height: 56px; }

  /* ---------- Footer ---------- */
  .footer { justify-content: center; padding: 40px 16px 60px; gap: 60px; }
  .footer nav { gap: 14px; flex-wrap: nowrap; }
  .footer nav a { padding: 12px 20px; font: 500 16px var(--font-num); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .l-well { grid-template-columns: 1fr 340px; padding-left: 32px; padding-right: 32px; }
  .l-invite .inner { padding: 0 56px; }
  .l-hero .rec-card { left: auto; right: 4%; }
}

/* ===== ДЕСКТОП: внутренние экраны (Figma «Section 5»: customization, меню, история, настройки, анкета) ===== */
.set-grid { display: block; }
@media (min-width: 1024px) {
  .view:not(#land) .topbar { position: sticky; top: 0; background: var(--bg); border-bottom: .5px solid var(--line); }
  .view:not(#land) .topbar .logo { color: var(--ink); }
  .view:not(#land) .top-nav { background: transparent; gap: 4px; }
  .view:not(#land) .top-nav a { color: var(--ink); padding: 10px 18px; }
  .view:not(#land) .top-nav a.on { background: var(--ink); color: var(--inv-ink); }
  h1 { font-size: 48px; }

  /* Сегодня */
  .pg-today .pad { padding-top: 48px !important; gap: 40px !important; }
  .pg-today .pad > div:first-child { display: flex; justify-content: space-between; align-items: flex-end; }
  .pg-today .today-hero { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 14px; align-items: start; padding: 28px 40px 28px 28px; position: relative; overflow: hidden; }
  .pg-today .today-hero > * { grid-column: 2; }
  .pg-today .today-hero > .art { grid-column: 1; grid-row: 1 / span 12; height: 420px; margin: 0; align-self: center; z-index: 1; }
  .pg-today .today-hero > .art img, .pg-today .today-hero > .art svg { height: 420px !important; max-height: 420px; }
  .pg-today .today-hero > .word { grid-column: 1; grid-row: 1 / span 3; position: relative; z-index: 0; font-size: 150px; align-self: start; margin: 6px 0 0 4px; }
  .pg-today .today-hero > .art { position: relative; }
  .pg-today .today-hero > .ritual { grid-column: 1; grid-row: 12; z-index: 2; }
  .pg-today .today-hero .rec .btn { max-width: 420px; }
  .pg-today .ctx { flex-direction: row !important; flex-wrap: wrap; gap: 20px 28px !important; }
  .pg-today .ctx .ctx-row { min-width: 0; }
  #alts > div:last-child, #more > div:last-child { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px !important; }
  #others > div:last-child { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px !important; }
  #caff { max-width: 560px; }

  /* Сравнение и меню */
  .pg-compare .pad { max-width: 940px; }
  .pg-compare .pad > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .pg-compare .pad > div:first-child .seg-label { display: none; }
  .pg-compare h1 { text-align: center; }
  .pg-compare:not(.pg-menu) #controls { display: grid !important; grid-template-columns: 240px 240px 1fr; align-items: end; gap: 16px 20px !important; }
  .pg-compare:not(.pg-menu) #controls > div:nth-child(3) { grid-column: 1 / span 2; }
  .pg-compare:not(.pg-menu) #controls > .toggle-row { grid-column: 3; grid-row: 2; border: 0; min-height: 0; padding: 0; justify-content: flex-end; gap: 14px; }
  .pg-compare #list { gap: 16px !important; }
  .pg-compare .cmp { display: grid; grid-template-columns: 172px 1fr; gap: 0 24px; padding: 10px 24px 10px 10px; align-items: center; }
  .pg-compare .cmp .cimg { grid-row: 1 / span 2; height: 155px; border-radius: 14px; }
  .pg-compare .cmp > div:not(.cimg) { min-width: 0; }
  .pg-compare .cmp .top b { font-size: 22px; }
  .pg-compare .cmp .legend3 { grid-column: 2; }
  .pg-menu .pad { max-width: 1128px; }
  .pg-menu .pad { max-width: 1128px !important; }
  .pg-menu #controls { display: flex !important; flex-direction: column; gap: 18px !important; }
  .pg-menu #controls .seg { flex-wrap: wrap; border-radius: 26px; width: fit-content; max-width: 100%; }
  .pg-onb .pad { padding-top: 40px !important; }
  .pg-menu #list { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 20px !important; }
  .pg-menu #list > .card-outline, .pg-menu #list > .empty { grid-column: 1 / -1; }
  .pg-menu .menu-card.expanded { grid-column: 1 / -1; display: grid; grid-template-columns: 300px 1fr; gap: 10px 32px; align-items: start; }
  .pg-menu .menu-card.expanded > .media { grid-row: 1 / span 4; min-height: 212px !important; }
  .pg-menu .menu-card .media .pic img { width: 120px !important; height: 140px !important; }
  .pg-menu .menu-card .media .stats { width: 60px; }

  /* История */
  .pg-history .pad { max-width: 940px; }
  .pg-history h1 { text-align: center; }

  /* Настройки: боковое меню + контент */
  .pg-settings .pad { max-width: 1128px; }
  .pg-settings h1 { text-align: center; }
  .pg-settings .pad > .seg-label { display: none; }
  .pg-settings .set-grid { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 48px; justify-content: center; margin-top: 32px; }
  .pg-settings .set-tabs { flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0; border: 0; background: transparent; align-self: start; position: sticky; top: 110px; }
  .pg-settings .set-tabs button { justify-content: center; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; min-height: 48px; }
  .pg-settings .set-tabs button.on { background: transparent; color: var(--ink); border-bottom: 2px solid var(--ink); }
  .pg-settings #body { margin-top: 0 !important; }

  /* Анкета и вход */
  .pg-onb .pad, .pg-auth .pad { max-width: 740px; }
  .pg-onb .opts { grid-template-columns: repeat(4, 1fr); }
  .pg-onb .q-foot { position: static; background: none; max-width: 360px; }
  .pg-auth .pic { aspect-ratio: 2.4 / 1 !important; }

  /* Нижний лист → центрированное окно */
  .sheet { left: 50%; top: 50%; bottom: auto; width: min(560px, 92vw); max-height: 86vh; border-radius: 28px; transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: transform .22s, opacity .22s; }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
  .drawer { display: none; }
}
@media (min-width: 1024px) {
  .pg-auth .pad { max-width: 560px !important; padding-top: 40px !important; }
  .pg-history .pad { padding-top: 40px !important; }
}

.l-invite .input::placeholder { color: #8A6A58; opacity: 1; }

/* фото напитка вместо фото кофейни */
.drink-bg { background: radial-gradient(80% 80% at 50% 45%, var(--drink-a), var(--drink-b)) !important; display: flex; align-items: center; justify-content: center; }
.drink-bg img { width: auto !important; height: 82% !important; max-width: 90%; object-fit: contain !important; filter: drop-shadow(0 10px 14px rgba(59,26,12,.14)); }

/* ===== Баннер v2: многослойная сцена по макету «экраны/*.png» + анимация ===== */
.l-hero { position: relative; overflow: hidden; }
.l-hero .scene-wrap { display: none; }
.l-hero .word { position: relative; z-index: 1; }
.l-hero .word.in { animation: mWordIn .6s cubic-bezier(.2,.8,.2,1) both; }
.l-hero .stage { position: relative; height: 430px; margin-top: -70px; z-index: 2; pointer-events: none; }
.l-hero .stage .wave { position: absolute; left: -30%; width: 160%; bottom: 0; height: auto; filter: blur(2px); animation: mFade .7s ease both; }
.l-hero .stage .cup { position: absolute; left: 50%; bottom: 2%; height: 94%; width: auto; translate: -50% 0; filter: drop-shadow(0 24px 30px rgba(30,10,0,.22)); animation: mCupIn .75s cubic-bezier(.2,.8,.2,1) both; z-index: 1; }
.l-hero .stage[data-dir="prev"] .cup { animation-name: mCupInPrev; }
.l-hero .stage .fl { position: absolute; left: calc(50% + (var(--x) - 50%) * 2.3); top: calc((var(--y) - 28%) * 1.5); width: calc(var(--w) * 2); height: auto; translate: -50% -50%; rotate: var(--r); z-index: 2;
  animation: mPop .6s cubic-bezier(.2,.8,.2,1.2) var(--dl) both, mFloat var(--d) ease-in-out calc(var(--dl) + .6s) infinite alternate; filter: drop-shadow(0 10px 14px rgba(30,10,0,.18)); }
.l-hero .stage .fl.far { filter: blur(5px); opacity: .85; z-index: 0; }
.l-hero .fg-blur { display: none; }
.l-hero .promise { position: relative; z-index: 3; }
@keyframes mCupIn { from { translate: calc(-50% + 80px) 40px; scale: .9; opacity: 0; } to { translate: -50% 0; scale: 1; opacity: 1; } }
@keyframes mCupInPrev { from { translate: calc(-50% - 80px) 40px; scale: .9; opacity: 0; } to { translate: -50% 0; scale: 1; opacity: 1; } }
@keyframes mPop { from { scale: .3; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes mFloat { from { translate: -50% -50%; rotate: var(--r); } to { translate: -50% calc(-50% - 16px); rotate: calc(var(--r) + 8deg); } }
@keyframes mFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mWordIn { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .l-hero .stage *, .l-hero .word.in { animation: none !important; } }

@media (min-width: 1024px) {
  .l-hero { height: clamp(640px, 100svh, 1080px); }
  .l-hero .word { position: absolute; left: 0; right: 0; top: 15%; margin: 0; font-size: min(46vh, 36vw); line-height: .8; z-index: 1; }
  [data-theme="americano"] .l-hero .word, [data-theme="cappuccino"] .l-hero .word { font-size: min(46vh, 36vw); top: 15%; }
  .l-hero .stage { position: absolute; inset: 0; height: auto; margin: 0; }
  .l-hero .stage .wave { left: -4%; width: 108%; bottom: -2%; filter: blur(3px); }
  .l-hero .stage .cup { top: 27%; bottom: auto; height: 67%; }
  .l-hero .stage .fl { width: var(--w); left: var(--x); top: var(--y); }
  .l-hero .fg-blur { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: 2; pointer-events: none;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 55%); mask-image: linear-gradient(to bottom, transparent, #000 55%); }
  .l-hero .promise { position: absolute; inset: 0; z-index: 3; }
  .l-hero .promise h1 { left: 7.2%; top: 49%; width: 25%; font-size: clamp(28px, min(3.33vw, 5vh), 48px); }
  .l-hero .hero-cta { left: 7%; top: 68.5%; width: clamp(140px, 13.2vw, 190px); height: clamp(140px, 13.2vw, 190px);
    background: var(--hero-btn) !important; color: var(--hero-btn-ink) !important; border: 0 !important;
    box-shadow: 0 0 0 8px rgba(255,255,255,.18), 0 14px 30px rgba(40,10,0,.25); }
  .l-hero .hero-desc { left: auto; right: 6.4%; top: 54%; width: 28%; font-size: clamp(15px, min(1.53vw, 2.2vh), 22px); }
  .l-hero .rec-card { left: auto; right: 6.4%; top: 72.5%; width: 33.8%; }
  .l-arrows { left: 50%; top: 81%; translate: -50% 0; }
}

/* ===== Блоки «Меню+QR» и CTA под тему баннера ===== */
[data-theme="matcha"]    { --sec-outer: #838B40; --sec-inner: #AEB974; --cta-tint: rgba(64,80,20,.28); }
[data-theme="americano"] { --sec-outer: #3F0B01; --sec-inner: #512309; --cta-tint: rgba(40,8,0,.34); }
[data-theme="latte"]     { --sec-outer: #512309; --sec-inner: #E8BC89; --cta-tint: rgba(81,35,9,.26); }
[data-theme="cappuccino"]{ --sec-outer: #512309; --sec-inner: #F1BA6F; --cta-tint: rgba(81,35,9,.26); }
.l-invite .i-bg img { transition: opacity .4s; }
.l-invite .i-bg img.in { animation: mFade .6s ease both; }
/* блюр под текстом CTA — текст не сливается с фоном */
.l-invite .i-text { position: relative; z-index: 1; padding: 22px 24px; border-radius: 28px; background: var(--cta-tint, rgba(81,35,9,.26));
  backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); box-shadow: 0 10px 30px rgba(30,10,0,.12); }
.l-invite .i-text h2, .l-invite .i-text p { color: #fff; text-shadow: 0 1px 12px rgba(40,10,0,.25); }
.l-invite form { position: relative; z-index: 1; }
@media (max-width: 1023px) {
  .l-invite .inner { position: relative; overflow: hidden; }
  .l-invite .i-bg { position: absolute; inset: 0; z-index: 0; }
  .l-invite .i-bg img { width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
  .l-invite .inner > a { position: relative; z-index: 1; }
}
@media (min-width: 1024px) {
  .l-invite .inner::before { display: none; }
  .l-invite .i-text { margin-left: -24px; }
}

/* ===== Вход / регистрация (split-screen по макету) ===== */
.auth-split { min-height: 100svh; display: grid; grid-template-columns: 1fr; background: var(--bg); }
.auth-split .a-right { order: -1; height: 210px; background-size: cover; background-position: center 55%; }
.auth-split .a-left { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 16px 40px; }
.auth-split .a-logo { position: absolute; left: 20px; top: -190px; font-size: 36px; color: #fff; text-shadow: 0 2px 12px rgba(40,10,0,.3); }
.auth-split .a-card { width: 100%; max-width: 440px; margin-top: -36px; background: var(--card); border-radius: 24px; padding: 28px 22px; box-shadow: 0 20px 50px rgba(59,26,12,.10); position: relative; }
.a-card .a-mark { justify-content: center; font-size: 34px; }
.a-card .a-title { text-align: center; font-size: 17px; color: var(--ink); margin: 2px 0 22px; }
.a-form { display: flex; flex-direction: column; gap: 14px; }
.a-form .field > span { font-size: 13px; color: var(--ink); }
.a-form .input { min-height: 48px; border-radius: 12px; font-size: 15px; background: var(--card); }
.a-form .input::placeholder { color: #B9A89D; }
.a-form .pw { position: relative; }
.a-form .pw .input { width: 100%; padding-right: 46px; }
.a-form .eye { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 34px; height: 34px; border: 0; background: none; color: #9C8A7E; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.a-form .eye.on { color: var(--ink); }
.a-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-2); }
.a-row .check { display: inline-flex; gap: 8px; align-items: center; }
.a-row .check input { accent-color: #512309; width: 16px; height: 16px; }
.a-link { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.a-alt { text-align: center; font-size: 13px; color: var(--ink-2); margin: 4px 0 0; }
.a-alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; margin-left: 4px; }
.a-terms { font-size: 12px; line-height: 1.4; color: var(--ink-2); margin: 0; }
.a-submit { min-height: 52px; box-shadow: 0 0 0 5px rgba(242,138,58,.18), 0 10px 24px rgba(242,138,58,.35); }
@media (min-width: 1024px) {
  .auth-split { grid-template-columns: 1fr 1fr; height: 100svh; min-height: 640px; }
  .auth-split .a-right { order: 0; height: auto; background-position: center; }
  .auth-split .a-left { justify-content: center; padding: 40px; }
  .auth-split .a-logo { position: absolute; left: 22%; top: 48px; color: var(--ink); text-shadow: none; font-size: 40px; }
  .auth-split .a-card { margin-top: 0; max-width: 420px; padding: 34px 30px; border-radius: 28px; }
  .pg-auth .pad { padding: 0 !important; }
}

/* ===== История: компактные карточки ===== */
.fav-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 8px 0 26px; }
.fav-card { display: grid; grid-template-columns: 104px 1fr; gap: 16px; align-items: center; background: var(--card); border-radius: 26px; padding: 12px; box-shadow: 0 8px 24px rgba(59,26,12,.06); }
.fav-pic { width: 104px; height: 120px; border-radius: 18px; background: var(--beige); overflow: hidden; display: grid; place-items: center; }
.fav-pic img { width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 8px; }
.fav-pic.cafe img { object-fit: cover !important; padding: 0; }
.fav-pic svg { width: 80%; height: 80%; }
.fav-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.fav-info .eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.fav-info b { font: 600 18px/1.2 var(--font-body); color: var(--ink); }
.fav-info small { font-size: 13px; color: var(--ink-2); }
.fav-info .btn { margin-top: 8px; min-height: 38px; padding: 6px 16px; font-size: 14px; width: auto; }
.hist .pic { width: 66px !important; height: 76px !important; max-height: 76px; flex: none; }
.hist .pic img { object-fit: contain !important; padding: 4px; }
@media (min-width: 1024px) {
  .fav-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .fav-card { grid-template-columns: 132px 1fr; padding: 14px; }
  .fav-pic { width: 132px; height: 140px; }
  .hist { grid-template-columns: 76px 1fr auto; align-items: center; gap: 20px; }
  .hist .pic { width: 76px !important; height: 86px !important; max-height: 86px; }
  .hist .ha { grid-column: auto; margin-top: 0; }
  .hist .ha .btn { flex: none !important; min-width: 150px; }
}

/* ===== Меню аватара и страница профиля ===== */
.avatar { border: 0; cursor: pointer; font: 600 16px var(--font-body); }
.av-menu { position: absolute; z-index: 300; width: 240px; background: var(--card); border-radius: 20px; padding: 8px; box-shadow: 0 18px 50px rgba(40,15,0,.18); display: flex; flex-direction: column; animation: mFade .15s ease; }
.av-menu .av-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; display: flex; flex-direction: column; gap: 2px; }
.av-menu .av-head b { color: var(--ink); font-size: 15px; } .av-menu .av-head small { color: var(--ink-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.av-menu a { padding: 10px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; font-size: 15px; }
.av-menu a:hover { background: var(--soft); } .av-menu a.out { color: var(--bad-ink); }
.pf-head { display: flex; align-items: center; gap: 18px; margin: 32px 0 24px; flex-wrap: wrap; }
.pf-head h1 { margin: 0; } .pf-head p { margin: 4px 0 0; color: var(--ink-2); }
.pf-ava { width: 72px; height: 72px; border-radius: 50%; background: #512309; color: #fff; display: grid; place-items: center; font: 600 30px var(--font-head); }
.pf-edit { margin-left: auto; width: auto; }
.pf-grid { display: grid; gap: 16px; }
.pf-card { background: var(--card); border-radius: 26px; padding: 22px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.pf-card h3 { margin: 0; font: 600 20px var(--font-head); color: var(--ink); }
.pf-card .btn { width: auto; }
.pf-drinks { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-drinks span { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 999px; padding: 4px 12px 4px 4px; font-size: 14px; color: var(--ink); }
.pf-drinks img { width: 28px; height: 28px; object-fit: contain; background: var(--card); border-radius: 50%; }
.pf-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 14px; } .pf-dl dt { color: var(--ink-2); } .pf-dl dd { margin: 0; color: var(--ink); }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.pf-stats div { background: var(--soft); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.pf-stats b { font: 600 20px var(--font-num); color: var(--ink); } .pf-stats small { font-size: 12px; color: var(--ink-2); }
.pf-links a { color: var(--ink); text-decoration: none; font-size: 15px; } .pf-links a.out { color: #B4441A; margin-top: 6px; }
@media (min-width: 1024px) { .pg-profile .pad { max-width: 1128px; } .pf-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
/* настройки: вкус и бюджет по макету */
.set-h { font: 600 19px var(--font-head); color: var(--ink); margin: 24px 0 10px; }
.set-drinks { grid-template-columns: repeat(2, 1fr); }
.set-drinks .opt.drink img { height: 72px; }
.opt.on { border-color: var(--ink) !important; box-shadow: inset 0 0 0 1px var(--ink); background: var(--soft-2); }
.set-3 { grid-template-columns: repeat(2, 1fr); } .set-4 { grid-template-columns: repeat(2, 1fr); }
.set-4 .opt span { font: 600 18px var(--font-num); }
.set-more { margin-top: 24px; background: var(--card); border-radius: 22px; padding: 14px 18px; }
.set-more summary { cursor: pointer; font-weight: 600; color: var(--ink); }
@media (min-width: 1024px) { .set-drinks { grid-template-columns: repeat(5, 1fr); } .set-3 { grid-template-columns: repeat(3, 1fr); } .set-4 { grid-template-columns: repeat(4, 1fr); } }

.l-invite .field > span { display: none; }
/* напиток по слоям и QR — под тему баннера */
@media (min-width: 1024px) {
}
.l-well .portions.in { animation: mFade .5s ease both; }

/* телефон: без тяжёлых фильтров (iOS Safari рисует drop-shadow/blur прямоугольником), сцена шире экрана не вылезает */
@media (max-width: 1023px) {
  .l-hero .stage { height: min(112vw, 460px); margin-top: -64px; overflow: hidden; }
  .l-hero .stage .cup { filter: none; height: 92%; bottom: 3%; }
  .l-hero .stage .wave { filter: none; left: -40%; width: 180%; bottom: -6%; }
  .l-hero .stage .fl { filter: none; }
  .l-hero .stage .fl.far { filter: none; opacity: .55; }
}
.l-hero .stage .wave, .l-hero .stage .cup, .l-hero .stage .fl { max-width: none; }

/* ===== Новый логотип (SVG от дизайнера) ===== */
.logo { font-size: 0 !important; color: transparent !important; line-height: 0 !important; padding: 0 !important; letter-spacing: 0;
  width: 69px; height: 24px; flex: none; background: url('../img/logo-brown.svg') no-repeat left center / contain; }
.topbar.on-hero .logo { background-image: var(--hero-logo, url('../img/logo-white.svg')); }
.footer .logo { width: 114px; height: 40px; }
.a-card .a-mark, .logo.center { width: 114px; height: 40px; margin: 0 auto; background-position: center; }
.auth-split .a-logo { width: 114px; height: 40px; }
@media (max-width: 1023px) { .auth-split .a-logo { background-image: url('../img/logo-white.svg'); } }
@media (min-width: 1024px) { .logo { width: 87px; height: 31px; } .auth-split .a-logo { width: 136px; height: 48px; } }
/* «Сегодня»: название напитка над фото, не под ним */
.today-hero > .word { position: relative; z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: clip; max-width: 100%; }
@media (min-width: 1024px) {
  .pg-today .today-hero > .word { grid-row: 1; font-size: clamp(56px, 8.4vw, 136px); margin: 4px 0 0; line-height: .9; }
  .pg-today .today-hero > .art { grid-row: 2 / span 11; height: 380px; align-self: start; }
  .pg-today .today-hero > .art img, .pg-today .today-hero > .art svg { height: 380px !important; max-height: 380px; }
}
/* анкета/настройки: фото напитков ровно по центру карточки, одинаковая высота */
.opt.drink { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 10px 14px; min-height: 150px; overflow: visible; }
.opt.drink img { display: block; height: 104px !important; width: 100% !important; max-width: 120px; object-fit: contain; object-position: center bottom; margin: 0 auto; flex: none; }
.opt.drink svg { height: 104px; width: auto; }
@media (min-width: 1024px) { .opt.drink { min-height: 196px; padding: 22px 12px 18px; } .opt.drink img { height: 132px !important; max-width: 150px; } }

/* ===== Производительность ===== */
.l-hero.paused .stage *, .l-hero.paused .word { animation-play-state: paused !important; }
.l-hero .stage .fl, .l-hero .stage .cup { will-change: transform; backface-visibility: hidden; }
@media (max-width: 1023px) { .fg-blur, .l-invite .i-text { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; } }

/* ===== Планшеты 600–1023: на всю ширину, а не «телефон по центру» ===== */
@media (min-width: 600px) and (max-width: 1023px) {
  body { padding: 0 !important; }
  .app { max-width: none !important; border-radius: 0 !important; box-shadow: none !important; min-height: 100vh; }
  .pad { max-width: 720px; margin: 0 auto; padding: 0 24px; }
  .topbar { padding-left: max(24px, calc((100% - 720px) / 2)) !important; padding-right: max(24px, calc((100% - 720px) / 2)) !important; }
  .l-hero .promise { max-width: 720px; margin: 0 auto; width: 100%; padding-left: 24px; padding-right: 24px; }
  .l-hero .stage { height: min(80vw, 620px); }
  .l-how, .l-compare, .l-well { max-width: 768px; margin-left: auto; margin-right: auto; }
  .offers, .steps { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; }
  .opts { grid-template-columns: repeat(4, 1fr); }
  .today-hero .art { height: 360px; }
  .today-hero .rec .btn { max-width: 420px; }
}
/* ноутбуки 1024–1279: поля по краям, баннер без наложений */
@media (min-width: 1024px) and (max-width: 1279px) {
  .pad { padding-left: 32px !important; padding-right: 32px !important; }
  .l-arrows { left: 36% !important; }
  .l-hero .rec-card { min-width: 0 !important; width: 42% !important; right: 3% !important; }
  .l-hero .hero-desc { width: 32% !important; right: 3% !important; }
}
@media (max-width: 1023px) {
}
@media (max-width: 1023px) {
}

/* =====================================================================
   Движение v3: появление, параллакс, микровзаимодействия
   ===================================================================== */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* переход между экранами */
.view { animation: viewIn .5s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* появление при прокрутке — «лесенкой» внутри группы */
.motion .rv { opacity: 0; transform: translateY(22px) scale(.985); transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--rv-d, 0ms); }
.motion .rv.rv-in { opacity: 1; transform: none; }

/* шапка: при прокрутке — компактнее, стекло */
.topbar { transition: height .35s var(--ease-out), background-color .35s, box-shadow .35s; }
.topbar.scrolled:not(.on-hero) { background: rgba(247, 246, 243, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 6px 24px rgba(59, 26, 12, .06); }
@media (min-width: 1024px) { .topbar.scrolled:not(.on-hero) { height: 68px; } }
.view:not(#land) .topbar { position: sticky; top: 0; z-index: 30; }

/* полоска прогресса прокрутки */
.scroll-bar { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #F28A3A, #E8BC89); pointer-events: none; }

/* кнопки: нажатие пружинит, главные тянутся к курсору */
.btn { transition: background-color .2s, color .2s, border-color .2s, box-shadow .3s, transform .25s var(--ease-spring), translate .35s var(--ease-out); translate: var(--mx, 0) var(--my, 0); }
.btn:active { transform: scale(.96); }
.btn-accent:hover { box-shadow: 0 10px 26px rgba(242, 138, 58, .35); }
.hero-cta { transition: translate .45s var(--ease-out), transform .3s var(--ease-spring), box-shadow .3s !important; translate: var(--mx, 0) var(--my, 0); }
.hero-cta:hover { transform: scale(1.06) !important; }
.l-arrows button { transition: background .2s, transform .25s var(--ease-spring), translate .35s var(--ease-out) !important; translate: var(--mx, 0) var(--my, 0); }
.l-arrows button:hover { transform: scale(1.08); }
.l-arrows button:active { transform: scale(.92); }

/* индикатор автосмены вкуса */
.l-arrows { position: relative; }
.l-arrows .ap { position: absolute; left: 50%; bottom: -14px; width: 56px; height: 3px; margin-left: -28px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.l-arrows .ap::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.l-arrows .ap.run::after { animation: apRun 7s linear forwards; }
.l-hero.hold .l-arrows .ap::after, .l-hero.paused .l-arrows .ap::after { animation-play-state: paused; }
@keyframes apRun { to { transform: scaleX(1); } }

/* слово баннера — буквы поднимаются по очереди */
.l-hero .word .ch { display: inline-block; animation: chIn .9s var(--ease-out) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes chIn { from { opacity: 0; transform: translateY(.35em) rotate(4deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
.l-hero .word.in { animation: none; }

/* параллакс сцены за курсором */
.l-hero .stage .cup { transform: translate3d(calc(var(--px, 0) * -22px), calc(var(--py, 0) * -14px), 0); }
.l-hero .stage .fl { transform: translate3d(calc(var(--px, 0) * 46px), calc(var(--py, 0) * 32px), 0); }
.l-hero .stage .fl.far { transform: translate3d(calc(var(--px, 0) * 18px), calc(var(--py, 0) * 12px), 0); }
.l-hero .stage .wave { transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 6px), 0); }
.l-hero .word { transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 8px), 0); }
/* мягкое «дыхание» стакана */
.l-hero .stage .cup { animation: mCupIn .75s var(--ease-out) both, cupBreath 6s ease-in-out .9s infinite alternate; }
.l-hero .stage[data-dir="prev"] .cup { animation: mCupInPrev .75s var(--ease-out) both, cupBreath 6s ease-in-out .9s infinite alternate; }
@keyframes cupBreath { from { scale: 1; } to { scale: 1.018; } }

/* карточка рекомендации на баннере — мягкая смена */
.rec-card.swap .rec, .rec-card.swap .top img { animation: recSwap .6s var(--ease-out) both; }
.rec-card.swap .top img { animation-delay: .05s; }
@keyframes recSwap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* карточки: подъём при наведении, фото чуть приближается */
@media (hover: hover) {
  .shop, .cmp, .menu-card, .fav-card, .pf-card, .opt, .step, .hist { transition: translate .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .2s; }
  .shop:hover, .cmp:hover, .menu-card:hover, .fav-card:hover, .pf-card:hover { translate: 0 -6px; box-shadow: 0 22px 44px rgba(59, 26, 12, .13); }
  .opt:hover, .step:hover { translate: 0 -3px; }
  .shop .photo img, .cmp .cimg img, .menu-card .media img, .fav-pic img, .drink-bg img { transition: transform .7s var(--ease-out); }
  .shop:hover .photo img, .cmp:hover .cimg img, .menu-card:hover .media img, .fav-card:hover .fav-pic img, .shop:hover .drink-bg img { transform: scale(1.06) translateY(-4px); }
}

/* выбор в анкете — пружинка */
.opt { transition: transform .25s var(--ease-spring), border-color .2s, background .2s, box-shadow .2s, translate .4s var(--ease-out); }
.opt:active { transform: scale(.96); }
.opt.on { animation: optOn .45s var(--ease-spring); }
@keyframes optOn { 40% { transform: scale(1.04); } }

/* «Сегодня»: напиток парит, чипы появляются по очереди */
.today-hero > .art img { animation: artIn .9s var(--ease-out) both, artFloat 7s ease-in-out 1s infinite alternate; }
@keyframes artIn { from { opacity: 0; transform: translateY(30px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes artFloat { from { translate: 0 0; } to { translate: 0 -10px; } }
.today-hero .metas > * { animation: chipIn .5s var(--ease-out) both; }
.today-hero .metas > *:nth-child(2) { animation-delay: .06s; } .today-hero .metas > *:nth-child(3) { animation-delay: .12s; }
.today-hero .metas > *:nth-child(4) { animation-delay: .18s; } .today-hero .metas > *:nth-child(n+5) { animation-delay: .24s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(8px) scale(.95); } to { opacity: 1; transform: none; } }

/* листы и тосты — пружина */
.sheet { transition: transform .5s var(--ease-out), opacity .3s !important; }
.sheet-backdrop { transition: opacity .3s, backdrop-filter .3s; }
.sheet-backdrop.open { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.toast { transition: opacity .25s, transform .45s var(--ease-spring) !important; }

/* скелетоны — мягче */
.skel { background: linear-gradient(100deg, var(--skel-a) 30%, var(--skel-b) 50%, var(--skel-a) 70%); background-size: 220% 100%; animation: sk 1.4s ease-in-out infinite; }

/* заставка при загрузке */
.boot { display: grid; place-items: center; height: 80vh; }
.boot img { width: 120px; animation: bootPulse 1.4s ease-in-out infinite; }
@keyframes bootPulse { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: 1; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .motion .rv { opacity: 1 !important; transform: none !important; }
  .l-hero .stage *, .l-hero .word, .today-hero * { transform: none !important; }
}
@media (max-width: 1023px) { @keyframes chIn { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } } }
/* overflow: clip не создаёт контейнер прокрутки — шапка «липнет» и на телефоне */
.app { overflow-x: clip !important; }
@media (max-width: 1023px) { .view:not(#land) .topbar { position: sticky; top: 0; z-index: 30; } .topbar.scrolled:not(.on-hero) { height: 60px; } }

/* =====================================================================
   Симметрия карточек: одна высота в ряду, кнопка всегда внизу
   ===================================================================== */
.menu-card { height: 100%; }
.menu-card .media { position: relative; }
.menu-card .media.no-stats { justify-content: center; }
.menu-card .media .stats.one { justify-content: flex-start; }
.menu-card .media .stats.one div { flex: 0 1 50%; }
.menu-card .mc-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.menu-card .mc-body .dn { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; min-height: 2.2em; }
.menu-card .mc-body .dd { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.menu-card > .btn-order { margin-top: auto; }

/* =====================================================================
   Страницы «О проекте» и «Для кофеен»
   ===================================================================== */
.pg-eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.pg-eyebrow::before { content: ''; width: 18px; height: 1.5px; border-radius: 2px; background: currentColor; }
.pg-lead { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.55; }
.pg-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.pg-cta .btn { flex: 1 1 200px; max-width: 280px; }
.btn-glass { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .45); color: inherit; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-hero-light { background: #fff; border-color: #fff; color: #3A170A; }
.btn-hero-light:hover { background: #FFF4E5; }

.pg-sec { max-width: 1180px; margin: 0 auto; padding: 56px 20px 0; }
.pg-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pg-head h2 { font: 700 36px/1.02 var(--font-head); color: var(--ink); text-wrap: balance; }
.pg-head p { margin: 0; max-width: 640px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.pg-ico { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--beige-2); color: var(--accent); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.pg-chips span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; color: var(--ink); }

/* карточки: одинаковая высота в ряду */
.why-grid, .plus-grid, .who-grid, .pc-grid, .pr-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.why, .plus { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.why h3, .plus h3 { margin-top: 6px; font: 600 24px/1.05 var(--font-head); color: var(--ink); }
.why p, .plus p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (hover: hover) {
  .why:hover, .plus:hover, .who:hover, .pc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(59, 26, 12, .08); }
}

/* --- О проекте: баннер --- */
.ab-hero { position: relative; isolation: isolate; overflow: hidden; margin: 12px; border-radius: 32px; color: #3A170A; background: radial-gradient(120% 100% at 85% 12%, #F6D6AA 0%, #E8BC89 42%, #D49A62 100%); }
.ab-word { position: absolute; left: 50%; bottom: -.1em; z-index: -1; transform: translateX(-50%); font: 800 clamp(140px, 36vw, 470px)/.8 var(--font-head); letter-spacing: -.02em; color: rgba(255, 255, 255, .3); white-space: nowrap; pointer-events: none; }
.ab-in { display: grid; gap: 4px; padding: 36px 22px 0; }
.ab-copy { display: flex; flex-direction: column; gap: 18px; }
.ab-copy h1 { font: 700 clamp(42px, 10.5vw, 78px)/.94 var(--font-head); color: #2A0F05; text-wrap: balance; }
.ab-hero .pg-eyebrow { color: #7A3A14; }
.ab-hero .pg-lead { color: rgba(42, 15, 5, .82); }
.ab-hero .btn-glass { border-color: rgba(58, 23, 10, .3); background: rgba(255, 255, 255, .32); color: #3A170A; }
.ab-cups { position: relative; height: 320px; display: flex; justify-content: center; align-items: flex-end; }
.ab-cups .cup { position: relative; height: 88%; width: auto; margin: 0 -7%; filter: drop-shadow(0 18px 22px rgba(58, 23, 10, .22));
  translate: calc(var(--px, 0) * var(--dz, 14px)) calc(var(--py, 0) * var(--dz, 14px)); animation: abFloat 6.5s ease-in-out infinite; }
.ab-cups .c0 { height: 70%; rotate: -12deg; --dz: 8px; animation-delay: -1s; }
.ab-cups .c1 { height: 82%; rotate: -5deg; z-index: 1; --dz: 12px; animation-delay: -3s; }
.ab-cups .c2 { height: 96%; z-index: 2; --dz: 18px; }
.ab-cups .c3 { height: 76%; rotate: 9deg; z-index: 1; --dz: 10px; animation-delay: -2s; }
.ab-cups .fl { position: absolute; width: 9%; height: auto; filter: drop-shadow(0 8px 10px rgba(58, 23, 10, .2)); animation: abSpin 9s ease-in-out infinite; }
.ab-cups .f0 { left: 4%; top: 18%; } .ab-cups .f1 { right: 6%; top: 8%; animation-delay: -3s; } .ab-cups .f2 { right: 18%; bottom: 52%; width: 7%; animation-delay: -6s; }
@keyframes abFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes abSpin { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(18deg); } }

.ab-stats { max-width: 1180px; margin: 12px auto 0; padding: 0 12px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ab-stats .st { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.ab-stats b { font: 600 34px/1 var(--font-num); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ab-stats span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }

.sp-box { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 14px; }
.sp-row { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.sp-n { color: var(--ink); }
.sp-track { position: relative; height: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); }
.sp-track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, #9DB65A, #F28A3A); }
.sp-v { font-weight: 500; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-note { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }

/* для кого */
.who { height: 100%; display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); color: inherit; text-decoration: none; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.who-pic { flex: none; width: 96px; height: 120px; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: var(--beige); }
.who-pic img { width: auto; height: 90%; object-fit: contain; }
.who-txt { display: flex; flex-direction: column; min-width: 0; }
.who h3 { font: 600 22px/1.05 var(--font-head); color: inherit; }
.who p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.who-b2b { border-color: var(--dark); background: var(--dark); color: #FBF4E8; }
.who-b2b p { color: rgba(251, 244, 232, .74); }
.who-b2b .who-pic { background: rgba(255, 255, 255, .1); }
.who-go { margin-top: 10px; font-size: 14px; font-weight: 500; color: #F2A65E; }

/* шаги */
.pg-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.pg-steps li { position: relative; counter-increment: st; padding: 22px 22px 22px 78px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.pg-steps li::before { content: counter(st); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font: 600 18px/1 var(--font-num); }
.pg-steps b { display: block; font: 600 22px/1.1 var(--font-head); color: var(--ink); }
.pg-steps p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* принципы */
.ab-principles { margin: 56px 12px 0; padding: 48px 22px; border-radius: 32px; background: var(--dark); color: #FBF4E8; }
.ab-principles .pg-head { max-width: 1180px; margin: 0 auto 28px; }
.ab-principles .pg-head h2 { color: #FBF4E8; }
.ab-principles .pg-eyebrow { color: #E8BC89; }
.pr-grid { max-width: 1180px; margin: 0 auto; gap: 26px; }
.pr-grid article { padding-top: 18px; border-top: 1px solid rgba(251, 244, 232, .2); }
.pr-grid .n { font: 500 14px/1 var(--font-num); color: #E8BC89; }
.pr-grid h3 { margin-top: 12px; font: 600 24px/1.05 var(--font-head); color: #fff; }
.pr-grid p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: rgba(251, 244, 232, .72); }

/* финальный призыв */
.pg-final { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 380px; margin: 56px 12px 0; border-radius: 32px; color: #fff; }
.pg-final > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pg-final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42, 15, 5, 0) 10%, rgba(42, 15, 5, .78) 100%); }
.pg-final-in { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 24px; }
.pg-final h2 { max-width: 640px; font: 700 clamp(34px, 7vw, 60px)/.98 var(--font-head); color: #fff; text-wrap: balance; }
.pg-final p { margin: 0; font-size: 16px; line-height: 1.5; opacity: .9; }

/* --- Для кофеен: баннер --- */
.pt-hero { margin: 12px; overflow: hidden; border-radius: 32px; color: #FBF4E8; background: radial-gradient(110% 120% at 92% 0%, #6B341A 0%, #3B1A0C 55%, #2A0F05 100%); }
.pt-in { display: grid; gap: 32px; padding: 36px 22px 32px; }
.pt-copy { display: flex; flex-direction: column; gap: 18px; }
.pt-copy h1 { font: 700 clamp(40px, 9.5vw, 74px)/.95 var(--font-head); color: #fff; text-wrap: balance; }
.pt-hero .pg-eyebrow { color: #F2A65E; }
.pt-hero .pg-lead { color: rgba(251, 244, 232, .82); }
.pt-visual { position: relative; justify-self: center; width: 100%; max-width: 460px; aspect-ratio: 1 / 1.05; }
.pt-photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.pt-order { position: absolute; left: -3%; bottom: 7%; width: 74%; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 20px 40px rgba(0, 0, 0, .28); animation: ptFloat 6s ease-in-out infinite; }
.po-top { display: flex; align-items: center; gap: 12px; }
.po-top b { font: 700 30px/1 var(--font-head); color: var(--accent-text); }
.po-top span { font-size: 13px; line-height: 1.3; }
.po-steps { display: flex; gap: 6px; margin-top: 12px; }
.po-steps i { flex: 1; padding: 6px 0; border-radius: 999px; background: var(--bg); color: var(--ink-3); font-size: 11px; font-style: normal; text-align: center; }
.po-steps i.on { background: var(--ok-bg); color: var(--ok-ink); }
.pt-badge { position: absolute; right: -3%; top: 7%; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: #fff; color: var(--ok-ink); font-size: 13px; font-weight: 500; box-shadow: 0 14px 30px rgba(0, 0, 0, .24); animation: ptFloat 7s ease-in-out -2s infinite; }
.pt-badge svg { width: 18px; height: 18px; }
@keyframes ptFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* города */
.pt-cities { max-width: 1180px; margin: 0 auto; padding: 44px 20px 0; }
.pc-head h2 { font: 700 30px/1.05 var(--font-head); color: var(--ink); }
.pc-head p { max-width: 640px; margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pc-grid { margin-top: 20px; gap: 12px; }
.pc { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.pc.cur { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pc-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; }
.pc-top b { font: 600 24px/1 var(--font-head); color: var(--ink); }
.pc-top span { font-size: 13px; color: var(--ink-2); }
.pc-bar { height: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); }
.pc-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #9DB65A, #5C7A3E); }
.pc p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pc p b { font-weight: 600; color: var(--ink); }

/* сравнение: каталог / партнёр */
.cmp-table { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--card); }
.cmp-row { display: grid; grid-template-columns: 1fr 88px 88px; align-items: center; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--ink); }
.cmp-row:first-child { border-top: 0; }
.cmp-row > span:not(:first-child) { justify-self: center; text-align: center; }
.cmp-h { background: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.cmp-h .cmp-p { color: var(--accent-text); }
.cmp-yes { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); font-weight: 700; }
.cmp-no { color: var(--ink-3); }
.cmp-txt { display: block; font-size: 12px; line-height: 1.25; color: var(--ink-2); }

/* какие данные нужны */
.need-grid { display: grid; gap: 16px; }
.need-grid > * { min-width: 0; }
.need-list { display: flex; flex-direction: column; gap: 14px; }
.need-g { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.need-t { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.need-t.nt-req { background: var(--dark); color: #FBF4E8; }
.need-t.nt-nice { background: var(--beige); color: var(--ink); }
.need-t.nt-opt { border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); }
.need-g ul { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.need-g li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.need-g li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.need-tpl { display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 28px; background: var(--dark); color: #FBF4E8; }
.tpl-head { display: flex; align-items: center; gap: 12px; }
.tpl-head svg { flex: none; color: #F2A65E; }
.tpl-head b { display: block; font: 600 22px/1.1 var(--font-head); color: #fff; }
.tpl-head small { font-size: 13px; color: rgba(251, 244, 232, .7); }
.tpl-scroll { overflow-x: auto; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .05); -webkit-overflow-scrolling: touch; }
.tpl-t { min-width: 100%; border-collapse: collapse; font: 12px/1.3 'JetBrains Mono', ui-monospace, monospace; white-space: nowrap; }
.tpl-t th, .tpl-t td { padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.tpl-t th { background: rgba(255, 255, 255, .04); color: #F2A65E; font-weight: 500; }
.tpl-t td { color: rgba(251, 244, 232, .88); }
.tpl-t tr:last-child td { border-bottom: 0; }
.tpl-how { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tpl-how li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: rgba(251, 244, 232, .82); }
.tpl-how li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: #F2A65E; }
.tpl-how code { padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); font: 12px 'JetBrains Mono', ui-monospace, monospace; color: #F2A65E; }
.tpl-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; }
.tpl-foot span { flex: 1; min-width: 200px; font-size: 13px; line-height: 1.45; color: rgba(251, 244, 232, .72); }

/* заявка */
.lead-card { display: grid; overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: var(--card); }
.lead-copy { display: flex; flex-direction: column; gap: 12px; padding: 28px 22px 0; }
.lead-copy h2 { font: 700 36px/1 var(--font-head); color: var(--ink); }
.lead-copy p { margin: 0; line-height: 1.5; color: var(--ink-2); }
.lead-copy img { display: none; }
.lead-form { display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.lead-2 { display: grid; gap: 14px; }
.lead-form textarea.input { height: auto; min-height: 96px; padding-top: 12px; padding-bottom: 12px; line-height: 1.45; resize: vertical; }
.lead-form select.input { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23512309' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-note { margin: 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.lead-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 40px 24px; }
.lead-done .ok { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); }
.lead-done h3 { font: 700 30px/1 var(--font-head); color: var(--ink); }
.lead-done p { margin: 0; line-height: 1.5; color: var(--ink-2); }

/* вопросы */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { padding: 0 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { position: relative; padding: 18px 40px 18px 0; list-style: none; cursor: pointer; font: 500 17px/1.35 var(--font-body); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); font-size: 18px; transform: translateY(-50%); transition: transform .35s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pg-about .footer, .pg-partners .footer { margin-top: 56px; }

/* планшет */
@media (min-width: 600px) {
  .why-grid, .plus-grid, .who-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-grid { grid-template-columns: repeat(3, 1fr); }
  .pr-grid { grid-template-columns: repeat(2, 1fr); }
  .ab-stats { grid-template-columns: repeat(4, 1fr); }
  .lead-2 { grid-template-columns: 1fr 1fr; }
  .cmp-row { grid-template-columns: 1fr 150px 150px; padding: 16px 22px; }
  .ab-cups { height: 400px; }
  .pg-sec, .pt-cities { padding-left: 32px; padding-right: 32px; }
  .ab-in, .pt-in { padding-left: 36px; padding-right: 36px; }
  .who-grid .who { flex-direction: column; align-items: stretch; }
  .who-grid .who-pic { width: 100%; height: 190px; }
  .who-txt { flex: 1; }
  .who-go { margin-top: auto; padding-top: 12px; }
}

/* десктоп */
@media (min-width: 1024px) {
  .ab-hero, .pt-hero { margin: 16px 24px 0; border-radius: 40px; }
  .ab-in { grid-template-columns: 1.05fr 1fr; align-items: center; min-height: 600px; padding: 56px 64px 0; }
  .ab-copy { padding-bottom: 56px; }
  .ab-cups { height: 560px; align-self: end; }
  .ab-stats { margin-top: 16px; padding: 0 24px; gap: 16px; }
  .ab-stats .st { padding: 26px 28px; }
  .ab-stats b { font-size: 46px; }
  .pg-sec { padding: 96px 24px 0; }
  .pg-head { margin-bottom: 40px; }
  .pg-head h2 { font-size: 52px; }
  .why-grid, .plus-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .who-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .why, .plus { padding: 30px; }
  .pg-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pg-steps.four { grid-template-columns: repeat(4, 1fr); }
  .pg-steps li { padding: 84px 26px 28px; }
  .pg-steps li::before { left: 26px; top: 26px; }
  .pg-steps li:not(:last-child)::after { content: ''; position: absolute; top: 46px; left: 80px; right: -21px; border-top: 1.5px dashed var(--line-2); }
  .ab-principles { margin: 96px 24px 0; padding: 80px 64px; border-radius: 40px; }
  .pr-grid { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .pg-final { min-height: 460px; margin: 96px 24px 0; border-radius: 40px; }
  .pg-final-in { padding: 56px 64px; }
  .pt-in { grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 600px; padding: 64px; }
  .pt-cities { padding: 64px 24px 0; }
  .pc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
  .pc-head h2 { font-size: 40px; }
  .pc-head p { margin: 0; max-width: 520px; text-align: right; }
  .cmp-row { grid-template-columns: 1fr 220px 220px; padding: 18px 32px; font-size: 16px; }
  .cmp-h { font-size: 12px; }
  .need-grid { grid-template-columns: 380px 1fr; gap: 20px; align-items: stretch; }
  .need-tpl { padding: 28px; }
  .lead-card { grid-template-columns: .9fr 1.1fr; border-radius: 40px; }
  .lead-copy { padding: 48px; background: var(--beige-2); }
  .lead-copy h2 { font-size: 52px; }
  .lead-copy img { display: block; width: 100%; height: 260px; margin-top: auto; object-fit: cover; border-radius: 24px; }
  .lead-form { padding: 48px; }
  .faq summary { font-size: 19px; padding: 22px 48px 22px 0; }
  .faq details { padding: 0 28px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .topbar .row:first-child { gap: 24px !important; }
  .view:not(#land) .top-nav a, .top-nav a { padding: 10px 12px; font-size: 15px; }
  .ab-in, .pt-in { padding-left: 44px; padding-right: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ab-cups .cup, .ab-cups .fl, .pt-order, .pt-badge { animation: none !important; }
}

/* Карточки в ряду: заголовки, тексты и нижние элементы на одной линии (subgrid) */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 600px) {
    .why-grid, .plus-grid { row-gap: 20px; }
    .why { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; height: auto; }
    .plus { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 12px; height: auto; }
    .why > .sp-box, .why > .pg-chips { margin-top: 0; align-self: end; }
    .who-grid { row-gap: 20px; }
    .who-grid .who { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 8px; height: auto; }
    .who-grid .who-txt { display: contents; }
    .who-grid .who-pic { margin-bottom: 8px; }
    .who-grid .who h3, .who-grid .who p, .who-grid .who-go { margin: 0; padding: 0 6px; }
    .who-grid .who-go { align-self: end; padding-bottom: 6px; }
    .pr-grid { row-gap: 32px; }
    .pr-grid article { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
    .pg-steps li { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 6px; }
    .pg-steps li p { margin: 0; }
  }
}
.po-top b { white-space: nowrap; }
@media (max-width: 599px) {
  .pg-cta .btn { flex-basis: 100%; max-width: none; }
}
@media (max-width: 1023px) {
  .footer { flex-direction: column; align-items: center; text-align: center; }
  .footer nav { justify-content: center; }
}
/* планшет: нечётная последняя карточка — во всю ширину, без «дыры» справа */
@media (min-width: 600px) and (max-width: 1023px) {
  .why-grid > .why:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* =====================================================================
   Тёмная тема: <html data-scheme="dark">. Ставится скриптом в <head> до отрисовки
   (выбор «как в системе / светлая / тёмная» — js/theme.js)
   ===================================================================== */
:root { color-scheme: light; }
:root[data-scheme="dark"] {
  color-scheme: dark;
  --bg: #15100D;
  --outer: #0F0B09;
  --card: #1F1814;
  --card-2: #1F1814;
  --ink: #F4E9DC;
  --ink-2: #C9B6A4;
  --ink-3: #B4A08F;
  --accent-text: #F2A65E;
  --line: #3A2E26;
  --line-2: #57463B;
  --accent: #F28A3A;
  --accent-press: #FF9A4D;
  --beige: #2C221C;
  --beige-2: #2A1F18;
  --soft: #2A211B;
  --soft-2: #2A1F18;
  --today: #231A14;
  --ok-bg: #1E2A16;
  --ok-ink: #A8C97A;
  --warn-bg: #36230F;
  --warn-ink: #F3B172;
  --bad-bg: #3B1913;
  --bad-ink: #F39C88;
  --dark-chip: #F4E9DC;
  --inv-ink: #1A120D;
  --title: #F4E9DC;
  --stat-ink: rgba(244, 233, 220, .92);
  --stat-ink-2: rgba(244, 233, 220, .66);
  --dark: #261B15;
  --side: #1F1814;
  --glass: rgba(255, 255, 255, .07);
  --glass-2: rgba(255, 255, 255, .06);
  --flag: rgba(21, 16, 13, .72);
  --skel-a: #221A15;
  --skel-b: #2D231D;
  --drink-a: #2E241D;
  --drink-b: #221A15;
  --bar-bg: rgba(21, 16, 13, .86);
  --track: #2D231D;
  --lane: #1A1410;
  --login-glow: #3A2316;
  --shadow: 0 6px 18px rgba(0, 0, 0, .35);
  --shadow-up: 0 -8px 32px rgba(0, 0, 0, .5);
}
/* плавная смена темы только в момент переключения */
html.theme-switch, html.theme-switch *, html.theme-switch *::before, html.theme-switch *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}

/* кнопка луна/солнце в шапке */
.theme-btn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; transition: background .2s, transform .3s var(--ease-out, ease); }
.theme-btn:hover { background: var(--soft); }
.theme-btn:active { transform: scale(.92); }
.topbar.on-hero .theme-btn { border-color: var(--hero-line); }
.topbar.on-hero .theme-btn:hover { background: rgba(255, 255, 255, .14); }
[data-theme-toggle] .i-sun, [data-scheme="dark"] [data-theme-toggle] .i-moon { display: none; }
[data-scheme="dark"] [data-theme-toggle] .i-sun { display: block; }
@media (min-width: 1024px) { .theme-btn { width: 51px; height: 51px; } }
.theme-seg { width: 100%; }
.theme-seg button { flex: 1 1 0; }
.drawer .theme-seg button { min-height: 38px; padding: 8px 6px; font-size: 13px; }

/* --- тёмная тема: точечные правки --- */
[data-scheme="dark"] .logo { background-image: url('../img/logo-white.svg'); }
[data-scheme="dark"] img[src$="logo-brown.svg"] { content: url('/static/img/logo-white.svg'); }
[data-scheme="dark"] .topbar .btn-outline, [data-scheme="dark"] .topbar .avatar, [data-scheme="dark"] .city-btn { border-color: var(--line-2); }
[data-scheme="dark"] .topbar.on-hero .btn-outline { border-color: var(--hero-line); }
[data-scheme="dark"] .l-how .ex, [data-scheme="dark"] .l-invite form button { border-color: var(--line-2); }
[data-scheme="dark"] .lead-form select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23F4E9DC' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); }
[data-scheme="dark"] .sheet-backdrop { background: rgba(0, 0, 0, .6); }
[data-scheme="dark"] .drawer { box-shadow: 10px 0 40px rgba(0, 0, 0, .5); }
[data-scheme="dark"] .toast { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
[data-scheme="dark"] .pf-ava { background: var(--accent); color: var(--accent-ink); }
[data-scheme="dark"] .pc.cur { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
[data-scheme="dark"] .who-b2b, [data-scheme="dark"] .ab-principles, [data-scheme="dark"] .need-tpl,
[data-scheme="dark"] .pt-hero { box-shadow: inset 0 0 0 1px var(--line); }
[data-scheme="dark"] .pt-hero { background: radial-gradient(110% 120% at 92% 0%, #4A2412 0%, #24130A 55%, #160C07 100%); }
[data-scheme="dark"] .pg-final::before { background: linear-gradient(180deg, rgba(15, 11, 9, .05) 10%, rgba(15, 11, 9, .85) 100%); }

/* «светлые острова»: блоки на фото и цветных баннерах остаются светлыми и в тёмной теме */
[data-scheme="dark"] :is(.l-hero, .ab-hero, .pt-order, .pt-badge, .btn-hero-light, .l-invite) {
  color-scheme: light;
  --bg: #F8F6F2; --card: #FFFFFF; --card-2: #FDFBFA;
  --ink: #512309; --ink-2: #76574A; --ink-3: #7F6858; --accent-text: #A84B16;
  --line: #DED3CC; --line-2: #C1ADA2;
  --beige: #EBDCC8; --beige-2: #FFF4E5; --soft: #F5EDE4;
  --ok-bg: #E9EFD9; --ok-ink: #48612F; --warn-ink: #9A4A0E;
  --glass: rgba(255, 255, 255, .75); --glass-2: rgba(255, 255, 255, .4);
  --inv-ink: #FFFFFF; --dark-chip: #3B1A0C;
}
[data-scheme="dark"] .ab-hero { background: radial-gradient(120% 100% at 85% 12%, #E7C394 0%, #D9A874 42%, #B97F4B 100%); }
.city-btn { white-space: nowrap; }
@media (max-width: 379px) {
  .theme-btn { width: 34px; height: 34px; }
  .theme-btn svg { width: 17px; height: 17px; }
  .topbar .btn-outline { padding: 0 14px; }
  .topbar .row:first-child { gap: 8px !important; }
}
.topbar { column-gap: 8px; }
/* совсем узкие экраны: тема — в меню (бургер) и настройках, в шапке не помещается */
@media (max-width: 359px) { .topbar .theme-btn { display: none; } }

/* =====================================================================
   Главная: «Меню простыми словами» + QR в кофейне
   ===================================================================== */
[data-theme="matcha"]    { --sec-ink: #26300A; --sec-ink-2: rgba(38, 48, 10, .76); --sec-line: rgba(38, 48, 10, .4); --sec-chip: rgba(255, 255, 255, .5); --sec-glow: rgba(255, 255, 255, .45); }
[data-theme="americano"] { --sec-ink: #FFF4E8; --sec-ink-2: rgba(255, 244, 232, .76); --sec-line: rgba(255, 244, 232, .45); --sec-chip: rgba(255, 255, 255, .12); --sec-glow: rgba(242, 166, 94, .22); }
[data-theme="latte"], [data-theme="cappuccino"] { --sec-ink: #3A170A; --sec-ink-2: rgba(58, 23, 10, .76); --sec-line: rgba(58, 23, 10, .35); --sec-chip: rgba(255, 255, 255, .5); --sec-glow: rgba(255, 255, 255, .5); }

.l-menu { padding: 12px; background: var(--sec-outer, #512309); transition: background .35s; }
.l-menu .inner { max-width: 1332px; margin: 0 auto; display: flex; flex-direction: column; gap: 56px; padding: 32px 20px 28px; border-radius: 32px; background: var(--sec-inner, #E8BC89); color: var(--sec-ink, #3A170A); transition: background .35s, color .35s; }
.lm-row { display: flex; flex-direction: column; gap: 32px; }
.lm-eyebrow { align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--sec-chip); color: var(--sec-ink); font: 600 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.l-menu h2 { margin: 0; font: 700 clamp(36px, 9vw, 58px)/.96 var(--font-head); color: var(--sec-ink); text-wrap: balance; }
.l-menu .m-intro, .l-menu .m-qr-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.l-menu .m-intro > p, .l-menu .m-qr-text > p { max-width: 520px; margin: 0; font-size: 17px; line-height: 1.55; color: var(--sec-ink-2); }

/* карточка-пример: светлая в любой теме, как настоящая карточка меню */
.l-menu .sample { max-width: 560px; margin-top: 8px; display: grid; gap: 16px; padding: 12px; border-radius: 28px; background: #FFFFFF; color: #3A170A; box-shadow: 0 28px 56px rgba(40, 15, 4, .18); }
.smp-media { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: #EBDCC8; }
.smp-media img { position: absolute; left: 0; top: 4%; width: 100%; height: 92%; object-fit: contain; }
.smp-stats { z-index: 1; }
.smp-stats { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.smp-stats span { padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .72); font-size: 12px; color: rgba(38, 35, 36, .55); }
.smp-stats b { margin-right: 2px; font: 600 16px/1 var(--font-num); color: #262324; }
.smp-info { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 4px 6px 0; }
.smp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.smp-top b { font: 600 26px/1.05 var(--font-head); color: #3A170A; }
.smp-top span { font: 600 20px/1 var(--font-num); color: #3A170A; white-space: nowrap; }
.smp-info p { margin: 0; font-size: 14px; line-height: 1.5; color: #8A6A58; }
.smp-bar { display: flex; gap: 2px; height: 10px; margin-top: 4px; padding: 0; overflow: hidden; border-radius: 99px; background: #EFE4D8; box-shadow: inset 0 0 0 1px rgba(81, 35, 9, .1); }
.smp-bar i { display: block; height: 100%; }
.smp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: #8A6A58; }
.smp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.smp-legend span::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); box-shadow: inset 0 0 0 1px rgba(81, 35, 9, .2); }
.smp-legend b { font-weight: 600; color: #3A170A; }
.smp-scales { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 6px 4px; border-top: 1px solid #EFE4D8; }
.smp-scales .scale { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #8A6A58; }
.smp-scales .d { display: flex; gap: 4px; }
.smp-scales .d i { flex: 1; max-width: 22px; height: 6px; border-radius: 99px; background: #EFE4D8; }
.smp-scales .d i.on { background: #3A170A; }

/* напиток по слоям: подписи с выносками точно у своих слоёв */
.l-menu .m-exploded { display: flex; justify-content: flex-end; padding-right: 6%; }
.ex-fig { position: relative; isolation: isolate; height: 470px; margin: 0; }
.ex-fig::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 42%; width: 230%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--sec-glow, rgba(255, 255, 255, .45)), transparent); }
.ex-fig .exploded { display: block; width: auto; height: 100%; }
.ex-fig .labels { position: absolute; inset: 0; pointer-events: none; }
.ex-fig .labels span { position: absolute; right: 80%; top: calc(var(--t) * 1%); display: flex; align-items: center; gap: 8px; transform: translateY(-50%); }
.ex-fig .labels em { max-width: 128px; padding: 4px 10px; border-radius: 999px; background: var(--sec-chip); color: var(--sec-ink); font: 500 12px/1.25 var(--font-body); font-style: normal; text-align: right; }
.ex-fig .labels i { position: relative; flex: none; width: 22px; height: 1px; background: var(--sec-line); }
.ex-fig .labels i::after { content: ''; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px; border-radius: 50%; transform: translateY(-50%); background: var(--sec-ink); box-shadow: 0 0 0 3px var(--sec-chip); }

/* QR в кофейне */
.l-menu .qr { overflow: hidden; border-radius: 28px; aspect-ratio: 1 / 1; }
.l-menu .qr img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lm-steps { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 6px; padding: 0; list-style: none; counter-reset: s; }
.lm-steps li { display: flex; align-items: center; gap: 14px; counter-increment: s; font-size: 16px; line-height: 1.4; color: var(--sec-ink); }
.lm-steps li::before { content: counter(s); flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sec-chip); font: 600 14px/1 var(--font-num); }
.l-menu .qr-btn { width: 100%; background: var(--hero-btn); border-color: var(--hero-btn); color: var(--hero-btn-ink); }
.l-menu .qr-btn:hover { filter: brightness(1.08); }
.l-menu .exploded.in, .l-menu .qr img.in { animation: mFade .5s ease both; }

@media (min-width: 600px) {
  .l-menu .sample { grid-template-columns: 200px minmax(0, 1fr); }
  .smp-media { height: 230px; align-self: start; }
  .smp-scales { grid-column: 1 / -1; }
  .l-menu .qr-btn { width: auto; align-self: flex-start; padding: 0 40px; }
  .ex-fig { height: 560px; }
  .ex-fig .labels em { max-width: none; white-space: nowrap; font-size: 13px; padding: 5px 12px; }
  .ex-fig .labels i { width: 44px; }
  .l-menu .m-exploded { justify-content: center; padding: 0 0 0 18%; }
}
@media (min-width: 768px) {
  .lm-qr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .lm-qr h2 { font-size: clamp(36px, 4.6vw, 58px); }
}
@media (min-width: 1024px) {
  .l-menu { padding: 40px; }
  .l-menu .inner { gap: 96px; padding: 72px 80px; border-radius: 56px; }
  .lm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .lm-qr { gap: 72px; }
  .l-menu .qr { border-radius: 40px; }
  .ex-fig { height: 640px; }
  .ex-fig .labels em { font-size: 15px; padding: 6px 14px; }
  .ex-fig .labels i { width: 64px; }
  .l-menu .m-exploded { padding: 0 0 0 22%; }
  .lm-steps li { font-size: 17px; }
}
@media (max-width: 379px) {
  .l-menu .inner { padding: 28px 16px 22px; }
  .ex-fig { height: 400px; }
  .ex-fig .labels em { max-width: 104px; font-size: 11px; padding: 3px 8px; }
  .ex-fig .labels i { width: 14px; }
}

/* =====================================================================
   Доступность и отклик (ui-ux-pro-max): фокус, нажатие, служебные классы
   ===================================================================== */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1.a-title { margin: 0; }
.l-hero .promise, .l-hero .hero-desc { color: var(--hero-ink); }
@media (min-width: 1024px) { .l-invite form button { color: #FFFFFF; } }

/* --- фокус с клавиатуры: контрастное кольцо (≥ 3:1) в обеих темах --- */
:root { --focus-ring: #A84B16; }
:root[data-scheme="dark"] { --focus-ring: #F2A65E; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 12px; }
.btn:focus-visible, .seg button:focus-visible, .chip:focus-visible, .theme-btn:focus-visible, .city-btn:focus-visible { outline-offset: 3px; }
.input:focus-visible { outline: 0; border-color: var(--focus-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 28%, transparent); }
.topbar.on-hero :focus-visible, .l-hero :focus-visible { outline-color: var(--hero-ink); }

/* --- касания: всё нажимаемое не меньше 44×44 (ui-ux-pro-max: Touch target size) --- */
.burger { width: 44px; height: 44px; margin-left: -8px; font-size: 0; }
.burger::before { content: none; }
.burger span { display: block; position: relative; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.topbar .logo { display: inline-flex; align-items: center; min-height: 44px; }
.city-btn { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.city-btn svg { flex: none; }
.theme-btn { width: 44px; height: 44px; }
.link-muted, .link, .a-link, .sec-head a, .q-head button { display: inline-flex; align-items: center; min-height: 44px; }
.seg button { min-height: 44px; }
.eye { min-width: 44px; min-height: 44px; }
.check { min-height: 44px; align-items: center; }
.drawer .sub a { min-height: 44px; display: flex; align-items: center; padding: 0; }
.drawer .theme-seg button { min-height: 44px; }
.l-arrows button { min-width: 44px; min-height: 44px; }
@media (max-width: 379px) { .theme-btn { width: 40px; height: 40px; } }

/* --- отклик на нажатие за ~100 мс у всех кнопок и плиток --- */
.chip, .seg button, .city-btn, .burger, .opt, .menu-card, .shop, .cmp, .fav-card, .hist, .pc, .who, .plus { -webkit-tap-highlight-color: transparent; }
.chip:active, .seg button:active, .city-btn:active, .burger:active { transform: scale(.95); transition: transform .1s ease; }
.menu-card:active, .shop:active, .cmp:active { transform: scale(.99); transition: transform .12s ease; }
@media (prefers-reduced-motion: reduce) {
  .chip:active, .seg button:active, .city-btn:active, .burger:active, .menu-card:active, .shop:active, .cmp:active, .btn:active { transform: none; }
}
/* пауза автосмены баннера */
.l-arrows { align-items: center; }
.l-arrows .ap-toggle { width: 44px !important; height: 44px !important; }
.ap-toggle .i-play, .ap-toggle[aria-pressed="true"] .i-pause { display: none; }
.ap-toggle[aria-pressed="true"] .i-play { display: block; }
.l-arrows button svg { display: block; }

/* =====================================================================
   Нижняя навигация (телефон и планшет)
   ===================================================================== */
.tabbar { display: none; }
@media (max-width: 1023px) {
  .tabbar:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-right));
    background: var(--bar-bg); border-top: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border-radius: 16px; color: var(--ink-2); font: 500 11px/1.1 var(--font-body); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .2s, background-color .2s; }
  .tabbar a svg { transition: transform .25s var(--ease-spring, ease); }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on::before { content: ''; position: absolute; top: 4px; width: 44px; height: 30px; border-radius: 999px; background: var(--soft); z-index: -1; }
  .tabbar a.on svg { transform: translateY(-1px); }
  .tabbar a:active svg { transform: scale(.88); }
  body.has-tabbar #app { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.has-tabbar .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  /* нижняя навигация уже ведёт в разделы — в шапке не дублируем */
  body.has-tabbar .topbar .btn-outline[href="#/login"] { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { .tabbar a svg { transition: none; } }

/* --- без сдвигов при загрузке (CLS): место под фильтры и список резервируется заранее --- */
#controls[data-loading] { min-height: 420px; border-radius: 24px; background: linear-gradient(90deg, var(--skel-a) 0%, var(--skel-b) 50%, var(--skel-a) 100%); background-size: 200% 100%; animation: skelMove 1.2s linear infinite; }
.pg-compare:not(.pg-menu) #controls[data-loading] { min-height: 445px; }
#list[data-loading] { min-height: 100vh; }
@keyframes skelMove { to { background-position: -200% 0; } }
@media (min-width: 600px) { #controls[data-loading] { min-height: 325px; } .pg-compare:not(.pg-menu) #controls[data-loading] { min-height: 395px; } }
@media (min-width: 1024px) { #controls[data-loading] { min-height: 218px; } .pg-compare:not(.pg-menu) #controls[data-loading] { min-height: 176px; } }

/* --- пустые состояния: картинка, заголовок, пояснение, одно действие --- */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 460px; margin: 28px auto 8px; padding: 32px 24px; border: 1px dashed var(--line-2); border-radius: 28px; text-align: center; }
.empty-state .es-pic { width: 132px; height: 132px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--beige); }
.empty-state .es-pic img { width: auto; height: 86%; margin-top: 14%; object-fit: contain; }
.empty-state h2 { margin: 6px 0 0; font: 700 28px/1.05 var(--font-head); color: var(--ink); }
.empty-state p { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.empty-state .btn { margin-top: 8px; padding: 0 32px; }

/* --- настройки: выбор темы не растягивается на всю ширину --- */
.set-theme { display: flex; flex-direction: column; gap: 0; max-width: 460px; margin-top: 24px; }
@media (min-width: 1024px) { .set-theme { margin-left: auto; margin-right: auto; } }
.drawer-x { width: 44px; height: 44px; min-height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; }
.input[aria-invalid="true"] { border-color: var(--bad-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad-ink) 18%, transparent); }

/* --- баннер: текст на фото всегда читается — подложка «матовое стекло» под цвет темы --- */
[data-theme="matcha"], [data-theme="latte"], [data-theme="cappuccino"] { --hero-glass: rgba(255, 250, 242, .76); --hero-glass-line: rgba(255, 255, 255, .7); --hero-glow: rgba(255, 248, 238, .75); }
[data-theme="americano"] { --hero-glass: rgba(33, 8, 2, .6); --hero-glass-line: rgba(255, 255, 255, .14); --hero-glow: rgba(25, 6, 1, .7); }
@media (min-width: 1024px) {
  .l-hero .hero-desc {
    padding: 16px 20px; border: 1px solid var(--hero-glass-line); border-radius: 22px;
    background: var(--hero-glass); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
    box-shadow: 0 14px 34px rgba(30, 10, 2, .1);
    color: var(--hero-ink); font-size: clamp(15px, 1.12vw, 18px); line-height: 1.45; text-align: left;
    transition: background .35s, color .35s;
  }
  .l-hero .rec-card { background: var(--hero-glass) !important; border: 1px solid var(--hero-glass-line); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }
  .l-hero .rec-card .name, .l-hero .rec-card .price, .l-hero .rec-card .desc { color: var(--hero-ink); opacity: 1; }
  .l-hero .rec-card .desc { font-size: 14px; line-height: 1.4; }
  .l-hero .promise h1 { text-shadow: 0 0 22px var(--hero-glow), 0 0 3px var(--hero-glow); }
}
@media (min-width: 1024px) and (max-width: 1279px) { .l-hero .hero-desc { top: 45.5% !important; } }

/* =====================================================================
   История: сводка, заказ в работе, лента по дням, боковая колонка
   ===================================================================== */
.pg-history .pad.hx { max-width: 1180px; }
.pg-history .hx-head { display: flex; flex-direction: column; gap: 10px; margin: 28px 0 22px; text-align: left; }
.pg-history .hx-head h1 { margin: 0; text-align: left; }
.hx-head p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }

.hx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hx-stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.hx-stat span { font-size: 13px; color: var(--ink-2); }
.hx-stat b { font: 600 28px/1.05 var(--font-num); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-stat b.t { font: 600 20px/1.15 var(--font-head); letter-spacing: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hx-stat small { margin-top: auto; font-size: 12px; color: var(--ink-3); }

/* заказ в работе */
.hx-live { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px 16px; align-items: center; margin-top: 12px; padding: 16px; border-radius: 24px; background: var(--dark); color: #FBF4E8; }
.hx-live-pic { width: 76px; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: rgba(255, 255, 255, .08); }
.hx-live-pic img, .hx-pic img, .hx-fav-pic img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.hx-live-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hx-live-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #F2A65E; }
.hx-live-tag .pulse { width: 8px; height: 8px; border-radius: 50%; background: #F2A65E; animation: hxPulse 1.6s infinite; }
@keyframes hxPulse { 0% { box-shadow: 0 0 0 0 rgba(242, 166, 94, .6); } 70% { box-shadow: 0 0 0 8px rgba(242, 166, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 166, 94, 0); } }
.hx-live-body b { font: 600 22px/1.1 var(--font-head); color: #fff; }
.hx-live-body small { font-size: 13px; color: rgba(251, 244, 232, .72); }
.hx-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.hx-flow li { position: relative; padding-top: 12px; font-size: 11px; color: rgba(251, 244, 232, .55); }
.hx-flow li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.hx-flow li.done::before { background: #A8C97A; }
.hx-flow li.now::before { background: #F2A65E; }
.hx-flow li.done, .hx-flow li.now { color: #FBF4E8; }
.hx-live .btn { grid-column: 1 / -1; }

/* лента */
.hx-grid { display: grid; gap: 28px; margin-top: 28px; }
.hx-feed-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.hx-feed-head h2, .hx-card h2 { margin: 0; font: 700 26px/1.1 var(--font-head); color: var(--ink); }
.hx-day h3 { margin: 18px 0 10px; font: 600 13px/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.hx-order { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; margin-bottom: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); transition: border-color .2s, box-shadow .3s; }
@media (hover: hover) { .hx-order:hover { border-color: var(--line-2); box-shadow: 0 12px 28px rgba(59, 26, 12, .06); } }
.hx-pic { width: 72px; height: 88px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--beige); }
.hx-pic svg { width: 100%; height: 100%; }
.hx-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hx-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hx-top b { min-width: 0; font: 600 18px/1.2 var(--font-head); color: var(--ink); }
.hx-price { flex: none; font: 600 16px/1 var(--font-num); color: var(--ink); white-space: nowrap; }
.hx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--ink-2); }
.hx-st { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.hx-st.live { background: var(--warn-bg); color: var(--warn-ink); }
.hx-st.ok { background: var(--ok-bg); color: var(--ok-ink); }
.hx-st.done { background: var(--soft); color: var(--ink-2); }
.hx-st.bad { background: var(--bad-bg); color: var(--bad-ink); }
.hx-mods { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-mods span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--ink-2); }
.hx-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.hx-actions .btn { min-height: 44px; padding: 0 20px; }
.hx-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--accent-text); text-underline-offset: 3px; }
.hx-stars { display: flex; gap: 2px; }
.hx-stars button { width: 40px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--line-2); transition: color .15s, transform .15s; }
.hx-stars button.on { color: var(--accent); }
.hx-stars button:not([disabled]):hover, .hx-stars button:not([disabled]):hover ~ button { color: var(--line-2); }
.hx-stars:hover button:not([disabled]) { color: var(--accent); }
.hx-stars button:not([disabled]):hover ~ button:not([disabled]) { color: var(--line-2); }
.hx-stars button:active { transform: scale(.88); }

/* боковая колонка */
.hx-side { display: flex; flex-direction: column; gap: 14px; }
.hx-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.hx-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hx-fav { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.hx-fav-pic { width: 96px; height: 116px; display: grid; place-items: center; overflow: hidden; border-radius: 18px; background: var(--beige); }
.hx-fav > div:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.hx-fav b { font: 600 20px/1.15 var(--font-head); color: var(--ink); }
.hx-fav small { font-size: 13px; color: var(--ink-2); }
.hx-fav .btn { margin-top: 6px; }
.hx-bars { display: flex; flex-direction: column; gap: 10px; }
.hx-bar { display: grid; grid-template-columns: 56px 1fr 24px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.hx-bar i { height: 8px; overflow: hidden; border-radius: 99px; background: var(--track); }
.hx-bar em { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.hx-bar b { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.hx-next { position: relative; isolation: isolate; overflow: hidden; min-height: 240px; justify-content: flex-end; border: 0; color: #fff; }
.hx-next > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hx-next::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(42, 15, 5, .05) 15%, rgba(42, 15, 5, .82) 100%); }
.hx-next > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.hx-next h2 { color: #fff; }
.hx-next p { color: rgba(255, 255, 255, .88); }
.hx-next .btn { margin-top: 6px; }

@media (min-width: 600px) {
  .hx-live { grid-template-columns: 88px minmax(0, 1fr) auto; padding: 18px 22px; }
  .hx-live-pic { width: 88px; height: 104px; }
  .hx-live .btn { grid-column: auto; }
  .hx-order { grid-template-columns: 84px minmax(0, 1fr); padding: 16px 18px; }
  .hx-pic { width: 84px; height: 100px; }
}
@media (min-width: 900px) {
  .hx-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .hx-stat { padding: 18px 20px; }
  .hx-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .hx-side { position: sticky; top: 96px; }
}
@media (prefers-reduced-motion: reduce) { .hx-live-tag .pulse { animation: none; } }
.hx-order > .hx-actions { grid-column: 1 / -1; margin-top: 0; }
.hx-actions .btn { margin-left: auto; }
@media (min-width: 600px) { .hx-order > .hx-actions { grid-column: 2; } }
.hx-actions { flex-wrap: nowrap; }
.hx-stars { gap: 0; }
@media (max-width: 599px) { .hx-stars button { width: 34px; } .hx-actions .btn { padding: 0 16px; } }
[data-scheme="dark"] .hx-live { box-shadow: inset 0 0 0 1px var(--line); }

/* =====================================================================
   Доверие и безопасность (#/trust), документы (#/legal/:doc), приватность
   ===================================================================== */
/* --- баннер --- */
.tr-hero { position: relative; isolation: isolate; overflow: hidden; margin: 12px; border-radius: 32px; color: #FBF4E8;
  background: radial-gradient(90% 120% at 100% 0%, #6B341A 0%, #3B1A0C 50%, #1E0B04 100%); }
.tr-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(251, 244, 232, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(251, 244, 232, .06) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: radial-gradient(80% 90% at 75% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(80% 90% at 75% 40%, #000 20%, transparent 75%); }
.tr-in { display: grid; gap: 36px; padding: 36px 22px 40px; }
.tr-copy { display: flex; flex-direction: column; gap: 18px; }
.tr-copy h1 { font: 700 clamp(40px, 9.5vw, 76px)/.95 var(--font-head); color: #fff; text-wrap: balance; }
.tr-hero .pg-eyebrow { color: #F2A65E; }
.tr-hero .pg-lead { color: rgba(251, 244, 232, .82); }

/* «чек данных» */
.tr-receipt { position: relative; justify-self: center; width: 100%; max-width: 360px; margin: 0; rotate: 2deg;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, .38)); animation: rcFloat 7s ease-in-out infinite; }
.rc { --zz: 9px; padding: 24px 22px calc(18px + var(--zz)); background: #FFFDF8; color: #2A0F05;
  font: 500 14px/1.4 var(--font-body);
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zz)) var(--zz) repeat-x;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--zz)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zz)) var(--zz) repeat-x; }
.rc-head { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-bottom: 14px; border-bottom: 1.5px dashed rgba(42, 15, 5, .3); }
.rc-head b { font: 400 40px/.8 var(--font-logo); letter-spacing: .02em; }
.rc-head span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6E4A38; }
.rc ul { display: grid; gap: 9px; margin: 0; padding: 14px 0; list-style: none; border-bottom: 1.5px dashed rgba(42, 15, 5, .3); }
.rc li { display: flex; align-items: baseline; gap: 6px; }
.rc li span { color: #5A3A2B; }
.rc li i { flex: 1; min-width: 12px; border-bottom: 1.5px dotted rgba(42, 15, 5, .35); transform: translateY(-3px); }
.rc li b { font: 600 14px var(--font-num); white-space: nowrap; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 14px; font: 700 18px var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.rc-total b { color: #A84B16; }
.rc-bar { display: flex; justify-content: center; gap: 2px; height: 38px; }
.rc-bar i { display: block; background: #2A0F05; }
.rc figcaption { margin-top: 8px; text-align: center; font-size: 11px; letter-spacing: .06em; color: #6E4A38; }
.rc-stamp { position: absolute; right: -30px; bottom: -22px; width: 104px; height: 104px; color: #3E9A62; opacity: .92; rotate: -14deg; animation: rcSpin 40s linear infinite; }
.rc-stamp text { font: 700 11.5px var(--font-body); letter-spacing: .1em; fill: currentColor; }
@keyframes rcFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes rcSpin { to { rotate: 346deg; } }

/* --- обещания --- */
.tp-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tp { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.tp-top { display: flex; align-items: center; justify-content: space-between; }
.tp-n { font: 500 15px/1 var(--font-num); color: var(--ink-3); }
.tp h3 { margin-top: 6px; font: 600 24px/1.05 var(--font-head); color: var(--ink); }
.tp p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* --- карта данных --- */
.dm { overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--card); }
.dm-row { display: grid; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--line); }
.dm-row:first-child { border-top: 0; }
.dm-h { display: none; }
.dm-t b { display: block; font: 600 20px/1.1 var(--font-head); color: var(--ink); }
.dm-t small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); }
.dm-row:not(.dm-h) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dm-row .dm-t { grid-column: 1 / -1; }
.dm-w { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dm-w::before { content: attr(data-who); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.dm-c { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.dm-c i { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.dm-c em { font-style: normal; }
.dm-c.yes i { background: var(--ok-bg); color: var(--ok-ink); }
.dm-c.yes em { color: var(--ok-ink); font-weight: 500; }
.dm-c.part i { background: var(--warn-bg); color: var(--warn-ink); }
.dm-c.no i { background: var(--soft); color: var(--ink-3); }
.dm-c.no em { color: var(--ink-3); }
.dm-note { margin: 14px 4px 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* --- права --- */
.tg-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.tg { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .2s; }
.tg b { margin-top: 4px; font: 600 22px/1.1 var(--font-head); }
.tg small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tg:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tg[aria-busy="true"] { opacity: .6; cursor: progress; }

/* --- под капотом --- */
.ts-card { display: grid; gap: 28px; padding: 32px 22px; border-radius: 32px; background: var(--dark); color: #FBF4E8; }
.ts-copy { display: flex; flex-direction: column; gap: 12px; }
.ts-copy h2 { font: 700 36px/1.02 var(--font-head); color: #fff; text-wrap: balance; }
.ts-copy p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.55; color: rgba(251, 244, 232, .74); }
.ts-card .pg-eyebrow { color: #E8BC89; }
.ts-list { display: grid; gap: 18px 28px; margin: 0; padding: 0; list-style: none; }
.ts-list li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(251, 244, 232, .16); }
.ts-ok { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(242, 138, 58, .16); color: #F2A65E; }
.ts-ok svg { width: 20px; height: 20px; }
.ts-list b { display: block; font: 600 19px/1.15 var(--font-head); color: #fff; }
.ts-list p { margin: 5px 0 0; font-size: 14px; line-height: 1.5; color: rgba(251, 244, 232, .72); }

/* --- документы --- */
.td-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.td { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .2s; }
.td b { margin-top: 4px; font: 600 21px/1.1 var(--font-head); text-wrap: balance; }
.td small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.td-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 12px; color: var(--ink-3); }
.td-meta i { font-style: normal; font-size: 18px; color: var(--accent-text); transition: transform .3s var(--ease-out); }
.td-main { border-color: transparent; background: var(--dark); color: #FBF4E8; }
.td-main .pg-ico { background: rgba(242, 138, 58, .16); color: #F2A65E; }
.td-main small { color: rgba(251, 244, 232, .74); }
.td-main .td-meta { color: rgba(251, 244, 232, .6); }
.td-main .td-meta i { color: #F2A65E; }
[data-scheme="dark"] .td-main { background: #2A1A11; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) {
  .tp:hover, .tg:hover, .td:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(59, 26, 12, .08); border-color: var(--line-2); }
  .td:hover .td-meta i { transform: translateX(4px); }
}

/* --- уязвимости --- */
.tr-bounty { margin: 56px 12px 0; border-radius: 32px; color: #2A0F05; background: linear-gradient(115deg, #F6C48E 0%, #F2A65E 55%, #F28A3A 100%); }
.tb-in { max-width: 1180px; margin: 0 auto; display: grid; gap: 18px; padding: 32px 22px; }
.tb-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: rgba(255, 255, 255, .45); color: #2A0F05; }
.tb-ico svg { width: 30px; height: 30px; }
.tr-bounty h2 { font: 700 34px/1 var(--font-head); color: #2A0F05; }
.tr-bounty p { margin: 8px 0 0; max-width: 520px; font-size: 16px; line-height: 1.5; color: rgba(42, 15, 5, .82); }
.tb-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.tr-bounty .btn-accent { background: #2A0F05; border-color: #2A0F05; color: #FFF4E5; }
.tr-bounty .btn-glass { border-color: rgba(42, 15, 5, .35); background: rgba(255, 255, 255, .35); color: #2A0F05; }
.pg-trust .footer, .pg-legal .footer { margin-top: 56px; }

/* --- документ --- */
.lg { max-width: 1180px; margin: 0 auto; padding: 20px 16px 0; }
.lg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }
.lg-crumbs a { color: var(--ink-2); }
.lg-head { display: flex; flex-direction: column; gap: 14px; padding: 26px 0 28px; }
.lg-head h1 { max-width: 900px; font: 700 clamp(36px, 8vw, 64px)/.98 var(--font-head); color: var(--ink); text-wrap: balance; }
.lg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lg-meta > span { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--card); }
.lg-print { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--ink); font: 500 13px var(--font-body); cursor: pointer; }
.lg-print svg { width: 18px; height: 18px; }
.lg-print:hover { background: var(--card); }
.lg-body { display: grid; gap: 18px; }
.lg-toc { min-width: 0; }
.lg-toc > b, .lg-other > b { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.lg-toc ol { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px 6px; list-style: none; overflow-x: auto; scrollbar-width: none; counter-reset: toc; }
.lg-toc ol::-webkit-scrollbar { display: none; }
.lg-toc li { flex: none; counter-increment: toc; }
.lg-toc ol a { display: block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font-size: 13px; text-decoration: none; white-space: nowrap; }
.lg-toc ol a.on { border-color: var(--ink); color: var(--ink); }
.lg-other { display: none; }
.lg-doc { min-width: 0; padding: 22px 18px 26px; border: 1px solid var(--line); border-radius: 28px; background: var(--card); }
.lg-sum { padding: 18px 20px; border-radius: 20px; background: var(--beige-2); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.lg-sum > b { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.lg-sum ul { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.lg-sum li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: var(--ink); }
.lg-sum li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); font-size: 11px; font-weight: 700; }
.lg-s { padding-top: 26px; scroll-margin-top: 90px; }
.lg-s h2 { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font: 600 26px/1.1 var(--font-head); color: var(--ink); }
.lg-s h2 span { flex: none; font: 500 14px/1 var(--font-num); color: var(--accent-text); }
.lg-s p, .lg-s li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.lg-s p { margin: 0 0 12px; }
.lg-s b { color: var(--ink); font-weight: 600; }
.lg-s a { color: var(--accent-text); text-underline-offset: 3px; }
.lg-s ul { display: grid; gap: 6px; margin: 0 0 12px; padding-left: 20px; }
.lg-s li::marker { color: var(--accent); }
.lg-end { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.lg-end p { margin: 0; }
.legal-fill { display: inline; padding: 1px 6px; border-radius: 6px; background: var(--warn-bg); color: var(--warn-ink); font-size: .92em; font-weight: 500; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.legal-actions .btn { min-height: 44px; }
.legal-table { display: grid; margin: 4px 0 16px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.legal-table > div { display: grid; gap: 4px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.legal-table > div:first-child { border-top: 0; }
.legal-table .lt-h { display: none; }
.legal-table [role="cell"]:first-child { color: var(--ink); font-weight: 500; }
.legal-table [role="cell"]:last-child { font-size: 13px; color: var(--ink-3); }
.legal-table [role="cell"]:last-child::before { content: 'Срок: '; }

/* --- согласия в формах --- */
.legal-check { gap: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-align: left; }
.legal-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.legal-check a { color: var(--accent-text); text-underline-offset: 3px; }
.legal-check input[aria-invalid="true"] { outline: 2px solid var(--bad-ink); outline-offset: 2px; }
.hc-box { margin-top: 20px; padding: 16px; border: 1px solid color-mix(in srgb, var(--warn-ink) 30%, var(--line)); border-radius: 20px; background: var(--warn-bg); }
.hc-box .tiny { margin: 10px 0 0 32px; color: var(--warn-ink); }
.hc-box.ok { border-color: color-mix(in srgb, var(--ok-ink) 30%, var(--line)); background: var(--ok-bg); }
.hc-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 0 0 18px; padding: 12px 16px; border-radius: 16px; background: var(--soft); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hc-note.ok { background: var(--ok-bg); color: var(--ok-ink); }
.hc-note a { color: var(--accent-text); }
.hc-note.ok a { color: var(--ok-ink); font-weight: 500; }
.q-legal { margin: 12px 0 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.q-legal a { color: var(--ink-2); }
.hc { display: flex; flex-direction: column; gap: 12px; }
.hc-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--ok-bg); color: var(--ok-ink); }
.hc h2 { font-size: 26px; }
.hc p { margin: 0; color: var(--ink-2); }
.hc-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hc-list li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.hc-list li::before { content: ''; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hc .small { color: var(--accent-text); }
.hc .btn { margin-top: 2px; }

/* --- настройки: данные и приватность --- */
.set-link { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; padding: 16px 44px 16px 18px; position: relative; border: 1px solid var(--line); border-radius: 20px; background: var(--card); color: var(--ink); font-weight: 500; text-decoration: none; }
.set-link::after { content: '→'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent-text); font-size: 18px; }
.set-link small { font-weight: 400; font-size: 13px; color: var(--ink-3); }
.pv { display: grid; gap: 14px; margin-top: 18px; }
.pv-card { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
.pv-card h3 { font: 600 22px/1.1 var(--font-head); color: var(--ink); }
.pv-card .small { margin: 0; }
.pv-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.pv-row:first-of-type { border-top: 0; }
.pv-row b { display: block; font-weight: 500; font-size: 15px; }
.pv-row b a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.pv-st { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ink-3); }
.pv-st.ok { color: var(--ok-ink); }
.pv-hint { flex: none; max-width: 150px; font-size: 12px; line-height: 1.35; text-align: right; color: var(--ink-3); }
.pv-data a { color: var(--accent-text); }
.pv-data .btn, .pv-danger .btn { margin-top: auto; }
.pv-danger { border-color: color-mix(in srgb, var(--bad-ink) 30%, var(--line)); }
.pv .btn[aria-busy="true"] { opacity: .6; }

/* --- подвал: правовые ссылки --- */
.footer { flex-wrap: wrap; }
.foot-legal { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 18px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-legal > * { display: inline-flex; align-items: center; min-height: 44px; } /* палец на телефоне — 44 px в высоту */
.foot-legal a { color: var(--ink-2); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 600px) {
  .tp-grid, .tg-grid, .td-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-grid .tp:first-child, .td-main { grid-column: span 2; }
  .dm-row:not(.dm-h) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tr-bounty .tb-in { grid-template-columns: auto 1fr; align-items: center; }
  .tb-cta { grid-column: 2; }
  .lg-doc { padding: 30px 32px 34px; }
  .legal-table > div { grid-template-columns: 1.1fr 1.3fr .8fr; gap: 16px; }
  .legal-table .lt-h { display: grid; background: var(--soft); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
  .legal-table [role="cell"]:last-child::before { content: none; }
  .pv { grid-template-columns: 1fr 1fr; }
  .pv-card:first-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .tr-hero { margin: 16px 24px 0; border-radius: 40px; }
  .tr-in { max-width: 1180px; margin: 0 auto; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; padding: 72px 48px 80px; }
  .tr-receipt { max-width: 380px; }
  .tp-grid { grid-template-columns: repeat(6, 1fr); }
  .tp-grid .tp:nth-child(-n+2) { grid-column: span 3; }
  .tp-grid .tp:nth-child(n+3) { grid-column: span 2; }
  .dm-h { display: grid; padding-top: 14px; padding-bottom: 14px; background: var(--soft); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
  .dm-row { grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)) !important; align-items: center; gap: 16px; padding: 18px 28px; }
  .dm-row .dm-t { grid-column: auto; }
  .dm-w::before { content: none; }
  .tg-grid { grid-template-columns: repeat(4, 1fr); }
  .ts-card { grid-template-columns: .8fr 1.6fr; gap: 48px; padding: 48px; border-radius: 40px; }
  .ts-copy h2 { font-size: 48px; }
  .ts-list { grid-template-columns: 1fr 1fr; }
  .td-grid { grid-template-columns: repeat(4, 1fr); }
  .td-main b { font-size: 30px; max-width: 360px; }
  .td-main small { max-width: 420px; font-size: 15px; }
  .tr-bounty { margin: 96px 24px 0; border-radius: 40px; }
  .tb-in { grid-template-columns: auto 1fr auto !important; gap: 28px; padding: 40px 48px; }
  .tb-cta { grid-column: auto; }
  .tr-bounty h2 { font-size: 42px; }
  .pg-trust .footer, .pg-legal .footer { margin-top: 96px; }
  .lg { padding: 28px 32px 0; }
  .lg-head { padding: 40px 0 44px; }
  .lg-body { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
  .lg-toc { position: sticky; top: 108px; }
  .lg-toc ol { flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; }
  .lg-toc ol a { position: relative; padding: 8px 12px 8px 30px; border: 0; border-radius: 12px; background: transparent; white-space: normal; font-size: 14px; line-height: 1.35; }
  .lg-toc ol a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 6px; top: 9px; font: 500 11px var(--font-num); color: var(--ink-3); }
  .lg-toc ol a:hover { background: var(--card); color: var(--ink); }
  .lg-toc ol a.on { background: var(--card); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
  .lg-other { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
  .lg-other a { padding: 6px 12px; border-radius: 10px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
  .lg-other a:hover { background: var(--card); color: var(--ink); }
  .lg-doc { padding: 40px 48px 44px; border-radius: 32px; }
  .lg-s h2 { font-size: 30px; }
  .lg-s p, .lg-s li { font-size: 16px; }
  .footer { row-gap: 24px; }
}

/* тёмная тема */
[data-scheme="dark"] .tr-hero { background: radial-gradient(90% 120% at 100% 0%, #4A2412 0%, #24130A 50%, #120905 100%); box-shadow: inset 0 0 0 1px var(--line); }
[data-scheme="dark"] .ts-card { background: #1A120D; box-shadow: inset 0 0 0 1px var(--line); }
[data-scheme="dark"] .tr-bounty { color-scheme: light; }
[data-scheme="dark"] .legal-check input { accent-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .tr-receipt, .rc-stamp { animation: none; } }

/* печать документа (кнопка «Скачать PDF») */
@media print {
  :root, :root[data-scheme="dark"] { color-scheme: light; --bg: #fff; --outer: #fff; --card: #fff; --ink: #1B0C05; --ink-2: #3A2A22; --ink-3: #5C4A40; --line: #ccc; --accent-text: #7A3A14; --beige-2: #fff; --soft: #f3f3f3; --ok-bg: #fff; --ok-ink: #1B0C05; --warn-bg: #fff; --warn-ink: #7A3A14; }
  body, .app { background: #fff !important; }
  .topbar, .tabbar, .footer, .lg-toc, .lg-crumbs, .lg-print, .toast, .sheet, .sheet-backdrop { display: none !important; }
  .motion .rv { opacity: 1 !important; transform: none !important; }
  .view { animation: none !important; }
  .lg { padding: 0; max-width: none; }
  .lg-head { padding: 0 0 16px; }
  .lg-body { display: block; }
  .lg-doc { padding: 0; border: 0; }
  .lg-sum { border: 1px solid #ccc; }
  .lg-s { break-inside: auto; }
  .lg-s h2 { break-after: avoid; }
  .legal-table > div { break-inside: avoid; }
  a { color: inherit !important; }
  .legal-actions { display: none; }
}
.switch input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 2px; }

/* =====================================================================
   Меню кофейни: шапка кофейни и выбор размера в карточке
   ===================================================================== */
.cafe-head { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 25px; background: var(--card); }
.cafe-head h2 { font: 700 30px/1 var(--font-head); color: var(--ink); }
.cafe-head .ch-main p { margin: 8px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.cafe-head ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.cafe-head li { padding: 6px 12px; border-radius: 999px; background: var(--soft); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.cafe-head .btn { justify-self: stretch; }
.cafe-head .ch-src { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.cafe-head .ch-src a { color: var(--accent-text); text-underline-offset: 3px; }
.mc-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.mc-sizes button { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 14px; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.mc-sizes button.on { border-color: var(--ink); background: var(--ink); color: var(--card); }
.mc-sizes button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu-card.expanded .mc-sizes { margin-top: 14px; padding-top: 0; max-width: 360px; }
@media (hover: hover) { .mc-sizes button:not(.on):hover { border-color: var(--ink); color: var(--ink); } }
@media (min-width: 600px) {
  .cafe-head { grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; }
  .cafe-head .btn { justify-self: end; min-width: 160px; }
  .cafe-head .ch-src { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .pg-menu #list > .cafe-head { grid-column: 1 / -1; } }
@media (max-width: 599px) { .pg-menu .menu-card .mc-body .dn { min-height: 0; } }
@media (min-width: 600px) and (max-width: 1023px) {
  .pg-menu #list { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; }
  .pg-menu #list > :not(.menu-card), .pg-menu #list > .menu-card.expanded { grid-column: 1 / -1; }
}

/* «Выбор MORI» — кофейня, которую команда отмечает как лучшую в городе */
.tag-pick { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.cafe-head h2 .tag-pick { margin-left: 8px; vertical-align: middle; font-family: var(--font-body); letter-spacing: 0; }

/* =====================================================================
   Полировка: «Сегодня», настройки, единицы
   ===================================================================== */
/* «Сегодня»: характеристики одной строкой, причины — списком с галочками */
.today-hero .specs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 2px 0 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.today-hero .specs li + li::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; }
.today-hero .why { display: grid; gap: 10px; margin: 2px 0 0; padding: 14px 16px; list-style: none; border-radius: 20px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.today-hero .why li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink); }
.today-hero .why svg { flex: none; width: 22px; height: 22px; padding: 3px; margin-top: -1px; border-radius: 50%; background: var(--ok-bg); color: var(--ok-ink); }
.today-hero .why li { animation: chipIn .5s var(--ease-out) both; }
.today-hero .why li:nth-child(2) { animation-delay: .07s; } .today-hero .why li:nth-child(3) { animation-delay: .14s; }
@media (prefers-reduced-motion: reduce) { .today-hero .why li { animation: none; } }

/* единицы в плитках карточек — шрифтом текста (у цифрового шрифта нет кириллицы) */
.menu-card .media .stats small, .l-hero .rec-card .top .nutr span { font-family: var(--font-body); }

/* настройки на телефоне: пять разделов — сеткой 2×2 + один во всю ширину, а не тремя неровными рядами */
@media (max-width: 1023px) {
  .pg-settings .set-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .pg-settings .set-tabs button { justify-content: center; min-height: 44px; }
  .pg-settings .set-tabs button:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* Главная, «Сравниваем кофейни»: лучшая цена — карточкой, остальные — лесенкой цен */
.offers.offers-ladder { display: grid !important; grid-template-columns: 1fr; gap: 16px; }
.of-list { display: flex; flex-direction: column; margin: 0; padding: 6px 0; list-style: none; border-radius: 28px; background: var(--card); box-shadow: var(--shadow); }
.of-list > li { display: flex; }
.of-list > li + li { border-top: 1px solid var(--line); }
.of-row { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px 12px 20px; border: 0; border-radius: 20px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .2s; }
.of-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.of-row:active { background: var(--soft); }
@media (hover: hover) { .of-row:hover { background: var(--soft); } .of-row:hover .of-go { transform: translateX(3px); } }
.of-main { min-width: 0; }
.of-main b { display: block; font: 600 17px/1.2 var(--font-body); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-main small { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.of-price b { font: 600 18px/1.1 var(--font-body); color: var(--ink); white-space: nowrap; }
.of-go { color: var(--accent-text); transition: transform .3s var(--ease-out); }
@media (min-width: 768px) {
  .offers.offers-ladder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: stretch; gap: 24px; }
  .of-list { padding: 8px; }
  .of-list > li { flex: 1; } /* строки делят высоту поровну — блок вровень с карточкой слева */
  .of-row { padding: 14px 18px 14px 22px; }
}
[data-scheme="dark"] .of-list { box-shadow: inset 0 0 0 1px var(--line); }
