/* ============ Millennium — базовые стили ============ */
:root {
  --orange: #ff6a00;
  --orange-hot: #ff8a2b;
  --orange-soft: #ffe3cf;
  --ink: #1c1d21;
  --ink-2: #2a2b30;
  --ink-3: #3a3c42;
  --paper: #ffffff;
  --paper-2: #f4f3f1;
  --paper-3: #e9e7e3;
  --muted: #6c6e75;
  --muted-light: #a9abb2;
  --line: rgba(28, 29, 33, 0.14);
  --line-light: rgba(255, 255, 255, 0.14);
  --ok: #2fbf71;
  --danger: #e5484d;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-price: "Oswald", "Arial Narrow", sans-serif;   /* шрифт прайс-листа */

  /* Закатные цвета (прайс и тема GTA VI) */
  --sunset: linear-gradient(180deg, #ffd35c 0%, #ff8a3d 30%, #ff3d8b 62%, #8b3dff 100%);
  --sunset-h: linear-gradient(90deg, #ff8a3d 0%, #ff3d8b 55%, #8b3dff 100%);
  --pink: #ff3d8b;
  --violet: #8b3dff;

  --radius: 18px;
  --radius-sm: 10px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --shadow-row: 0 3px 0 rgba(28, 29, 33, 0.08);
  --shadow-card: 0 18px 40px -18px rgba(28, 29, 33, 0.35);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); line-height: 1.05; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.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;
}

.mono { font-family: var(--f-mono); }
.muted { color: var(--muted); }
.accent { color: var(--orange); }
.hidden,
[hidden] { display: none !important; }

/* Белый логотип на тёмном фоне */
.logo-white { filter: brightness(0) invert(1); }

/* ---------- Фон с мазками кистью ---------- */
.bg-strokes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("../assets/svg/strokes.svg");
  background-size: 1400px auto;
  background-position: center top;
  background-repeat: repeat;
  opacity: 0.9;
  z-index: 0;
}

/* ---------- Рваная тёмная полоса ---------- */
.torn {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  /* clip-path задаётся из ui.js; без JS остаётся прямоугольник */
}

/* ---------- «Прицелы» по углам ---------- */
.crosshair {
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}
.crosshair::before,
.crosshair::after { content: ""; position: absolute; background: var(--ink); }
.crosshair::before { left: 14px; top: 0; bottom: 0; width: 1px; }
.crosshair::after { top: 60px; left: 0; right: 0; height: 1px; }
.crosshair--bl { left: 12px; bottom: 12px; }
.crosshair--br { right: 12px; bottom: 12px; transform: scaleX(-1); }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }
