/* Revolutionary Hero Section */
.hero {
    background: var(--bg-glass);
    backdrop-filter: blur(30px) saturate(200%);
    border: 2px solid var(--border-glass);
    border-radius: 32px;
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl), var(--shadow-colored);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1), transparent);
    animation: rotate 30s linear infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.2) 0%, transparent 30%);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
}

.hero p {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.hero .btn {
    position: relative;
    z-index: 1;
    margin: 0 0.5rem;
    transform: perspective(1000px) rotateX(0deg);
    transition: all var(--transition-normal);
}

.hero .btn:hover {
    transform: perspective(1000px) rotateX(-5deg) translateY(-5px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

/* Revolutionary Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
    perspective: 1000px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-lg);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
    border-radius: 28px 28px 0 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 28px;
}

.stat-card:hover {
    transform: translateY(-12px) rotateX(5deg) rotateY(5deg);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    border-color: var(--primary-light);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover::after {
    opacity: 1;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
    line-height: 1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Styling */
.section {
    margin: 6rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--gradient-primary);
    border-radius: 3px;
    box-shadow: var(--shadow-glow);
}

/* Revolutionary Process Steps */
.process-step {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 32px;
    padding: 4rem 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 32px 32px 0;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    transition: all var(--transition-normal);
}

.process-step:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-2xl), var(--shadow-colored);
    border-color: var(--primary-light);
}

.process-step:hover::after {
    transform: scale(1.2);
    opacity: 0.2;
}

.process-step h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.process-step h3::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: var(--shadow-glow);
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.process-step ul {
    list-style: none;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.process-step li {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    font-size: 1.05rem;
}

.process-step li::before {
    content: '✨';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

/* Image Container */
.image-container {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-normal);
    background: var(--bg-secondary);
}

.image-container:hover {
    transform: scale(1.03) rotateY(5deg);
    box-shadow: var(--shadow-2xl), var(--shadow-colored);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.image-container:hover img {
    transform: scale(1.1);
}

/* Section Image */
.section-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: block;
}

/* Mini Images Grid */
.image-container-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.image-container-mini img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.image-container-mini img:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

/* Адаптация изображений для ПК - без ограничений высоты */
@media (min-width: 769px) {
    .image-container {
        max-width: 100%;
        width: 100%;
    }
    
    .image-container img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    
    .section-image {
        width: 100%;
        height: auto;
        max-width: 100%;
    }
    
    .image-container-mini {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .image-container-mini img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 4rem 0;
    perspective: 1000px;
}

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-glass);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    border-radius: 28px;
}

.feature-card:hover {
    transform: translateY(-12px) rotateX(5deg);
    box-shadow: var(--shadow-2xl), var(--shadow-colored);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 2;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
}

/* 3D Model Viewer */
#model-viewer-1 {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--bg-secondary);
    position: relative;
    transition: all var(--transition-normal);
}

#model-viewer-1:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-glass);
}

.progress-text {
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes rotate {
    from { 
        transform: rotate(0deg); 
    }
    to { 
        transform: rotate(360deg); 
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--ease-out-quart);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem;
        margin: 1rem;
        border-radius: 24px;
    }
    
    .section {
        padding: 0 1rem;
        margin: 3rem auto;
    }
    
    .process-step {
        padding: 2.5rem 2rem;
        margin-bottom: 2rem;
        border-radius: 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 1.5rem;
        margin: 3rem 0;
    }
    
    .stat-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-card {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
    
    /* Адаптация изображений для мобильных */
    .image-container {
        width: 100%;
        height: auto;
    }
    
    .section-image {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 1rem;
        border-radius: 20px;
    }
    
    .process-step {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Адаптация изображений для малых экранов */
    .image-container {
        width: 100%;
        height: auto;
    }
    
    .section-image {
        width: 100%;
        height: auto;
    }
}

/* Dark theme specific adjustments */
body.dark-theme .hero {
    background: var(--bg-glass);
    border-color: var(--border-glass);
}

body.dark-theme .hero::after {
    background: 
        radial-gradient(circle at 30% 20%, rgba(99, 102, 241, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.4) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 30%);
}

/* КРИТИЧЕСКАЯ ЗАЩИТА - мобильное меню СКРЫТО пока не активно */
.mobile-menu:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.mobile-menu:not(.active) .mobile-menu-overlay,
.mobile-menu:not(.active) .mobile-menu-content {
    display: none !important;
    visibility: hidden !important;
}

/* Special Effects */
.glow-on-hover {
    transition: all var(--transition-normal);
}

.glow-on-hover:hover {
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.rotating {
    animation: rotate 20s linear infinite;
}

.pulsing {
    animation: pulse 2s ease-in-out infinite;
}