:root {
    /* Primitive Color Tokens */
    --color-white: rgba(255, 255, 255, 1);
    --color-black: rgba(0, 0, 0, 1);
    --color-cream-50: rgba(252, 252, 249, 1);
    --color-cream-100: rgba(255, 255, 253, 1);
    --color-gray-200: rgba(245, 245, 245, 1);
    --color-gray-300: rgba(167, 169, 169, 1);
    --color-gray-400: rgba(119, 124, 124, 1);
    --color-slate-500: rgba(98, 108, 113, 1);
    --color-brown-600: rgba(94, 82, 64, 1);
    --color-charcoal-700: rgba(31, 33, 33, 1);
    --color-charcoal-800: rgba(38, 40, 40, 1);
    --color-slate-900: rgba(19, 52, 59, 1);
    --color-teal-300: rgba(50, 184, 198, 1);
    --color-teal-400: rgba(45, 166, 178, 1);
    --color-teal-500: rgba(33, 128, 141, 1);
    --color-teal-600: rgba(29, 116, 128, 1);
    --color-teal-700: rgba(26, 104, 115, 1);
    --color-teal-800: rgba(41, 150, 161, 1);
    --color-red-400: rgba(255, 84, 89, 1);
    --color-red-500: rgba(192, 21, 47, 1);
    --color-orange-400: rgba(230, 129, 97, 1);
    --color-orange-500: rgba(168, 75, 47, 1);
    /* RGB versions for opacity control */
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;
    --color-slate-500-rgb: 98, 108, 113;
    --color-red-500-rgb: 192, 21, 47;
    --color-red-400-rgb: 255, 84, 89;
    --color-orange-500-rgb: 168, 75, 47;
    --color-orange-400-rgb: 230, 129, 97;
    /* Background color tokens (Light Mode) */
    --color-bg-1: rgba(59, 130, 246, 0.08); /* Light blue */
    --color-bg-2: rgba(245, 158, 11, 0.08); /* Light yellow */
    --color-bg-3: rgba(34, 197, 94, 0.08); /* Light green */
    --color-bg-4: rgba(239, 68, 68, 0.08); /* Light red */
    --color-bg-5: rgba(147, 51, 234, 0.08); /* Light purple */
    --color-bg-6: rgba(249, 115, 22, 0.08); /* Light orange */
    --color-bg-7: rgba(236, 72, 153, 0.08); /* Light pink */
    --color-bg-8: rgba(6, 182, 212, 0.08); /* Light cyan */
    /* Semantic Color Tokens (Light Mode) */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);
    /* Common style patterns */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    /* RGB versions for opacity control */
    --color-success-rgb: 33, 128, 141;
    --color-error-rgb: 192, 21, 47;
    --color-warning-rgb: 168, 75, 47;
    --color-info-rgb: 98, 108, 113;
    /* Typography */
    --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 30px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 550;
    --font-weight-bold: 600;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --letter-spacing-tight: -0.01em;
    /* Spacing */
    --space-0: 0;
    --space-1: 1px;
    --space-2: 2px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    /* Border Radius */
    --radius-sm: 6px;
    --radius-base: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(0, 0, 0, 0.03);
    /* Animation */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
    :root {
        /* RGB versions for opacity control (Dark Mode) */
        --color-gray-400-rgb: 119, 124, 124;
        --color-teal-300-rgb: 50, 184, 198;
        --color-gray-300-rgb: 167, 169, 169;
        --color-gray-200-rgb: 245, 245, 245;
        /* Background color tokens (Dark Mode) */
        --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
        --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
        --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
        --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
        --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
        --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
        --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
        --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
        /* Semantic Color Tokens (Dark Mode) */
        --color-background: var(--color-charcoal-700);
        --color-surface: var(--color-charcoal-800);
        --color-text: var(--color-gray-200);
        --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
        --color-primary: var(--color-teal-300);
        --color-primary-hover: var(--color-teal-400);
        --color-primary-active: var(--color-teal-800);
        --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
        --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
        --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
        --color-border: rgba(var(--color-gray-400-rgb), 0.3);
        --color-error: var(--color-red-400);
        --color-success: var(--color-teal-300);
        --color-warning: var(--color-orange-400);
        --color-info: var(--color-gray-300);
        --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
        --color-btn-primary-text: var(--color-slate-900);
        --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
        --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
        --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
        --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);
        /* Common style patterns - updated for dark mode */
        --focus-ring: 0 0 0 3px var(--color-focus-ring);
        --focus-outline: 2px solid var(--color-primary);
        --status-bg-opacity: 0.15;
        --status-border-opacity: 0.25;
        --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        /* RGB versions for dark mode */
        --color-success-rgb: var(--color-teal-300-rgb);
        --color-error-rgb: var(--color-red-400-rgb);
        --color-warning-rgb: var(--color-orange-400-rgb);
        --color-info-rgb: var(--color-gray-300-rgb);
    }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
    /* RGB versions for opacity control (dark mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;
    /* Colorful background palette - Dark Mode */
    --color-bg-1: rgba(29, 78, 216, 0.15); /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15); /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15); /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15); /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15); /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15); /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15); /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15); /* Dark cyan */
    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);
    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    --select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
    /* RGB versions for opacity control (light mode) */
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;
    /* Semantic Color Tokens (Light Mode) */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    /* RGB versions for light mode */
    --color-success-rgb: var(--color-teal-500-rgb);
    --color-error-rgb: var(--color-red-500-rgb);
    --color-warning-rgb: var(--color-orange-500-rgb);
    --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    letter-spacing: var(--letter-spacing-tight);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin: 0 0 var(--space-16) 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard);
}

    a:hover {
        color: var(--color-primary-hover);
    }

