/* ==========================================================================
   DESIGN TOKENS & BASE ACCESSIBILITY STYLES (UI/UX Pro Max)
   ========================================================================== */

:root {
    /* Brand Color Palette (Extracted from Brand Banner) */
    --primary-color: #7C3AED;     /* Royal Violet / Magic Purple */
    --secondary-color: #9333EA;   /* Festive Magenta Purple */
    --accent-color: #FFD000;      /* Sunny Yellow ("EHOT" & Main CTAs) */
    --gold-color: #F59E0B;        /* Festive Gold (Stars, Balloons) */
    --purple-color: #8A2BE2;      /* Deep Royal Violet ("В ДЕЛЕ!") */
    --pink-color: #EC4899;        /* Vivid Pink Accent */
    --blue-color: #0EA5E9;        /* Sky Cyan Blue */
    --green-color: #84CC16;       /* Lime Green */
    
    /* Backgrounds & Neutrals */
    --bg-light: #F5F3FF;          /* Soft Lilac Light Background */
    --bg-white: #FFFFFF;          /* Pure White */
    --text-dark: #1E1B4B;         /* Deep Navy Black ("МАСТЕРСКАЯ") */
    --text-gray: #6B7280;         /* Soft Pewter Gray */
    --border-color: rgba(255, 255, 255, 0.25);
    
    /* Elevation & Shadows */
    --shadow-sm: 0 4px 12px rgba(124, 58, 237, 0.08);
    --shadow-md: 0 10px 30px rgba(124, 58, 237, 0.15);
    --shadow-lg: 0 20px 50px rgba(124, 58, 237, 0.25);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transitions & Motion */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Global Reset & Box Sizing */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html { overflow-x: clip; }
}

@media (max-width: 768px) {
    html {
        scroll-behavior: auto; /* Prevent iOS scroll stutter */
    }
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Global Accessibility Focus Ring (:focus-visible) */
:focus-visible {
    outline: 3px solid var(--accent-color) !important;
    outline-offset: 3px !important;
    border-radius: var(--radius-sm);
}

/* Global Touch Target Minimums (44x44px for Touch Ergonomics) */
button, a, input, select, textarea {
    touch-action: manipulation;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
