/* ============================================================
   ООО «Си Тех» — Exo 2 + Manrope · 4-цветный неон
   ============================================================ */

:root {
  --bg-deep: #c8baa8;
  --bg-mid: #ddd0bc;
  --bg-stage: rgba(255, 250, 242, 0.9);
  --bg-tile: rgba(255, 255, 255, 0.58);

  --ink: #141210;
  --ink-soft: #3d3830;
  --accent: #1a7a52;
  --accent-2: #c4922a;

  --neon-green: #2ecc71;
  --neon-blue: #2563eb;
  --neon-orange: #f97316;
  --neon-cyan: #22d3ee;

  --glow-green: rgba(46, 204, 113, 0.55);
  --glow-blue: rgba(37, 99, 235, 0.5);
  --glow-orange: rgba(249, 115, 22, 0.5);
  --glow-cyan: rgba(34, 211, 238, 0.5);
  --glow: rgba(255, 180, 80, 0.45);
  --edge: rgba(255, 200, 100, 0.95);
  --grid: rgba(60, 48, 32, 0.09);

  --line: rgba(120, 100, 70, 0.24);
  --line-strong: rgba(26, 122, 82, 0.4);

  --btn-top: #3a9a68;
  --btn-face: #1a7a52;
  --btn-shadow: #0f4a32;
  --btn-ink: var(--neon-orange);

  --blur: 20px;
  --radius-stage: 24px;
  --radius-tile: 14px;
  --shadow-stage:
    0 24px 64px -20px rgba(40, 32, 20, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  --font-body: 'Manrope', system-ui, sans-serif;
  --font-display: 'Exo 2', system-ui, sans-serif;
  --font-mono: 'Exo 2', system-ui, sans-serif;

  --max: 1280px;
  --pad: clamp(20px, 4vw, 40px);

  --t-body: 1.0625rem;
  --t-sm: 0.9375rem;
  --t-xs: 0.8125rem;
  --t-md: 1.1875rem;
  --t-lg: 1.3125rem;
  --t-xl: 1.4375rem;
  --t-hero: clamp(1.625rem, 2.6vw, 2.125rem);
  --t-hero-sub: clamp(1.4375rem, 2.4vw, 1.875rem);
  --t-hero-caption: clamp(1.125rem, 2.05vw, 1.5rem);
  --t-subhero: clamp(1.375rem, 2.2vw, 1.8125rem);
  --t-section: clamp(1.75rem, 3vw, 2.375rem);
  --t-caption: clamp(0.8125rem, 1.1vw, 0.9375rem);
  --t-nav-top: clamp(1.0625rem, 1.25vw, 1.1875rem);
  --t-nav-sub: clamp(0.75rem, 0.95vw, 0.8125rem);

  --ink-muted: #525252;
}

[data-theme="light"] {
  --bg-deep: #fff8e7;
  --bg-mid: #fff8e7;
  --bg-stage: #fffdf5;
  --bg-tile: rgba(255, 255, 255, 0.78);
  --grid: transparent;

  --sh-rd-sm: 3px 5px 10px rgba(40, 32, 20, 0.14);
  --sh-rd: 5px 8px 18px rgba(40, 32, 20, 0.22);
  --sh-rd-lg: 8px 12px 28px rgba(40, 32, 20, 0.26);
  --shadow-stage:
    var(--sh-rd-lg),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);

  --burgundy: #7B1E3A;
  --burgundy-top: #9d3a56;
  --burgundy-shadow: #5a1528;
  --green-heading: var(--burgundy);
  --green-heading-strong: var(--burgundy-shadow);
}