code,
pre {
    font-family: var(--font-family-mono);
    font-size: calc(var(--font-size-base) * 0.95);
    background-color: var(--color-secondary);
    border-radius: var(--radius-sm);
}

code {
    padding: var(--space-1) var(--space-4);
}

pre {
    padding: var(--space-16);
    margin: var(--space-16) 0;
    overflow: auto;
    border: 1px solid var(--color-border);
}

    pre code {
        background: none;
        padding: 0;
    }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    border: none;
    text-decoration: none;
    position: relative;
}

    .btn:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
}

    .btn--primary:hover {
        background: var(--color-primary-hover);
    }

    .btn--primary:active {
        background: var(--color-primary-active);
    }

.btn--secondary {
    background: var(--color-secondary);
    color: var(--color-text);
}

    .btn--secondary:hover {
        background: var(--color-secondary-hover);
    }

    .btn--secondary:active {
        background: var(--color-secondary-active);
    }

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

    .btn--outline:hover {
        background: var(--color-secondary);
    }

.btn--sm {
    padding: var(--space-4) var(--space-12);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn--lg {
    padding: var(--space-10) var(--space-20);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
}

.btn--full-width {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form elements */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-8) var(--space-12);
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

select.form-control {
    padding: var(--space-8) var(--space-12);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: var(--select-caret-light);
    background-repeat: no-repeat;
    background-position: right var(--space-12) center;
    background-size: 16px;
    padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
    select.form-control {
        background-image: var(--select-caret-dark);
    }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
    background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
    background-image: var(--select-caret-light);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: var(--focus-outline);
}

.form-label {
    display: block;
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.form-group {
    margin-bottom: var(--space-16);
}

/* Card component */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-standard);
}

    .card:hover {
        box-shadow: var(--shadow-md);
    }

.card__body {
    padding: var(--space-16);
}

.card__header,
.card__footer {
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
    display: inline-flex;
    align-items: center;
    padding: var(--space-6) var(--space-12);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.status--success {
    background-color: rgba( var(--color-success-rgb, 33, 128, 141), var(--status-bg-opacity) );
    color: var(--color-success);
    border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
    background-color: rgba( var(--color-error-rgb, 192, 21, 47), var(--status-bg-opacity) );
    color: var(--color-error);
    border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
    background-color: rgba( var(--color-warning-rgb, 168, 75, 47), var(--status-bg-opacity) );
    color: var(--color-warning);
    border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
    background-color: rgba( var(--color-info-rgb, 98, 108, 113), var(--status-bg-opacity) );
    color: var(--color-info);
    border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-16);
    padding-left: var(--space-16);
}

@media (min-width: 640px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }
}

/* Utility classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-16 {
    gap: var(--space-16);
}

.m-0 {
    margin: 0;
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mx-8 {
    margin-left: var(--space-8);
    margin-right: var(--space-8);
}

.my-8 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.p-0 {
    padding: 0;
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.px-8 {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.px-16 {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
}

.block {
    display: block;
}

.hidden {
    display: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
    border: 1px solid var(--color-border-secondary);
}

@font-face {
    font-family: 'FKGroteskNeue';
    src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Custom Brand Colors */
