/* nutrition.css — /nutrition landing v2 (Nutrition 2.0, palette «Шалфей»).
   Ported verbatim from the approved mockup docs/design/nutrition-landing-2/index.html; the block under
   "production additions" at the end is the only part that is not in the mockup (static inline styles moved here
   because pages must not embed styles, skip link, cookie banner, footer button). Fonts are the app's
   self-hosted Onest + Unbounded (served from /fonts, gateway CSP font-src 'self'). Breakpoints: 1080 / 920 / 680. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/onest-latin-wght-normal.woff2") format("woff2"); 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; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/unbounded-latin-wght-normal.woff2") format("woff2"); 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; }

/* Layout concept: floating glass nav, soft sage mesh hero with a floating phone, a live calorie demo,
   a sticky-phone scroll story, a bento of features, deep-green pricing and closing blocks. */
:root {
  --bg: #F1F4EE; --surface: #FFFFFF; --sunken: #E8ECE3; --line: #D0D7C6; --line-soft: #E1E6D8;
  --ink: #17201A; --muted: #3F4B3C; --faint: #8A9684;
  --sage: #DDE6D1; --sage-2: #CBD9BC; --sun: #C9A53D; --on-sun: #17201A; --sun-soft: #F1ECCB; --sun-text: #5E4A00;
  --deep: #1F3326; --on-deep: #FFFFFF; --on-deep-2: #CFDACB; --btn: #1F3326; --on-btn: #FFFFFF;
  --protein: #3B57D9; --carbs: #E5640E; --fat: #0E9C82; --water: #0EA5E9; --over: #B42318;
  --glass: rgba(255, 255, 255, .72); --track: #C3CFB6; --shadow: 0 24px 60px rgba(23, 32, 26, .16), 0 3px 10px rgba(23, 32, 26, .08);
  --font-display: "Unbounded", "Onest", system-ui, sans-serif; --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-xl: 36px; --r-lg: 26px; --r-md: 18px; --r-sm: 12px; --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1410; --surface: #19211A; --sunken: #131A14; --line: #2B3829; --line-soft: #222D21;
    --ink: #EAF0E6; --muted: #B3C0AE; --faint: #6C7C67;
    --sage: #1B261C; --sage-2: #243222; --sun: #D6B446; --on-sun: #17201A; --sun-soft: #2B2915; --sun-text: #D6B446;
    --deep: #0A100B; --on-deep: #EAF0E6; --on-deep-2: #B3C0AE; --btn: #C6DDB2; --on-btn: #17201A;
    --protein: #8FA2FF; --carbs: #FFA45C; --fat: #3FD1B5; --water: #4CC3F5; --over: #FF8A7A;
    --glass: rgba(25, 33, 26, .72); --track: #2E3C2C; --shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 3px 10px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1410; --surface: #19211A; --sunken: #131A14; --line: #2B3829; --line-soft: #222D21;
  --ink: #EAF0E6; --muted: #B3C0AE; --faint: #6C7C67;
  --sage: #1B261C; --sage-2: #243222; --sun: #D6B446; --on-sun: #17201A; --sun-soft: #2B2915; --sun-text: #D6B446;
  --deep: #0A100B; --on-deep: #EAF0E6; --on-deep-2: #B3C0AE; --btn: #C6DDB2; --on-btn: #17201A;
  --protein: #8FA2FF; --carbs: #FFA45C; --fat: #3FD1B5; --water: #4CC3F5; --over: #FF8A7A;
  --glass: rgba(25, 33, 26, .72); --track: #2E3C2C; --shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 3px 10px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 90; background: var(--bg); }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; }
section { scroll-margin-top: 96px; }
h1, h2, h3, .num { font-family: var(--font-display); letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 52px); line-height: 1.08; font-weight: 800; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.22; font-weight: 700; text-wrap: balance; }
.eyebrow { font-size: 14px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 54ch; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .16s var(--ease), box-shadow .16s, background-color .16s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { box-shadow: var(--shadow); }
.btn-sun { background: var(--sun); color: var(--on-sun); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.link { font-weight: 650; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--line); }
.link:hover { text-decoration-color: var(--ink); }
.rise { transform: translateY(22px); transition: transform .7s var(--ease); }
.rise.in { transform: none; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 80; left: 0; right: 0; top: calc(12px + env(safe-area-inset-top, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); pointer-events: none; }
.nav-pill { pointer-events: auto; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: 1px solid var(--line-soft); box-shadow: 0 10px 30px rgba(23, 32, 26, .1); }
.brandsw { position: relative; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; padding-right: 4px; }
.chip-logo { display: grid; place-items: center; width: 62px; height: 38px; background: #fff; border-radius: 14px; border: 1px solid var(--line-soft); }
.chip-logo img { width: 48px; height: auto; display: block; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.sw-toggle { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.sw-toggle:hover { background: var(--sunken); }
.sw-menu { position: absolute; left: 0; top: calc(100% + 14px); min-width: 250px; padding: 8px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); box-shadow: var(--shadow); }
.sw-menu a { display: block; padding: 12px 14px; border-radius: var(--r-sm); text-decoration: none; }
.sw-menu a:hover { background: var(--sunken); }
.sw-menu a[aria-current] { background: var(--sun-soft); }
.sw-menu strong { display: block; font-weight: 650; } .sw-menu span { font-size: 14px; color: var(--muted); }
.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 550; color: var(--muted); }
.nav-links a:hover { background: var(--sunken); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: var(--muted); }
.theme-btn:hover { background: var(--sunken); color: var(--ink); }
.theme-btn .moon { display: none; } :root[data-theme="dark"] .theme-btn .sun { display: none; } :root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .sun { display: none; } :root:not([data-theme="light"]) .theme-btn .moon { display: block; } }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
.menu-btn { display: none; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-weight: 650; cursor: pointer; margin-left: auto; }
.sheet { position: fixed; inset: 0; z-index: 85; display: grid; align-content: start; gap: 22px; padding: calc(20px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); background: var(--bg); visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s .2s; }
.sheet.open { visibility: visible; opacity: 1; transition-delay: 0s; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; }
.sheet nav { display: grid; }
.sheet nav a { padding: 16px 2px; font-family: var(--font-display); font-weight: 700; font-size: 24px; text-decoration: none; border-bottom: 1px solid var(--line-soft); }
.sheet .btn { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(112px + env(safe-area-inset-top, 0px)); isolation: isolate; overflow-x: clip; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .9; }
.hero::before { width: 620px; height: 620px; right: -140px; top: 20px; background: var(--sage-2); }
.hero::after { width: 460px; height: 460px; left: -160px; top: 360px; background: var(--sun-soft); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 26px; justify-items: start; padding-bottom: 24px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); font-weight: 600; font-size: 14px; }
.pill i { width: 22px; height: 22px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; color: var(--on-sun); }
.pill i .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.hero h1 { font-size: clamp(40px, 6.4vw, 86px); line-height: 1.02; font-weight: 800; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-stage { position: relative; min-height: 640px; display: grid; place-items: center; }
.phone { position: relative; padding: 8px; border-radius: 42px; background: var(--ink); box-shadow: var(--shadow); }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; background: var(--bg); }
.hero-phone { width: min(300px, 62%); transform: rotate(4deg); }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 20px; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-soft); box-shadow: 0 16px 40px rgba(23, 32, 26, .16); font-size: 14px; line-height: 1.25; animation: bob 7s ease-in-out infinite; }
.float b { display: block; font-size: 16px; }
.float small { color: var(--muted); font-size: 13px; }
.f1 { left: -2%; top: 14%; } .f2 { right: -4%; top: 40%; animation-delay: -2.4s; } .f3 { left: 2%; bottom: 12%; animation-delay: -4.6s; }
.f-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.hero-fox { position: absolute; right: -6%; bottom: -14px; width: 42%; max-width: 260px; height: auto; filter: drop-shadow(0 18px 20px rgba(23, 32, 26, .22)); pointer-events: none; }

