/*
Theme Name: FineTeam AI Services
Description: Современная блочная тема WordPress для AI-сервисов с возможностью оплаты за генерацию контента
Version: 1.0
Author: FineTeam
Text Domain: fineteam
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
    /* Цветовая схема */
    --primary-color: #6366f1;
    --primary-hover: #5856eb;
    --secondary-color: #ec4899;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-3d: linear-gradient(145deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
    
    /* Нейтральные цвета */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Типографика */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Размеры */
    --container-max-width: 100%;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-3d: 24px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-3d: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3), 0 0 40px rgba(99, 102, 241, 0.1);
    
    /* 3D эффекты */
    --perspective: 1000px;
    --transform-origin: center center;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Базовые стили */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="plexus" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="rgba(99,102,241,0.3)"/><circle cx="30" cy="20" r="0.3" fill="rgba(139,92,246,0.2)"/><circle cx="50" cy="15" r="0.4" fill="rgba(236,72,153,0.2)"/><circle cx="70" cy="25" r="0.3" fill="rgba(6,182,212,0.2)"/><circle cx="90" cy="10" r="0.5" fill="rgba(99,102,241,0.3)"/><circle cx="15" cy="40" r="0.3" fill="rgba(139,92,246,0.2)"/><circle cx="35" cy="45" r="0.4" fill="rgba(236,72,153,0.2)"/><circle cx="55" cy="35" r="0.3" fill="rgba(6,182,212,0.2)"/><circle cx="75" cy="50" r="0.5" fill="rgba(99,102,241,0.3)"/><circle cx="95" cy="40" r="0.3" fill="rgba(139,92,246,0.2)"/><circle cx="5" cy="70" r="0.4" fill="rgba(236,72,153,0.2)"/><circle cx="25" cy="75" r="0.3" fill="rgba(6,182,212,0.2)"/><circle cx="45" cy="65" r="0.5" fill="rgba(99,102,241,0.3)"/><circle cx="65" cy="80" r="0.3" fill="rgba(139,92,246,0.2)"/><circle cx="85" cy="70" r="0.4" fill="rgba(236,72,153,0.2)"/><circle cx="10" cy="90" r="0.3" fill="rgba(6,182,212,0.2)"/><circle cx="30" cy="95" r="0.5" fill="rgba(99,102,241,0.3)"/><circle cx="50" cy="85" r="0.3" fill="rgba(139,92,246,0.2)"/><circle cx="70" cy="90" r="0.4" fill="rgba(236,72,153,0.2)"/><circle cx="90" cy="80" r="0.3" fill="rgba(6,182,212,0.2)"/><line x1="10" y1="10" x2="30" y2="20" stroke="rgba(99,102,241,0.1)" stroke-width="0.5"/><line x1="30" y1="20" x2="50" y2="15" stroke="rgba(139,92,246,0.1)" stroke-width="0.3"/><line x1="50" y1="15" x2="70" y2="25" stroke="rgba(236,72,153,0.1)" stroke-width="0.4"/><line x1="70" y1="25" x2="90" y2="10" stroke="rgba(6,182,212,0.1)" stroke-width="0.3"/><line x1="15" y1="40" x2="35" y2="45" stroke="rgba(99,102,241,0.1)" stroke-width="0.3"/><line x1="35" y1="45" x2="55" y2="35" stroke="rgba(139,92,246,0.1)" stroke-width="0.4"/><line x1="55" y1="35" x2="75" y2="50" stroke="rgba(236,72,153,0.1)" stroke-width="0.3"/><line x1="75" y1="50" x2="95" y2="40" stroke="rgba(6,182,212,0.1)" stroke-width="0.3"/><line x1="5" y1="70" x2="25" y2="75" stroke="rgba(99,102,241,0.1)" stroke-width="0.4"/><line x1="25" y1="75" x2="45" y2="65" stroke="rgba(139,92,246,0.1)" stroke-width="0.3"/><line x1="45" y1="65" x2="65" y2="80" stroke="rgba(236,72,153,0.1)" stroke-width="0.3"/><line x1="65" y1="80" x2="85" y2="70" stroke="rgba(6,182,212,0.1)" stroke-width="0.4"/><line x1="10" y1="90" x2="30" y2="95" stroke="rgba(99,102,241,0.1)" stroke-width="0.3"/><line x1="30" y1="95" x2="50" y2="85" stroke="rgba(139,92,246,0.1)" stroke-width="0.3"/><line x1="50" y1="85" x2="70" y2="90" stroke="rgba(236,72,153,0.1)" stroke-width="0.4"/><line x1="70" y1="90" x2="90" y2="80" stroke="rgba(6,182,212,0.1)" stroke-width="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23plexus)"/></svg>');
    animation: plexusMove 25s linear infinite;
    z-index: -1;
}

/* Контейнеры */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.25rem;
    color: var(--gray-900);
}

h3 {
    font-size: 1.875rem;
    color: var(--gray-800);
}

/* Параграфы */
p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

/* Ссылки */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow);
}

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

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

