/* ════════════════════════════════════════════════════════════════
   sushka.ai — marketing site design system
   Warm, friendly (sushka / донат icon) with a cool Telegram-blue
   accent borrowed from the product. Cyrillic-first type (Onest).
   ════════════════════════════════════════════════════════════════ */

:root {
  /* ── Surfaces — cool blue-grey, borrowed from the app ── */
  --cream:      #EAF1F8;
  --cream-2:    #E1EBF4;
  --cream-3:    #D2E1EE;
  --surface:    #FFFFFF;
  --surface-2:  #F6FAFD;

  /* Ink — cool near-black */
  --ink:        #13212E;
  --ink-2:      #415567;
  --muted:      #7B91A4;
  --muted-2:    #9AAEBE;
  --line:       #DBE6EF;
  --line-soft:  #E8F0F7;

  /* Brand — Telegram blue (the app's primary) */
  --brand:      #1E96E0;
  --brand-deep: #1576B4;
  --brand-soft: #C8E4F7;
  --brand-tint: #E7F3FC;
  --brand-shadow: rgba(21,118,180,.30);

  /* Warm caramel — RESERVED for the sushka logo / mark only */
  --logo:       #BE7B36;

  /* Secondary accent — warm coral (sesame seed), used sparingly */
  --accent:     #F2803C;
  --accent-deep:#D9641F;

  /* legacy sky aliases → brand blue */
  --sky:        #1E96E0;
  --sky-deep:   #1576B4;
  --sky-soft:   #DCEFFB;

  /* Macro semantics (from the app) */
  --cal:   #F2803C;
  --pro:   #2AABEE;
  --fat:   #F2B431;
  --carb:  #5FC076;

  --shadow-sm:  0 1px 2px rgba(15,30,45,.05), 0 4px 14px rgba(15,30,45,.06);
  --shadow-md:  0 2px 6px rgba(15,30,45,.07), 0 18px 40px rgba(15,30,45,.10);
  --shadow-lg:  0 8px 24px rgba(15,30,45,.10), 0 40px 80px rgba(15,30,45,.14);
  --shadow-phone: 0 30px 70px rgba(15,30,45,.24), 0 8px 24px rgba(15,30,45,.16);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --maxw: 1140px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ───────── Alternate palettes (live switcher) ───────── */
/* 2 · Глубокий океан — deeper, saturated, premium/trust */
:root[data-palette="ocean"] {
  --cream: #E7EFF7; --cream-2: #DCE8F2; --cream-3: #C9DBEB;
  --surface-2: #F2F8FD;
  --ink: #0E2233; --ink-2: #3A5168; --muted: #74899D; --line: #D3E2EE; --line-soft: #E2EDF6;
  --brand: #1B7FC4; --brand-deep: #0F5C92; --brand-soft: #BEDDF2; --brand-tint: #E2EFFA;
  --brand-shadow: rgba(15,92,146,.32);
  --sky: #1B7FC4; --sky-deep: #0F5C92; --sky-soft: #D6E9F7;
}
/* 3 · Лёд — airy, near-white, lighter Telegram blue */
:root[data-palette="ice"] {
  --cream: #F3F8FD; --cream-2: #EAF3FB; --cream-3: #DCEDF8;
  --surface-2: #FAFDFF;
  --ink: #16283A; --ink-2: #46596B; --muted: #889CAD; --line: #E4EFF8; --line-soft: #EFF6FC;
  --brand: #2AABEE; --brand-deep: #1E8FD0; --brand-soft: #D4EDFB; --brand-tint: #EEF8FE;
  --brand-shadow: rgba(30,143,208,.28);
  --sky: #2AABEE; --sky-deep: #1E8FD0; --sky-soft: #E4F4FD;
}
/* 4 · Синий + коралл — blue surfaces, warm coral on primary CTAs */
:root[data-palette="coral"] {
  --cream: #EEF3F8; --cream-2: #E5EDF5; --cream-3: #D6E3EF;
  --ink: #16242E; --ink-2: #45596A; --muted: #7E93A4; --line: #DEE8F0; --line-soft: #EAF0F6;
}
:root[data-palette="coral"] .btn-primary { background: var(--accent); box-shadow: 0 8px 20px rgba(217,100,31,.30); }
:root[data-palette="coral"] .btn-primary:hover { background: var(--accent-deep); box-shadow: 0 10px 26px rgba(217,100,31,.36); }
:root[data-palette="coral"] .eyebrow { color: var(--accent-deep); }
:root[data-palette="coral"] .eyebrow::before { background: var(--accent); }
:root[data-palette="coral"] .cta-band { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%) !important; }
:root[data-palette="coral"] .p-flag { background: var(--accent); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01";
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.06; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono {
  font-family: "Spline Sans Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ─── Layout ─────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
@media (max-width: 760px) { .section { padding: 64px 0; } }

.eyebrow {
  font-family: "Spline Sans Mono", monospace;
  font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-deep);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--brand); border-radius: 2px;
}

