/* ============================================================
   May Coupon — base.css
   reset + body + типографика (общая для landing/admin).
   Дублируется в web/admin/styles/base.css.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-base);
  font-size: var(--fz-md);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-image: var(--g-bg-hero);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Paper-noise texture (P2-19): тонкая шумовая «бумажная» фактура поверх body.
   SVG feTurbulence, opacity 0.025. На больших экранах — мало заметно, но добавляет
   фактурность. На мобиле тоже работает без перфоманс-удара. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
  mix-blend-mode: overlay;
}
body > * { position: relative; z-index: 1; }

h1, h2, h3, h4, h5, h6, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

input, textarea, select {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--c-primary-soft);
  color: var(--c-text);
}

/* Шрифт Manrope подгружаем через <link> в html; этот блок — fallback-семейство */

/* Тонкая кастомная скроллинг для тёмной темы */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb {
  background: var(--c-bg-elev-2);
  border-radius: var(--r-pill);
  border: 3px solid var(--c-bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--c-bg-elev-3); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

.container--wide {
  max-width: 1280px;
}

/* Утилитки */
.hl {
  background: var(--g-super);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--ff-mono); }

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