* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow-x: hidden;
}

.container {
    z-index: 20;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, #00d4ff, #ff00ff);
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    left: 80%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 120px;
    height: 120px;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 80px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-links a:hover {
    color: #00d4ff;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #00d4ff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 50%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px rgba(0,212,255,.3)); }
    to { filter: drop-shadow(0 0 40px rgba(255,0,255,.3)); }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.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: left 0.5s;
}

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

/* Phone Mockup */
.phone-mockup {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    background: #1a1a1a;
    border-radius: 30px;
    border: 3px solid #333;
    padding: 20px;
    animation: phoneFloat 6s ease-in-out infinite;
    z-index: 10;
}

.phone-behind-text {
    position: absolute;
    right: 5%;
    top: 20%;
    width: 300px;
    height: 600px;
    opacity: 0.1;
    z-index: -1;
    animation: phonePulse 4s ease-in-out infinite;
}

.phone-icon {
    font-size: 300px;
    color: #00d4ff;
    text-align: center;
    line-height: 600px;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(-50%) rotate(-3deg); }
    50% { transform: translateY(-60%) rotate(3deg); }
}

@keyframes phonePulse {
    0%, 100% { 
        opacity: 0.1; 
        transform: scale(1) rotate(-5deg);
    }
    50% { 
        opacity: 0.2; 
        transform: scale(1.05) rotate(5deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.screen-content {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Tech Stack */
.tech-stack {
    padding: 100px 0;
}

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

.tech-item {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-item:hover {
    transform: scale(1.05);
    background: rgba(0, 212, 255, 0.1);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.tech-icon-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 12px rgba(0, 212, 255, 0.15));
}

/* Contact */
.contact {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.form-group {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

.form-group.full-width {
    grid-template-columns: 1fr;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* App Examples Section */
.app-examples {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

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

.example-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
}

.example-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.example-card:hover .example-phone-mockup {
    transform: scale(1.05) rotateY(5deg);
}

/* Phone Mockup Styles */
.example-phone-mockup {
    width: 230px;
    height: 450px;
    margin: 0 auto 2rem auto;
    perspective: 1000px;
    transition: transform 0.3s ease;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 25px;
    padding: 8px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.app-animation {
    width: 100%;
    height: 100%;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    animation: appPulse 3s ease-in-out infinite;
}

.app-header {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 10px;
    animation: headerGlow 2s ease-in-out infinite alternate;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item,
.product-item,
.workout-item,
.restaurant-item,
.post-item,
.device-item {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    animation: itemSlide 4s ease-in-out infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.service-item:nth-child(1),
.product-item:nth-child(1),
.workout-item:nth-child(1),
.restaurant-item:nth-child(1),
.post-item:nth-child(1),
.device-item:nth-child(1) {
    animation-delay: 0s;
}

.service-item:nth-child(2),
.product-item:nth-child(2),
.workout-item:nth-child(2),
.restaurant-item:nth-child(2),
.post-item:nth-child(2),
.device-item:nth-child(2) {
    animation-delay: 0.5s;
}

.service-item:nth-child(3),
.product-item:nth-child(3),
.workout-item:nth-child(3),
.restaurant-item:nth-child(3),
.post-item:nth-child(3),
.device-item:nth-child(3) {
    animation-delay: 1s;
}

/* Animations */
@keyframes appPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes headerGlow {
    0% { filter: brightness(1); }
    100% { filter: brightness(1.2) drop-shadow(0 0 5px rgba(255, 255, 255, 0.3)); }
}

@keyframes itemSlide {
    0%, 100% { 
        transform: translateX(0) scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: translateX(2px) scale(1.02);
        opacity: 1;
    }
}

/* Specific app animations */
.service-animation {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.shop-animation {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.fitness-animation {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.delivery-animation {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.social-animation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.iot-animation {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.example-header {
    margin-bottom: 1.5rem;
}

.example-tag {
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-card h3 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
    color: #ffffff;
}

.example-challenge,
.example-solution {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.example-challenge strong,
.example-solution strong {
    color: #00d4ff;
}

.example-metrics {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.9rem;
}

.metric-icon {
    font-size: 1.2rem;
}

.example-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.expertise-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.example-testimonial {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.example-testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 2rem;
    color: #00d4ff;
}

.example-price {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.5rem;
    color: #00ff88;
}

.example-cta {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00d4ff, #ff00ff);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 10, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .phone-mockup {
        display: none;
    }
    
    .phone-behind-text {
        display: none;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .form-group {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .example-card {
        padding: 1.5rem;
    }
    
     .example-phone-mockup {
         width: 230px;
         height: 450px;
         margin: 0 auto 1.5rem auto;
     }
    
    .app-header {
        font-size: 1.2rem;
    }
    
    .service-item,
    .product-item,
    .workout-item,
    .restaurant-item,
    .post-item,
    .device-item {
        font-size: 0.6rem;
        padding: 4px 6px;
    }
    
    /* Улучшения для phone-mockup в мобильной версии */
    .example-phone-mockup {
        width: 200px !important;
        height: 400px !important;
        margin: 0 auto 20px auto !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .example-card {
        text-align: center;
        padding: 20px 10px;
    }
    
    .example-header {
        margin-top: 15px;
    }
    
    .example-header h3 {
        font-size: 1.2rem;
    }
    
    /* Уменьшаем размеры телефонов для мобильных */
    .service-phone,
    .ecommerce-phone,
    .fitness-phone,
    .food-phone,
    .social-phone,
    .iot-phone {
        transform: scale(0.8);
        transform-origin: center;
    }
    
    /* Убираем 3D эффекты на мобильных */
    .service-phone:hover,
    .ecommerce-phone:hover,
    .fitness-phone:hover,
    .food-phone:hover,
    .social-phone:hover,
    .iot-phone:hover {
        transform: scale(0.8);
    }
    
    /* Анимации появления для мобильных */
    .service-phone-container,
    .ecommerce-phone-container,
    .fitness-phone-container,
    .food-phone-container,
    .social-phone-container,
    .iot-phone-container {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Service Marketplace Animation Styles */
.service-phone-container {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.service-phone {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.service-phone:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

/* Статус бар для сервиса */
.service-phone .status-bar {
    height: 22px;
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 7px;
    font-weight: 600;
}

.service-phone .status-icons {
    display: flex;
    gap: 2px;
    align-items: center;
}

.service-phone .signal, 
.service-phone .wifi, 
.service-phone .battery {
    width: 10px;
    height: 6px;
    background: white;
    border-radius: 1px;
}

.service-phone .signal {
    background: linear-gradient(90deg, white 0%, white 80%, transparent 80%);
}

.service-phone .wifi {
    background: radial-gradient(circle at center, white 0%, white 60%, transparent 60%);
}

.service-phone .battery {
    background: linear-gradient(90deg, white 0%, white 90%, transparent 90%);
    position: relative;
}

.service-phone .battery::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3px;
    background: white;
    border-radius: 0 1px 1px 0;
}

/* Навигационная панель для сервиса */
.service-phone .nav-bar {
    height: 30px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid #e5e5e7;
}

.service-phone .back-btn {
    color: #007AFF;
    font-size: 8px;
    cursor: pointer;
}

.service-phone .title {
    font-size: 9px;
    font-weight: 600;
    color: #1d1d1f;
}

.service-phone .profile-pic {
    width: 16px;
    height: 16px;
    background: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

/* Экраны для сервиса */
.service-phone .service-screen {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    bottom: 40px;
    background: #f5f5f7;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.service-phone .service-screen.active {
    transform: translateX(0);
}

/* Главная страница для сервиса */
.service-phone .search-section {
    padding: 10px;
    background: white;
}

.service-phone .search-bar {
    display: flex;
    gap: 5px;
    align-items: center;
}

.service-phone .search-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #e5e5e7;
    border-radius: 6px;
    font-size: 8px;
    background: #f5f5f7;
}

.service-phone .search-btn {
    width: 22px;
    height: 22px;
    background: #007AFF;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-phone .main-content {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-phone .page-title {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 20px;
    align-self: flex-start;
}

.service-phone .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.service-phone .tablet-illustration {
    position: relative;
    width: 100px;
    height: 75px;
}

.service-phone .tablet {
    width: 60px;
    height: 40px;
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
    border-radius: 6px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

.service-phone .tablet-screen {
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: white;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 6px;
}

.service-phone .chat-bubble {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 10px;
    background: #007AFF;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 6px;
    animation: pulse 2s infinite;
}

.service-phone .question-mark {
    position: absolute;
    bottom: 15px;
    right: 10px;
    width: 12px;
    height: 12px;
    background: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 7px;
    font-weight: bold;
    animation: bounce 2s infinite;
}

.service-phone .empty-text h2 {
    font-size: 10px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.service-phone .empty-text p {
    font-size: 8px;
    color: #8e8e93;
    line-height: 1.4;
}

.service-phone .create-order-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 25px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-phone .create-order-btn:hover {
    transform: translateY(-1px);
}

/* Экран создания заказа для сервиса */
.service-phone .screen-1 {
    padding: 10px;
}

.service-phone .image-selector {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.service-phone .image-thumb {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.service-phone .image-thumb:hover {
    transform: scale(1.05);
}

.service-phone .image-thumb img {
    width: 30px;
    height: 30px;
    border-radius: 4px;
    object-fit: cover;
}

.service-phone .select-circle {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border: 1px solid white;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}

.service-phone .image-thumb[data-selected="true"] .select-circle {
    background: #007AFF;
    border-color: #007AFF;
}

.service-phone .image-thumb[data-selected="true"] .select-circle::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 6px;
    font-weight: bold;
}

.service-phone .form-fields {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 15px;
}

.service-phone .input-field {
    padding: 7px;
    border: 1px solid #e5e5e7;
    border-radius: 6px;
    font-size: 8px;
    background: white;
    transition: border-color 0.2s ease;
}

.service-phone .input-field:focus {
    outline: none;
    border-color: #007AFF;
}

.service-phone .textarea {
    min-height: 40px;
    resize: vertical;
}

.service-phone .select-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.service-phone .arrow {
    color: #8e8e93;
    font-size: 9px;
}

.service-phone .date-buttons {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}

.service-phone .date-btn {
    padding: 5px 10px;
    border: 1px solid #e5e5e7;
    border-radius: 10px;
    background: white;
    font-size: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-phone .date-btn.active {
    background: #007AFF;
    color: white;
    border-color: #007AFF;
}

.service-phone .checkbox-field {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.service-phone .checkbox {
    width: 10px;
    height: 10px;
    border: 1px solid #e5e5e7;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.service-phone .checkbox-field:hover .checkbox {
    border-color: #007AFF;
}

.service-phone .continue-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-phone .continue-btn:hover {
    transform: translateY(-1px);
}

/* Экран "Заказ опубликован" для сервиса */
.service-phone .success-content {
    text-align: center;
    padding: 20px 10px;
}

.service-phone .success-content h2 {
    font-size: 12px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.service-phone .success-content p {
    font-size: 8px;
    color: #8e8e93;
    margin-bottom: 20px;
}

.service-phone .hourglass-animation {
    position: relative;
    height: 100px;
    margin: 20px 0;
}

.service-phone .hourglass {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 50px;
}

.service-phone .top-bulb, 
.service-phone .bottom-bulb {
    width: 30px;
    height: 20px;
    background: #007AFF;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.service-phone .bottom-bulb {
    border-radius: 0 0 15px 15px;
    transform: rotate(180deg);
}

.service-phone .middle {
    width: 2px;
    height: 10px;
    background: #007AFF;
    margin: 0 auto;
}

.service-phone .sand {
    position: absolute;
    bottom: 0;
    left: 5px;
    right: 5px;
    height: 15px;
    background: #FFD700;
    border-radius: 0 0 10px 10px;
    animation: sandFall 3s infinite;
}

.service-phone .sand-falling {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 10px;
    background: #FFD700;
    animation: sandDrop 1s infinite;
}

.service-phone .message-bubble {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 15px;
    height: 15px;
    background: #007AFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    animation: bounce 2s infinite;
}

.service-phone .stars {
    position: absolute;
    top: 20px;
    right: 10px;
    display: flex;
    gap: 2px;
}

.service-phone .stars span {
    color: #007AFF;
    font-size: 10px;
    animation: twinkle 1.5s infinite;
}

.service-phone .stars span:nth-child(2) { animation-delay: 0.5s; }
.service-phone .stars span:nth-child(3) { animation-delay: 1s; }

.service-phone .progress-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #e5e5e7;
    border-radius: 1px;
    overflow: hidden;
}

.service-phone .progress-fill {
    height: 100%;
    background: #007AFF;
    border-radius: 1px;
    animation: progress 4s infinite;
}

/* Чат для сервиса */
.service-phone .chat-content {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.service-phone .message {
    max-width: 80%;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 7px;
    line-height: 1.4;
}

.service-phone .system-message {
    background: #007AFF;
    color: white;
    align-self: center;
    max-width: 90%;
    border-radius: 6px;
}

.service-phone .user-message {
    background: #007AFF;
    color: white;
    align-self: flex-end;
}

.service-phone .other-message {
    background: #e5e5e7;
    color: #1d1d1f;
    align-self: flex-start;
}

.service-phone .message-images {
    display: flex;
    gap: 4px;
    margin-top: 5px;
}

.service-phone .message-images img {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    object-fit: cover;
}

.service-phone .chat-input {
    position: absolute;
    bottom: 40px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    border-radius: 12px;
    padding: 5px 7px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.service-phone .message-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 8px;
    background: transparent;
}

.service-phone .mic-btn {
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 9px;
}

/* Нижняя навигация для сервиса */
.service-phone .bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #e5e5e7;
}

.service-phone .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.service-phone .nav-item:hover {
    transform: scale(1.1);
}

.service-phone .nav-item.active {
    color: #007AFF;
}

.service-phone .nav-icon {
    font-size: 12px;
}

.service-phone .nav-item.active::after {
    content: '';
    width: 10px;
    height: 1px;
    background: #007AFF;
    border-radius: 1px;
    margin-top: 2px;
}

/* E-commerce Animation Styles */
.ecommerce-phone-container {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.ecommerce-phone {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.ecommerce-phone:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.ecommerce-phone .status-bar {
    height: 22px;
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 7px;
    font-weight: 600;
}

.ecommerce-phone .status-icons {
    display: flex;
    gap: 2px;
    align-items: center;
}

.ecommerce-phone .signal, 
.ecommerce-phone .wifi, 
.ecommerce-phone .battery {
    width: 10px;
    height: 6px;
    background: white;
    border-radius: 1px;
}

.ecommerce-phone .signal {
    background: linear-gradient(90deg, white 0%, white 80%, transparent 80%);
}

.ecommerce-phone .wifi {
    background: radial-gradient(circle at center, white 0%, white 60%, transparent 60%);
}

.ecommerce-phone .battery {
    background: linear-gradient(90deg, white 0%, white 90%, transparent 90%);
    position: relative;
}

.ecommerce-phone .battery::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3px;
    background: white;
    border-radius: 0 1px 1px 0;
}

.ecommerce-phone .nav-bar {
    height: 30px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    border-bottom: 1px solid #e5e5e7;
}

.ecommerce-phone .back-btn {
    color: #FF6B6B;
    font-size: 8px;
    cursor: pointer;
}

.ecommerce-phone .title {
    font-size: 9px;
    font-weight: 600;
    color: #1d1d1f;
}

.ecommerce-phone .cart-icon {
    width: 16px;
    height: 16px;
    background: #FF6B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
}

.ecommerce-phone .ecommerce-screen {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    bottom: 40px;
    background: #f5f5f7;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.ecommerce-phone .ecommerce-screen.active {
    transform: translateX(0);
}

.ecommerce-phone .search-section {
    padding: 10px;
    background: white;
}

.ecommerce-phone .search-bar {
    display: flex;
    gap: 5px;
    align-items: center;
}

.ecommerce-phone .search-input {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid #e5e5e7;
    border-radius: 6px;
    font-size: 8px;
    background: #f5f5f7;
}

.ecommerce-phone .search-btn {
    width: 22px;
    height: 22px;
    background: #FF6B6B;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecommerce-phone .product-grid {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ecommerce-phone .product-card {
    background: white;
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.ecommerce-phone .product-card:hover {
    transform: translateY(-2px);
}

.ecommerce-phone .product-image {
    width: 100%;
    height: 25px;
    border-radius: 3px;
    margin-bottom: 3px;
    overflow: hidden;
    position: relative;
    background: #f5f5f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecommerce-phone .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.ecommerce-phone .product-img:hover {
    transform: scale(1.05);
}

.ecommerce-phone .product-image::before {
    content: '📱';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    opacity: 0.3;
    z-index: 1;
}

.ecommerce-phone .product-img:not([src=""]) + *::before {
    display: none;
}

.ecommerce-phone .product-image.loaded::before {
    display: none;
}

.ecommerce-phone .product-title {
    font-size: 6px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1px;
    line-height: 1.2;
}

.ecommerce-phone .product-price {
    font-size: 6px;
    font-weight: 700;
    color: #FF6B6B;
}

.ecommerce-phone .add-to-cart-btn {
    width: 100%;
    height: 12px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2px;
    transition: background 0.2s ease;
}

.ecommerce-phone .add-to-cart-btn:hover {
    background: #FF5252;
}

.ecommerce-phone .cart-content {
    padding: 10px;
}

.ecommerce-phone .cart-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e7;
}

.ecommerce-phone .cart-item:last-child {
    border-bottom: none;
}

.ecommerce-phone .cart-item-image {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.ecommerce-phone .cart-item-details {
    flex: 1;
}

.ecommerce-phone .cart-item-title {
    font-size: 7px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 2px;
}

.ecommerce-phone .cart-item-price {
    font-size: 8px;
    color: #FF6B6B;
    font-weight: 600;
}

.ecommerce-phone .quantity-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ecommerce-phone .quantity-btn {
    width: 12px;
    height: 12px;
    background: #FF6B6B;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecommerce-phone .quantity {
    font-size: 7px;
    font-weight: 600;
    color: #1d1d1f;
}

.ecommerce-phone .checkout-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 25px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecommerce-phone .checkout-btn:hover {
    transform: translateY(-1px);
}

.ecommerce-phone .bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #e5e5e7;
}

.ecommerce-phone .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.ecommerce-phone .nav-item:hover {
    transform: scale(1.1);
}

.ecommerce-phone .nav-item.active {
    color: #FF6B6B;
}

.ecommerce-phone .nav-icon {
    font-size: 12px;
}

.ecommerce-phone .nav-item.active::after {
    content: '';
    width: 10px;
    height: 1px;
    background: #FF6B6B;
    border-radius: 1px;
    margin-top: 2px;
}

/* Fitness App Animation Styles */
.fitness-phone-container {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.fitness-phone {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.fitness-phone:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.fitness-phone .status-bar {
    height: 22px;
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 7px;
    font-weight: 600;
}

.fitness-phone .status-icons {
    display: flex;
    gap: 2px;
    align-items: center;
}

.fitness-phone .signal, 
.fitness-phone .wifi, 
.fitness-phone .battery {
    width: 10px;
    height: 6px;
    background: white;
    border-radius: 1px;
}

.fitness-phone .signal {
    background: linear-gradient(90deg, white 0%, white 80%, transparent 80%);
}

.fitness-phone .wifi {
    background: radial-gradient(circle at center, white 0%, white 60%, transparent 60%);
}

.fitness-phone .battery {
    background: linear-gradient(90deg, white 0%, white 90%, transparent 90%);
    position: relative;
}

.fitness-phone .battery::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3px;
    background: white;
    border-radius: 0 1px 1px 0;
}

.fitness-phone .fitness-screen {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    bottom: 40px;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.fitness-phone .fitness-screen.active {
    transform: translateX(0);
}

.fitness-phone .workout-header {
    padding: 15px 10px;
    text-align: center;
    color: white;
}

.fitness-phone .workout-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 5px;
}

.fitness-phone .workout-subtitle {
    font-size: 8px;
    opacity: 0.9;
}

.fitness-phone .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px;
}

.fitness-phone .stat-card {
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    color: white;
}

.fitness-phone .stat-number {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 2px;
}

.fitness-phone .stat-label {
    font-size: 6px;
    opacity: 0.9;
}

.fitness-phone .workout-list {
    padding: 10px;
}

.fitness-phone .workout-item {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 6px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fitness-phone .workout-icon {
    width: 20px;
    height: 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.fitness-phone .workout-details {
    flex: 1;
}

.fitness-phone .workout-name {
    font-size: 7px;
    font-weight: 600;
    margin-bottom: 1px;
}

.fitness-phone .workout-time {
    font-size: 6px;
    opacity: 0.8;
}

.fitness-phone .start-workout-btn {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 25px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fitness-phone .start-workout-btn:hover {
    transform: translateY(-1px);
}

.fitness-phone .bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.fitness-phone .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: white;
}

.fitness-phone .nav-item:hover {
    transform: scale(1.1);
}

.fitness-phone .nav-item.active {
    color: #4ECDC4;
}

.fitness-phone .nav-icon {
    font-size: 12px;
}

.fitness-phone .nav-item.active::after {
    content: '';
    width: 10px;
    height: 1px;
    background: #4ECDC4;
    border-radius: 1px;
    margin-top: 2px;
}

/* Food Delivery Animation Styles */
.food-phone-container {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.food-phone {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.food-phone:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.food-phone .status-bar {
    height: 22px;
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 7px;
    font-weight: 600;
}

.food-phone .status-icons {
    display: flex;
    gap: 2px;
    align-items: center;
}

.food-phone .signal, 
.food-phone .wifi, 
.food-phone .battery {
    width: 10px;
    height: 6px;
    background: white;
    border-radius: 1px;
}

.food-phone .signal {
    background: linear-gradient(90deg, white 0%, white 80%, transparent 80%);
}

.food-phone .wifi {
    background: radial-gradient(circle at center, white 0%, white 60%, transparent 60%);
}

.food-phone .battery {
    background: linear-gradient(90deg, white 0%, white 90%, transparent 90%);
    position: relative;
}

.food-phone .battery::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3px;
    background: white;
    border-radius: 0 1px 1px 0;
}

.food-phone .food-screen {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    bottom: 40px;
    background: #f5f5f7;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.food-phone .food-screen.active {
    transform: translateX(0);
}

.food-phone .search-section {
    padding: 10px;
    background: white;
}

.food-phone .search-bar {
    display: flex;
    gap: 5px;
    align-items: center;
}

.food-phone .search-input {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 8px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.food-phone .search-input:focus {
    outline: none;
    border-color: #FF8A65;
    background: white;
    box-shadow: 0 4px 12px rgba(255,138,101,0.2);
    transform: translateY(-1px);
}

.food-phone .search-btn {
    width: 22px;
    height: 22px;
    background: #FF8A65;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255,138,101,0.3);
}

.food-phone .search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255,138,101,0.4);
}

.food-phone .restaurant-list {
    padding: 10px;
}

.food-phone .restaurant-card {
    background: white;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.food-phone .restaurant-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.food-phone .restaurant-logo {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #FF8A65, #FFAB91);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.food-phone .restaurant-info {
    flex: 1;
}

.food-phone .restaurant-name {
    font-size: 7px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1px;
}

.food-phone .restaurant-rating {
    font-size: 6px;
    color: #FF8A65;
}

.food-phone .delivery-time {
    font-size: 6px;
    color: #8e8e93;
}

.food-phone .menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.food-phone .menu-item:last-child {
    border-bottom: none;
}

.food-phone .menu-item-image {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #FF8A65, #FFAB91);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6px;
}

.food-phone .menu-item-details {
    flex: 1;
}

.food-phone .menu-item-name {
    font-size: 6px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1px;
}

.food-phone .menu-item-price {
    font-size: 6px;
    color: #FF8A65;
    font-weight: 600;
}

.food-phone .add-item-btn {
    width: 12px;
    height: 12px;
    background: #FF8A65;
    color: white;
    border: none;
    border-radius: 2px;
    font-size: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.food-phone .order-summary {
    position: absolute;
    bottom: 40px;
    left: 10px;
    right: 10px;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
}

.food-phone .order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.food-phone .total-label {
    font-size: 7px;
    font-weight: 600;
    color: #1d1d1f;
}

.food-phone .total-price {
    font-size: 8px;
    font-weight: 700;
    color: #FF8A65;
}

.food-phone .checkout-btn {
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, #FF8A65, #FFAB91);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 7px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.food-phone .checkout-btn:hover {
    transform: translateY(-1px);
}

/* Food Delivery Success Screen */
.food-phone .success-content {
    text-align: center;
    padding: 20px 10px;
}

.food-phone .success-content h2 {
    font-size: 12px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 5px;
}

.food-phone .success-content p {
    font-size: 8px;
    color: #8e8e93;
    margin-bottom: 20px;
}

.food-phone .delivery-animation {
    position: relative;
    height: 100px;
    margin: 20px 0;
}

.food-phone .delivery-truck {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 20px;
    background: linear-gradient(135deg, #FF8A65, #FFAB91);
    border-radius: 8px;
    animation: truckMove 3s infinite;
}

.food-phone .delivery-truck::before {
    content: '🚚';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
}

.food-phone .delivery-road {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e5e5e7;
    border-radius: 2px;
}

.food-phone .delivery-road::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        #FF8A65 0px,
        #FF8A65 8px,
        transparent 8px,
        transparent 16px
    );
}

.food-phone .delivery-time {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #FF8A65;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 6px;
    font-weight: 600;
}

.food-phone .progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
}

.food-phone .progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e5e5e7;
    animation: dotPulse 2s infinite;
}

.food-phone .progress-dot.active {
    background: #FF8A65;
}

.food-phone .progress-dot:nth-child(2) { animation-delay: 0.5s; }
.food-phone .progress-dot:nth-child(3) { animation-delay: 1s; }

@keyframes truckMove {
    0% { transform: translate(-50%, -50%) translateX(-30px); }
    50% { transform: translate(-50%, -50%) translateX(0px); }
    100% { transform: translate(-50%, -50%) translateX(30px); }
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Анимации появления контейнеров телефонов */
.service-phone-container,
.ecommerce-phone-container,
.fitness-phone-container,
.food-phone-container,
.social-phone-container,
.iot-phone-container {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-phone-container.animate-in,
.ecommerce-phone-container.animate-in,
.fitness-phone-container.animate-in,
.food-phone-container.animate-in,
.social-phone-container.animate-in,
.iot-phone-container.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.food-phone .bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #e5e5e7;
}

.food-phone .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.food-phone .nav-item:hover {
    transform: scale(1.1);
}

.food-phone .nav-item.active {
    color: #FF8A65;
}

.food-phone .nav-icon {
    font-size: 12px;
}

.food-phone .nav-item.active::after {
    content: '';
    width: 10px;
    height: 1px;
    background: #FF8A65;
    border-radius: 1px;
    margin-top: 2px;
}

/* Social Network Animation Styles */
.social-phone-container {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.social-phone {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.social-phone:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.social-phone .status-bar {
    height: 22px;
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 7px;
    font-weight: 600;
}

.social-phone .status-icons {
    display: flex;
    gap: 2px;
    align-items: center;
}

.social-phone .signal, 
.social-phone .wifi, 
.social-phone .battery {
    width: 10px;
    height: 6px;
    background: white;
    border-radius: 1px;
}

.social-phone .signal {
    background: linear-gradient(90deg, white 0%, white 80%, transparent 80%);
}

.social-phone .wifi {
    background: radial-gradient(circle at center, white 0%, white 60%, transparent 60%);
}

.social-phone .battery {
    background: linear-gradient(90deg, white 0%, white 90%, transparent 90%);
    position: relative;
}

.social-phone .battery::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3px;
    background: white;
    border-radius: 0 1px 1px 0;
}

.social-phone .social-screen {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    bottom: 40px;
    background: #f5f5f7;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.social-phone .social-screen.active {
    transform: translateX(0);
}

.social-phone .feed-item {
    background: white;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.social-phone .post-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.social-phone .avatar {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
}

.social-phone .user-info {
    flex: 1;
}

.social-phone .username {
    font-size: 7px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1px;
}

.social-phone .post-time {
    font-size: 6px;
    color: #8e8e93;
}

.social-phone .post-content {
    padding: 0 8px 8px 8px;
}

.social-phone .post-text {
    font-size: 7px;
    color: #1d1d1f;
    line-height: 1.3;
    margin-bottom: 6px;
}

.social-phone .post-image {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    margin-bottom: 6px;
}

.social-phone .post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 8px 8px;
}

.social-phone .action-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    font-size: 6px;
    color: #8e8e93;
    cursor: pointer;
    transition: color 0.2s ease;
}

.social-phone .action-btn:hover {
    color: #667eea;
}

.social-phone .action-icon {
    font-size: 8px;
}

.social-phone .bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #e5e5e7;
}

.social-phone .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.social-phone .nav-item:hover {
    transform: scale(1.1);
}

.social-phone .nav-item.active {
    color: #667eea;
}

.social-phone .nav-icon {
    font-size: 12px;
}

.social-phone .nav-item.active::after {
    content: '';
    width: 10px;
    height: 1px;
    background: #667eea;
    border-radius: 1px;
    margin-top: 2px;
}

/* IoT Control Animation Styles */
.iot-phone-container {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

.iot-phone {
    width: 100%;
    height: 100%;
    background: #f5f5f7;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.iot-phone:hover {
    transform: rotateY(-2deg) rotateX(1deg);
}

.iot-phone .status-bar {
    height: 22px;
    background: #000;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-size: 7px;
    font-weight: 600;
}

.iot-phone .status-icons {
    display: flex;
    gap: 2px;
    align-items: center;
}

.iot-phone .signal, 
.iot-phone .wifi, 
.iot-phone .battery {
    width: 10px;
    height: 6px;
    background: white;
    border-radius: 1px;
}

.iot-phone .signal {
    background: linear-gradient(90deg, white 0%, white 80%, transparent 80%);
}

.iot-phone .wifi {
    background: radial-gradient(circle at center, white 0%, white 60%, transparent 60%);
}

.iot-phone .battery {
    background: linear-gradient(90deg, white 0%, white 90%, transparent 90%);
    position: relative;
}

.iot-phone .battery::after {
    content: '';
    position: absolute;
    right: -1px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3px;
    background: white;
    border-radius: 0 1px 1px 0;
}

.iot-phone .iot-screen {
    position: absolute;
    top: 22px;
    left: 0;
    right: 0;
    bottom: 40px;
    background: #f5f5f7;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.iot-phone .iot-screen.active {
    transform: translateX(0);
}

.iot-phone .devices-grid {
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.iot-phone .device-card {
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.iot-phone .device-card:hover {
    transform: translateY(-2px);
}

.iot-phone .device-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #96CEB4, #FFEAA7);
    border-radius: 6px;
    margin: 0 auto 6px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.iot-phone .device-name {
    font-size: 7px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 4px;
}

.iot-phone .device-status {
    font-size: 6px;
    color: #96CEB4;
    text-align: center;
    margin-bottom: 6px;
}

.iot-phone .device-toggle {
    width: 100%;
    height: 16px;
    background: #96CEB4;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.iot-phone .device-toggle:hover {
    background: #85C1A3;
}

.iot-phone .device-toggle.off {
    background: #e5e5e7;
    color: #8e8e93;
}

.iot-phone .room-section {
    padding: 10px;
}

.iot-phone .room-header {
    font-size: 8px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.iot-phone .room-devices {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.iot-phone .room-device {
    background: white;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    flex: 1;
    min-width: calc(50% - 3px);
}

.iot-phone .room-device-icon {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #96CEB4, #FFEAA7);
    border-radius: 3px;
    margin: 0 auto 4px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
}

.iot-phone .room-device-name {
    font-size: 6px;
    font-weight: 600;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 2px;
}

.iot-phone .room-device-status {
    font-size: 5px;
    color: #96CEB4;
    text-align: center;
}

.iot-phone .bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid #e5e5e7;
}

.iot-phone .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.iot-phone .nav-item:hover {
    transform: scale(1.1);
}

.iot-phone .nav-item.active {
    color: #96CEB4;
}

.iot-phone .nav-icon {
    font-size: 12px;
}

.iot-phone .nav-item.active::after {
    content: '';
    width: 10px;
    height: 1px;
    background: #96CEB4;
    border-radius: 1px;
    margin-top: 2px;
}

/* Blog common styles */
.page-header {
    padding: 120px 0 40px;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff 0%, #ff00ff 50%, #ffff00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 20px 0 60px;
}

.post {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 212, 255, 0.18);
}

.post-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.post-content { padding: 1.2rem 1.4rem 1.6rem; }
.post-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; color: #fff; }
.post-meta { font-size: .9rem; color: rgba(255, 255, 255, 0.7); margin-bottom: .8rem; }
.post-excerpt { color: rgba(255, 255, 255, 0.85); font-size: .98rem; }

@media (max-width: 768px) {
    .nav-links { display: none; }
}