/* Карточки */
.card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Хедер */
.site-header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.logo-icon {
    font-size: 2rem;
    margin-right: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 0.1rem;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.logo-link:hover .logo-name {
    color: var(--primary-hover);
    text-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
}

.logo-link:hover .logo-icon {
    transform: rotate(15deg);
}

/* Навигация */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

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

/* Герой секция */
.hero-section {
    padding: 8rem 0;
    text-align: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
    animation: fadeInUp 1s ease-out;
}

.hero-content:hover {
    transform: translateZ(10px);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
    line-height: 1.1;
    transform-style: preserve-3d;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* AI Сервисы */
.ai-services {
    padding: 6rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.05);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
    padding: 2rem;
    text-align: center;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-3d) var(--border-radius-3d) 0 0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.08), 0 3px 5px -2px rgba(0, 0, 0, 0.04);
    border-color: rgba(99, 102, 241, 0.15);
    background: rgba(255, 255, 255, 0.98);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.service-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-description {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.price-unit {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-left: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Прайсинг */
.pricing-section {
    padding: 6rem 0;
    background: white;
}

.popular-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    z-index: 10;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    position: relative;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px -3px rgba(0, 0, 0, 0.08), 0 3px 5px -2px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(99, 102, 241, 0.15);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.02);
    box-shadow: 0 10px 25px -3px rgba(99, 102, 241, 0.1), 0 4px 6px -2px rgba(99, 102, 241, 0.05);
    padding-top: 3rem;
}

.pricing-card.featured::before {
    content: 'Популярный';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: var(--gray-600);
}

.pricing-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Футер */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.floating-element {
    animation: float 3s ease-in-out infinite;
}

.rotating-element {
    animation: rotate 10s linear infinite;
}

.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

.morphing-gradient {
    background-size: 400% 400%;
    animation: morphingGradient 8s ease infinite;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

@keyframes backgroundMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        transform: translateX(5px) translateY(-10px);
    }
    75% {
        transform: translateX(-5px) translateY(5px);
    }
    100% {
        transform: translateX(0) translateY(0);
    }
}

@keyframes plexusMove {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateX(-15px) translateY(-10px) rotate(1deg);
        opacity: 0.5;
    }
    50% {
        transform: translateX(10px) translateY(-15px) rotate(-1deg);
        opacity: 0.4;
    }
    75% {
        transform: translateX(-8px) translateY(8px) rotate(0.5deg);
        opacity: 0.6;
    }
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.3;
    }
}

@keyframes stripeMove {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 20px 20px, 15px 15px;
    }
}

/* Утилиты */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: var(--border-radius-lg); }

.shadow { box-shadow: var(--shadow); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

/* ===== 3D АНИМАЦИИ И ЭФФЕКТЫ ===== */

/* Базовые 3D стили */
.three-d-container {
    perspective: var(--perspective);
    transform-style: preserve-3d;
}

.three-d-element {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

/* 3D карточки */
.card-3d {
    background: var(--gradient-3d);
    border-radius: var(--border-radius-3d);
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.4) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(139, 92, 246, 0.3) 50%, transparent 70%);
    background-size: 20px 20px, 15px 15px;
    border-radius: var(--border-radius-3d);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: stripeMove 1s linear infinite;
}

.card-3d:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.card-3d:hover::before {
    opacity: 1;
}

/* 3D кнопки */
.btn-3d {
    background: var(--gradient-3d);
    border: none;
    border-radius: var(--border-radius-3d);
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.btn-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(99, 102, 241, 0.5) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(139, 92, 246, 0.4) 50%, transparent 70%);
    background-size: 15px 15px, 10px 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: stripeMove 0.8s linear infinite;
}

.btn-3d:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-3d:hover::before {
    opacity: 1;
}

.btn-3d:active {
    transform: translateY(-2px) rotateX(2deg);
}

/* Плавающие элементы */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

/* Вращающиеся элементы */
.rotating-element {
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Пульсирующий эффект */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    }
    to {
        box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 60px rgba(99, 102, 241, 0.3);
    }
}

/* 3D текст */
.text-3d {
    text-shadow: 
        0 1px 0 #ccc,
        0 2px 0 #c9c9c9,
        0 3px 0 #bbb,
        0 4px 0 #b9b9b9,
        0 5px 0 #aaa,
        0 6px 1px rgba(0,0,0,.1),
        0 0 5px rgba(0,0,0,.1),
        0 1px 3px rgba(0,0,0,.3),
        0 3px 5px rgba(0,0,0,.2),
        0 5px 10px rgba(0,0,0,.25),
        0 10px 10px rgba(0,0,0,.2),
        0 20px 20px rgba(0,0,0,.15);
}

/* Стеклянный эффект */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Морфинг градиентов */
.morphing-gradient {
    background: var(--gradient-3d);
    background-size: 400% 400%;
    animation: morphingGradient 8s ease infinite;
}

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

/* 3D иконки */
.icon-3d {
    display: inline-block;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.icon-3d:hover {
    transform: scale(1.1);
}

/* Параллакс эффект */
.parallax-element {
    transform: translateZ(0);
    will-change: transform;
}

/* 3D навигация */
.nav-3d {
    transform-style: preserve-3d;
}

.nav-3d li {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.nav-3d li:hover {
    transform: translateY(-2px);
}

/* Полноширинные секции */
.fullwidth-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.ai-services {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 4rem 0;
}

.site-header {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

.site {
    margin-top: 80px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .card-3d:hover {
        transform: translateY(-5px);
    }
    
    .btn-3d:hover {
        transform: translateY(-2px);
    }
    
    .hero-section {
        min-height: 80vh;
    }
}