.s-head { max-width: 660px; }
.s-head h2 { font-size: clamp(30px, 4.4vw, 46px); margin-top: 18px; }
.s-head .lede { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px var(--brand-shadow); }
.btn-primary:hover { background: var(--brand-deep); box-shadow: 0 12px 26px var(--brand-shadow); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-sky { background: var(--sky); color: #fff; box-shadow: 0 8px 20px rgba(30,150,224,.28); }
.btn-sky:hover { background: var(--sky-deep); }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-block { width: 100%; }

/* ─── Store badges ───────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 11px 20px 11px 17px; border-radius: 15px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
  box-shadow: 0 6px 18px rgba(42,32,20,.18);
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(42,32,20,.24); }
.badge svg { flex-shrink: 0; }
.badge .b-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge .b-top { font-size: 10.5px; letter-spacing: .03em; opacity: .82; }
.badge .b-bot { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
.badge.web { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); }
.badge.web .b-top { opacity: .6; }

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}

/* ─── Phone mockup ───────────────────────────────────────── */
.phone {
  width: 300px; flex-shrink: 0;
  background: #0E0B07; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-phone);
  position: relative;
}
.phone::after { /* side buttons */
  content: ""; position: absolute; right: -2px; top: 120px; width: 3px; height: 58px;
  background: #241B10; border-radius: 2px;
}
.phone-screen {
  position: relative; border-radius: 36px; overflow: hidden;
  background: var(--cs-bg, #EFF3F6); aspect-ratio: 300 / 620;
  display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #0E0B07;
  border-radius: 0 0 16px 16px; z-index: 6;
}

/* App chat chrome (inside phone) */
.cs-header {
  display: flex; align-items: center; gap: 10px;
  padding: 30px 14px 10px; background: rgba(247,249,251,.92);
  backdrop-filter: blur(10px); border-bottom: .5px solid rgba(15,26,36,.08);
  position: relative; z-index: 5;
}
.cs-ava {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(120% 120% at 30% 25%, #F2D6A8 0%, #C99A5B 46%, #9A6B38 100%);
  display: grid; place-items: center;
}
.cs-ava::after { content:""; width:14px; height:14px; border-radius:50%; border:3.5px solid #9A6B38; background: radial-gradient(circle at 35% 30%, #F2D6A8, #C99A5B); }
.cs-meta { display: flex; flex-direction: column; line-height: 1.2; }
.cs-name { font-size: 14px; font-weight: 700; color: #0F1A24; }
.cs-status { font-size: 11px; color: var(--sky); font-weight: 500; }
.cs-body {
  flex: 1; min-height: 0; overflow: hidden; padding: 12px 12px 14px;
  background-color: #EFF3F6;
  background-image: radial-gradient(circle at 1px 1px, #E3E9EF 1px, transparent 0);
  background-size: 20px 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.bub { max-width: 84%; padding: 9px 12px; font-size: 13px; line-height: 1.42; border-radius: 16px; box-shadow: 0 1px 1.5px rgba(15,26,36,.05); }
.bub-in  { align-self: flex-start; background: #fff; color: #0F1A24; border-bottom-left-radius: 5px; }
.bub-out { align-self: flex-end; background: #E1F0FB; color: #0F1A24; border-bottom-right-radius: 5px; }
.bub-time { font-size: 9.5px; color: var(--muted-2); margin-top: 3px; text-align: right; }

.food-ph {
  width: 100%; height: 96px; border-radius: 11px; margin-bottom: 7px; overflow: hidden;
  background-image: repeating-linear-gradient(135deg, #EAD9BE 0 8px, #E2CFAE 8px 16px);
  display: grid; place-items: center;
}
.food-ph span { font-family: "Spline Sans Mono", monospace; font-size: 9.5px; color: #9A7B4C; letter-spacing: .04em; }

/* Macro mini-card inside a bubble */
.macro-card { width: 178px; }
.macro-card .mc-kcal { display: flex; align-items: baseline; gap: 6px; }
.macro-card .mc-num { font-size: 24px; font-weight: 700; color: #0F1A24; letter-spacing: -.02em; }
.macro-card .mc-unit { font-size: 12px; color: var(--muted); font-weight: 500; }
.macro-row { display: flex; gap: 6px; margin-top: 9px; }
.macro-chip { flex: 1; border-radius: 9px; padding: 6px 4px 5px; text-align: center; background: #F4F7FA; }
.macro-chip b { display: block; font-size: 13px; font-weight: 700; line-height: 1; }
.macro-chip span { font-size: 9px; color: var(--muted); letter-spacing: .02em; }

/* ─── Generic chips / pills ──────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: var(--brand-tint); color: var(--brand-deep); border: 1px solid var(--brand-soft);
}

/* ─── Top nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(234,241,248,.84); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(42,32,20,.05); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; padding: 0 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; color: var(--ink-2); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--brand-deep); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--ink); color: #DCE6EF; padding: 64px 0 36px; }
.footer a { color: #A9BECD; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer .f-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #7E94A6; margin-bottom: 16px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.footer .f-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 21px; color: #fff; }
.footer .f-brand img { width: 38px; height: 38px; border-radius: 10px; }
.f-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #7E94A6; }
@media (max-width: 760px) { .footer .f-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ─── Reveal-on-scroll ───────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ─── Palette switcher (live theme picker) ───────────────── */
.pal-switch { display: none; position: fixed; right: 18px; bottom: 18px; z-index: 200; }
.pal-switch__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px 10px 13px; box-shadow: var(--shadow-md);
  cursor: pointer; font: inherit; font-weight: 600; font-size: 14px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.pal-switch__toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.pal-switch__dots { display: flex; gap: 3px; }
.pal-switch__dots i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pal-switch__panel {
  position: absolute; right: 0; bottom: calc(100% + 10px); width: 246px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 10px; display: none;
}
.pal-switch.open .pal-switch__panel { display: block; }
.pal-switch__title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 5px 8px 9px; }
.pal-opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 1.5px solid transparent; background: transparent; border-radius: 13px;
  padding: 9px 10px; cursor: pointer; font: inherit;
}
.pal-opt + .pal-opt { margin-top: 2px; }
.pal-opt:hover { background: var(--cream); }
.pal-opt.on { border-color: var(--brand-soft); background: var(--brand-tint); }
.pal-opt__sw { display: flex; border-radius: 7px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); flex-shrink: 0; }
.pal-opt__sw span { width: 15px; height: 28px; }
.pal-opt__name { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.2; }
.pal-opt__name small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 1px; }
.pal-opt__check { margin-left: auto; color: var(--brand); opacity: 0; flex-shrink: 0; }
.pal-opt.on .pal-opt__check { opacity: 1; }
@media print { .pal-switch { display: none !important; } }

/* ── Authed nav additions ── */
.nav-acct { position: relative; }
.acct-trigger {
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px 5px 5px;
  cursor: pointer; font: inherit; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.acct-trigger:hover { border-color: var(--brand-soft); box-shadow: var(--shadow-md); }
.acct-av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}
.acct-name { font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.acct-caret { color: var(--muted); transition: transform .2s var(--ease); }
.nav-acct.open .acct-caret { transform: rotate(180deg); }

.acct-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 268px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; transform: translateY(-6px) scale(.98);
  transform-origin: top right; pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.nav-acct.open .acct-menu { opacity: 1; transform: none; pointer-events: auto; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 14px; }
.acct-head .acct-av { width: 44px; height: 44px; font-size: 17px; }
.acct-head b { font-size: 15.5px; font-weight: 600; display: block; line-height: 1.25; }
.acct-head span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.acct-pro {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--brand-deep); background: var(--brand-tint);
  border: 1px solid var(--brand-soft); padding: 2px 8px; border-radius: 999px;
}
.acct-div { height: 1px; background: var(--line-soft); margin: 4px 6px; }
.acct-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border-radius: 11px; border: 0; background: transparent;
  cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  text-align: left; transition: background .12s; text-decoration: none;
}
.acct-item:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.acct-item svg { flex-shrink: 0; color: var(--muted); }
.acct-item.danger { color: #C8472E; }
.acct-item.danger svg { color: #C8472E; }
.acct-item.danger:hover { background: #FDECE8; }
