/* ============================================================
   FURRIZO AI — RESET & NORMALIZATION
   Базовый сброс стилей. Импортируется после variables.css.
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Типографика ── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
}

p { line-height: var(--leading-relaxed); }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-smooth);
}

/* ── Медиа ── */
img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ── Формы ── */
input, textarea, button, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Списки ── */
ul, ol { list-style: none; }

/* ── Таблицы ── */
table { border-collapse: collapse; }

/* ── Selection ── */
::selection {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

/* ── Scrollbar (Webkit) ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Focus visible ── */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