/* marquee */
.marquee { margin-top: 56px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; animation: slide 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--muted); white-space: nowrap; background: var(--surface); }
.marquee span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
.block { padding-top: clamp(72px, 10vw, 140px); }
.head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(32px, 5vw, 60px); }
.head p { font-size: 19px; color: var(--muted); max-width: 56ch; }

/* ---------- live demo ---------- */
.demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(28px, 5vw, 68px); background: var(--deep); color: var(--on-deep); border-radius: var(--r-xl); overflow: hidden; position: relative; }
.demo::before { content: ""; position: absolute; width: 520px; height: 520px; left: -160px; bottom: -260px; border-radius: 50%; background: var(--sun); opacity: .16; filter: blur(60px); }
.demo-copy { position: relative; display: grid; gap: 18px; }
.demo-copy .eyebrow { color: var(--on-deep-2); }
.demo-copy p { color: var(--on-deep-2); font-size: 18px; }
.foods { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.food { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px 0 12px; border: 1.5px solid rgba(207, 218, 203, .28); border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--on-deep); font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .14s var(--ease), background-color .14s, border-color .14s; }
.food:hover { background: rgba(255, 255, 255, .14); border-color: var(--sun); transform: translateY(-2px); }
.food:active { transform: scale(.96); }
.food .ic { width: 18px; height: 18px; color: var(--sun); }
.food small { color: var(--on-deep-2); font-weight: 500; }
.demo-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tool { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(207, 218, 203, .28); background: transparent; color: var(--on-deep); font-weight: 600; cursor: pointer; }
.tool:hover { background: rgba(255, 255, 255, .1); }
.tool.strong { background: var(--sun); color: var(--on-sun); border-color: var(--sun); }
.demo-note { font-size: 13px; color: var(--on-deep-2); }
.app { position: relative; background: var(--surface); color: var(--ink); border-radius: 32px; padding: 22px; display: grid; gap: 18px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.app-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.app-top small { font-size: 14px; color: var(--muted); } .app-top b { font-family: var(--font-display); font-size: 22px; }
.goal { font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 999px; background: var(--sage); }
.ring-box { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; background: var(--sage); border-radius: 24px; }
.ring { position: relative; width: 190px; height: 190px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; transition: stroke-dasharray .6s var(--ease), stroke-dashoffset .6s var(--ease); }
.ring .trk { stroke: var(--track); }
.ring-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-c .num { font-size: 31px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ring-c small { font-size: 13px; color: var(--muted); margin-top: 4px; }
.ring-c.over .num { color: var(--over); }
.macros { display: grid; gap: 12px; }
.mac { display: grid; gap: 5px; }
.mac-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.mac-h span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.mac-h i { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #fff; }
.mac-h b { font-variant-numeric: tabular-nums; font-weight: 700; }
.bar { height: 8px; border-radius: 99px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width .6s var(--ease); }
.eaten { display: grid; gap: 4px; min-height: 120px; align-content: start; }
.eaten-h { display: flex; justify-content: space-between; font-size: 14px; font-weight: 650; color: var(--muted); padding-bottom: 6px; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line-soft); animation: pop .35s var(--ease); }
.row b { flex: 1; font-weight: 600; min-width: 0; } .row small { color: var(--muted); font-variant-numeric: tabular-nums; }
.row button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--sunken); cursor: pointer; }
.row button .ic { width: 16px; height: 16px; }
.empty { padding: 18px 4px; color: var(--muted); font-size: 15px; }
@keyframes pop { from { transform: translateY(-6px); opacity: .2; } to { transform: none; opacity: 1; } }

