:root {
    --primary-color: #2D3436;
    --secondary-color: #0984E3;
    --accent-color: #00B894;
    --text-color: #2D3436;
    --light-bg: #F5F6FA;
    --gradient-1: linear-gradient(135deg, #0984E3 0%, #00B894 100%);
    --gradient-2: linear-gradient(135deg, #6C5CE7 0%, #0984E3 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background: var(--light-bg);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

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

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 2;
    color: white;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(9, 132, 227, 0.4);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    text-align: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    margin: 0 auto 1rem;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

section {
    padding: 8rem 5%;
}

.services, .cases {
    background: var(--light-bg);
}

h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

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

.service-card, .case-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before, .case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: 0.3s ease;
    z-index: 1;
}

.service-card:hover::before, .case-card:hover::before {
    opacity: 0.05;
}

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

.service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.case-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.case-card:hover .case-image img {
    transform: scale(1.02);
}

.case-details {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.n8n-features {
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.contact {
    text-align: center;
    background: var(--gradient-2);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0984E3 0%, #00B894 100%);
    opacity: 0.05;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.social-link {
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: 0.3s ease;
}

.social-link:hover::before {
    transform: translate(-50%, -50%) scale(1.2);
    background: rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-5px);
}

.ai-creation-notice {
    background: var(--gradient-1);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-creation-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6C5CE7 0%, #0984E3 100%);
    opacity: 0.05;
}

.notice-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

.notice-content i {
    font-size: 1.5rem;
    animation: pulse 2s infinite;
}

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

footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    section {
        padding: 4rem 5%;
    }

    .feature-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .feature-list li {
        text-align: left;
    }

    .hero-scroll-indicator {
        bottom: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-content {
        padding-bottom: 4rem;
    }

    .services-grid, .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card, .case-card {
        padding: 1.5rem;
    }

    .case-image {
        padding: 0.5rem;
    }
    
    .case-image img {
        border-radius: 8px;
        max-height: 300px;
        object-fit: contain;
    }
    
    .case-card {
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .notice-content {
        font-size: 1rem;
    }

    .notice-content i {
        font-size: 1.2rem;
    }
}

/* Добавляем стили для очень маленьких экранов */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
    }

    .hero-scroll-indicator {
        bottom: 0.5rem;
    }

    .hero-content {
        padding-bottom: 3rem;
    }
}

.features-note {
    margin-top: 3rem;
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(9, 132, 227, 0.1);
    border-radius: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-note p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.features-note i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .features-note {
        margin-top: 2rem;
        padding: 1rem;
    }
    
    .features-note p {
        font-size: 0.9rem;
    }
} 