/* ==========================================================================
   Сайт «Дожити до фініша...» — Головні стилі (Design System & Base Tokens)
   ========================================================================== */

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

:root {
  /* Базові кольори фону (Карпатська ніч та скелі) */
  --bg-dark: #070a0d;
  --bg-primary: #0b1015;
  --bg-surface: #10171e;
  --bg-surface-elevated: #16202a;
  
  /* Скляні ефекти (Glassmorphism) */
  --glass-bg: rgba(16, 24, 32, 0.72);
  --glass-bg-hover: rgba(22, 33, 44, 0.85);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(16, 185, 129, 0.35);
  --glass-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
  --glass-glow: 0 0 35px rgba(16, 185, 129, 0.15);

  /* Смарагдові та хвойні акценти (Ліси Карпат) */
  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-emerald-light: rgba(16, 185, 129, 0.15);
  --accent-pine: #064e3b;

  /* Бурштинові акценти (Вогнище, гірське сонце) */
  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-amber-light: rgba(245, 158, 11, 0.15);
  
  /* Текстові кольори */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8092a4;
  --text-inverse: #0b1015;

  /* Функціональні бейджі складності */
  --diff-easy: #10b981;
  --diff-medium: #f59e0b;
  --diff-hard: #ef4444;
  --diff-extreme: #a855f7;

  /* Типографіка */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', var(--font-sans);

  /* Радіуси та переходи */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Максимальна ширина контенту */
  --max-width: 1240px;
  --header-height: 80px;
}

/* Скидання та база */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 65%, rgba(245, 158, 11, 0.04) 0%, transparent 40%),
    linear-gradient(180deg, #070a0d 0%, #0b1015 50%, #070a0d 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Скролбар */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-elevated);
  border-radius: 4px;
  border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald-hover);
}

/* Типографіка */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Базові контейнери */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.main-content {
  flex: 1;
  padding-top: var(--header-height);
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-title span {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}
