/* Блок "Наши услуги" */
.services-section {
    background-color: white;
    /* padding: 40px 20px; */
    padding-bottom: 15px;
    padding-top: 15px;
    font-family: 'Rubik', sans-serif;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
}

.services-title {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    color: #333;
    margin-bottom: 60px;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.services-tabs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.service-tab {
    background: transparent;
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
    font-family: 'Rubik', sans-serif;
}

.service-tab::before {
    content: '#';
    color: #F97316;
    font-weight: 700;
    margin-right: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-tab:hover {
    color: #F97316;
    background-color: #fff5f0;
}

.service-tab:hover::before {
    opacity: 1;
}

/* .service-tab.active {
    color: #F97316;
    background-color: #fff5f0;
    border-left-color: #F97316;
    position: relative;
} */

.service-tab.active::before {
    opacity: 1;
}

.service-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 3px;
    background: #F97316;
    transform: skewX(-15deg) rotate(-1deg);
    transform-origin: left;
    animation: underlineSlide 0.4s ease-out;
}

@keyframes underlineSlide {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: calc(100% - 50px);
        opacity: 1;
    }
}

.services-info {
    background: #f8f9fa;
    padding: 40px;
    min-height: 400px;
    position: relative;
}

.service-info {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    transition: all 0.3s ease;
}

.service-info.active {
    opacity: 1;
    visibility: visible;
    position: static;
}

.service-info-title {
    font-size: 28px;
    font-weight: 700;
    color: #F97316;
    margin-bottom: 20px;
}

.service-info-description {
    font-size: 18px;
    font-family: 'Rubik', sans-serif;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #F97316;
    font-weight: bold;
    font-size: 16px;
}

.service-call-request {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.service-call-prompt {
    font-size: 20px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.service-input-group {
    display: flex;
    gap: 10px;
}

.service-phone-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Rubik', sans-serif;
}

.service-phone-input.error {
    border-color: red;
}

.service-call-button {
    background-color: #F97316;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* border-radius: 5px; */
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
}

.service-call-button:hover {
    background-color: #EA580C;
}

.service-error-message {
    color: red;
    font-size: 13px;
    margin-top: 8px;
    text-align: left;
    display: none;
}


/* Адаптивность */
@media (max-width: 768px) {
    .services-section {
        padding: 0px 20px;
    }
    
    .services-title {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-tab {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .services-info {
        padding: 30px 20px;
        min-height: 300px;
    }
    
    .service-info {
        top: 30px;
        left: 20px;
        right: 20px;
    }
    
    .service-info-title {
        font-size: 24px;
    }
    
    .service-info-description {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 28px;
    }
    
    .service-tab {
        font-size: 15px;
        padding: 12px 15px;
    }
    
    .services-info {
        padding: 20px 15px;
    }
    
    .service-info {
        top: 20px;
        left: 15px;
        right: 15px;
    }
    
    .service-info-title {
        font-size: 22px;
    }

    .service-input-group {
        flex-direction: column;
    }
}
