/* =========================================================
   Андрей Комков — психонутрициолог (nutr)
   Статическая версия. Акцент: тёмно-зелёный.
   ========================================================= */

:root {
  --accent:      #3E6B4E;
  --accent-deep: #2C4F39;
  --card-r:      30px;
  --ink:         #1D1D1F;
  --muted:       #6E6E73;
  --faint:       #86868B;
  --bg:          #FFFFFF;
  --bg-alt:      #F5F5F7;
  --line:        #ECECEF;
  --font:        'Manrope', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

::selection {
  background: var(--accent);
  color: #fff;
}

a { color: inherit; }

/* ---------- hover helpers (бывший style-hover DC) ---------- */
.h-accent:hover {
  background: var(--accent-deep) !important;
  transform: translateY(-2px);
}

.h-fade:hover { opacity: 0.82 !important; }

.h-ghost:hover {
  box-shadow: 0 0 0 1.5px var(--accent) inset !important;
}

.h-muted:hover { color: var(--ink) !important; }

.h-accent-text:hover { color: var(--accent) !important; }

/* ---------- scroll-driven animations ---------- */
@keyframes appReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes appFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
