/* === ФИНАЛЬНЫЕ UX/UI УЛУЧШЕНИЯ === */

/* Smooth scroll для всего сайта */
html {
    scroll-behavior: smooth;
}

/* Анимированные счетчики */
@keyframes countUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-number {
    animation: countUp 0.8s ease-out forwards;
    opacity: 0;
}

.stat-item.animate .stat-number {
    animation-delay: 0.2s;
}

/* Плавные переходы для всех интерактивных элементов */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Улучшенные анимации появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Анимация появления для секций */
.section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    animation-delay: 0.1s;
}

.section.visible {
    opacity: 1;
}

/* Индикатор активной секции в навигации */
.nav-link.active {
    color: var(--secondary) !important;
    font-weight: 700;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

/* Улучшенный loading state для кнопок */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Улучшенный feedback при касании */
.btn:active,
.mobile-action-btn:active,
.nav-link:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Parallax эффект для hero секции */
.hero {
    overflow: hidden;
}

.hero-particles {
    will-change: transform;
}

/* === МОБИЛЬНЫЕ УЛУЧШЕНИЯ UX/UI === */

/* Улучшенная типографика для мобильных */
@media (max-width: 768px) {
    /* Более читаемые заголовки */
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-bottom: var(--space-6) !important;
        word-wrap: break-word;
        hyphens: auto;
        font-weight: 700;
    }
    
    .hero-text {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
        margin-bottom: var(--space-8) !important;
        opacity: 0.95;
    }
    
    .hero-badge {
        font-size: 0.875rem;
        padding: var(--space-3) var(--space-6);
        margin-bottom: var(--space-6);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Улучшенное мобильное меню */
    .mobile-menu {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        border-radius: 0 0 24px 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 0, 0, 0.05);
        top: 90px;
    }
    
    .mobile-nav a {
        padding: var(--space-4) var(--space-6);
        margin: var(--space-2) var(--space-4);
        border-radius: 16px;
        font-weight: 600;
        font-size: 1.125rem;
        border: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
    }
    
    .mobile-nav a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 102, 204, 0.1), transparent);
        transition: left 0.6s ease;
    }
    
    .mobile-nav a:hover::before {
        left: 100%;
    }
    
    .mobile-nav a:hover {
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: var(--white);
        transform: translateX(8px);
        box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
    }

    /* Улучшенные кнопки для касания */
    .btn {
        min-height: 56px;
        padding: var(--space-4) var(--space-8);
        font-size: 1.125rem;
        font-weight: 700;
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-3);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        user-select: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .btn-primary {
        background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
        color: var(--primary);
        box-shadow: 
            0 8px 32px rgba(26, 54, 93, 0.2),
            0 2px 8px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        border: 1px solid rgba(26, 54, 93, 0.1);
    }
    
    .btn-primary:hover,
    .btn-primary:focus {
        background: linear-gradient(135deg, #ffffff 0%, #f1f3f4 100%);
        transform: translateY(-4px) scale(1.02);
        box-shadow: 
            0 12px 40px rgba(26, 54, 93, 0.3),
            0 4px 16px rgba(0, 0, 0, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }
    
    .btn-secondary {
        background: rgba(255, 255, 255, 0.15);
        color: var(--white);
        border: 2px solid rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(20px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    
    .btn-secondary:hover,
    .btn-secondary:focus {
        background: rgba(255, 255, 255, 0.25);
        border-color: rgba(255, 255, 255, 0.6);
        transform: translateY(-2px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }

    /* Липкие кнопки действий внизу экрана */
    .mobile-sticky-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        padding: var(--space-4) var(--space-6) calc(var(--space-4) + env(safe-area-inset-bottom));
        z-index: 1000;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
        display: none;
    }
    
    .mobile-sticky-actions.show {
        display: flex;
        gap: var(--space-4);
    }
    
    .mobile-action-btn {
        flex: 1;
        min-height: 52px;
        border-radius: 16px;
        font-weight: 700;
        font-size: 1.125rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: var(--space-2);
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-tap-highlight-color: transparent;
        border: none;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-action-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
        transform: translateX(-100%);
        transition: transform 0.6s ease;
    }
    
    .mobile-action-btn:hover::before {
        transform: translateX(100%);
    }
    
    .mobile-action-btn.primary {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        color: var(--white);
        box-shadow: 
            0 8px 32px rgba(26, 54, 93, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-action-btn.secondary {
        background: linear-gradient(135deg, var(--accent-gold) 0%, #f6ad55 100%);
        color: var(--white);
        box-shadow: 
            0 8px 32px rgba(214, 158, 46, 0.4),
            0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-action-btn:active {
        transform: scale(0.98);
    }
    
    .mobile-action-btn.primary:hover {
        box-shadow: 
            0 12px 40px rgba(26, 54, 93, 0.5),
            0 4px 16px rgba(0, 0, 0, 0.15);
    }
    
    .mobile-action-btn.secondary:hover {
        box-shadow: 
            0 12px 40px rgba(214, 158, 46, 0.5),
            0 4px 16px rgba(0, 0, 0, 0.15);
    }

    /* Отступ снизу для липких кнопок */
    body.has-sticky-actions {
        padding-bottom: 100px;
    }

    /* Улучшенная сетка статистики для мобильных */
    .about-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
        margin-top: var(--space-8);
    }

    /* Улучшенные карточки статистики */
    .stat-item {
        padding: var(--space-4) var(--space-3);
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        background: rgba(255, 255, 255, 0.95);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        height: 180px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    
    .stat-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(214, 158, 46, 0.05) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }
    
    .stat-item:hover::before {
        opacity: 1;
    }
    
    .stat-item:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 
            0 20px 60px rgba(26, 54, 93, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.1);
        border-color: var(--secondary);
        background: rgba(255, 255, 255, 1);
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: var(--space-5);
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        color: var(--white);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
    }
    
    .stat-item:hover .stat-icon {
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 12px 35px rgba(26, 54, 93, 0.4);
    }
    
    .stat-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-grow: 1;
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2.25rem;
        font-weight: 800;
        color: var(--primary);
        margin-bottom: var(--space-2);
        line-height: 1;
    }
    
    .stat-text {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--gray-600);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        line-height: 1.2;
        text-align: center;
        max-width: 100%;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Улучшенные карточки услуг */
    .service-card {
        border-radius: 24px;
        padding: var(--space-6);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.08),
            0 2px 8px rgba(0, 0, 0, 0.04);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .service-card:hover {
        transform: translateY(-12px);
        box-shadow: 
            0 25px 80px rgba(0, 0, 0, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.1);
        border-color: var(--secondary);
    }

    /* Улучшенные контактные карточки */
    .contact-card {
        border-radius: 24px;
        padding: var(--space-6);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        min-height: 300px;
    }
    
    .contact-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-5);
    }
    
    .contact-card-content {
        margin-bottom: var(--space-6);
    }
    
    .contact-card-content h3 {
        margin-bottom: var(--space-4) !important;
        font-size: 1.375rem !important;
    }
    
    .contact-card.primary .contact-value {
        color: var(--white) !important;
        font-weight: 900 !important;
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 4px 8px rgba(0, 0, 0, 0.6),
            0 0 0 1px rgba(0, 0, 0, 0.9);
        font-size: 1.625rem !important;
        margin: var(--space-5) 0 !important;
        padding: var(--space-4) var(--space-3);
        background: rgba(0, 0, 0, 0.4);
        border-radius: 16px;
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.6);
        box-shadow: 
            0 4px 20px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        letter-spacing: 0.5px;
    }
    
    .contact-card.primary .contact-description {
        color: rgba(255, 255, 255, 0.95) !important;
        font-weight: 600 !important;
        margin-top: var(--space-4) !important;
        font-size: 1.1rem !important;
        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    }
    
    .contact-card.primary h3 {
        color: var(--white) !important;
        font-weight: 800 !important;
        text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }
    
    .contact-card:hover {
        transform: translateY(-12px) scale(1.02);
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-bottom: var(--space-2);
    }
    
    .contact-card:hover .contact-icon {
        transform: scale(1.1) rotate(5deg);
    }
    
    .btn-contact {
        min-height: 52px;
        font-size: 1.125rem;
        font-weight: 700;
        border-radius: 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: var(--space-4) !important;
        padding: var(--space-4) var(--space-6) !important;
    }
    
    .btn-contact i {
        font-size: 1.25rem;
        margin-right: var(--space-4);
    }
    
    .btn-primary i {
        margin-right: var(--space-4) !important;
    }

    /* Улучшенный scroll indicator */
    .scroll-indicator {
        animation: bounce 3s infinite;
    }
    
    .scroll-indicator span {
        font-size: 0.875rem;
        font-weight: 600;
        margin-bottom: var(--space-2);
        display: block;
    }
    
    .scroll-arrow {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    /* Улучшенный хедер для мобильных */
    header {
        min-height: 80px;
        backdrop-filter: blur(30px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
    
    .header-content {
        padding: var(--space-3) 0;
    }
    
    .logo img {
        height: 50px;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn {
        width: 32px;
        height: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 1001;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn span {
        height: 3px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: center;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background: var(--secondary);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: var(--secondary);
    }

    /* Улучшенные анимации */
    .hero-particles {
        animation: particlesFloat 25s linear infinite;
    }
    
    @keyframes particlesFloat {
        0% { transform: translateY(0px) rotate(0deg); }
        100% { transform: translateY(-20px) rotate(360deg); }
    }

    /* Пульсация для важных элементов */
    .mobile-action-btn.primary {
        animation: pulseGlow 3s ease-in-out infinite;
    }
    
    @keyframes pulseGlow {
        0%, 100% { 
            box-shadow: 
                0 8px 32px rgba(26, 54, 93, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.1);
        }
        50% { 
            box-shadow: 
                0 12px 40px rgba(26, 54, 93, 0.6),
                0 4px 16px rgba(0, 0, 0, 0.15),
                0 0 0 4px rgba(26, 54, 93, 0.1);
        }
    }

    /* Улучшенные переходы между секциями */
    .section {
        padding: var(--space-12) 0;
        scroll-margin-top: 80px;
    }
    
    .section-header {
        margin-bottom: var(--space-10);
    }
    
    .section-title {
        font-size: clamp(2rem, 7vw, 2.75rem);
        line-height: 1.2;
        margin-bottom: var(--space-4);
    }
    
    .section-description {
        font-size: 1.125rem;
        line-height: 1.6;
        color: var(--gray-600);
    }

    /* Загрузочный экран для мобильных */
    .loading-screen {
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    }
    
    .loading-logo {
        font-size: 2.5rem;
        font-weight: 800;
        margin-bottom: var(--space-6);
        animation: loadingPulse 2s ease-in-out infinite;
    }
    
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }

    /* Скрытие обычных hero actions на мобильном */
    .hero-actions {
        display: none;
    }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
    .hero-title {
        font-size: clamp(1.5rem, 5.5vw, 2rem) !important;
    }
    
    .hero-text {
        font-size: 1rem !important;
    }
    
    .stat-item {
        min-height: 160px;
        padding: var(--space-4);
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .mobile-sticky-actions {
        padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
        gap: var(--space-3);
    }
    
    .mobile-action-btn {
        min-height: 48px;
        font-size: 1rem;
    }
}

/* Улучшения для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem) !important;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Дополнительные стили для мобильных устройств */
@media (max-width: 480px) {
    .advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 1rem;
    }
    
    .advantage-item {
        padding: 1.5rem !important;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        padding: 0 0.5rem;
    }
    
    .advantage-item {
        padding: 1rem !important;
        font-size: 0.9rem;
    }
    
    .advantage-item h3 {
        font-size: 1.1rem !important;
    }
    
    .advantage-icon {
        font-size: 2.5rem !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mobile-menu {
        background: rgba(30, 30, 30, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav a {
        color: #e2e8f0;
    }
    
    .mobile-sticky-actions {
        background: rgba(30, 30, 30, 0.98);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-particles {
        animation: none;
    }
    
    .mobile-action-btn.primary {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.mobile-menu-btn:focus,
.mobile-action-btn:focus,
.btn:focus {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .mobile-action-btn:hover,
    .stat-item:hover,
    .service-card:hover,
    .contact-card:hover {
        transform: none;
    }
    
    .btn:active,
    .mobile-action-btn:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    /* Haptic feedback симуляция */
    .btn:active::before,
    .mobile-action-btn:active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.1);
        border-radius: inherit;
        animation: ripple 0.3s ease-out;
    }
    
    @keyframes ripple {
        0% {
            transform: scale(0);
            opacity: 1;
        }
        100% {
            transform: scale(1);
            opacity: 0;
        }
    }
}

/* Улучшенная прокрутка на iOS */
body {
    -webkit-overflow-scrolling: touch;
}

/* Современные градиенты для лучшего визуального восприятия */
.hero {
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--secondary) 25%,
        var(--primary) 50%,
        var(--accent-gold) 75%,
        var(--secondary) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Улучшенная анимация загрузки */
.loading-screen {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    backdrop-filter: blur(10px);
}

.loading-spinner {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Анимация появления для статистики */
.stat-item {
    animation: fadeInScale 0.6s ease-out forwards;
    opacity: 0;
}

.stat-item:nth-child(1) { animation-delay: 0.1s; }
.stat-item:nth-child(2) { animation-delay: 0.2s; }
.stat-item:nth-child(3) { animation-delay: 0.3s; }
.stat-item:nth-child(4) { animation-delay: 0.4s; }

/* Улучшенная анимация для карточек услуг */
.service-card {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

/* Современные тени */
.card, .service-card, .contact-card, .stat-item {
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 2px 6px rgba(0, 0, 0, 0.04);
}

.card:hover, .service-card:hover, .contact-card:hover {
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 8px 32px rgba(0, 0, 0, 0.08);
}

/* Улучшенный прогресс бар */
.progress-bar {
    height: 3px;
    background: linear-gradient(90deg, 
        var(--secondary) 0%, 
        var(--accent-gold) 50%, 
        var(--primary) 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* Стилизованный scrollbar для современных браузеров */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent-gold));
}

/* Финальные микроанимации */
.logo img {
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: brightness(1.1) saturate(1.2);
}

/* Анимация для мобильного меню */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateY(0);
}

/* Улучшенный visual feedback */
.btn:focus-visible,
.mobile-action-btn:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

/* Переключатель языков будет управляться через inline стили в HTML */