:root {
    --brand-primary: #562797;
    --brand-secondary: #BCA0DC;
    --brand-accent: #C1E12D;
    --brand-dark: #2D2D2D;
    --brand-background: #E7E8EB;
    --brand-white: #FFFFFF;
    --brand-lime: #C1E12D;
    /* Override design system primary colors with brand colors */
    --color-primary: var(--brand-primary);
    --color-primary-hover: #6b3aa6;
    --color-primary-active: #4a2285;
    --color-accent: var(--brand-accent);
    --color-text: var(--brand-dark);
    --color-background: var(--brand-background);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', var(--font-family-base);
    background: var(--brand-background);
    color: var(--brand-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    cursor: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-24);
}

/* Custom Cursor (no sticky) */
.custom-cursor { display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 2px solid var(--brand-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    transition: transform 0.15s ease-out, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
    opacity: 0;
}

    .custom-cursor.active {
        opacity: 1;
    }

    /* стан ховера */
    .custom-cursor.cursor-hover {
        width: 36px;
        height: 36px;
        background: var(--brand-primary);
        opacity: 0.3;
    }
/* Hide default cursor on interactive elements */
a, button, .ripple-card, .nav-link, .social-link {
    cursor: auto;
} 

/* Language Switch */
.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-full);
    padding: 4px;
    border: 1px solid rgba(86, 39, 151, 0.1);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--brand-dark);
    transition: all var(--duration-fast) var(--ease-standard);
    cursor: auto;
}

    .lang-btn.active {
        background: var(--brand-primary);
        color: var(--brand-white);
    }

    .lang-btn:hover:not(.active) {
        background: var(--color-bg-1);
    }

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

    .loading-screen.hidden {
        opacity: 0;
        visibility: hidden;
    }

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-24);
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top: 3px solid var(--brand-white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

    .spinner-ring:nth-child(2) {
        width: 90%;
        height: 90%;
        top: 5%;
        left: 5%;
        animation-delay: -0.2s;
        border-top-color: var(--brand-accent);
    }

    .spinner-ring:nth-child(3) {
        width: 80%;
        height: 80%;
        top: 10%;
        left: 10%;
        animation-delay: -0.4s;
        border-top-color: var(--brand-secondary);
    }

.loading-text {
    color: var(--brand-white);
    font-size: var(--font-size-lg);
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Welcome Popup */
.welcome-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(86, 39, 151, 0.15), 0 0 0 1px rgba(86, 39, 151, 0.1);
    border: 2px solid var(--brand-secondary);
    z-index: 1001;
    max-width: 320px;
    opacity: 1;
    transform: translateX(0);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

    .welcome-popup.hidden {
        opacity: 0;
        transform: translateX(100%);
        pointer-events: none;
    }

.popup-content {
    position: relative;
    padding: 20px;
}

.popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--color-text-secondary);
    cursor: auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

    .popup-close:hover {
        background: var(--color-bg-1);
        color: var(--brand-primary);
        transform: scale(1.1);
    }

.popup-message {
    font-size: 14px;
    line-height: 1.5;
    color: var(--brand-dark);
    padding-right: 32px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

/* Thank You Popup */
.thank-you-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(86, 39, 151, 0.2);
    border: 2px solid var(--brand-accent);
    z-index: 1002;
    padding: 32px;
    text-align: center;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
}

    .thank-you-popup.hidden {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
        pointer-events: none;
    }

.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.thank-you-emoji {
    font-size: 3rem;
    animation: bounce 0.6s ease-in-out;
}

.thank-you-message {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin: 0;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }

    40%, 43% {
        transform: translate3d(0,-10px,0);
    }

    70% {
        transform: translate3d(0,-5px,0);
    }

    90% {
        transform: translate3d(0,-2px,0);
    }
}

/* Enhanced Typography */
.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--space-32);
    color: var(--brand-dark);
    position: relative;
    letter-spacing: -0.02em;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 5px;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
        border-radius: 3px;
    }

.section-title--light {
    color: var(--brand-white);
    font-weight: 800;
}

.section-subtitle {
    text-align: center;
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-32);
    font-weight: 600;
}

.section-subtitle--light {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Enhanced Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(86, 39, 151, 0.1);
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-standard);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Контейнер логотипу */
.logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-navbar {
    display: block;
    width: 140px !important;
    height: auto !important;
    object-fit: contain;
}


.nav-links {
    display: flex;
    gap: var(--space-24);
    align-items: center;
}

.nav-link {
    color: #6915C3;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--duration-fast) var(--ease-standard);
    position: relative;
    padding: var(--space-8) 0;
    cursor: auto;
}


    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #6915C3;
        transition: width var(--duration-fast) var(--ease-standard);
    }

    .nav-link:hover {
        color: #431180;
        transform: translateY(-1px);
    }

        .nav-link:hover::after,
        .nav-link.active::after {
            width: 100%;
        }


