/* Стили для страницы ресурсов */

/* Resources Section */
.resources-section {
    padding: 5rem 0;
}

.resources-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.resource-category {
    margin-bottom: 2rem;
}

.resource-category h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.resource-category h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.resource-card {
    display: flex;
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 100px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
}

.resource-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.resource-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.resource-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.resource-info p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    font-weight: var(--font-weight-medium);
    color: var(--primary-color);
    margin-right: 1.5rem;
    transition: all var(--transition-fast);
}

.resource-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Resources Downloads */
.resources-downloads {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.download-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition-normal);
}

.download-card:hover {
    transform: translateY(-5px);
}

.download-icon {
    width: 64px;
    height: 64px;
    background-color: var(--secondary-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.download-icon img {
    width: 32px;
    height: 32px;
}

.download-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.download-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.download-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
}

.download-info .btn {
    align-self: flex-start;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .resource-card {
        flex-direction: column;
    }
    
    .resource-icon {
        width: 100%;
        padding: 1rem;
    }
    
    .downloads-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .resource-list {
        gap: 1.5rem;
    }
    
    .resource-info {
        padding: 1.25rem;
    }
    
    .resource-info h3 {
        font-size: 1.1rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
}