/* ═══ АКСТО — Global Styles ═══ */

:root {
  --bg: #0e0e10; --bg-1: #141417; --bg-2: #1a1a1e;
  --line: #26262b; --line-soft: #1e1e22;
  --ink: #f2ede3; --ink-2: #c4bfb6; --ink-3: #938e85;
  --accent: #b8916a; --accent-w: #c9a07a;
  --accent-d: rgba(184,145,106,.1); --accent-b: rgba(184,145,106,.2);
  --mono: 'JetBrains Mono', monospace;
  --ff: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg2: var(--bg-1); --bg3: var(--bg-1); --bg-warm: #120f0e;
  --txt: var(--ink); --txt2: var(--ink-2); --txt3: var(--ink-3);
  --acc: var(--accent); --acc2: var(--accent-w);
  --acc-dim: var(--accent-d); --acc-border: var(--accent-b);
  --border: var(--line); --line-color: var(--line);
  --ok: #22c55e; --shadow: none;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff);
  background: var(--bg);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--acc); border-radius: 3px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--acc); color: #000; padding: 13px 28px;
  font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--acc2); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--txt); padding: 13px 28px;
  font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--acc); color: var(--acc); }

/* Cursor — hide on touch devices */
@media (pointer: coarse) {
  #cursor-dot,
  #cursor-ring { display: none !important; }
}

/* Z-index hierarchy */
.cookie-banner { z-index: 9000; }
.sticky-bar    { z-index: 8000; }
.floats        { z-index: 7000; }
.mega-drop     { z-index: 6000; }
.site-header   { z-index: 1000; }
.axto-overlay  { z-index: 10000; }

@media (max-width: 767px) {
  main { padding-bottom: 80px; }
}
/* ── Related Articles Block (Блок C ТЗ) ── */
.related-articles {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.related-articles__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.rel-art-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s, transform .15s;
}
.rel-art-card:hover {
  border-color: var(--accent-b);
  transform: translateY(-3px);
}
.rel-art-card__tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
}
.rel-art-card__title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