.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: auto;
    padding: var(--space-8);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-standard);
}

    .mobile-menu-btn:hover {
        background: var(--color-bg-1);
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 3px;
        background: var(--brand-dark);
        transition: all var(--duration-fast) var(--ease-standard);
        border-radius: 2px;
    }

/* Hero Section with Moving Elements */
.parallax-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    pointer-events: none;
}

.parallax-back {
    background: linear-gradient(135deg, var(--brand-background) 0%, rgba(188, 160, 220, 0.3) 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease-in-out infinite;
}

.parallax-mid {
    background: radial-gradient(circle at 30% 20%, rgba(86, 39, 151, 0.2) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(193, 225, 45, 0.15) 0%, transparent 50%);
}

.parallax-front {
    background-image: radial-gradient(circle at 80% 10%, rgba(188, 160, 220, 0.4) 0%, transparent 30%), radial-gradient(circle at 20% 90%, rgba(193, 225, 45, 0.3) 0%, transparent 40%);
}

/* Hero Floating Elements */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-circle--1 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(193, 225, 45, 0.3), transparent);
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.floating-circle--2 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(188, 160, 220, 0.2), transparent);
    top: 60%;
    right: 20%;
    animation-delay: -2s;
}

.floating-circle--3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(86, 39, 151, 0.3), transparent);
    bottom: 30%;
    left: 80%;
    animation-delay: -4s;
}

.floating-logo {
    position: absolute;
    top: 15%;
    right: 10%;
    opacity: 0.1;
    pointer-events: none;
    animation: logoMove 12s linear infinite;
}

.moving-logo {
    font-size: 6rem;
    font-weight: 900;
    color: var(--brand-primary);
    transform: rotate(-15deg);
    text-shadow: 0 4px 20px rgba(86, 39, 151, 0.3);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(5deg);
    }

    66% {
        transform: translateY(15px) rotate(-3deg);
    }
}

@keyframes logoMove {
    0% {
        transform: translateX(0) translateY(0) rotate(-15deg);
    }

    25% {
        transform: translateX(-30px) translateY(-20px) rotate(-10deg);
    }

    50% {
        transform: translateX(20px) translateY(-40px) rotate(-20deg);
    }

    75% {
        transform: translateX(-10px) translateY(-30px) rotate(-5deg);
    }

    100% {
        transform: translateX(0) translateY(0) rotate(-15deg);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-top: 70px;
}

.hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 900;
    margin-bottom: var(--space-24);
    color: #6915C3;
    animation: fadeInUp 1s var(--ease-standard);
    letter-spacing: -0.02em;
}


.hero-subtitle {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--brand-primary);
    margin-bottom: var(--space-16);
    animation: fadeInUp 1s var(--ease-standard) 0.2s both;
}

.hero-description {
    font-size: var(--font-size-lg);
    color: #6915C3;
    margin-bottom: var(--space-32);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


.hero-actions {
    display: flex;
    gap: var(--space-16);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s var(--ease-standard) 0.6s both;
}

/* Static Mission Section */
.static-mission {
    padding: var(--space-32) 0;
    background: linear-gradient(135deg, var(--brand-primary), #6b3aa6);
    color: var(--brand-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .static-mission::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 70% 30%, var(--brand-accent) 0%, transparent 50%);
        opacity: 0.1;
        animation: missionGlow 4s ease-in-out infinite alternate;
    }

.animated-mission {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: missionFadeIn 1s ease-out 0.5s forwards;
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mission-icon {
    margin-bottom: var(--space-24);
    display: flex;
    justify-content: center;
}

.mission-title {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-24);
    color: var(--brand-accent);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mission-text {
    font-size: var(--font-size-xl);
    line-height: 1.7;
    font-weight: 500;
}

@keyframes missionGlow {
    0% {
        opacity: 0.1;
        transform: scale(1);
    }

    100% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

@keyframes missionFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glassmorphism Effect */
.glassmorphism {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(86, 39, 151, 0.1);
}

/* Enhanced Cards with Ripple Effect */
.ripple-card {
    position: relative;
    overflow: hidden;
    cursor: auto;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

    .ripple-card::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, rgba(86, 39, 151, 0.15) 0%, rgba(86, 39, 151, 0.05) 70%, transparent 100%);
        transform: translate(-50%, -50%);
        border-radius: 50%;
        transition: width 0.6s ease-out, height 0.6s ease-out;
        pointer-events: none;
        z-index: 1;
    }

    .ripple-card:active::before {
        width: 300px;
        height: 300px;
    }

/* Values Section with Purple Hover and Centered Emojis */
.values {
    padding: var(--space-32) 0;
    background: var(--brand-white);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.value-card {
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    text-align: center;
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .value-card:hover {
        transform: translateY(-8px);
        border: 2px solid var(--brand-primary) !important;
        box-shadow: 0 0 30px rgba(86, 39, 151, 0.4);
    }

.value-icon {
    margin-bottom: var(--space-16);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 100%;
}

.value-emoji {
    font-size: 2.5rem;
    display: block;
}

.value-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-12);
    color: var(--brand-primary);
    text-align: center;
}

.value-description {
    color: var(--color-text-secondary);
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
}

/* Results Section with Tilt Effect and Centered Emojis */
.results {
    padding: 0;
    margin: var(--space-32) 0;
}

.results-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, var(--brand-dark) 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

    .results-bg::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 20%, rgba(86, 39, 151, 0.3) 0%, transparent 50%), radial-gradient(circle at 70% 80%, rgba(193, 225, 45, 0.2) 0%, transparent 50%);
        pointer-events: none;
    }

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, auto);
    }
}

