/* ===================================
   Base Styles — Переменные и сброс
   =================================== */

:root {
    /* Colors */
    --bg-primary: #030304;
    --bg-secondary: #08080b;
    --bg-tertiary: #0c0c10;
    
    --accent: #ff3d3d;
    --accent-light: #ff6b6b;
    --accent-warm: #ff8c42;
    --accent-glow: rgba(255, 61, 61, 0.4);
    
    --text: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --border: rgba(255, 61, 61, 0.1);
    --border-light: rgba(255, 61, 61, 0.08);
    
    /* Typography */
    --font-display: 'Unbounded', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max: 1400px;
    --container-padding: 48px;
    
    /* Transitions */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;
    --transition-slow: 0.5s;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.3);
    --shadow-accent: 0 0 25px var(--accent-glow);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(32px, 5vw, 48px); }
h3 { font-size: clamp(24px, 3vw, 32px); }
h4 { font-size: clamp(20px, 2vw, 24px); }

p {
    margin-bottom: 1.5em;
    color: var(--text-secondary);
}

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

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

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
}

/* Selection */
::selection {
    background: var(--accent);
    color: var(--text);
}

/* Custom Cursor - Disable on Mobile */
.cursor {
    width: 20px;
    height: 20px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s, opacity 0.15s;
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: scale(2.5);
    opacity: 0;
}

@media (max-width: 768px), (hover: none) {
    .cursor {
        display: none !important;
    }
}
