/* ============================================================
   VIC CARGO — design tokens
   Графит + медный hero + золото в линиях. Без засечек.
   ============================================================ */

:root {
  /* Base graphite (НЕ чисто чёрный) */
  --bg-1: #16181C;
  --bg-2: #1E2024;
  --bg-3: #2A2D33;
  --bg-warm: #1F1A18;

  /* Hero copper radial gradient — BORK-style warmth, no neon */
  --bg-hero: radial-gradient(ellipse 90% 65% at 50% 28%,
              #4A2A18 0%,
              #2E1C13 38%,
              #1F1A18 68%,
              #16181C 100%);

  /* Muted gold — accent only */
  --gold:        #C9A87A;
  --gold-bright: #E5C58F;
  --gold-deep:   #8B6F4A;

  /* Cream text — NEVER gold */
  --text-1: #F5F1EA;
  --text-2: #A89E92;
  --text-3: #6E665D;
  --text-mute: #4A443F;

  /* Gold lines with opacity */
  --line:        rgba(201, 168, 122, 0.15);
  --line-soft:   rgba(245, 241, 234, 0.07);
  --line-strong: rgba(201, 168, 122, 0.40);

  /* States */
  --success: #6B8E5A;
  --danger:  #A04A3C;

  /* Typography */
  --font-sans: 'Onest', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Layout */
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(96px, 12vw, 180px);

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Easing */
  --ease-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg-1);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--gold); color: var(--bg-1); }

/* ============================================================
   Typography scale
   ============================================================ */
.h-hero {
  font-size: clamp(56px, 8.5vw, 144px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: var(--text-1);
  margin: 0;
}
.h-1 {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-1);
  margin: 0;
}
.h-2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--text-1);
  margin: 0;
}
.h-3 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-1);
  margin: 0;
}
.body-lg {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-2);
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(64px, 8vw, 120px); }

.row { display: flex; gap: 16px; align-items: center; }
.stack { display: flex; flex-direction: column; }

/* ============================================================
   Buttons — transparent with gold border, NEVER pill
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: var(--r-sm);
  transition: background 250ms var(--ease-out), border-color 250ms var(--ease-out), color 250ms var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--gold);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(229, 197, 143, 0.30) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: btn-sheen 5.5s ease-in-out infinite;
  pointer-events: none;
}
.btn-primary:hover {
  background: rgba(201, 168, 122, 0.08);
  border-color: var(--gold-bright);
  color: var(--text-1);
}
@keyframes btn-sheen {
  0%        { left: -150%; }
  55%, 100% { left: 150%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary::after,
  .brand-mark::after,
  .footer-mono-text { animation: none; }
}
.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 122, 0.04);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.btn-link:hover { color: var(--text-1); border-color: var(--gold); }
.btn .icon { width: 16px; height: 16px; stroke-width: 1.5; }

/* Inline gold text-link */
.link-gold {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 168, 122, 0.4);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.link-gold:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  transition: border-color 250ms var(--ease-out), background 250ms var(--ease-out);
}
.card-hover:hover {
  border-color: var(--line-strong);
  background: var(--bg-3);
}

/* ============================================================
   Lucide icon defaults
   ============================================================ */
[data-lucide] {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  color: var(--gold);
  display: inline-block;
  vertical-align: middle;
}
.icon-lg [data-lucide] { width: 32px; height: 32px; }
.icon-xl [data-lucide] { width: 40px; height: 40px; }

/* ============================================================
   Section header
   ============================================================ */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: clamp(48px, 6vw, 80px);
  max-width: 800px;
}
.section-head--center { text-align: center; align-items: center; margin-inline: auto; }

/* ============================================================
   Hairline divider
   ============================================================ */
.hr-gold {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ============================================================
   Photo placeholder (warm-mono)
   ============================================================ */
.photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) sepia(0.35) saturate(0.85) brightness(0.85) contrast(1.05);
  transition: filter 600ms var(--ease-out), transform 800ms var(--ease-out);
}
.photo:hover img { filter: grayscale(0.6) sepia(0.25) saturate(1) brightness(0.95) contrast(1.05); }

/* ============================================================
   Counters / numbers
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.stat-row > * {
  background: var(--bg-1);
  padding: 28px 24px;
}
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-1);
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
}
.stat-num sup {
  font-size: 0.5em;
  color: var(--gold);
  font-weight: 500;
  margin-left: 2px;
  vertical-align: super;
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 12px;
}

@media (max-width: 768px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* === Адаптив-фиксы (финальный аудит 2026-06-26): мягкий перенос длинных заголовков === */
.h-1, .h-2, .h-hero, .page-hero h1, .legal-doc { overflow-wrap: break-word; }
