/* ============================================
   CSS Variables - Hynobo Design System
   ============================================ */

:root {
  /* ---- Colors ---- */
  /* Swapped: Terracotta is now primary for character */
  --color-primary: #C2674A;
  --color-primary-dark: #a8533a;
  --color-primary-light: #f8e8e3;

  --color-accent: #2563eb;
  --color-accent-dark: #1d4ed8;
  --color-accent-light: #eff6ff;

  --color-success: #10b981;
  --color-success-dark: #059669;
  --color-success-light: #d1fae5;

  --color-error: #ef4444;
  --color-error-dark: #dc2626;
  --color-error-light: #fee2e2;

  --color-bg: #FEFDFB;
  --color-surface: #F5F4F2;
  --color-white: #ffffff;

  --color-text: #1f1f23;
  --color-text-secondary: #52525b;
  --color-text-muted: #71717a;

  --color-border: #e4e4e7;
  --color-border-light: #f4f4f5;

  /* ---- Typography ---- */
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-family: var(--font-body); /* Default for backward compatibility */

  --font-size-xs: 0.875rem;   /* 14px - было 13px */
  --font-size-sm: 1rem;       /* 16px - было 15px */
  --font-size-base: 1.125rem; /* 18px - было 17px */
  --font-size-lg: 1.25rem;    /* 20px - было 19px */
  --font-size-xl: 1.5rem;     /* 24px - было 22px */
  --font-size-2xl: 1.75rem;   /* 28px - было 26px */
  --font-size-3xl: 2.25rem;   /* 36px - было 32px */
  --font-size-4xl: 2.75rem;   /* 44px - было 40px */
  --font-size-5xl: 3.5rem;    /* 56px - было 52px */
  --font-size-6xl: 4.5rem;    /* 72px - было 64px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.3;
  --line-height-snug: 1.5;
  --line-height-normal: 1.75;
  --line-height-relaxed: 1.9;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: -0.01em;
  --letter-spacing-wide: 0.02em;

  /* ---- Spacing ---- */
  --spacing-1: 0.25rem;   /* 4px */
  --spacing-2: 0.5rem;    /* 8px */
  --spacing-3: 0.75rem;   /* 12px */
  --spacing-4: 1rem;      /* 16px */
  --spacing-5: 1.25rem;   /* 20px */
  --spacing-6: 1.5rem;    /* 24px */
  --spacing-8: 2rem;      /* 32px */
  --spacing-10: 2.5rem;   /* 40px */
  --spacing-12: 3rem;     /* 48px */
  --spacing-16: 4rem;     /* 64px */
  --spacing-20: 5rem;     /* 80px */
  --spacing-24: 6rem;     /* 96px */
  --spacing-32: 8rem;     /* 128px */

  /* ---- Border Radius ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ---- Shadows ---- */
  --shadow-sm: 0 1px 2px rgba(39, 39, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(39, 39, 42, 0.06);
  --shadow-lg: 0 8px 24px rgba(39, 39, 42, 0.08);
  --shadow-xl: 0 16px 48px rgba(39, 39, 42, 0.1);
  --shadow-2xl: 0 24px 64px rgba(39, 39, 42, 0.12);

  --shadow-accent: 0 8px 24px rgba(194, 103, 74, 0.25);
  --shadow-primary: 0 8px 24px rgba(37, 99, 235, 0.2);

  /* ---- Transitions ---- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-slower: 600ms ease;

  /* ---- Layout ---- */
  --container-max: 1200px;
  --container-padding: var(--spacing-6);

  --header-height: 72px;

  /* ---- Z-Index ---- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal: 400;
  --z-tooltip: 500;
}

/* ---- Responsive Adjustments ---- */
@media (max-width: 768px) {
  :root {
    --container-padding: var(--spacing-5);
    --header-height: 64px;
    /* Увеличенные размеры для мобильных */
    --font-size-base: 1.0625rem; /* 17px на мобильных */
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: var(--spacing-4);
    --font-size-base: 1rem; /* 16px на очень маленьких экранах */
  }
}

@media (max-width: 400px) {
  :root {
    --container-padding: var(--spacing-3);
    --header-height: 56px;
  }
}