.result-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(10deg) translateZ(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border-color: var(--brand-accent);
}

.result-icon {
    margin-bottom: var(--space-16);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 80px;
}

.result-emoji {
    font-size: 2.5rem;
    display: block;
}

.result-number {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--brand-white);
    margin-bottom: var(--space-8);
    background: linear-gradient(135deg, var(--brand-white), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.result-label {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--brand-accent);
    margin-bottom: var(--space-12);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    font-weight: 500;
}

/* Projects Section with Instant Purple Border Hover */
.projects {
    padding: var(--space-32) 0;
    background: var(--brand-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.project-card {
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    transition: all 0.1s ease;
    position: relative;
    overflow: hidden;
}

.project-hover-enhanced:hover {
    transform: translateY(-8px);
    border: 2px solid var(--brand-primary) !important;
    box-shadow: 0 15px 30px rgba(86, 39, 151, 0.2);
}

.project-icon {
    margin-bottom: var(--space-12);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
}

    .project-icon .emoji {
        font-size: 2rem;
        margin-right: var(--space-8);
    }

.project-year {
    font-size: var(--font-size-sm);
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: var(--space-8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-12);
    color: var(--brand-dark);
}

.project-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-16);
    line-height: 1.6;
    font-weight: 500;
}

.project-result {
    background: var(--color-bg-3);
    padding: var(--space-12);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--brand-primary);
    border-left: 4px solid var(--brand-accent);
}

/* Reports Section */
.reports {
    padding: var(--space-32) 0;
    background: var(--color-bg-1);
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.report-card {
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

    .report-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

.report-icon {
    margin-bottom: var(--space-16);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    position: relative;
}

    .report-icon .emoji {
        font-size: 2.5rem;
    }

.report-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-12);
    color: var(--brand-primary);
}

.report-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-24);
    line-height: 1.6;
    font-weight: 500;
}

.report-link {
    margin-top: var(--space-16);
}

/* Media Section */
.media {
    padding: var(--space-32) 0;
    background: var(--brand-white);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.media-card {
    border-radius: var(--radius-lg);
    padding: var(--space-24);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

    .media-card:hover {
        transform: translateY(-8px) scale(1.02);
    }

.media-icon {
    margin-bottom: var(--space-12);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 60px;
    position: relative;
}

    .media-icon .emoji {
        font-size: 2rem;
        margin-right: var(--space-8);
    }

.media-source {
    font-size: var(--font-size-sm);
    color: var(--brand-primary);
    font-weight: 700;
    margin-bottom: var(--space-8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.media-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-12);
    color: var(--brand-dark);
    line-height: 1.4;
}

.media-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-16);
    line-height: 1.6;
    font-weight: 500;
}

.media-meta {
    margin-bottom: var(--space-16);
}

.media-date {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* Enhanced Partners Section */
.partners {
    padding: var(--space-32) 0;
    background: var(--color-bg-1);
    overflow: hidden;
}

.partners-carousel {
    margin-top: var(--space-32);
    position: relative;
    overflow: hidden;
}

.partners-track {
    display: flex;
    gap: var(--space-32);
    animation: slide 20s linear infinite;
    width: calc(320px * 12);
}

.partner-item {
    flex-shrink: 0;
    width: 280px;
    height: 120px;
    background: var(--brand-white);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-bg-2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(86, 39, 151, 0.08);
}

    .partner-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(193, 225, 45, 0.1), transparent);
        transition: left 0.6s var(--ease-standard);
    }

    .partner-item:hover {
        transform: translateY(-8px) scale(1.05);
        border-color: var(--brand-accent);
        box-shadow: 0 20px 40px rgba(193, 225, 45, 0.2);
    }

        .partner-item:hover::before {
            left: 100%;
        }

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: var(--space-16);
}

