/* Стили для карточек услуг */
.services {
    padding: 60px 0;
    background: #f8f9fa;
}

.service-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 2.8rem;
    color: #1e8a03;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.service-description {
    flex: 1;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
}

.service-description p {
    margin: 0;
}

/* Стили для списка пунктов с треугольником */
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #555;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #5ce639;
    font-weight: bold;
    font-size: 1rem;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .service-card {
        padding: 20px 18px;
    }
    
    .service-icon {
        font-size: 2.2rem;
    }
    
    .service-card h3 {
        font-size: 1rem;
    }
    
    .service-features li {
        font-size: 0.85rem;
        padding: 4px 0 4px 20px;
    }
}

/* Сетка для карточек */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===== СТРАНИЦА ДОКУМЕНТОВ ===== */
.documents-page {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 70vh;
}

.documents-hero {
    text-align: center;
    margin-bottom: 50px;
}

.documents-hero h1 {
    font-size: 2.5rem;
    color: #1a1a2e;
    margin-bottom: 15px;
    font-weight: 700;
}

.documents-hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка документов */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Карточка документа */
.document-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
}


.document-icon-wrapper {
    width: 60px;
    height: 60px;
    background: #e63946;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
}

.document-type-badge {
    background: #f0f0f0;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


.document-title {
    font-size: 1.15rem;
    color: #1a1a2e;
    margin-bottom: 10px;
    font-weight: 600;
}

.document-description {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.document-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.document-actions .btn {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid #2caa06;
    color: #2caa06;
}

.btn-outline:hover {
    background: #2caa06;
    color: #fff;
}

.btn-primary {
    background: #2caa06;
    border: 2px solid #2caa06;
    color: #fff;
}

.btn-primary:hover {
    background: #05b64c;
    border-color: #45c628;
}

/* Пустое состояние */
.documents-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.documents-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.documents-empty p {
    font-size: 1.1rem;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close:hover {
    color: #333;
}

/* Адаптивность */
@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .documents-hero h1 {
        font-size: 2rem;
    }
    
    .document-card {
        padding: 20px;
    }
    
    .document-actions {
        flex-direction: column;
    }
    
    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }
    
}