/* ============================================================
   Honey Money · общая дизайн-система
   Цвета и шрифты — из брендбука презентации:
   крем #EDE9E1 · графит #151512 · лайм #DFF867 · Manrope
   ============================================================ */
:root {
  --cream: #EDE9E1;
  --cream-2: #DFD7CA;
  --cream-3: #F7F4EE;
  --paper: #FAF8F3;
  --ink: #151512;
  --ink-2: #23231E;
  --ink-3: #303029;
  --black: #0B0B09;
  --lime: #DFF867;
  --lime-2: #CDEB3C;
  --lime-deep: #5C6B12;
  --olive: #565F2F;
  --muted: #6B675E;
  --muted-dark: #A5A296;
  --line: rgba(21, 21, 18, .12);
  --line-dark: rgba(250, 248, 243, .12);

  /* семантика оценок: позитив — лайм, негатив — коралл, нейтраль — бежевый */
  --pos: #DFF867;   --pos-ink: #3F4A06;
  --neg: #F08A6C;   --neg-ink: #8A2C14;  --neg-soft: #F7D5C9;
  --neu: #CFC7B8;   --neu-ink: #4B483F;
  --warn: #E9B949;  --warn-ink: #6E4E00;

  --r-xs: 8px; --r-sm: 12px; --r: 22px; --r-lg: 32px;
  --shadow: 0 1px 0 rgba(21,21,18,.04), 0 18px 40px -22px rgba(21,21,18,.35);
  --shadow-dark: 0 30px 60px -30px rgba(0,0,0,.7);

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "tnum" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--lime-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- типографика ---------- */
.h-display, .h1, .h2, .h3 { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h-display { font-size: clamp(48px, 9vw, 128px); letter-spacing: -.045em; line-height: .95; }
.h1 { font-size: clamp(40px, 6.4vw, 88px); }
.h2 { font-size: clamp(32px, 4.6vw, 60px); }
.h3 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.025em; line-height: 1.12; }
.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; font-weight: 500; margin: 0; max-width: 40ch; text-wrap: pretty; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; gap: .6em; align-items: center; margin: 0;
}
.eyebrow b { font-weight: 700; color: var(--ink); }
.caps { font-weight: 300; letter-spacing: .32em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.src { font-size: 12px; color: var(--muted); margin: 0; }
.hl { background: var(--lime); padding: 0 .18em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- кнопки ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--b-bg); color: var(--b-fg);
  font-weight: 700; font-size: 16px; letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lime { --b-bg: var(--lime); --b-fg: var(--ink); box-shadow: 0 0 0 0 rgba(223,248,103,.0); }
.btn--lime:hover { box-shadow: 0 10px 40px -8px rgba(223,248,103,.55); }
.btn--ghost { --b-bg: transparent; --b-fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { --b-bg: rgba(127,127,110,.12); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- таблетки оценок ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 13px; font-weight: 600; line-height: 1; padding: 7px 11px; border-radius: 999px;
  background: var(--neu); color: var(--neu-ink);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .75; }
.pill.pos { background: var(--pos); color: var(--pos-ink); }
.pill.neg { background: var(--neg-soft); color: var(--neg-ink); }
.pill.weak { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.pill.pos.weak { color: var(--lime-deep); }
.pill.neg.weak { color: var(--neg-ink); }
.pill.mvp { background: var(--lime); color: var(--ink); font-size: 11px; padding: 5px 9px; }
.pill.mvp::before, .pill.plain::before { display: none; }
.pill.later { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; font-size: 11px; padding: 5px 9px; }
.pill.later::before { display: none; }

/* ---------- сегменты ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: rgba(21,21,18,.06); padding: 4px; border-radius: 999px; }
.seg button { border: 0; background: transparent; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; white-space: nowrap; }
.seg button:hover { background: rgba(21,21,18,.07); }
.seg button.on { background: var(--ink); color: var(--paper); }
.seg--dark { background: rgba(250,248,243,.07); }
.seg--dark button:hover { background: rgba(250,248,243,.08); }
.seg--dark button.on { background: var(--lime); color: var(--ink); }


/* ---------- лого ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 34px; width: auto; max-width: none; }

/* ---------- блики (лаймовое свечение со слайдов) ---------- */
.glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(70px); opacity: .9;
  background: radial-gradient(closest-side, rgba(223,248,103,.95), rgba(223,248,103,.35) 55%, rgba(223,248,103,0));
  animation: drift 18s ease-in-out infinite alternate; }
.glow--soft { opacity: .55; }
@keyframes drift {
  0% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(4%, -6%, 0) scale(1.08); }
  100% { transform: translate3d(-5%, 4%, 0) scale(.95); }
}

/* ---------- появление при прокрутке ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 140%);
  background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 16px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-dark); transition: transform .45s var(--ease), visibility 0s .45s; max-width: calc(100vw - 32px);
  transform: translate(-50%, calc(100% + 60px)); visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