.partner-text {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--brand-primary);
    text-align: center;
    line-height: 1.3;
}

.partners-carousel:hover .partners-track {
    animation-play-state: paused;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 8));
    }
}

/* Team Section with Lime Border Hover and Faster Reveal */
.team {
    padding: var(--space-32) 0;
    background: var(--color-bg-1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
    animation: teamRevealFaster 0.6s ease-out;
}

.team-member {
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.team-member--lime-enhanced:hover {
    transform: translateY(-12px) scale(1.05);
    border: 2px solid var(--brand-lime) !important;
    box-shadow: 0 25px 50px rgba(193, 225, 45, 0.3);
}

@keyframes teamRevealFaster {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.member-avatar {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-16);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-white);
    transition: all 0.2s ease;
    position: relative;
    z-index: 2;
}

.team-member--lime-enhanced:hover .member-avatar {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(193, 225, 45, 0.4);
}

.member-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-8);
    color: var(--brand-dark);
    position: relative;
    z-index: 2;
}

.member-role {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-16);
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.member-social {
    display: flex;
    gap: var(--space-12);
    justify-content: center;
    position: relative;
    z-index: 2;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--color-bg-1);
    border-radius: 50%;
    color: var(--brand-primary);
    transition: all 0.3s var(--ease-standard);
    position: relative;
    overflow: hidden;
    cursor: auto;
}

    .social-link::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: var(--brand-primary);
        border-radius: 50%;
        transition: all 0.3s var(--ease-standard);
        transform: translate(-50%, -50%);
    }

    .social-link:hover {
        transform: translateY(-3px) scale(1.1);
        color: var(--brand-white);
    }

        .social-link:hover::before {
            width: 100%;
            height: 100%;
        }

    .social-link svg {
        position: relative;
        z-index: 2;
    }

/* Support Section with Purple Border Hover and Pulsing Button */
.support {
    padding: var(--space-32) 0;
    background: var(--brand-white);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.support-card {
    border-radius: var(--radius-lg);
    padding: var(--space-32);
    transition: all 0.1s ease;
    position: relative;
}

.support-hover-enhanced:hover {
    transform: translateY(-8px);
    border: 2px solid var(--brand-primary) !important;
    box-shadow: 0 0 30px rgba(86, 39, 151, 0.4);
}

    .support-hover-enhanced:hover .support-btn {
        animation: btnPulse 0.6s ease-in-out infinite;
    }

@keyframes btnPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.support-icon {
    margin-bottom: var(--space-16);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90px;
    position: relative;
}

    .support-icon .emoji {
        font-size: 3rem;
    }

.support-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-8);
    color: var(--brand-primary);
}

.support-subtitle {
    font-size: var(--font-size-md);
    color: var(--brand-primary);
    margin-bottom: var(--space-12);
    font-weight: 600;
}

.support-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-16);
    line-height: 1.6;
    font-weight: 500;
}

.support-benefits {
    list-style: none;
    padding: 0;
    margin-bottom: var(--space-24);
}

    .support-benefits li {
        padding: var(--space-6) 0;
        color: var(--color-text-secondary);
        position: relative;
        padding-left: var(--space-24);
        font-weight: 500;
        transition: all 0.2s var(--ease-standard);
    }

        .support-benefits li::before {
            content: '✓';
            position: absolute;
            left: 0;
            color: var(--brand-accent);
            font-weight: 700;
            font-size: 1.1em;
        }

.support-card:hover .support-benefits li {
    transform: translateX(4px);
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-24);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    cursor: auto;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

    .btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s var(--ease-standard);
    }

    .btn:hover::before {
        left: 100%;
    }

.btn--primary {
    background: linear-gradient(135deg, var(--brand-primary), #6b3aa6);
    color: var(--brand-white);
}

    .btn--primary:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 12px 30px rgba(86, 39, 151, 0.4);
    }

