/* Стили для страницы "Услуги" */

.services-header {
    text-align: center;
    margin: 140px 30px 50px;
    position: relative;
    z-index: 10;
}

.services-header h1 {
    font-size: 3rem;
    color: #2d3748;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #c95252);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

.services-header p {
    font-size: 1.3rem;
    color: #4a5568;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Навигация по услугам */
.services-nav {
    position: sticky;
    top: 70px;
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 30px;
    border-radius: 15px 15px 0 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 15px 20px;
}

.nav-item {
    padding: 12px 24px;
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 5px;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea, #c95252);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-item:hover {
    color: #2d3748;
    background: rgba(255, 255, 255, 0.3);
}

.nav-item:hover::before {
    width: 80%;
}

.nav-item.active {
    color: #2d3748;
    font-weight: 600;
}

.nav-item.active::before {
    width: 80%;
    background: linear-gradient(135deg, #667eea, #c95252);
}

/* Секции услуг */
.service-section {
    background: linear-gradient(135deg, rgba(221, 238, 253, 0.95), rgba(255, 225, 225, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 30px;
    padding: 50px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
    scroll-margin-top: 100px;
}

.service-content {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.service-text {
    flex: 1;
}

.service-image {
    flex: 0 0 300px;
    text-align: center;
}

.service-image img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.service-section h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #c95252);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

.service-description {
    font-size: 1.2rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 30px;
}

.service-features {
    margin-bottom: 30px;
}

.service-features h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #c95252;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-tech h3 {
    font-size: 1.3rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea, #c95252);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
}

/* Анимация появления секций */
.service-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.service-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .service-content {
        gap: 40px;
    }
    
    .service-image {
        flex: 0 0 250px;
    }
    
    .service-image img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 865px) {
    .services-header {
        margin: 120px 20px 40px;
    }
    
    .services-header h1 {
        font-size: 2.2rem;
    }
    
    .services-header p {
        font-size: 1.1rem;
    }
    
    .services-nav {
        margin: 0 20px;
        top: 60px;
    }
    
    .nav-container {
        padding: 10px 15px;
        justify-content: flex-start;
        overflow-x: auto;
    }
    
    .nav-item {
        padding: 10px 16px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .service-section {
        margin: 20px;
        padding: 30px 25px;
    }
    
    .service-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .service-image {
        flex: none;
    }
    
    .service-section h2 {
        font-size: 1.8rem;
    }
    
    .service-description {
        font-size: 1.1rem;
    }
    
    .service-features li {
        font-size: 1rem;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .services-header {
        margin: 110px 15px 30px;
    }
    
    .services-header h1 {
        font-size: 1.8rem;
    }
    
    .services-header p {
        font-size: 1rem;
    }
    
    .services-nav {
        margin: 0 15px;
    }
    
    .nav-container {
        padding: 8px 10px;
    }
    
    .nav-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .service-section {
        margin: 15px;
        padding: 25px 20px;
    }
    
    .service-image img {
        width: 150px;
        height: 150px;
    }
    
    .service-section h2 {
        font-size: 1.6rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .tech-tags {
        justify-content: center;
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}