/* ---------- story ---------- */
.story { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(32px, 7vw, 110px); align-items: start; }
.story-dev { position: sticky; top: max(96px, calc(50vh - 380px)); display: grid; place-items: center; padding: 40px 0; }
.story-dev::before { content: ""; position: absolute; inset: 10% 6%; border-radius: 50%; background: var(--sage-2); filter: blur(50px); opacity: .8; z-index: -1; }
.story-phone { width: min(320px, 100%); }
.story-phone .screens { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 390 / 844; background: var(--bg); }
.story-phone .screens img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; opacity: 0; transition: opacity .45s; }
.story-phone .screens img.on { opacity: 1; }
.steps { display: grid; }
.step { min-height: 80vh; display: grid; align-content: center; gap: 16px; opacity: .5; transition: opacity .35s; max-width: 520px; }
.step.on { opacity: 1; }
.step .tag { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sun-soft); color: var(--sun-text); }
.step p { color: var(--muted); font-size: 18px; }
.step ul { display: grid; gap: 10px; }
.step li { display: flex; gap: 12px; align-items: flex-start; }
.step li .ic { margin-top: 2px; color: var(--fat); width: 22px; height: 22px; }
.step h3 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; }
.step-shot { display: none; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.cell { position: relative; display: grid; align-content: start; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; min-height: 280px; }
.cell p { color: var(--muted); font-size: 16px; max-width: 44ch; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
.cell.sage { background: var(--sage); border-color: transparent; }
.cell.sun { background: var(--sun-soft); border-color: transparent; }
.cell.deep { background: var(--deep); color: var(--on-deep); border-color: transparent; } .cell.deep p { color: var(--on-deep-2); }
.cell .eyebrow { color: inherit; opacity: .8; }
.tablet { position: absolute; left: 50%; bottom: -230px; width: min(420px, 78%); padding: 8px; border-radius: 28px; background: var(--ink); box-shadow: var(--shadow); transform: translateX(-50%) rotate(-3deg); }
.tablet img { display: block; width: 100%; border-radius: 21px; }
.cell-tall { min-height: 530px; }
.duo { position: absolute; left: 50%; bottom: -110px; display: flex; gap: 16px; transform: translateX(-50%); }
.duo .phone { width: 180px; padding: 6px; border-radius: 30px; }
.duo .phone img { border-radius: 24px; }
.duo .phone:last-child { margin-top: -34px; }
.glasses { display: flex; gap: 6px; margin-top: 8px; }
.glass-cup { flex: 1; height: 54px; border-radius: 6px 6px 12px 12px; background: var(--sunken); border: 1px solid var(--line-soft); overflow: hidden; position: relative; cursor: pointer; transition: transform .14s; }
.glass-cup:hover { transform: translateY(-3px); }
.glass-cup::after { content: ""; position: absolute; inset: auto 0 0 0; height: 0; background: var(--water); transition: height .5s var(--ease); }
.glass-cup.full::after { height: 100%; }
.water-n { font-family: var(--font-display); font-size: 30px; font-weight: 800; }
.water-n small { font-size: 14px; font-family: var(--font-body); font-weight: 500; color: var(--muted); }
.scan { position: relative; height: 96px; margin-top: 6px; border-radius: 16px; background: var(--sunken); overflow: hidden; display: grid; place-items: center; }
.bars { width: 74%; height: 54px; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 7px, transparent 7px 11px, var(--ink) 11px 15px, transparent 15px 17px); border-radius: 3px; opacity: .85; }
.scan::after { content: ""; position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 3px; background: var(--over); box-shadow: 0 0 14px var(--over); animation: scanline 2.6s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 20%; } 50% { top: 76%; } }
.timeline { margin-top: 8px; display: grid; gap: 8px; }
.tl-bar { position: relative; height: 38px; border-radius: 12px; background: var(--sunken); overflow: hidden; }
.tl-bar i { position: absolute; top: 0; bottom: 0; left: 50%; width: 33.33%; background: var(--fat); border-radius: 12px; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; }
:root[data-theme="dark"] .tl-bar i { color: #0F1410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-bar i { color: #0F1410; } }
.tl-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.modes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.modes button { min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: transparent; font-weight: 650; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.acct { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin-top: 8px; }
.acct button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--on-deep); font-weight: 650; cursor: pointer; }
.acct button[aria-pressed="true"] { background: var(--sun); color: var(--on-sun); }
.acct-line { min-height: 54px; color: var(--on-deep-2); }
.letters { display: flex; gap: 10px; margin-top: 8px; }
.letters span { flex: 1; display: grid; place-items: center; gap: 2px; padding: 14px 6px; border-radius: 18px; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #fff; }
.letters small { font-family: var(--font-body); font-weight: 600; font-size: 12px; opacity: .92; }
.letters .b { background: var(--protein); } .letters .u { background: var(--carbs); } .letters .z { background: var(--fat); }
:root[data-theme="dark"] .letters span { color: #0F1410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .letters span { color: #0F1410; } }

/* ---------- guide ---------- */
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: end; padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) 0; background: var(--sun-soft); border-radius: var(--r-xl); overflow: hidden; }
.guide-body { display: grid; gap: 16px; justify-items: start; padding-bottom: clamp(28px, 4vw, 56px); }
.guide .eyebrow { color: var(--sun-text); }
.choices { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px; }
.choices button { min-height: 48px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.choices button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.answer { display: grid; gap: 8px; padding: 20px 22px; background: var(--surface); border-radius: var(--r-lg); max-width: 560px; }
.answer strong { font-family: var(--font-display); font-size: 18px; } .answer p { color: var(--muted); }
.guide-art { align-self: end; height: 440px; display: flex; align-items: flex-end; justify-content: center; }
.guide-art img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .22s, transform .35s var(--ease); }
.guide-art img.swap { opacity: 0; transform: translateY(10px); }