.btn--outline {
    background: transparent;
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

    .btn--outline:hover {
        background: var(--brand-primary);
        color: var(--brand-white);
        transform: translateY(-2px) scale(1.02);
    }

.btn--lg {
    padding: var(--space-16) var(--space-32);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
    min-height: 56px;
}

.btn--sm {
    padding: var(--space-8) var(--space-16);
    font-size: var(--font-size-sm);
    min-height: 36px;
}

/* Pulse effect for CTA buttons */
.btn--pulse {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(86, 39, 151, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(86, 39, 151, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(86, 39, 151, 0);
    }
}

/* Loading states for buttons */
.btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-8);
}

    .btn-loading.hidden {
        display: none;
    }

.spinner {
    animation: rotate 1s linear infinite;
}

    .spinner circle {
        animation: dash 1.5s ease-in-out infinite;
    }

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Updated Footer Layout */
.footer {
    background: var(--brand-dark);
    color: var(--brand-white);
    padding: var(--space-32) 0 var(--space-16);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-32);
    margin-bottom: var(--space-32);
}

.footer-column--info {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.footer-column--nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.footer-column--contacts {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.footer-org-info {
    margin-bottom: var(--space-16);
}

.org-full-name {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--brand-accent);
    margin-bottom: var(--space-12);
    line-height: 1.3;
}

.org-details p {
    margin: var(--space-4) 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.footer-contacts {
    margin-bottom: var(--space-16);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: var(--space-16);
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: var(--space-12);
}

.footer .social-link {
    background: rgba(255, 255, 255, 0.1);
    color: var(--brand-white);
    width: 48px;
    height: 48px;
    transition: all 0.3s var(--ease-standard);
}

    .footer .social-link:hover {
        background: var(--brand-primary);
        transform: translateY(-3px) scale(1.1);
    }

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--space-16);
    color: var(--brand-white);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, auto); /* 2 колонки */
    gap: 8px 32px; /* відступи між рядками і колонками */
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease-standard);
    padding: var(--space-4) 0;
}

    .footer-link:hover {
        color: var(--brand-accent);
        transform: translateX(4px);
    }

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    gap: 10px 30px; /* відступи між рядками і колонками */
    max-width: 400px; /* щоб не розтягувалося на всю ширину */
}


.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    transition: transform 0.2s var(--ease-standard);
}

    .contact-item:hover {
        transform: translateX(4px);
    }

.contact-icon {
    font-size: 1.2rem;
}

.contact-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard);
    font-weight: 500;
    cursor: auto;
}

    .contact-link:hover {
        color: var(--brand-accent);
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-16);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus States for Accessibility */
.btn:focus-visible,
.nav-link:focus-visible,
.social-link:focus-visible,
.footer-link:focus-visible,
.contact-link:focus-visible {
    outline: 3px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.popup-close:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

/* Responsive Design */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .custom-cursor { display: none !important;
        display: none;
    }

    a, button, .ripple-card, .nav-link, .social-link {
        cursor: auto !important;
    }

    .language-switch {
        top: 10px;
        right: 10px;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-floating-elements {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

        .hero-actions .btn {
            width: 100%;
            max-width: 300px;
        }

    .results-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        grid-template-rows: repeat(2, auto) !important;
        gap: 20px !important;
        margin-top: 40px !important;
        justify-items: stretch !important;
        align-items: stretch !important;
    }

    .result-number {
        font-size: 3rem;
    }

    .partners-track {
        animation-duration: 15s;
    }

    .partner-item {
        width: 250px;
        height: 100px;
    }

    .partner-text {
        font-size: var(--font-size-base);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    .welcome-popup {
        right: 16px;
        bottom: 16px;
        max-width: 280px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-16);
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .values-grid,
    .projects-grid,
    .team-grid,
    .support-grid,
    .reports-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .partners-track {
        gap: var(--space-20);
    }

    .partner-item {
        width: 220px;
        height: 90px;
    }

    .welcome-popup {
        right: 12px;
        bottom: 12px;
        max-width: 260px;
    }

    .popup-content {
        padding: 16px;
    }

    .thank-you-popup {
        max-width: 280px;
        padding: 24px;
    }
}

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

    .partners-track {
        animation: none !important;
    }

    .btn--pulse {
        animation: none !important;
    }

    .parallax-back {
        animation: none !important;
    }

    .hero-floating-elements {
        display: none !important;
    }

    .animated-mission {
        opacity: 1 !important;
        transform: translateY(0) !important;
        animation: none !important;
    }
}

/* === TEAM STYLES FIX === */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    justify-items: center;
    align-items: start;
}

