/* Hero секция */
.services-hero {
    position: relative;
    height: 25vh;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 85px;
    overflow: hidden;
}

.services-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.services-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern-grid.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.services-hero-content {
	text-align: center;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.services-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.services-hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: #f0f0f0;
    animation: fadeInUp 1s ease;
}


/*-----*/
.services-nav-section {
    background-color: #f0f3f5;
    padding: 30px 0;
    position: sticky;
    top: 85px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.services-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.service-nav-btn {
    padding: 15px 25px;
    background-color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.service-nav-btn i {
    font-size: 1.2rem;
    color: #539a3c;
}

.service-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #539a3c;
}

.service-nav-btn.active {
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
    border-color: transparent;
}

.service-nav-btn.active i {
    color: white;
}

.services-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.service-category {
    display: none;
    margin-bottom: 60px;
}

.service-category.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #539a3c;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #539a3c, #f3932F);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.5rem;
}

.service-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.4;
}

.service-card-desc {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 0.95rem;
}

.service-card-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 6px;
    color: #539a3c;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.service-card-btn i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-card-btn {
    background-color: #539a3c;
    color: white;
}

.service-card:hover .service-card-btn i {
    transform: translateX(5px);
}
/* Выделение специальной карточки */
.service-card-highlighted {
    background: linear-gradient(135deg, rgba(83, 154, 60, 0.08), rgba(243, 147, 47, 0.08));
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #539a3c, #f3932F, #d94430);
    border-image-slice: 1;
    position: relative;
    transform: scale(1.02); /* Слегка увеличиваем */
    box-shadow: 0 10px 25px rgba(83, 154, 60, 0.15);
}

.service-card-highlighted .service-card-icon {
    background: linear-gradient(135deg, #539a3c, #f3932F, #d94430);
    color: white;
}

.service-card-highlighted .service-card-title {
    color: #539a3c;
    font-weight: 700;
}

.service-card-highlighted .service-card-btn {
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
}

.service-card-highlighted:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(83, 154, 60, 0.25);
}
/* Модальное окно для услуг */
.service-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.service-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.service-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #539a3c, #f3932F);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.service-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #d94430, #f3932F);
}

.service-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #539a3c;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.service-modal-nav:hover {
    background: white;
    color: #d94430;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-modal-prev {
    left: 20px;
}

.service-modal-next {
    right: 20px;
}

.service-modal-content {
    padding: 40px;
    overflow-y: auto;
    max-height: calc(90vh - 60px);
}

.service-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
    position: relative;
    padding-bottom: 15px;
}

.service-modal-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #539a3c, #f3932F);
    border-radius: 2px;
}

.service-modal-text {
    color: #444;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.service-modal-images {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.service-modal-img-container {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.service-modal-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.service-modal-img:hover {
    transform: scale(1.02);
}

.service-modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .service-modal-content {
        padding: 30px;
    }
    
    .service-modal-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
	
	.services-hero {
        margin-top: 80px;
    }
    .services-hero-title {
        font-size: 2.2rem;
    }
    .services-hero-subtitle {
        font-size: 1.1rem;
    }
    .services-nav {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-nav-btn {
        justify-content: center;
        padding: 12px 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .service-modal-prev {
        left: 10px;
    }
    
    .service-modal-next {
        right: 10px;
    }
    
    .service-modal-content {
        padding: 20px;
    }
    
    .service-modal-title {
        font-size: 1.4rem;
    }
    
    .service-modal-img-container {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
	.services-hero-title {
        font-size: 1.8rem;
    }
    .services-hero-subtitle {
        font-size: 1rem;
    }
    .services-nav-section {
        top: 80px;
        padding: 20px 0;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .service-card-title {
        font-size: 1.1rem;
    }
    
    .service-modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Анимация появления карточек */
.service-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержка для анимации карточек */
.service-card:nth-child(1) { transition-delay: 0.1s; }
.service-card:nth-child(2) { transition-delay: 0.2s; }
.service-card:nth-child(3) { transition-delay: 0.3s; }
.service-card:nth-child(4) { transition-delay: 0.4s; }
.service-card:nth-child(5) { transition-delay: 0.5s; }