/* Famora — сайт-витрина. Шрифт, знак и цвета — из приложения (docs/BRAND.md).
   Темы сайта переключаются атрибутом html[data-theme] (плитка «Четыре темы»). */

@font-face {
  font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Анимируемые числа: прогресс колец */
@property --pct { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  /* фирменные — тема «Слива» */
  --p: #6b4fa0;          /* основной на светлом */
  --p-hi: #c4adf2;       /* основной на тёмном */
  --p2: #c0679a;         /* роза */
  --p3: #f2a65a;         /* абрикос */
  --ink: #140f1f;        /* тёмные блоки */
  --ink-2: #1e1730;
  --p-soft: #efe9f8;

  --bg: #f6f2ee;
  --card: #ffffff;
  --card-2: #faf7f4;
  --line: #ebe3db;
  --text: #1f1826;
  --muted: #6c6274;
  --ok: #22a06b;
  --bad: #e2493b;
  --on-ink: #f4eff9;
  --on-ink-muted: #b4a8c4;
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --shadow: 0 1px 2px rgba(31, 24, 38, .05), 0 12px 32px -12px rgba(31, 24, 38, .18);
  --shadow-lg: 0 30px 80px -20px rgba(20, 15, 31, .45);
  color-scheme: light;
}
:root[data-theme="terracotta"] { --p: #b9553b; --p-hi: #f3a68d; --p2: #d9824f; --p3: #8fae6a; --ink: #1b120e; --ink-2: #2a1b15; --p-soft: #f8e6de; }
:root[data-theme="indigo"]     { --p: #4f46e5; --p-hi: #b4afff; --p2: #8b5cf6; --p3: #f59e0b; --ink: #0f1022; --ink-2: #181a36; --p-soft: #e9e8fd; }
:root[data-theme="mint"]       { --p: #17926f; --p-hi: #7be3c3; --p2: #2bb3a0; --p3: #f4a340; --ink: #0c1714; --ink-2: #142420; --p-soft: #e1f3ec; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110d17; --card: #1a1522; --card-2: #211b2b; --line: #2d2539; --text: #f1ecf6; --muted: #a79db3;
    --p: #b49be8; --p-soft: #2a2140;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
  :root[data-theme="terracotta"] { --p: #ec8d6f; --p-soft: #3a2219; }
  :root[data-theme="indigo"]     { --p: #a5a0ff; --p-soft: #24244d; }
  :root[data-theme="mint"]       { --p: #3cc79c; --p-soft: #16362c; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s; }
img { max-width: 100%; }
a { color: var(--p); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h3 { font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
em { font-style: normal; background: linear-gradient(100deg, var(--p), var(--p2) 60%, var(--p3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.emo { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--card); padding: .5rem 1rem; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--p); outline-offset: 3px; border-radius: 8px; }

/* ── Полоса прогресса прокрутки ── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--p), var(--p2), var(--p3)); }

/* ── Кнопки ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .6rem 1.25rem;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s, border-color .2s, color .2s; overflow: hidden; isolation: isolate;
}
.btn-sm { min-height: 40px; padding: .45rem 1.05rem; font-size: .9rem; }
.btn-lg { min-height: 58px; padding: .85rem 1.7rem; font-size: 1.03rem; }
.btn-primary { background: var(--p); color: #fff; box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--p) 70%, transparent); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #150f1d; } }
.btn-primary::after { /* блик */
  content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 40px -10px color-mix(in srgb, var(--p) 80%, transparent); }
.btn-glass { background: rgba(255, 255, 255, .08); color: var(--on-ink); border-color: rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-white { background: #fff; color: #1f1826; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .5); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.hero .btn-primary { background: var(--p-hi); color: #150f1d; }

/* ── Шапка: плавающая «пилюля» ── */
.top { position: fixed; top: 12px; left: 0; right: 0; z-index: 100; pointer-events: none; }
.top-in {
  pointer-events: auto; margin: 0 auto; width: min(1160px, calc(100% - 24px)); height: 60px; padding: 0 10px 0 20px; display: flex; align-items: center; gap: 1rem;
  border-radius: 999px; background: color-mix(in srgb, var(--card) 72%, transparent); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); box-shadow: 0 10px 30px -18px rgba(20, 15, 31, .4);
  transition: background .35s, border-color .35s, color .35s;
}
.top.on-dark .top-in { background: rgba(20, 15, 31, .38); border-color: rgba(255, 255, 255, .12); color: var(--on-ink); }
.logo, .foot-logo { display: flex; flex: none; }
.logo img, .foot-logo img { height: 34px; width: auto; display: block; }
.logo-dark { display: none !important; }
.top.on-dark .logo-light { display: none !important; }
.top.on-dark .logo-dark { display: block !important; }
@media (prefers-color-scheme: dark) { .logo-light { display: none !important; } .logo-dark { display: block !important; } }
.nav { display: flex; gap: .1rem; margin: 0 auto; }
.nav a { color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; padding: .5rem .75rem; white-space: nowrap; border-radius: 999px; opacity: .82; transition: opacity .2s, background .2s; }
.nav a:hover { opacity: 1; background: color-mix(in srgb, var(--p) 12%, transparent); }
.top.on-dark .nav a:hover { background: rgba(255, 255, 255, .1); }
.nav .nav-login { display: none; }
.top-actions { display: flex; align-items: center; gap: .4rem; }
.link-login { color: inherit; text-decoration: none; font-weight: 700; font-size: .9rem; padding: .5rem .9rem; border-radius: 999px; }
.link-login:hover { background: color-mix(in srgb, var(--p) 12%, transparent); }
.top.on-dark .btn-primary { background: var(--p-hi); color: #150f1d; }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--p) 12%, transparent); cursor: pointer; padding: 0; position: relative; color: inherit; }
.top.on-dark .burger { background: rgba(255, 255, 255, .12); }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }
@media (max-width: 1120px) {
  .burger { display: block; }
  .link-login { display: none; }
  .top-actions { margin-left: auto; }
  .nav {
    position: absolute; top: 70px; left: 12px; right: 12px; flex-direction: column; padding: 10px; border-radius: 24px; margin: 0;
    background: var(--card); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top center; transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: .85rem 1rem; font-size: 1.05rem; opacity: 1; border-radius: 14px; }
  .nav .nav-login { display: block; color: var(--p); }
  .top.on-dark .nav a:hover { background: color-mix(in srgb, var(--p) 12%, transparent); }
}

/* ── Северное сияние (фон тёмных блоков) ── */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.aurora .a1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -10%; top: -30%; background: var(--p); animation: drift1 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 44vw; height: 44vw; max-width: 640px; max-height: 640px; right: -12%; top: -10%; background: var(--p2); animation: drift2 22s ease-in-out infinite alternate; }
.aurora .a3 { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; left: 30%; bottom: -35%; background: var(--p3); opacity: .35; animation: drift3 26s ease-in-out infinite alternate; }
.aurora.small i { filter: blur(60px); }
@keyframes drift1 { to { transform: translate(18%, 22%) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22%, 18%) scale(.9); } }
@keyframes drift3 { to { transform: translate(-25%, -20%) scale(1.2); } }

/* ── Первый экран ── */
.hero {
  position: relative; background: var(--ink); color: var(--on-ink); overflow: hidden; padding: 120px 0 0; isolation: isolate;
  border-radius: 0 0 40px 40px;
}
.hero::after { /* зерно */
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); mask: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding-bottom: 56px; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .9rem .35rem .4rem; border-radius: 999px; font-size: .86rem; font-weight: 600;
  color: var(--on-ink); text-decoration: none; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
  animation: fadeUp .8s var(--ease) both;
}
.pill:hover { background: rgba(255, 255, 255, .12); }
.pill-new { background: var(--p-hi); color: #150f1d; border-radius: 999px; padding: .15rem .6rem; font-weight: 800; font-size: .75rem; }
.hero h1 { font-size: clamp(2.6rem, 4.9vw, 4.7rem); margin: 22px 0 22px; letter-spacing: -.05em; line-height: .98; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.06em; }
.hero h1 .line > span { display: inline-block; animation: lineUp 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { white-space: nowrap; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.rotator { display: inline-block; height: 1.18em; overflow: hidden; vertical-align: -.2em; }
.rot-track { display: flex; flex-direction: column; animation: rotate 11s var(--ease) infinite; }
.rot-track > span {
  display: block; height: 1.18em; line-height: 1.18;
  background: linear-gradient(100deg, var(--p-hi), var(--p2) 55%, var(--p3)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes rotate {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-1.18em); }
  50%, 70% { transform: translateY(-2.36em); }
  75%, 95% { transform: translateY(-3.54em); }
  100% { transform: translateY(-4.72em); }
}
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lead { font-size: 1.15rem; color: var(--on-ink-muted); max-width: 33em; animation: fadeUp .9s .3s var(--ease) both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin: 30px 0 26px; animation: fadeUp .9s .42s var(--ease) both; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--on-ink-muted); font-size: .9rem; font-weight: 600; animation: fadeUp .9s .54s var(--ease) both; }
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--p-hi) 25%, transparent) no-repeat center / 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.3 8 3' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; align-items: center; animation: fadeUp 1.1s .2s var(--ease) both; }
.glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p-hi) 55%, transparent), transparent 65%); filter: blur(20px); animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }

/* Телефон */
.phone {
  position: relative; width: 300px; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2e2639, #120d18);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 7px #0b080f;
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 99px; background: #0b080f; z-index: 3; }
.tilt { transform: perspective(1400px) rotateY(calc(var(--ry, -12) * 1deg)) rotateX(calc(var(--rx, 5) * 1deg)) rotateZ(1deg); transition: transform .5s var(--ease); transform-style: preserve-3d; }
.screen { position: relative; background: #f6f2ee; color: #1f1826; border-radius: 36px; padding: 46px 13px 16px; display: flex; flex-direction: column; gap: 11px; overflow: hidden; min-height: 560px; }
.s-top { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.s-mark { width: 28px; height: 28px; }
.s-av { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .75rem; }
.s-hero { background: linear-gradient(135deg, color-mix(in srgb, var(--p) 85%, #000), var(--p) 50%, var(--p2)); color: #fff; border-radius: 22px; padding: 15px; display: flex; justify-content: space-between; gap: 8px; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--p) 80%, transparent); transition: background .4s; }
.s-hero-label { font-size: .74rem; opacity: .85; font-weight: 600; }
.s-hero-value { font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.s-hero-value small { font-size: .85rem; font-weight: 600; margin-left: 4px; opacity: .85; letter-spacing: 0; }
.s-chips { display: flex; flex-direction: column; gap: 4px; }
.s-chips span { font-size: .64rem; background: rgba(255, 255, 255, .17); border-radius: 8px; padding: 4px 8px; display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.ring { position: relative; flex: none; width: 78px; height: 78px; align-self: center; display: grid; place-items: center; align-content: center; text-align: center; line-height: 1.1; --pct: 0; transition: --pct 1.6s var(--ease) .4s; }
.ring.go { --pct: var(--to, 0); }
.ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#fff calc(var(--pct) * 1%), rgba(255, 255, 255, .22) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); }
.ring span { font-weight: 800; font-size: 1rem; position: relative; }
.ring small { font-size: .6rem; opacity: .85; position: relative; }
.s-card { background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 6px 20px -10px rgba(31, 24, 38, .25); display: flex; flex-direction: column; gap: 9px; }
.s-title { font-weight: 800; font-size: .82rem; }
.s-row { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 8px; align-items: center; font-size: .74rem; font-weight: 600; }
.s-row .emo { width: 22px; height: 22px; grid-row: span 2; }
.s-row b small { color: #8a8091; font-weight: 600; }
.s-row .bar { grid-column: 2 / 4; }

/* Полоски */
.bar { --w: 0; display: block; height: 7px; border-radius: 99px; background: rgba(120, 100, 140, .16); position: relative; overflow: hidden; }
.bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--p); transition: width 1.4s var(--ease) .3s, background .4s; }
.bar.go::after { width: calc(var(--w) * 1%); }
.bar.ok::after { background: var(--ok); }
.bar.bad::after { background: var(--bad); }
.bar.warm::after { background: var(--p3); }

/* Уведомления у телефона */
.toasts { position: absolute; right: -6px; top: 13%; width: 250px; height: 70px; z-index: 4; }
.toast {
  position: absolute; inset: 0 auto auto 0; width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .92); color: #1f1826; box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .55); backdrop-filter: blur(12px);
  font-size: .8rem; line-height: 1.3; opacity: 0; animation: toast 14s var(--ease) infinite;
}
.toast:nth-child(2) { animation-delay: 3.5s; }
.toast:nth-child(3) { animation-delay: 7s; }
.toast:nth-child(4) { animation-delay: 10.5s; }
.toast .emo { width: 30px; height: 30px; }
.toast b { display: block; }
.toast span { color: #6c6274; font-weight: 600; }
@keyframes toast {
  0% { opacity: 0; transform: translateX(30px) scale(.94); }
  4% { opacity: 1; transform: none; }
  22% { opacity: 1; transform: none; }
  26% { opacity: 0; transform: translateY(-16px) scale(.96); }
  100% { opacity: 0; transform: translateY(-16px) scale(.96); }
}
.chip-float {
  position: absolute; left: 0; bottom: 14%; z-index: 4; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: rgba(20, 15, 31, .6); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); font-weight: 700; font-size: .85rem; color: var(--on-ink);
  animation: bob 6s ease-in-out infinite;
}
.dot-ok { width: 9px; height: 9px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Бегущая строка */
.marquee {
  position: relative; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 28px; padding-right: 28px; font-weight: 700; font-size: 1.05rem; color: var(--on-ink-muted); white-space: nowrap; }
.marquee-track span::after { content: '✦'; color: var(--p-hi); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .hero { padding-top: 104px; border-radius: 0 0 28px 28px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-bottom: 32px; }
  .hero-visual { min-height: 0; padding: 20px 0 10px; }
  .phone { width: 270px; }
  .screen { min-height: 500px; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .lead { font-size: 1.02rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .toasts { right: -8px; top: 6%; width: 220px; }
  .chip-float { left: -4px; bottom: 10%; font-size: .78rem; }
  .phone { width: 250px; }
}

/* ── Заголовки разделов ── */
section { position: relative; }
.sec-head { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px 48px; align-items: end; margin-bottom: 36px; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; margin-bottom: 26px; } }
.split .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(2deg); filter: blur(6px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w { opacity: 1; transform: none; filter: none; }

/* ── Бенто ── */
.features { padding: 96px 0 72px; }
.bento {
  display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto);
  grid-template-areas: "a a b b" "a a c d" "e e c f" "g h i i";
}
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; } .t-d { grid-area: d; } .t-e { grid-area: e; }
.t-f { grid-area: f; } .t-g { grid-area: g; } .t-h { grid-area: h; } .t-i { grid-area: i; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 24px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); isolation: isolate;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background .4s;
}
.tile::before { /* подсветка за курсором */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--p) 14%, transparent), transparent 60%);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(31, 24, 38, .35); border-color: color-mix(in srgb, var(--p) 35%, var(--line)); }
.tile:hover::before { opacity: 1; }
.t-text { display: flex; flex-direction: column; gap: 8px; }
.t-text.row { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 12px; }
.t-text p { color: var(--muted); font-size: .95rem; max-width: 30em; }
.t-tag { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--p); }
.t-hint { font-size: .85rem !important; }

/* A — тёмная главная плитка */
.t-a { background: var(--ink); color: var(--on-ink); border-color: transparent; justify-content: space-between; }
.t-a::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -140px; border-radius: 50%; z-index: -1; background: radial-gradient(circle, color-mix(in srgb, var(--p2) 60%, transparent), transparent 65%); filter: blur(10px); animation: breathe 7s ease-in-out infinite; }
.t-a .t-tag { color: var(--p-hi); }
.t-a .t-text p { color: var(--on-ink-muted); }
.t-a h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.big-num { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 10px 22px; align-items: center; }
.big-ring { grid-row: span 2; width: 150px; height: 150px; border-radius: 50%; position: relative; --pct: 0; transition: --pct 2s var(--ease) .3s; }
.big-ring.go { --pct: var(--to, 0); }
.big-ring::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from -90deg, var(--p-hi), var(--p2) calc(var(--pct) * .6%), var(--p3) calc(var(--pct) * 1%), rgba(255, 255, 255, .1) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px)); mask: radial-gradient(farthest-side, transparent calc(100% - 16px), #000 calc(100% - 15px)); }
.big-ring::after { content: '63% плана'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: var(--on-ink-muted); }
.big-val { font-size: clamp(3.4rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.big-val small { display: block; font-size: .95rem; letter-spacing: 0; font-weight: 600; color: var(--on-ink-muted); margin-top: 8px; }
.big-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.big-chips span { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 600; color: var(--on-ink-muted); }
.big-chips b { color: var(--on-ink); margin-left: 4px; }

/* B — прогноз */
.t-b { justify-content: space-between; }
.chart { width: 100%; height: auto; display: block; color: var(--p); overflow: visible; }
.c-min { stroke: var(--bad); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: .55; vector-effect: non-scaling-stroke; }
.c-line { fill: none; stroke: var(--p); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease) .2s, stroke .4s; }
.c-area { opacity: 0; transition: opacity 1s 1.2s; }
.c-dot { fill: var(--p3); stroke: var(--card); stroke-width: 3; opacity: 0; transform-origin: 285px 86px; transform-box: view-box; transition: opacity .3s 1.6s; }
.in .c-line { stroke-dashoffset: 0; }
.in .c-area { opacity: 1; }
.in .c-dot { opacity: 1; animation: dotPulse 2s 2s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.5); } }
.chart-note { font-size: .85rem; color: var(--muted); font-weight: 600; }
.chart-note b { color: var(--text); }

/* C — чек */
.t-c { background: linear-gradient(180deg, var(--card), var(--card-2)); }
.receipt { position: relative; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.r-paper {
  position: relative; overflow: hidden; background: #fffdf7; color: #3a3530; font-family: var(--mono); font-size: .66rem; line-height: 1.55; padding: 12px 12px 18px;
  border-radius: 6px; box-shadow: 0 16px 30px -16px rgba(31, 24, 38, .45); transform: rotate(-1deg);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(circle 5px at 7px 7px, #000 98%, #0000) bottom left / 14px 7px repeat-x;
  mask: linear-gradient(#000 0 0) top / 100% calc(100% - 7px) no-repeat, radial-gradient(circle 5px at 7px 7px, #000 98%, #0000) bottom left / 14px 7px repeat-x;
}
.r-head { text-align: center; font-weight: 700; border-bottom: 1px dashed #cfc5b8; padding-bottom: 5px; margin-bottom: 5px; }
.r-line, .r-total { display: flex; justify-content: space-between; gap: 8px; }
.r-total { border-top: 1px dashed #cfc5b8; margin-top: 5px; padding-top: 5px; font-weight: 700; font-size: .74rem; }
.r-scan { position: absolute; left: 0; right: 0; top: -40px; height: 40px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--p) 35%, transparent)); border-bottom: 2px solid var(--p); animation: scan 3.5s ease-in-out infinite; }
@keyframes scan { 0% { top: -40px; } 65%, 100% { top: 100%; } }
.r-found { display: flex; flex-wrap: wrap; gap: 6px; }
.r-found span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 5px 6px; border-radius: 999px; background: var(--p-soft); font-size: .78rem; font-weight: 700; opacity: 0; animation: chipIn 7s var(--ease) infinite; }
.r-found .emo { width: 18px; height: 18px; }
.r-found span:nth-child(2) { animation-delay: .35s; } .r-found span:nth-child(3) { animation-delay: .7s; }
.r-found span:nth-child(4) { animation-delay: 1.05s; } .r-found span:nth-child(5) { animation-delay: 1.4s; } .r-found span:nth-child(6) { animation-delay: 1.75s; }
@keyframes chipIn { 0% { opacity: 0; transform: scale(.7) translateY(6px); } 8% { opacity: 1; transform: none; } 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: scale(.9); } }
.r-ok { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem; color: var(--ok); opacity: 0; animation: chipIn 7s 2.2s var(--ease) infinite; }

/* D — счета */
.bills { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bills li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .92rem; }
.bills b { margin-left: auto; font-variant-numeric: tabular-nums; }
.cb { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 2px solid var(--line); position: relative; transition: background .3s, border-color .3s; }
.cb::after { content: ''; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .35s var(--ease); }
.in .bills li .cb, .sl.done .cb { background: var(--ok); border-color: var(--ok); }
.in .bills li .cb::after, .sl.done .cb::after { transform: rotate(45deg) scale(1); }
.bills li .cb, .bills li .cb::after { transition-delay: calc(var(--i, 0) * .45s + .5s); }
.bills li:nth-child(1) { --i: 0; } .bills li:nth-child(2) { --i: 1; } .bills li:nth-child(3) { --i: 2; }
.bills li:nth-child(3) .cb { background: transparent !important; border-color: var(--line) !important; }
.bills li:nth-child(3) .cb::after { transform: rotate(45deg) scale(0) !important; }
.bills li:nth-child(3) span::after { content: 'до 28.10'; margin-left: 6px; font-size: .72rem; color: var(--muted); font-weight: 600; }

/* E — меню */
.t-e { background: var(--p-soft); border-color: transparent; }
.price-tag { flex: none; background: var(--card); border-radius: 16px; padding: 8px 14px; font-weight: 800; font-size: 1.15rem; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.price-tag small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.dishes { overflow: hidden; margin: 0 -24px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.dishes-track { display: flex; gap: 10px; width: max-content; animation: marquee 32s linear infinite; padding: 4px 0; }
.t-e:hover .dishes-track { animation-play-state: paused; }
.dish { width: 150px; background: var(--card); border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 3px; box-shadow: var(--shadow); }
.dish b { font-size: .84rem; line-height: 1.2; padding: 4px 4px 0; }
.dish small { color: var(--muted); font-size: .72rem; font-weight: 600; padding: 0 4px 2px; }
.d-img { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 12px; }
.d-img .emo { width: 40%; height: auto; max-width: 44px; }
.g1 { background: linear-gradient(135deg, #fde9c8, #f7cd8f); }
.g2 { background: linear-gradient(135deg, #fbe0d2, #f2b597); }
.g3 { background: linear-gradient(135deg, #e3f2d5, #bfe0a0); }
.g4 { background: linear-gradient(135deg, #fbe4e8, #f1bccb); }
.g5 { background: linear-gradient(135deg, #e7f0fb, #bcd5f3); }
.g6 { background: linear-gradient(135deg, #ece4fb, #cdbcf3); }

/* F — цели */
.goals { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.goals div { display: flex; flex-direction: column; gap: 5px; font-size: .84rem; font-weight: 700; }
.goals .bar { height: 9px; }

/* G — семья */
.t-g { background: color-mix(in srgb, var(--p3) 16%, var(--card)); border-color: transparent; }
.fam { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.avs { display: flex; }
.av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; border: 3px solid var(--card); margin-left: -10px; transition: transform .3s var(--ease); }
.av:first-child { margin-left: 0; }
.t-g:hover .av { transform: translateY(-4px); }
.t-g:hover .av:nth-child(2) { transition-delay: .05s; } .t-g:hover .av:nth-child(3) { transition-delay: .1s; } .t-g:hover .av:nth-child(4) { transition-delay: .15s; }
.v1 { background: linear-gradient(135deg, var(--p), var(--p2)); }
.v2 { background: linear-gradient(135deg, #f2a65a, #ef6a5b); }
.v3 { background: linear-gradient(135deg, #4fb3a0, #3a8fd1); }
.av.add { background: var(--card); color: var(--p); border: 2px dashed color-mix(in srgb, var(--p) 50%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--p) 12%, transparent); } }
.roles { display: flex; flex-wrap: wrap; gap: 6px; }
.roles span { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--muted); }

/* H — темы */
.swatches { display: flex; gap: 10px; margin-top: auto; }
.sw { width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; padding: 0; position: relative; transition: transform .3s var(--ease); }
.sw::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid transparent; transition: border-color .3s; }
.sw:hover { transform: scale(1.1) rotate(-8deg); }
.sw.on::after { border-color: var(--text); }
.sw[data-theme="plum"] { background: conic-gradient(from 210deg, #573b88, #b8648f, #f2a65a, #573b88); }
.sw[data-theme="terracotta"] { background: conic-gradient(from 210deg, #a8452f, #e0965a, #8fae6a, #a8452f); }
.sw[data-theme="indigo"] { background: conic-gradient(from 210deg, #3730a3, #8b5cf6, #f59e0b, #3730a3); }
.sw[data-theme="mint"] { background: conic-gradient(from 210deg, #0f7a5c, #2bb3a0, #f4a340, #0f7a5c); }

/* I — импорт рецептов */
.t-i { flex-direction: row; align-items: center; gap: 24px; }
.t-i .t-text { flex: 1; }
.import { flex: 1.1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.url { display: flex; align-items: center; gap: 2px; background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-family: var(--mono); font-size: .8rem; color: var(--muted); overflow: hidden; }
.url::before { content: '🔗'; margin-right: 8px; font-family: var(--font); }
.url-text { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: typing 6s steps(26) infinite; }
.caret { width: 2px; height: 1.1em; background: var(--p); animation: blink 1s steps(1) infinite; }
@keyframes typing { 0% { width: 0; } 35%, 100% { width: 26ch; } }
@keyframes blink { 50% { opacity: 0; } }
.rcp { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); opacity: 0; animation: rcpIn 6s var(--ease) infinite; }
.rcp .d-img { width: 64px; flex: none; }
.rcp b { display: block; font-size: .9rem; }
.rcp small { color: var(--muted); font-size: .74rem; font-weight: 600; }
.star { margin-left: auto; padding-right: 8px; color: var(--p3); font-size: 1.2rem; }
@keyframes rcpIn { 0%, 38% { opacity: 0; transform: translateY(12px) scale(.96); } 46%, 90% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "b b" "c d" "c f" "e e" "g h" "i i"; }
}
@media (max-width: 620px) {
  .features { padding: 64px 0 48px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g" "h" "i"; grid-auto-rows: auto; }
  .tile { padding: 20px; }
  .big-ring { width: 110px; height: 110px; }
  .t-i { flex-direction: column; align-items: stretch; }
  .dishes { margin: 0 -20px; }
}

/* ── История: закреплённый телефон ── */
.story { padding: 72px 0 40px; background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--p-soft) 55%, var(--bg)) 50%, var(--bg)); }
.story-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.story-phone { position: sticky; top: max(84px, calc(50vh - 300px)); height: min(620px, calc(100vh - 100px)); display: grid; place-items: center; }
.story-phone::before { content: ''; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p) 30%, transparent), transparent 65%); filter: blur(30px); }
.story-phone .phone { width: 290px; }
.screens { min-height: min(560px, calc(100vh - 160px)); }
.scr { position: absolute; inset: 46px 13px 16px; display: flex; flex-direction: column; gap: 9px; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.screens[data-active="1"] [data-scr="1"], .screens[data-active="2"] [data-scr="2"], .screens[data-active="3"] [data-scr="3"],
.screens[data-active="4"] [data-scr="4"], .screens[data-active="5"] [data-scr="5"] { opacity: 1; transform: none; }
.scr-title { font-weight: 800; font-size: 1rem; display: flex; justify-content: space-between; align-items: baseline; }
.scr-title small { font-size: .74rem; color: #8a8091; }
.scr-btn { margin-top: auto; background: var(--p); color: #fff; text-align: center; font-weight: 800; font-size: .86rem; padding: 12px; border-radius: 14px; transition: background .4s; }
.kp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kp div { background: #fff; border-radius: 12px; padding: 8px 10px; }
.kp small { display: block; font-size: .64rem; color: #8a8091; font-weight: 600; }
.kp b { font-size: 1rem; }
.pl-row { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 8px 10px; font-size: .78rem; font-weight: 700; }
.pl-row .emo { width: 22px; height: 22px; }
.pl-row b { margin-left: auto; }
.pen, .auto { font-style: normal; font-size: .66rem; padding: 2px 7px; border-radius: 99px; background: color-mix(in srgb, var(--p) 14%, #fff); color: var(--p); font-weight: 800; }
.auto { background: #e3f6ec; color: #1b8a5a; }
.prog .bar { height: 8px; }
.grp { font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: #8a8091; margin-top: 4px; }
.sl { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 11px; padding: 7px 9px; font-size: .78rem; font-weight: 700; }
.sl .cb { width: 18px; height: 18px; border-radius: 6px; }
.sl .cb::after { left: 4px; top: 1px; width: 5px; height: 9px; }
.sl.done span { text-decoration: line-through; color: #a49aac; }
.scr-cam { inset: 0; padding: 0; }
.cam { position: relative; flex: 1; background: radial-gradient(circle at 50% 40%, #4b4155, #1d1724); display: grid; place-items: center; overflow: hidden; }
.cam-paper { width: 56%; height: 62%; background: #fffdf7; border-radius: 4px; transform: rotate(-4deg); padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.cam-paper i { height: 5px; border-radius: 3px; background: #d9d0c4; }
.cam-paper i:nth-child(odd) { width: 80%; } .cam-paper i.w { margin-top: auto; height: 8px; background: #8f8577; }
.cam-c { position: absolute; width: 34px; height: 34px; border: 3px solid #fff; opacity: .9; }
.c1 { top: 16%; left: 16%; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.c2 { top: 16%; right: 16%; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.c3 { bottom: 16%; left: 16%; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.c4 { bottom: 16%; right: 16%; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.screens[data-active="3"] .cam-c { animation: focus 1.6s var(--ease) both; }
@keyframes focus { from { transform: scale(1.4); opacity: 0; } to { transform: none; opacity: .9; } }
.cam-sheet { background: #fff; border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.cam-sheet b { font-size: 1rem; }
.cam-sheet span { font-size: .78rem; color: #1b8a5a; font-weight: 700; margin-bottom: 8px; }
.mm { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 7px; }
.mm .d-img { width: 62px; flex: none; }
.mm small { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: #8a8091; font-weight: 800; }
.mm b { display: block; font-size: .82rem; line-height: 1.2; }
.mm em { display: inline-block; margin-top: 3px; font-size: .64rem; font-weight: 700; color: #8a8091; background: #f3eef7; -webkit-background-clip: border-box; background-clip: border-box; border-radius: 99px; padding: 1px 7px; }
.mm-sum { margin-top: auto; text-align: center; font-weight: 800; font-size: .82rem; color: var(--p); background: color-mix(in srgb, var(--p) 10%, #fff); padding: 10px; border-radius: 12px; }
.free { background: linear-gradient(135deg, color-mix(in srgb, var(--p) 85%, #000), var(--p) 50%, var(--p2)); color: #fff; border-radius: 20px; padding: 18px 16px; }
.free small { font-size: .74rem; opacity: .85; font-weight: 600; }
.free b { display: block; font-size: 2rem; letter-spacing: -.03em; }
.dist { display: grid; grid-template-columns: 1fr auto; gap: 6px; background: #fff; border-radius: 13px; padding: 10px 12px; font-size: .82rem; font-weight: 700; }
.dist b { color: #1b8a5a; }
.dist .bar { grid-column: 1 / -1; }

.steps { list-style: none; padding: 0; margin: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0 24px 28px; border-left: 2px solid var(--line); position: relative; opacity: .35; transition: opacity .5s; }
.step::before { content: ''; position: absolute; left: -2px; top: 50%; height: 0; width: 2px; background: linear-gradient(var(--p), var(--p2)); transform: translateY(-50%); transition: height .6s var(--ease); }
.step.active { opacity: 1; }
.step.active::before { height: 60%; }
.st-n { font-weight: 800; font-size: .9rem; color: var(--p); letter-spacing: .06em; }
.step h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; }
.step p { color: var(--muted); font-size: 1.1rem; max-width: 28em; }
.st-media { display: none; }
@media (max-width: 900px) {
  .story-in { grid-template-columns: 1fr; gap: 0; }
  .story-phone { display: none; }
  .step { min-height: 0; opacity: 1; padding: 22px 0 34px 20px; }
  .step::before { height: 40%; top: 30%; transform: none; }
  .st-media { display: block; position: relative; height: 460px; border-radius: 30px; overflow: hidden; background: #f6f2ee; margin-top: 10px; border: 8px solid #1d1724; color: #1f1826; max-width: 320px; }
  .st-media .scr { opacity: 1; transform: none; inset: 16px 12px 14px; }
  .st-media .scr-cam { inset: 0; }
}

/* ── Калькулятор ── */
.calc-sec { padding: 56px 0 96px; }
.calc { display: grid; grid-template-columns: 1fr 1fr; border-radius: 34px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.calc-form { padding: 44px; display: flex; flex-direction: column; gap: 16px; }
.calc-form h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.calc-sub { color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 7px; font-weight: 700; font-size: .92rem; }
.field > span:first-child { display: flex; align-items: baseline; gap: .5rem; }
.field b { margin-left: auto; color: var(--p); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.input-wrap { position: relative; display: block; }
.input-wrap i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; pointer-events: none; }
.field input[type="number"] {
  width: 100%; min-height: 54px; padding: .6rem 3.6rem .6rem 1.1rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card-2);
  font: inherit; font-size: 1.15rem; font-weight: 700; color: var(--text); -moz-appearance: textfield; appearance: textfield; transition: border-color .2s, box-shadow .2s;
}
.field input[type="number"]::-webkit-inner-spin-button, .field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field input[type="number"]:focus { outline: none; border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 18%, transparent); }
.field input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; cursor: pointer; margin: 10px 0;
  background: linear-gradient(90deg, var(--p) calc(var(--fill, 50) * 1%), var(--line) 0); }
.field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--p); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transition: transform .2s; }
.field input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--p); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.field input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc-result { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--on-ink); padding: 44px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.calc-result > :not(.aurora) { position: relative; z-index: 1; }
.cr-label { font-weight: 700; color: var(--on-ink-muted); }
.cr-value { font-size: clamp(3.8rem, 8vw, 6.4rem); font-weight: 800; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; transition: color .3s; }
.cr-value small { font-size: 1.3rem; font-weight: 600; margin-left: 10px; letter-spacing: 0; color: var(--on-ink-muted); }
.cr-value.bad { color: #ff9d8f; }
.cr-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-chip { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 8px 14px; font-size: .88rem; font-weight: 600; color: var(--on-ink-muted); }
.cr-chip b { color: var(--on-ink); margin-left: 6px; font-variant-numeric: tabular-nums; }
.cr-note { font-weight: 600; font-size: 1.02rem; }
.cr-fine { font-size: .8rem; color: var(--on-ink-muted); }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; border-radius: 26px; }
  .calc-form, .calc-result { padding: 28px 22px; }
  .calc-sec { padding: 32px 0 64px; }
}

/* ── Безопасность ── */
.security { background: var(--ink); color: var(--on-ink); padding: 100px 0; overflow: hidden; isolation: isolate; border-radius: 40px; margin: 0 12px; }
.sec-glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(600px circle at 15% 20%, color-mix(in srgb, var(--p) 45%, transparent), transparent 60%),
  radial-gradient(500px circle at 90% 90%, color-mix(in srgb, var(--p2) 35%, transparent), transparent 60%); animation: glowShift 14s ease-in-out infinite alternate; }
@keyframes glowShift { to { transform: translate(4%, -4%) scale(1.08); } }
.security-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.sec-lead { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 18px; }
.sec-lead p { color: var(--on-ink-muted); font-size: 1.08rem; max-width: 26em; }
.sec-lead em { background-image: linear-gradient(100deg, var(--p-hi), var(--p2) 60%, var(--p3)); }
.lock { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 0 60px color-mix(in srgb, var(--p-hi) 35%, transparent); }
.lock svg { width: 44px; height: 44px; fill: none; stroke: var(--p-hi); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.lock svg path:first-of-type { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.2s var(--ease) .3s; }
.in .lock svg path:first-of-type { stroke-dashoffset: 0; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.sec-list li { padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 6px; position: relative; }
.sec-list li::before { content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: linear-gradient(90deg, var(--p-hi), var(--p3)); transition: width 1s var(--ease) .2s; }
.sec-list li.in::before { width: 100%; }
.sec-list b { font-size: 1.08rem; }
.sec-list span { color: var(--on-ink-muted); font-size: .93rem; }
@media (max-width: 900px) {
  .security { padding: 64px 0; border-radius: 28px; margin: 0 8px; }
  .security-in { grid-template-columns: 1fr; gap: 24px; }
  .sec-lead { position: static; }
  .sec-list { grid-template-columns: 1fr; }
}

/* ── Вопросы ── */
.faq { padding: 100px 0; }
.faq-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-head { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.faq-head p { color: var(--muted); }
.faq-list details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; position: relative; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--p); }
.faq-list summary::before, .faq-list summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-list details[open]::details-content { height: auto; }
.ans p { color: var(--muted); padding: 0 40px 24px 0; font-size: 1.02rem; }
@media (max-width: 860px) {
  .faq { padding: 64px 0; }
  .faq-in { grid-template-columns: 1fr; gap: 24px; }
  .faq-head { position: static; }
  .faq-list summary { font-size: 1.05rem; padding: 20px 44px 20px 0; }
}

/* ── Призыв ── */
.cta { padding: 0 0 36px; }
.cta-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 40px; background: var(--ink); color: var(--on-ink); text-align: center; padding: 100px 24px; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.cta-card h2 { position: relative; z-index: 1; font-size: clamp(2.2rem, 5.6vw, 4.6rem); letter-spacing: -.05em; }
.cta-card h2 em { background-image: linear-gradient(100deg, var(--p-hi), var(--p2) 55%, var(--p3)); }
.cta-card .btn { position: relative; z-index: 1; }
@media (max-width: 620px) { .cta-card { padding: 64px 20px; border-radius: 28px; } }

/* ── Подвал ── */
.foot { padding: 28px 0 40px; color: var(--muted); font-size: .88rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; border-top: 1px solid var(--line); padding-top: 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--text); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--p); }
.foot p { margin-left: auto; }
@media (max-width: 760px) { .foot p { margin-left: 0; } }

/* ── Появление при прокрутке ── */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .tile.reveal.in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ── Меньше движения ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .toast:first-child, .r-found span, .r-ok, .rcp { opacity: 1 !important; }
  .toast:not(:first-child) { display: none; }
  .url-text { width: 26ch; }
  .js .reveal, .split .w { opacity: 1; transform: none; filter: none; }
}

/* ── Страница 404 ── */
.page-404 { background: var(--ink); color: var(--on-ink); }
.nf { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 32px 16px; isolation: isolate; overflow: hidden; }
.nf > :not(.aurora) { position: relative; z-index: 1; }
.nf .logo { margin-bottom: 24px; }
.nf .logo-light { display: none !important; }
.nf .logo-dark { display: block !important; }
.nf-code { font-size: clamp(6rem, 22vw, 12rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; background: linear-gradient(100deg, var(--p-hi), var(--p2) 55%, var(--p3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
.nf p { color: var(--on-ink-muted); max-width: 28em; margin-bottom: 12px; }
.nf .btn-primary { background: var(--p-hi); color: #150f1d; }

/* ── Питание: каталог блюд, рецепт с пересчётом, меню недели ── */
.food { padding: 96px 0 40px; }
.food-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.perk { position: relative; padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.perk::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line); }
.perk::after { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--p), var(--p2), var(--p3)); transition: width 1.1s var(--ease) .3s; }
.perk.in::after { width: 100%; }
.perk b { font-size: 1.05rem; }
.perk span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .food-perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .food-perks { grid-template-columns: 1fr; gap: 14px; } }

.food-demo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); grid-template-areas: "cat rec" "week week"; gap: 14px; }
.fd-catalog { grid-area: cat; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); min-width: 0; }
.fd-top { display: flex; flex-direction: column; gap: 12px; }
.fd-path { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); padding: 0 4px; }
.fd-path i { font-style: normal; opacity: .6; }
.fd-path b { color: var(--text); }
.fd-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.fd-chips::-webkit-scrollbar { display: none; }
.fd-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); font: inherit; font-weight: 700; font-size: .86rem; padding: 7px 14px 7px 10px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.fd-chip .emo { width: 18px; height: 18px; }
.fd-chip small { font-weight: 600; opacity: .6; font-size: .76rem; }
.fd-chip:hover { border-color: color-mix(in srgb, var(--p) 40%, var(--line)); }
.fd-chip[aria-selected="true"] { background: var(--p); border-color: var(--p); color: #fff; }
@media (prefers-color-scheme: dark) { .fd-chip[aria-selected="true"] { color: #150f1d; } }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); align-content: start; gap: 10px; flex: 1 1 0; min-height: 360px; overflow-y: auto; padding: 2px 4px 12px 2px; margin: -2px -4px -2px -2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-mask: linear-gradient(#000 calc(100% - 28px), transparent); mask: linear-gradient(#000 calc(100% - 28px), transparent); }
.fd-dish {
  position: relative; display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 7px 7px 10px; border-radius: 18px; border: 1.5px solid transparent;
  background: var(--card-2); color: var(--text); font: inherit; cursor: pointer; transition: transform .3s var(--ease), border-color .2s, box-shadow .3s;
  animation: dishIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms);
}
@keyframes dishIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.fd-dish:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(31, 24, 38, .45); }
.fd-dish[aria-pressed="true"] { border-color: var(--p); box-shadow: 0 0 0 4px color-mix(in srgb, var(--p) 16%, transparent); }
.fd-dish .d-img { aspect-ratio: 4 / 3; border-radius: 13px; position: relative; overflow: hidden; }
.fd-dish .d-img .emo { width: 46%; max-width: 64px; transition: transform .4s var(--ease); }
.fd-dish:hover .d-img .emo { transform: scale(1.12) rotate(-6deg); }
.fd-dish b { font-size: .86rem; line-height: 1.2; padding: 2px 3px 0; }
.fd-dish small { font-size: .74rem; color: var(--muted); font-weight: 600; padding: 0 3px; }
.fd-dish .price { color: var(--p); font-weight: 800; }
.fd-dish .fav { position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .85); color: #c9bfd2; font-size: .85rem; line-height: 1; }
.fd-dish .fav.on { color: #f2a65a; }
.fd-dish .time { position: absolute; left: 12px; top: 12px; font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: rgba(255, 255, 255, .85); color: #4a4152; }

.fd-recipe { grid-area: rec; position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--on-ink); border-radius: 28px; display: flex; flex-direction: column; min-width: 0; box-shadow: var(--shadow-lg); }
.fr-photo { position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; }
.fr-photo::after { content: ''; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(transparent, var(--ink)); }
.fr-photo .emo { width: 30%; max-width: 110px; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .25)); animation: bob 5s ease-in-out infinite; }
.fr-photo.swap .emo { animation: popIn .5s var(--ease); }
@keyframes popIn { from { transform: scale(.5) rotate(-20deg); opacity: 0; } }
.fr-body { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; margin-top: -18px; position: relative; }
.fr-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.fr-cat { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--p-hi); }
.fr-title { font-size: 1.5rem; margin: 4px 0; }
.fr-meta { font-size: .84rem; color: var(--on-ink-muted); font-weight: 600; }
.fr-fav { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .45); font-size: 1.15rem; cursor: pointer; transition: color .2s, transform .3s var(--ease), background .2s; }
.fr-fav[aria-pressed="true"] { color: #f6b86a; background: rgba(246, 184, 106, .14); transform: rotate(-12deg) scale(1.08); }
.fr-servings { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: .92rem; }
.stepper { display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; padding: 4px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .1); color: var(--on-ink); font: inherit; font-size: 1.1rem; font-weight: 800; cursor: pointer; transition: background .2s, transform .15s; }
.stepper button:hover { background: rgba(255, 255, 255, .2); }
.stepper button:active { transform: scale(.9); }
.st-val { min-width: 32px; text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.fr-ings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; max-height: 240px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .2) transparent; }
.fr-ings li { display: grid; grid-template-columns: 1fr auto 64px; gap: 10px; align-items: baseline; padding: 7px 2px; border-bottom: 1px dashed rgba(255, 255, 255, .1); font-size: .88rem; animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms); }
.fr-ings li span:nth-child(2) { color: var(--on-ink-muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.fr-ings li span:nth-child(3) { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.flash { animation: flash .6s var(--ease); }
@keyframes flash { 30% { color: var(--p-hi); } }
.fr-total { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fr-total div { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 10px 14px; }
.fr-total small { display: block; font-size: .74rem; color: var(--on-ink-muted); font-weight: 600; }
.fr-total b { font-size: 1.45rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fr-add { width: 100%; margin-top: auto; background: var(--p-hi); color: #150f1d; }
.fr-add.done { background: #3ddc97; }

.fd-week { grid-area: week; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.fw-head h3 { font-size: 1.35rem; }
.fw-sub { font-size: .84rem; color: var(--muted); font-weight: 600; }
.fw-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-ghost { background: var(--card-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--p); color: var(--p); }
.fw-grid { display: grid; grid-template-columns: 74px repeat(7, minmax(92px, 1fr)); gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.fw-day { font-size: .78rem; font-weight: 800; color: var(--muted); text-align: center; padding: 4px 0; }
.fw-meal { font-size: .72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; align-self: center; }
.fw-cell { min-height: 74px; border-radius: 14px; border: 1.5px dashed var(--line); display: grid; place-items: center; color: color-mix(in srgb, var(--muted) 60%, transparent); font: inherit; font-size: 1.1rem; background: transparent; cursor: default; padding: 0; transition: border-color .2s, background .2s; }
.fw-cell.filled { border: 0; background: var(--p-soft); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; padding: 7px; text-align: left; animation: cellIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.fw-cell.filled:hover { background: color-mix(in srgb, var(--bad) 12%, var(--p-soft)); }
.fw-cell .emo { width: 22px; height: 22px; }
.fw-cell b { font-size: .72rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fw-cell small { font-size: .66rem; color: var(--muted); font-weight: 700; }
.fw-cell.left { background: var(--card-2); }
@keyframes cellIn { from { opacity: 0; transform: scale(.7); } 60% { transform: scale(1.05); } }
.fw-foot { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 10px 28px; align-items: end; }
.fw-total small { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; }
.fw-total b { font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fw-budget { display: flex; flex-direction: column; gap: 6px; min-width: 200px; }
.fwb-top { display: flex; justify-content: space-between; gap: 10px; }
.fwb-top small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.fwb-top b { font-variant-numeric: tabular-nums; }
.fwb-bar { display: block; height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fwb-bar i { display: block; height: 100%; width: calc(min(var(--bp, 0), 100) * 1%); border-radius: inherit; background: var(--ok); transition: width .8s var(--ease), background .3s; }
.fw-budget.warn .fwb-bar i { background: var(--p3); }
.fw-budget.over .fwb-bar i { background: var(--bad); }
.fw-budget.over .fwb-pct { color: var(--bad); }
.fd-note { margin-top: 14px; font-size: .82rem; color: var(--muted); max-width: 60em; }

@media (max-width: 980px) {
  .food-demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cat" "rec" "week"; }
  .fd-grid { flex: none; min-height: 0; max-height: 460px; }
  .fw-foot { grid-template-columns: repeat(3, 1fr); }
  .fw-budget { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .food { padding: 64px 0 24px; }
  .fd-catalog, .fd-week { padding: 14px; border-radius: 22px; }
  .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 480px; }
  .fr-body { padding: 4px 16px 18px; }
  .fw-grid { grid-template-columns: 62px repeat(7, 96px); }
  .fw-total b { font-size: 1.2rem; }
}
.fd-empty { grid-column: 1 / -1; color: var(--muted); font-weight: 600; padding: 24px 8px; text-align: center; }