/* ---------- pricing, faq ---------- */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price { position: relative; display: grid; gap: 16px; align-content: start; justify-items: start; padding: clamp(26px, 3.4vw, 44px); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl); overflow: hidden; }
.price.main { background: var(--deep); color: var(--on-deep); border-color: transparent; }
.price.main::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: var(--sun); opacity: .2; filter: blur(40px); }
.price.main p, .price.main .list { color: var(--on-deep-2); }
.tag2 { padding: 6px 14px; border-radius: 999px; background: var(--sun-soft); color: var(--sun-text); font-size: 14px; font-weight: 650; }
.price.main .tag2 { background: var(--sun); color: var(--on-sun); }
.price h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.price .tbd { display: block; margin-top: 6px; font-size: .55em; font-weight: 600; color: var(--muted); }
.list { display: grid; gap: 10px; color: var(--muted); }
.list li { position: relative; padding-left: 30px; }
.list li::before { content: ""; position: absolute; left: 3px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--sun); border-bottom: 2.5px solid var(--sun); transform: rotate(-45deg); }
.fine { font-size: 14px; color: var(--muted); }
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; padding: 14px 22px; font-weight: 650; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sage); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); transition: transform .2s var(--ease); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 22px 20px; color: var(--muted); max-width: 62ch; }

