/* Блок услуг */
.services-section {
    padding: 30px 0;
    background: #ffffff;
}

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

.services-section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
}

.services-section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-popular {
    border: 2px solid #7c3aed;
}

.service-popular .popular-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    color: #7c3aed;
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.service-description {
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 48px;
}

.service-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.price-value {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.price-value .currency {
    color: #7c3aed;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.learn-more-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    transform: translateX(3px);
}

.learn-more-btn::after {
    content: '→';
    transition: transform 0.2s ease;
}

.learn-more-btn:hover::after {
    transform: translateX(3px);
}

/* Модальное окно деталей услуги */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.service-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 30px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #64748b;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.1));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #7c3aed;
}

.modal-price {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 0;
}

.modal-price strong {
    color: #7c3aed;
}

.modal-body {
    padding: 30px;
}

.modal-description {
    font-size: 16px;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 30px;
}

.modal-description h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e293b;
    margin: 25px 0 15px 0;
}

.modal-description ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-description li {
    margin-bottom: 8px;
    position: relative;
}

.modal-description li::before {
    content: '•';
    color: #7c3aed;
    font-weight: bold;
    position: absolute;
    left: -15px;
}

.modal-footer {
    padding: 20px 30px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: right;
}

.modal-action-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.modal-action-btn:hover {
    background: linear-gradient(135deg, #6d28d9, #9333ea);
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .services-section {
        padding: 40px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px;
    }

    .services-section-title {
        font-size: 28px;
    }

    .modal-title {
        font-size: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
}

@media (max-width: 480px) {
    .services-container {
        padding: 0 15px;
    }

    .service-card {
        padding: 20px;
    }

    .service-title {
        font-size: 18px;
    }

    .modal-header,
    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 15px 20px;
        text-align: center;
    }

    .modal-action-btn {
        width: 100%;
        text-align: center;
    }
}