/* ============================================
   DESIGN SYSTEM - Точное воспроизведение макета
   ============================================ */
:root {
    /* Primary Colors - Based on Screenshot */
    --color-black: #000000;
    --color-red: #E31E24;
    --color-white: #FFFFFF;
    
    /* Aliases for compatibility */
    --primary-black: #000000;
    --primary-red: #E31E24;
    --primary-white: #FFFFFF;
    
    /* Gray Scale */
    --color-gray-50: #F8F8F8;
    --color-gray-100: #F0F0F0;
    --color-gray-200: #E0E0E0;
    --color-gray-300: #C8C8C8;
    --color-gray-400: #A0A0A0;
    --color-gray-500: #808080;
    --color-gray-600: #606060;
    --color-gray-700: #404040;
    --color-gray-800: #2A2A2A;
    --color-gray-900: #1A1A1A;
    
    /* Gradients */
    --gradient-dark: linear-gradient(135deg, #4A4A4A 0%, #3A3A3A 30%, #2A2A2A 70%, #1A1A1A 100%);
    --gradient-red: linear-gradient(135deg, #E31E24 0%, #C71920 100%);
    
    /* Spacing System (8px base) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-12: 96px;
    
    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Font Sizes */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 15px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 22px;
    --text-3xl: 28px;
    --text-4xl: 36px;
    --text-5xl: 42px;
    --text-6xl: 56px;
    --text-7xl: 68px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 50px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.20);
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: var(--color-white);
    color: var(--color-black);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: var(--text-base);
}

/* ============================================ 
   HEADER - Точное воспроизведение со скриншота
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-3) var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
}

/* Logo - Как на скриншоте */
.logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--color-black);
    letter-spacing: -1.5px;
    text-decoration: none;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-dot {
    color: var(--color-red);
    font-size: 40px;
    line-height: 0;
    margin-left: 2px;
}

/* Navigation - По центру как на скриншоте */
.nav-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.nav-menu {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-base);
    transition: color 0.3s ease;
    position: relative;
    padding: var(--space-1) 0;
}

.nav-menu a:hover {
    color: var(--color-red);
}

/* CTA Button - Черная как на скриншоте */
.header-cta {
    background: var(--color-black);
    color: var(--color-white);
    padding: 16px 36px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-cta:hover {
    background: var(--color-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227, 30, 36, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-1);
}

.mobile-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-black);
    border-radius: 2px;
}

/* ============================================ 
   HERO SECTION - Split Layout (50/50)
   ============================================ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0 !important;
}

/* Left Side - White Background */
.hero-left {
    background: var(--color-white);
    padding: var(--space-8) var(--space-8) 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-content {
    max-width: 600px;
}

/* Typography - Как на скриншоте */
.hero-title {
    font-size: var(--text-7xl);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    letter-spacing: -2.5px;
    color: var(--color-black);
}

.hero-title-red {
    color: var(--color-red);
    display: block;
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: var(--color-gray-500);
    margin-bottom: var(--space-6);
    line-height: 1.6;
    font-weight: 400;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.btn {
    padding: 22px 52px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    position: relative;
    overflow: hidden;
}

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

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(227, 30, 36, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

.btn-secondary:hover {
    background: var(--color-black);
    color: var(--color-white);
    transform: translateY(-3px);
}

/* Right Side - Dark Gradient Background */
.hero-right {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 700px;
    height: 85%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
}

/* Main Box - Точно как на скриншоте */
.main-box {
    position: relative;
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, #5A5A5A 0%, #4A4A4A 100%);
    border: 4px solid var(--color-red);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 40px 80px rgba(227, 30, 36, 0.4),
        inset 0 0 80px rgba(227, 30, 36, 0.15);
    animation: rotateBox 20s ease-in-out infinite;
    transform-style: preserve-3d;
}

.main-box::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: var(--color-red);
    opacity: 0.12;
    border-radius: 50%;
    filter: blur(60px);
    animation: pulseGlow 3s ease-in-out infinite;
}

/* Floating Product Items */
.product-item {
    position: absolute;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-gray-100) 100%);
    border: 2px solid rgba(227, 30, 36, 0.3);
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    animation: floatProduct 5s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.product-item:nth-child(1) {
    width: 90px;
    height: 90px;
    top: 5%;
    left: 8%;
    animation-delay: 0s;
}

.product-item:nth-child(2) {
    width: 110px;
    height: 110px;
    top: 2%;
    right: 10%;
    animation-delay: 1s;
    background: var(--gradient-red);
    color: var(--color-white);
}

.product-item:nth-child(3) {
    width: 85px;
    height: 85px;
    bottom: 35%;
    left: 0%;
    animation-delay: 2s;
}

.product-item:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 40%;
    right: 5%;
    animation-delay: 1.5s;
}

.product-item:nth-child(5) {
    width: 75px;
    height: 75px;
    top: 35%;
    left: -3%;
    animation-delay: 3s;
}

/* Stats Strip - Красная полоса внизу */
.stats-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-red);
    padding: 40px var(--space-8);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.stat-item {
    text-align: center;
    color: var(--color-white);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 900;
    margin-bottom: var(--space-1);
    letter-spacing: -1px;
}

.stat-label {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
    font-weight: 600;
}

/* ============================================ 
   ANIMATIONS
   ============================================ */
@keyframes rotateBox {
    0%, 100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(5deg) rotateX(2deg);
    }
    50% {
        transform: rotateY(0deg) rotateX(-2deg);
    }
    75% {
        transform: rotateY(-5deg) rotateX(2deg);
    }
}

@keyframes floatProduct {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(8deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.12;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* ============================================ 
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    .header-container {
        padding: var(--space-3) var(--space-4);
    }

    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        margin-top: 0 !important;
    }    .hero-left {
        padding: var(--space-6) var(--space-4) 0 !important;
    }

    .hero-right {
        min-height: 600px;
    }

    .hero-title {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .main-box {
        width: 340px;
        height: 340px;
    }

    .stats-strip {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        padding: var(--space-4) var(--space-3);
    }
}

/* Mobile (640px and below) */
@media (max-width: 640px) {
    .header-container {
        padding: var(--space-2) var(--space-3);
    }

    .logo {
        font-size: 24px;
    }

    .logo-dot {
        font-size: 30px;
    }

    .header-cta {
        padding: 12px 24px;
        font-size: var(--text-sm);
    }

    .hero-left {
        padding: var(--space-6) var(--space-3);
    }

    .hero-title {
        font-size: 38px;
        letter-spacing: -1.5px;
    }

    .hero-subtitle {
        font-size: var(--text-md);
        margin-bottom: var(--space-3);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 18px 32px;
        font-size: var(--text-base);
    }

    .main-box {
        width: 260px;
        height: 260px;
    }

    .product-item {
        transform: scale(0.75);
    }

    .stats-strip {
        padding: var(--space-3) var(--space-2);
        gap: var(--space-2);
    }

    .stat-number {
        font-size: var(--text-4xl);
    }

    .stat-label {
        font-size: var(--text-xs);
    }
}

/* Extra small (480px and below) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .main-box {
        width: 220px;
        height: 220px;
    }

    .product-item {
        transform: scale(0.65);
    }
}