[data-theme="dark"] {
  --bg-deep: #030508;
  --bg-mid: #060b12;
  --bg-stage: rgba(6, 12, 22, 0.94);
  --bg-tile: rgba(255, 255, 255, 0.05);

  --ink: var(--neon-orange);
  --ink-soft: #fdba74;
  --accent: #4ade80;
  --accent-2: #38bdf8;

  --neon-green: #4ade80;
  --neon-blue: #3b82f6;
  --neon-orange: #fb923c;
  --neon-cyan: #38bdf8;

  --glow-green: rgba(74, 222, 128, 0.45);
  --glow-blue: rgba(59, 130, 246, 0.42);
  --glow-orange: rgba(251, 146, 60, 0.42);
  --glow-cyan: rgba(56, 189, 248, 0.42);
  --glow: rgba(74, 222, 128, 0.25);
  --edge: rgba(74, 222, 128, 0.9);
  --grid: rgba(255, 255, 255, 0.045);

  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(74, 222, 128, 0.32);

  --btn-top: #6ee7a0;
  --btn-face: #4ade80;
  --btn-shadow: #15803d;
  --btn-ink: #041018;

  --shadow-stage:
    0 28px 80px -16px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --ink-muted: #8b939e;
}

[data-theme="proektantskaya"] {
  --bg-deep: #ebe7dc;
  --bg-mid: #f5f2eb;
  --bg-stage: #faf8f4;
  --bg-tile: rgba(255, 255, 255, 0.85);

  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --accent: #2b5797;
  --accent-2: #c0392b;

  --neon-green: #2b7a4b;
  --neon-blue: #2b5797;
  --neon-orange: #b45309;
  --neon-cyan: #0e7490;

  --glow-green: rgba(43, 122, 75, 0.08);
  --glow-blue: rgba(43, 87, 151, 0.08);
  --glow-orange: rgba(180, 83, 9, 0.08);
  --glow-cyan: rgba(14, 116, 144, 0.08);
  --glow: rgba(43, 87, 151, 0.06);
  --edge: rgba(43, 87, 151, 0.5);
  --grid: rgba(43, 87, 151, 0.06);

  --line: rgba(43, 87, 151, 0.2);
  --line-strong: rgba(43, 87, 151, 0.32);

  --btn-top: #3d6db3;
  --btn-face: #2b5797;
  --btn-shadow: #1a3a6b;
  --btn-ink: #faf6ec;

  --blur: 0px;
  --radius-stage: 4px;
  --radius-tile: 2px;
  --shadow-stage:
    0 2px 12px rgba(0, 0, 0, 0.07),
    0 0 0 1px rgba(43, 87, 151, 0.12);

  --ink-muted: #525252;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 550px at 80% -5%, var(--glow-green), transparent 58%),
    radial-gradient(700px 450px at 5% 100%, var(--glow-blue), transparent 52%),
    radial-gradient(600px 400px at 50% 40%, var(--glow-orange), transparent 55%),
    radial-gradient(500px 350px at 20% 10%, var(--glow-cyan), transparent 50%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: auto, auto, auto, auto, 32px 32px, 32px 32px;
  animation: spectral-bg 16s ease-in-out infinite;
}

html[data-theme="light"],
html[data-theme="light"] body {
  background: #fff8e7;
}

[data-theme="light"] body::before {
  display: none;
}

[data-theme="proektantskaya"] body::before {
  background-color: #f4f2ec;
  background-image: radial-gradient(circle, rgba(43, 87, 151, 0.18) 0.7px, transparent 0.8px);
  background-size: 16px 16px;
  animation: none;
  opacity: 1;
}

@keyframes spectral-bg {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1);
    opacity: 0.9;
  }
  25% {
    filter: hue-rotate(15deg) brightness(1.05);
    opacity: 1;
  }
  50% {
    filter: hue-rotate(-10deg) brightness(1.08);
    opacity: 0.95;
  }
  75% {
    filter: hue-rotate(25deg) brightness(1.03);
    opacity: 1;
  }
}

body > * { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0.01em;
  margin: 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.wrap--hero {
  overflow: visible;
  padding-right: clamp(20px, 14vw, 180px);
}

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