/* Modern CSS Reset and Variables */
/* Critical CSS - Above the fold */
.header, .hero {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Lazy loading for images */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}
:root {
    --primary: #0088cc;
    --primary-dark: #006699;
    --secondary: #2aabee;
    --accent: #ff6b00;
    --max-color: #7846b8;
    
    /* Light theme colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Semantic colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Enhanced shadows for depth */
    --shadow-sm: 0 2px 8px var(--shadow-color);
    --shadow-md: 0 4px 16px var(--shadow-color);
    --shadow-lg: 0 8px 32px var(--shadow-color);
    --shadow-xl: 0 16px 48px var(--shadow-color);
    
    /* Glass morphism effects */
    --glass-light: rgba(255, 255, 255, 0.25);
    --glass-dark: rgba(0, 0, 0, 0.1);
    --blur: blur(10px);
    
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark theme variables */
[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2d2d2d;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: var(--transition);
}

/* Background with subtle gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 70, 184, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 136, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 0, 0.04) 0%, transparent 50%);
    z-index: -1;
}

[data-theme="dark"] body::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 70, 184, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 136, 204, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 107, 0, 0.06) 0%, transparent 50%);
}

/* Ensure all text elements use correct colors */
h1, h2, h3, h4, h5, h6, p, span, div, a, li, button, input, textarea, select, label {
    color: var(--text-primary);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* AJAX Notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations */
.service-card:nth-child(even).animate-on-scroll {
    transition-delay: 0.1s;
}

.service-card:nth-child(odd).animate-on-scroll {
    transition-delay: 0.2s;
}

/* Hover effects */
.service-card, .portfolio-item, .pricing-card {
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.pricing-card:hover {
    transform: translateY(-3px);
}

/* Loading states */
.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pulse animation for CTA buttons */
.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 136, 204, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 136, 204, 0);
    }
}



/* About Section Styles */
.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.stat-item {
    background: var(--bg-card);
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.about-column h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-column p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.process-step:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.step-number {
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.technologies-section {
    margin-bottom: 3rem;
}

.technologies-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tech-category {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tech-category h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tech-category ul {
    list-style: none;
    padding: 0;
}

.tech-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.tech-category li:before {
    content: '▸';
    color: var(--primary);
    margin-right: 0.5rem;
}

.tech-category li:last-child {
    border-bottom: none;
}

.guarantees-section {
    margin-bottom: 3rem;
}

.guarantees-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.guarantee-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.guarantee-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.guarantee-card h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.guarantee-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.industries-section {
    margin-bottom: 2rem;
}

.industries-section h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.industries-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.industry-item {
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.industry-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.industry-item strong {
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 0.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .technologies-grid,
    .guarantees-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        padding: 1rem;
    }
}

/* Improved Header with Glass Effect */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(var(--bg-card), 0.95);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
    padding: 0.8rem 0;
}

.header.scrolled {
    background: rgba(var(--bg-card), 0.98);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    margin-left: 5px;
    animation: pulse 2s infinite;
}

/* Navigation */
#nav-menu {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-toggle:hover {
    background: rgba(var(--primary), 0.1);
    transform: rotate(15deg);
}

/* Enhanced Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(0, 136, 204, 0.05) 0%,
        rgba(42, 171, 238, 0.03) 50%,
        rgba(255, 107, 0, 0.04) 100%);
    overflow: hidden;
    padding: 80px 0 40px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.8rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn::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: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #e55a00 0%, var(--accent) 100%);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.btn-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Sections - Уменьшенные отступы */
.section {
    padding: 3.5rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Enhanced Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(var(--primary), 0.1), 
        transparent);
    transition: var(--transition-slow);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.2rem;
    display: block;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Enhanced Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.portfolio-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    background: var(--bg-card);
}

.portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-platform {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: var(--primary);
    color: white;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

/* Enhanced Pricing - Horizontal Layout */
.pricing-platforms {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.platform-selector {
    display: flex;
    background: var(--bg-card);
    padding: 0.4rem;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.platform-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
}

.platform-option.active {
    background: var(--primary);
    color: white;
}

.pricing-cards-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pricing-platform {
    display: contents;
}

.pricing-card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.03);
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-3px);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.price span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.8rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.pricing-features li:before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.contact-info p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.contact-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Enhanced Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary), 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-column h3 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links i {
    width: 18px;
    margin-right: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Enhanced Chat Widget */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 3px solid var(--bg-card);
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-xl);
}

.chat-container {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    transition: var(--transition);
}

.chat-container.active {
    display: flex;
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.chat-welcome {
    text-align: center;
    padding: 30px 15px;
    color: var(--text-secondary);
}

.welcome-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.chat-welcome h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.chat-welcome p {
    font-size: 0.9rem;
}

.chat-input-container {
    display: flex;
    padding: 12px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    gap: 8px;
}

#chat-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    outline: none;
    font-size: 0.85rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

#chat-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary), 0.1);
}

.chat-send {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 0.9rem;
}

.chat-send:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.chat-send:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
}

/* Message Styles */
.message {
    display: flex;
    align-items: flex-end;
    animation: messageAppear 0.3s ease;
    max-width: 85%;
}

.message.visitor {
    align-self: flex-end;
    margin-left: auto;
}

.message.admin {
    align-self: flex-start;
}

.message-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    position: relative;
    word-wrap: break-word;
    box-shadow: var(--shadow-sm);
    max-width: 100%;
    font-size: 0.85rem;
}

.message.visitor .message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 5px;
}

.message.admin .message-bubble {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-align: right;
}

.message.admin .message-time {
    text-align: left;
}

@keyframes messageAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Platform Showcase */
.platform-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.platform-card .platform-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

.platform-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
}

.platform-card p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Fixed Pricing Layout */
.pricing-cards-container {
    position: relative;
}

.pricing-platform {
    display: none;
}

.pricing-platform.active {
    display: block;
}

/* Mobile Menu - ИСПРАВЛЕННЫЙ */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 3px;
    padding: 5px;
    background: var(--bg-card);
    border-radius: 6px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    width: 30px;
    height: 30px;
    justify-content: center;
}

.mobile-menu span {
    width: 18px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 1px;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .pricing-cards-horizontal {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-container {
        padding: 0.5rem 0;
    }

    .mobile-menu {
        display: flex;
    }

    #nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        border-radius: 0 0 16px 16px;
        z-index: 999;
        border: 1px solid var(--border-color);
        gap: 0;
    }

    #nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        padding: 0.8rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .section {
        padding: 2.5rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Chat Widget Mobile */
    #chat-widget {
        bottom: 15px;
        right: 15px;
    }

    .chat-container {
        width: calc(100vw - 30px);
        height: 60vh;
        right: 0;
        bottom: 70px;
    }

    .chat-toggle {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .platform-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: 70px 0 30px;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .chat-container {
        width: calc(100vw - 20px);
        height: 55vh;
        right: 10px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .pricing-cards-horizontal {
        gap: 1.2rem;
    }
    
    .platform-card {
        padding: 1.2rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }
    50% {
        transform: rotate(45deg) translate(-5px, -5px);
    }
}