.team-member--lime-enhanced {
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .team-member--lime-enhanced:hover {
        transform: translateY(-6px);
        box-shadow: 0 8px 24px rgba(86, 39, 151, 0.2);
    }

.member-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 4px solid var(--brand-accent, #c1e12d);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .member-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.team-member--lime-enhanced:hover .member-avatar img {
    transform: scale(1.05);
}

.member-name {
    font-weight: 600;
    color: var(--brand-primary, #562797);
}

.member-role {
    color: var(--text-muted, #555);
    font-size: 0.95rem;
}

/* === PARTNERS CAROUSEL FIX === */
.partners-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scrollPartners 25s linear infinite;
}

.partner-item {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .partner-item img {
        height: 80px; /* усі лого рівномірні по висоті */
        width: auto;
        object-fit: contain;
        filter: grayscale(0%);
        transition: transform 0.3s ease, filter 0.3s ease;
    }

        .partner-item img:hover {
            transform: scale(1.05);
            filter: grayscale(0);
        }

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-navbar {
    height: 55px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-top: 2px;
}

    .logo-navbar:hover {
        transform: scale(1.05);
    }



.partners {
    overflow: hidden;
    padding: 60px 0;
    position: relative;
}

.partners-track {
    display: flex;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
}

.partner-item {
    flex: 0 0 auto;
    padding: 0 40px;
}

    .partner-item img {
        height: 80px;
        width: auto;
        object-fit: contain;
        opacity: 0.95;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

        .partner-item img:hover {
            transform: scale(1.1);
            opacity: 1;
        }

@keyframes scrollInfinite {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ===========================
   📱 MOBILE & TABLET STYLES
   =========================== */
@media (max-width: 1024px) {
    /* планшети */
}

@media (max-width: 768px) {
    /* телефони */
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 12px;
        background: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px 0;
        display: none; /* потім можна вмикати JS */
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .nav-link {
        font-size: 1.2rem;
        color: #6915C3;
    }

    .logo-navbar {
        height: 60px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }

    .hero-description {
        font-size: 0.95rem;
        max-width: 90%;
        margin: 0 auto;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .partners-track {
        animation-duration: 60s; /* трохи повільніше */
    }

    .partner-item img {
        height: 60px;
        max-width: 120px;
    }

    .section-title {
        font-size: 1.6rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/* === RESULTS SECTION (fixed mobile layout + dark gradient) === */
.results {
    background: linear-gradient(180deg, #1c102d 0%, #1d1b1b 100%);
    padding: 80px 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    justify-items: center;
}

.result-item {
    width: 100%;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    color: #f6f6f6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .result-item:hover {
        transform: translateY(-8px);
        box-shadow: 0 6px 20px rgba(105, 21, 195, 0.2);
    }

.result-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: #D7FF4C;
    margin-bottom: 10px;
}

.result-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: #D7FF4C;
    margin-bottom: 10px;
}

.result-description {
    font-size: 1rem;
    color: #d1d1d1;
}

/* планшет */
@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* мобільний */
@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        justify-items: center;
    }

    .result-item {
        max-width: 90%;
        padding: 24px 18px;
    }

    .result-number {
        font-size: 2.2rem;
    }

    .result-description {
        font-size: 0.95rem;
    }
}

/* --- Adaptive layout for Results grid --- */
@media (max-width: 768px) {
    .results-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .result-card {
        width: 100% !important;
        max-width: 350px;
        margin: 0 auto;
    }

    .result-number {
        font-size: 2.5rem;
    }

    .result-label {
        font-size: 1.1rem;
    }
}

/* --- For tablets (2 columns) --- */
@media (min-width: 769px) and (max-width: 991px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }
}

/* --- For desktop (4 columns) --- */
@media (min-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 32px !important;
    }
}

@media (max-width: 768px) {
    .logo-navbar {
        height: 40px;
    }
}
lottie-player div.error {
    display: none !important;
}

.section-underline {
    width: 120px;
    height: 6px;
    border-radius: 999px;
    margin-top: 12px;
}

/* Disclaimer для проєкту Імпульс */
.project-disclaimer {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(86, 39, 151, 0.08);
  border-left: 4px solid var(--primary-color);
  border-radius: 6px;
}

.disclaimer-text {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  text-align: left;
}

@media (max-width: 768px) {
  .project-disclaimer {
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .disclaimer-text {
    font-size: 0.75rem;
    line-height: 1.5;
  }
}
/* Disclaimer для проєкту Імпульс */
.project-disclaimer {
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(86, 39, 151, 0.08);
    border-left: 4px solid var(--primary-color);
    border-radius: 6px;
}

.disclaimer-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    text-align: left;
}

@media (max-width: 768px) {
    .project-disclaimer {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .disclaimer-text {
        font-size: 0.75rem;
        line-height: 1.5;
    }
}