/* ---------- final ---------- */
.final { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: center; padding: clamp(36px, 6vw, 88px); padding-bottom: 0; background: var(--deep); color: var(--on-deep); border-radius: var(--r-xl); overflow: hidden; }
.final::before { content: ""; position: absolute; right: -120px; top: -140px; width: 520px; height: 520px; border-radius: 50%; background: var(--sun); opacity: .16; filter: blur(60px); }
.final-copy { position: relative; display: grid; gap: 24px; justify-items: start; padding-bottom: clamp(36px, 6vw, 88px); }
.final .eyebrow, .final .fine { color: var(--on-deep-2); }
.final h2 { font-size: clamp(34px, 5.4vw, 70px); }
.final-art { position: relative; align-self: end; display: grid; justify-items: center; }
.final-art .phone { width: min(280px, 70%); border-radius: 40px 40px 0 0; padding-bottom: 0; transform: translateY(40px) rotate(-3deg); }
.final-art .phone img { border-radius: 32px 32px 0 0; }
.final-fox { position: absolute; left: -2%; bottom: 0; width: 38%; max-width: 200px; height: auto; }
footer { padding: 40px 0 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 32px; color: var(--muted); font-size: 15px; }
footer div { display: flex; flex-wrap: wrap; gap: 8px 24px; } footer a { text-decoration: none; } footer a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav-links a { padding: 10px 10px; }
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s2 { grid-column: span 2; } .s3 { grid-column: span 2; } .s4 { grid-column: span 4; }
  .cell-tall, .cell { min-height: 300px; }
  .tablet { width: min(320px, 70%); }
}
@media (max-width: 920px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .demo, .faq, .final { grid-template-columns: 1fr; }
  .hero-stage { min-height: 600px; }
  .ring-box { grid-template-columns: 160px minmax(0, 1fr); } .ring { width: 160px; height: 160px; } .ring-c .num { font-size: 34px; }
  .story { grid-template-columns: 1fr; }
  .story-dev { display: none; }
  .step { min-height: 0; opacity: 1; padding: 28px 0; border-top: 1px solid var(--line); max-width: none; }
  .step-shot { display: block; width: min(300px, 100%); margin-top: 10px; }
  .guide { grid-template-columns: 1fr; }
  .guide-art { height: 340px; justify-self: center; width: 100%; }
  .prices { grid-template-columns: 1fr; }
  .final-art .phone { width: min(260px, 70%); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .s2, .s3, .s4 { grid-column: auto; }
  .cell { min-height: 0; padding: 24px; }
  .cell-tall { min-height: 0; }
  .tablet, .duo { position: relative; left: auto; bottom: auto; transform: none; }
  .tablet { width: min(340px, 100%); margin: 18px auto -150px; transform: rotate(-3deg); }
  .duo { margin: 18px 0 -120px; justify-content: center; }
  .duo .phone { width: 150px; }
  .ring-box { grid-template-columns: 1fr; justify-items: center; }
  .ring-box .macros { width: 100%; }
  .hero-stage { min-height: 560px; }
  .f1 { left: -4px; } .f2 { right: -4px; } .f3 { left: -4px; }
  .float { padding: 10px 12px; font-size: 13px; } .float b { font-size: 14px; }
  .hero-actions .btn { width: 100%; }
  .brand b { display: none; }
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; width: 100%; gap: 6px; }
  .choices button { min-height: 56px; padding: 0 6px; font-size: 14px; line-height: 1.2; }
}
/* ---------- phone refinements ---------- */
@media (max-width: 680px) {
  .block { padding-top: 64px; }
  .head { margin-bottom: 28px; }
  h2 { font-size: clamp(26px, 8vw, 34px); }
  .lead, .head p { font-size: 17px; }
  /* hero: phone on the left, chips and fox on the right so nothing covers the ring */
  .hero { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .hero-copy { gap: 20px; }
  .hero-stage { min-height: 500px; display: block; margin-top: 8px; }
  .hero-phone { position: absolute; left: 4px; top: 6px; width: 64%; max-width: 250px; transform: rotate(-3deg); }
  .hero-fox { right: -10px; bottom: -6px; width: 46%; max-width: 190px; }
  .float { padding: 9px 12px; gap: 9px; border-radius: 16px; }
  .float b { font-size: 13px; } .float small { font-size: 12px; }
  .f-ico { width: 30px; height: 30px; border-radius: 10px; } .f-ico .ic { width: 16px; height: 16px; }
  .f1 { left: auto; right: 0; top: 4%; }
  .f2 { left: auto; right: 0; top: 24%; }
  .f3 { display: none; }
  .marquee { margin-top: 36px; }
  /* demo: heading, then the result, then the controls */
  .demo { padding: 24px 18px; border-radius: 28px; gap: 20px; }
  .demo-copy { display: contents; }
  .demo-copy > .eyebrow { order: 1; } .demo-copy > h2 { order: 2; } .demo-copy > p:not(.demo-note) { order: 3; }
  .demo .app { order: 4; padding: 16px; border-radius: 24px; }
  .demo-copy > .foods { order: 5; } .demo-copy > .demo-tools { order: 6; } .demo-copy > .demo-note { order: 7; }
  .demo-copy > h2, .demo-copy > p { margin: 0; }
  .demo { display: flex; flex-direction: column; align-items: stretch; }
  .foods { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max-content; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; }
  .foods::-webkit-scrollbar { display: none; }
  .food { white-space: nowrap; }
  .demo-tools .tool { flex: 1 1 0; justify-content: center; }
  .ring-box { padding: 14px; gap: 14px; }
  .ring { width: 150px; height: 150px; } .ring-c .num { font-size: 28px; }
  /* story */
  .story { gap: 0; }
  .step { padding: 32px 0; gap: 14px; }
  .step h3 { font-size: 26px; } .step p { font-size: 16.5px; }
  .step-shot { width: min(280px, 82%); margin: 8px auto 0; }
  /* bento */
  .cell { padding: 22px; border-radius: 22px; }
  .letters span { padding: 12px 4px; font-size: 22px; }
  .acct button { padding: 0 16px; }
  /* guide */
  .guide { padding: 24px 18px 0; border-radius: 28px; }
  .guide-art { height: 300px; }
  /* pricing, faq, final */
  .price { padding: 24px 20px; border-radius: 28px; }
  .faq summary { min-height: 60px; padding: 12px 16px; font-size: 16px; }
  .faq details p { padding: 0 16px 16px; }
  .final { padding: 28px 20px 0; border-radius: 28px; gap: 8px; }
  .final h2 { font-size: clamp(30px, 9vw, 40px); }
  .final-copy { padding-bottom: 8px; }
  .final-art .phone { width: min(240px, 68%); transform: translateY(24px) rotate(-3deg); }
  .final-fox { left: 0; width: 34%; max-width: 140px; }
  footer { padding: 28px 0 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ================= production additions (not in the mockup) ================= */
/* the mockup was shown inside a wrapper that reset the body margin */
body { margin: 0; }
/* former inline style="" attributes of the mockup */
.sprite { position: absolute; }
.f-sage { background: var(--sage); }
.f-protein { background: color-mix(in srgb, var(--protein) 18%, var(--surface)); color: var(--protein); }
.f-water { background: color-mix(in srgb, var(--water) 20%, var(--surface)); color: var(--water); }
.c-p { background: var(--protein); }
.c-c { background: var(--carbs); }
.c-f { background: var(--fat); }
/* dark theme: the letters in the macro chips get dark text like the «Макро-цвета» tiles do (white on the light dark-theme colours is ~2.4:1) */
:root[data-theme="dark"] .mac-h i { color: #0F1410; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mac-h i { color: #0F1410; } }
.sheet-brand { font-family: var(--font-display); }
.sheet .sheet-close { display: inline-flex; margin: 0; }
.guide h2 { font-size: clamp(26px, 3.4vw, 40px); }
.faq > .head { margin: 0; }
#final { padding-bottom: clamp(56px, 8vw, 100px); }
/* tap targets >= 44px without changing the look: the hit area of small controls is extended by an invisible pseudo-element */
.row button, .modes button, .sw-toggle { position: relative; }
.row button::after, .modes button::after, .sw-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); }
/* width/height attributes on images are only an aspect-ratio hint, as in the mockup where there were none */
img { height: auto; }
/* a thousands separator must never wrap inside a number */
.ring-c .num { white-space: nowrap; }

/* skip link (keyboard users) */
.skip-link { position: absolute; left: 16px; top: -64px; z-index: 110; padding: 10px 16px; border-radius: 12px; background: var(--btn); color: var(--on-btn); font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* footer: «Настройки cookie» is a button that must read like the neighbouring links */
footer .cookieConsentFooterLink { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
footer .cookieConsentFooterLink:hover { color: var(--ink); text-decoration: underline; }

/* ---------- cookie consent (same behaviour as the training landing, see nutrition.js) ---------- */
.cookieConsentBar { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 95; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; max-width: 1100px; margin: 0 auto; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.cookieConsentBar[hidden], .cookieConsentModalLayer[hidden] { display: none; }
.cookieConsentBody { flex: 1 1 360px; display: grid; gap: 6px; }
.cookieConsentBody p { font-size: 15px; color: var(--muted); }
.cookieConsentBody a { color: var(--ink); }
.cookieConsentActions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookieConsentActions .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }
.cookieConsentModalLayer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(14, 20, 16, .55); }
.cookieConsentModal { width: min(560px, 100%); max-height: 92vh; overflow: auto; display: grid; gap: 16px; padding: 28px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.cookieConsentModal h2 { font-size: 24px; }
.cookieConsentLead { color: var(--muted); font-size: 15px; }
.cookieConsentOptions { display: grid; gap: 10px; }
.cookieConsentOption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--bg); border-radius: var(--r-md); }
.cookieConsentOption small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.cookieConsentOption em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cookieConsentOption input { width: 24px; height: 24px; accent-color: var(--btn); flex: none; }
.cookieConsentLink { font-size: 14px; color: var(--muted); }
.modalActions { justify-content: flex-end; }
@media (max-width: 680px) {
  .cookieConsentBar { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); padding: 16px; }
  .cookieConsentActions .btn { flex: 1 1 auto; }
}
