/* ============================================================
   Candidate_02 YouTube-презентация — styles.css
   Premium Navy Web edition (адаптация для ноутбучного просмотра)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Основа */
  --fg: #0a0a0a;
  --fg-2: #3a3a3a;
  --fg-3: #7a7a7a;
  --fg-4: #b0b0b0;

  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-block: #f4f4f4;

  --rule: #e0e0e0;
  --rule-2: #b0b0b0;

  --accent: #1a3a6e;
  --accent-2: #2a5298;
  --accent-bg: #e8eff9;

  --success: #22c55e;
  --success-bg: #d3f9d8;
  --danger: #ef4444;
  --danger-bg: #ffc9c9;
  --warning: #f59e0b;
  --warning-bg: #fff3bf;

  --dark-bg: #0a1628;
  --dark-bg-2: #1a3a6e;
  --dark-fg: rgba(255,255,255,0.95);
  --dark-fg-2: rgba(255,255,255,0.7);
  --dark-fg-3: rgba(255,255,255,0.4);

  --gold: #d4af7a;
  --gold-bright: #f0c784;

  /* Типографика */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Cascadia Code', monospace;
}

/* ============ Reset ============ */

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

html, body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* ============ Контейнер секции ============ */

.section {
  width: 1920px;
  height: 1080px;
  padding: 80px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.section.alt { background: var(--bg-soft); }
.section.block-bg { background: var(--bg-block); }

.section.dark {
  background: var(--dark-bg);
  color: var(--dark-fg);
}

.section.dark .eyebrow { color: var(--dark-fg-3); }
.section.dark .body,
.section.dark .body-lg { color: var(--dark-fg-2); }

/* PiP-резерв — нижний левый угол 320×180 */
.pip-safe-bottom-left {
  position: absolute;
  left: 120px;
  bottom: 80px;
  width: 320px;
  height: 180px;
  pointer-events: none;
  /* debug: border: 1px dashed var(--danger); */
}

/* ============ Типографика ============ */

.h1-hero {
  font-family: var(--font-sans);
  font-size: 96px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  color: inherit;
}

.h1-section {
  font-family: var(--font-sans);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.h2 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
}

.h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.body-lg {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-2);
}

.body {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--fg-3);
  text-transform: uppercase;
}

.label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--fg-3);
  text-transform: uppercase;
}

.num-shock {
  font-family: var(--font-mono);
  font-size: 200px;
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.num-big {
  font-family: var(--font-mono);
  font-size: 120px;
  font-weight: 500;
  line-height: 1.0;
  font-variant-numeric: tabular-nums;
}

.num-medium {
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.num-small {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

/* ============ Сетка 12 колонок ============ */

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  width: 100%;
}

.col-6 { grid-column: span 6; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-4 { grid-column: span 4; }
.col-8 { grid-column: span 8; }
.col-3 { grid-column: span 3; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ============ Карточки, блоки ============ */

.card {
  background: var(--bg);
  border: 1.5px solid var(--rule);
  padding: 40px;
  border-radius: 4px;
}

.card.block-bg {
  background: var(--bg-block);
  border-color: transparent;
}

.card.accent {
  background: var(--accent-bg);
  border: 2px solid var(--accent);
}

.card.success {
  background: var(--success-bg);
  border: 2px solid var(--success);
}

.card.danger {
  background: var(--danger-bg);
  border: 2px solid var(--danger);
}

.accent-bar {
  width: 8px;
  background: var(--accent);
  flex-shrink: 0;
}

hr.rule {
  border: none;
  height: 2px;
  background: var(--rule-2);
  margin: 40px 0;
}

/* ============ Утилиты ============ */

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.gap-40 { gap: 40px; }
.gap-24 { gap: 24px; }
.gap-16 { gap: 16px; }
.gap-8 { gap: 8px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-64 { margin-top: 64px; }

/* ============ Тёмная тема ============ */

.section.dark .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: var(--dark-fg);
}

.section.dark .card.accent {
  background: rgba(26,58,110,0.5);
  border-color: var(--gold);
  color: var(--dark-fg);
}

/* ============ Hero с абстрактной сеткой-фоном ============ */

.hero-bg-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-grid svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ============ Embed для excalidraw iframe ============ */

.embed-excalidraw {
  width: 100%;
  height: 600px;
  border: 2px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
}
